(props)
return resources
Helper for get_resource_config().
Helper for get_resource_config().
Helper for get_resource_config () .
def get_resource_config_from_dict(props):
  """Helper for get_resource_config()."""

  check_field(props, 'name')
  check_field(props, 'kind')

  resources = [{
      'name': props['name'],
      'type': get_type(props['kind'], props),
      'properties': scrub_properties(props)
  }]

  if props['kind'] == 'compute#instanceGroupManager' and 'autoscaler' in props:
    resources.extend(get_resource_config_from_dict(props['autoscaler']))

  return resources
def get_resource_config_from_dict ( props ) : check_field ( props , 'name' ) check_field ( props , 'kind' ) resources = [ { 'name' : props [ 'name' ] , 'type' : get_type ( props [ 'kind' ] , props ) , 'properties' : scrub_properties ( props ) } ] if props [ 'kind' ] == 'compute#instanceGroupManager' and 'autoscaler' in props : resources . extend ( get_resource_config_from_dict ( props [ 'autoscaler' ] ) ) return resources