InstanceTemplate class
Represents an Instance Template resource.
Google Compute Engine has two Instance Template resources: * [Global](/compute/docs/reference/rest/v1/instanceTemplates) * [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates.
Constructors
- InstanceTemplate({String? creationTimestamp, String? description, String? id, String? kind, String? name, InstanceProperties? properties, String? region, String? selfLink, String? sourceInstance, SourceInstanceParams? sourceInstanceParams})
- InstanceTemplate.fromJson(Map json_)
Properties
- creationTimestamp ↔ String?
-
The creation timestamp for this instance template in RFC3339 text format.
getter/setter pair
- description ↔ String?
-
An optional description of this resource.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
A unique identifier for this instance template.
getter/setter pair
- kind ↔ String?
-
The resource type, which is always compute#instanceTemplate for instance
templates.
getter/setter pair
- name ↔ String?
-
Name of the resource; provided by the client when the resource is created.
getter/setter pair
- properties ↔ InstanceProperties?
-
The instance properties for this instance template.
getter/setter pair
- region ↔ String?
-
URL of the region where the instance template resides.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink ↔ String?
-
The URL for this instance template.
getter/setter pair
- sourceInstance ↔ String?
-
The source instance used to create the template.
getter/setter pair
- sourceInstanceParams ↔ SourceInstanceParams?
-
The source instance params to use to create this instance template.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited