Struct google_compute1::api::InstanceTemplate
source · pub struct InstanceTemplate {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub properties: Option<InstanceProperties>,
pub region: Option<String>,
pub self_link: Option<String>,
pub source_instance: Option<String>,
pub source_instance_params: Option<SourceInstanceParams>,
}
Expand description
Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * Global * Regional 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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- aggregated list instance templates (none)
- delete instance templates (none)
- get instance templates (response)
- get iam policy instance templates (none)
- insert instance templates (request)
- list instance templates (none)
- set iam policy instance templates (none)
- test iam permissions instance templates (none)
- get region instance templates (response)
- insert region instance templates (request)
Fields§
§creation_timestamp: Option<String>
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
id: Option<u64>
[Output Only] A unique identifier for this instance template. The server defines this identifier.
kind: Option<String>
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
name: Option<String>
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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.
properties: Option<InstanceProperties>
The instance properties for this instance template.
region: Option<String>
[Output Only] URL of the region where the instance template resides. Only applicable for regional resources.
self_link: Option<String>
[Output Only] The URL for this instance template. The server defines this URL.
source_instance: Option<String>
The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
source_instance_params: Option<SourceInstanceParams>
The source instance params to use to create this instance template.
Trait Implementations§
source§impl Clone for InstanceTemplate
impl Clone for InstanceTemplate
source§fn clone(&self) -> InstanceTemplate
fn clone(&self) -> InstanceTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more