google.cloud.forseti.common.gcp_type.instance_group_manager module

A Compute InstanceGroupManager.

See:
https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers
class InstanceGroupManager(**kwargs)[source]

Bases: object

Represents InstanceGroupManager resource.

_create_json_str()[source]

Creates a json string based on the object attributes.

Returns:json str.
Return type:str
classmethod from_dict(igm, project_id=None)[source]

Creates an InstanceGroupManager from an instance group manager dict.

Parameters:
  • igm (dict) – An instance group manager resource dict.
  • project_id (str) – A project id for the resource.
Returns:

A new InstanceGroupManager object.

Return type:

InstanceGroupManager

static from_json(json_string, project_id=None)[source]

Creates an InstanceGroupManager from a JSON string.

Parameters:
  • json_string (str) – A json string representing the instance group manager.
  • project_id (str) – A project id for the resource.
Returns:

A new InstanceGroupManager object.

Return type:

InstanceGroupManager

json

Returns the json string representation of the resource.

Returns:json str.
Return type:str