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, readInstance 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 inRFC3339
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 alwayscompute#instanceTemplate for instance
templates.
getter/setter pair
- name ↔ String?
-
Name of the resource; provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.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