A Compute InstanceGroup.
InstanceGroup
(**kwargs)[source]¶Bases: object
Represents InstanceGroup resource.
_create_json_str
()[source]¶Creates a json string based on the object attributes.
Returns: | json str. |
---|---|
Return type: | str |
from_dict
(instance_group, project_id=None)[source]¶Creates an InstanceGroup from an instance group dict.
Parameters: |
|
---|---|
Returns: | A new InstanceGroup object. |
Return type: |
from_json
(json_string, project_id=None)[source]¶Creates an InstanceGroup from an instance group JSON string.
Parameters: |
|
---|---|
Returns: | A new InstanceGroup object. |
Return type: |
json
¶Returns the json string representation of the resource.
Returns: | json str. |
---|---|
Return type: | str |
Key
(object_kind, object_path)[source]¶Bases: google.cloud.forseti.common.gcp_type.key.Key
An identifier for a specific instance group.
from_args
(project_id, name, region=None, zone=None)[source]¶Construct a Key from specific values.
One and only one of (region, zone) must be specified.
Parameters: |
|
---|---|
Returns: | the key |
Return type: | |
Raises: |
|
from_url
(url)[source]¶Construct a Key from a URL.
Parameters: | url (str) – Object reference URL |
---|---|
Returns: | the key |
Return type: | Key |
Raises: | ValueError – Required parameters are missing. |
name
¶Object property – name
Returns: | name |
---|---|
Return type: | str |
project_id
¶Object property – project_id
Returns: | project_id |
---|---|
Return type: | str |
region
¶Object property – region
Returns: | region |
---|---|
Return type: | str |
zone
¶Object property – zone
Returns: | zone |
---|---|
Return type: | str |