def get_gcloud_command_group()

in tools/genconfig/genconfig.py [0:0]


def get_gcloud_command_group(collection):
  """Converts API collection to gcloud sub-command group.

  Most collections are a direct mapping, but some are multi-word or have custom
  sub-command groups and must be special-cased here.

  Args:
    collection: collection within the respective API for this resource.

  Returns:
    gcloud command group string for this resource's collection.
  """

  return {
      'backendServices': 'backend-services',
      'backendBuckets': 'backend-buckets',
      'firewalls': 'firewall-rules',
      'forwardingRules': 'forwarding-rules',
      'httpHealthChecks': 'http-health-checks',
      'httpsHealthChecks': 'https-health-checks',
      'instanceTemplates': 'instance-templates',
      'instanceGroupManagers': 'instance-groups managed',
      'targetHttpProxies': 'target-http-proxies',
      'targetHttpsProxies': 'target-https-proxies',
      'targetPools': 'target-pools',
      'urlMaps': 'url-maps',
	  'healthChecks': 'health-checks',
      'instanceGroups': 'instance-groups'
  }.get(collection, collection)