(context)
return {'resources': resources}
Creates the firewall with environment variables.
Creates the firewall with environment variables.
Creates the firewall with environment variables .
def GenerateConfig(context):
  """Creates the firewall with environment variables."""

  resources = [{
      'name': context.env['name'],
      'type': 'compute.v1.firewall',
      'properties': {
          'network': '$(ref.' + context.properties['network'] + '.selfLink)',
          'sourceRanges': ['0.0.0.0/0'],
          'allowed': [{
              'IPProtocol': 'TCP',
              'ports': [80]
          }]
      }
  }]
  return {'resources': resources}
def GenerateConfig ( context ) : resources = [ { 'name' : context . env [ 'name' ] , 'type' : 'compute.v1.firewall' , 'properties' : { 'network' : '$(ref.' + context . properties [ 'network' ] + '.selfLink)' , 'sourceRanges' : [ '0.0.0.0/0' ] , 'allowed' : [ { 'IPProtocol' : 'TCP' , 'ports' : [ 80 ] } ] } } ] return { 'resources' : resources }