A Compute InstanceTemplate.
InstanceTemplate
(**kwargs)[source]¶Bases: object
Represents InstanceTemplate resource.
_create_json_str
()[source]¶Creates a json string based on the object attributes.
Returns: | json str. |
---|---|
Return type: | str |
from_dict
(instance_template, project_id=None)[source]¶Creates an InstanceTemplate from an instance template dict.
Parameters: |
|
---|---|
Returns: | A new InstanceTemplate object. |
Return type: |
from_json
(json_string, project_id=None)[source]¶Creates an InstanceTemplate from an instance template JSON string.
Parameters: |
|
---|---|
Returns: | A new InstanceTemplate 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 template.
from_args
(project_id, name)[source]¶Construct a Key from specific values.
Parameters: |
|
---|---|
Returns: | the key |
Return type: |
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 |