Class: Google::Apis::ComputeBeta::InstantSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::InstantSnapshot
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..
Instance Attribute Summary collapse
-
#architecture ⇒ String
[Output Only] The architecture of the instant snapshot.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional description of this resource.
-
#disk_size_gb ⇒ Fixnum
[Output Only] Size of the source disk, specified in GB.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#label_fingerprint ⇒ String
A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking.
-
#labels ⇒ Hash<String,String>
Labels to apply to this InstantSnapshot.
-
#name ⇒ String
Name of the resource; provided by the client when the resource is created.
-
#region ⇒ String
[Output Only] URL of the region where the instant snapshot resides.
-
#resource_status ⇒ Google::Apis::ComputeBeta::InstantSnapshotResourceStatus
[Output Only] Status information for the instant snapshot resource.
-
#satisfies_pzi ⇒ Boolean
(also: #satisfies_pzi?)
Output only.
-
#satisfies_pzs ⇒ Boolean
(also: #satisfies_pzs?)
[Output Only] Reserved for future use.
-
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource's resource id.
-
#source_disk ⇒ String
URL of the source disk used to create this instant snapshot.
-
#source_disk_id ⇒ String
[Output Only] The ID value of the disk used to create this InstantSnapshot.
-
#status ⇒ String
[Output Only] The status of the instantSnapshot.
-
#zone ⇒ String
[Output Only] URL of the zone where the instant snapshot resides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstantSnapshot
constructor
A new instance of InstantSnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstantSnapshot
Returns a new instance of InstantSnapshot.
20268 20269 20270 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20268 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
[Output Only] The architecture of the instant snapshot. Valid values are ARM64
or X86_64.
Corresponds to the JSON property architecture
20144 20145 20146 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20144 def architecture @architecture end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
20149 20150 20151 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20149 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource. Provide this property when you
create the resource.
Corresponds to the JSON property description
20155 20156 20157 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20155 def description @description end |
#disk_size_gb ⇒ Fixnum
[Output Only] Size of the source disk, specified in GB.
Corresponds to the JSON property diskSizeGb
20160 20161 20162 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20160 def disk_size_gb @disk_size_gb end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
20166 20167 20168 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20166 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#instantSnapshot for
InstantSnapshot resources.
Corresponds to the JSON property kind
20172 20173 20174 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20172 def kind @kind end |
#label_fingerprint ⇒ String
A fingerprint for the labels being applied to this InstantSnapshot, which is
essentially a hash of the labels set used for optimistic locking. The
fingerprint is initially generated by Compute Engine and changes after every
request to modify or update labels. You must always provide an up-to-date
fingerprint hash in order to update or change labels, otherwise the request
will fail with error 412 conditionNotMet. To see the latest fingerprint, make
a get() request to retrieve a InstantSnapshot.
Corresponds to the JSON property labelFingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
20184 20185 20186 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20184 def label_fingerprint @label_fingerprint end |
#labels ⇒ Hash<String,String>
Labels to apply to this InstantSnapshot. These can be later modified by the
setLabels method. Label values may be empty.
Corresponds to the JSON property labels
20190 20191 20192 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20190 def labels @labels end |
#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 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.
Corresponds to the JSON property name
20200 20201 20202 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20200 def name @name end |
#region ⇒ String
[Output Only] URL of the region where the instant snapshot resides. You must
specify this field as part of the HTTP request URL. It is not settable as a
field in the request body.
Corresponds to the JSON property region
20207 20208 20209 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20207 def region @region end |
#resource_status ⇒ Google::Apis::ComputeBeta::InstantSnapshotResourceStatus
[Output Only] Status information for the instant snapshot resource.
Corresponds to the JSON property resourceStatus
20212 20213 20214 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20212 def resource_status @resource_status end |
#satisfies_pzi ⇒ Boolean Also known as: satisfies_pzi?
Output only. Reserved for future use.
Corresponds to the JSON property satisfiesPzi
20217 20218 20219 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20217 def satisfies_pzi @satisfies_pzi end |
#satisfies_pzs ⇒ Boolean Also known as: satisfies_pzs?
[Output Only] Reserved for future use.
Corresponds to the JSON property satisfiesPzs
20223 20224 20225 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20223 def satisfies_pzs @satisfies_pzs end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
20229 20230 20231 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20229 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource's resource id.
Corresponds to the JSON property selfLinkWithId
20234 20235 20236 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20234 def self_link_with_id @self_link_with_id end |
#source_disk ⇒ String
URL of the source disk used to create this instant snapshot. Note that the
source disk must be in the same zone/region as the instant snapshot to be
created. This can be a full or valid partial URL. For example, the following
are valid values: - https://www.googleapis.com/compute/v1/projects/project/
zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/
project/regions/region /disks/disk - projects/project/zones/zone/disks/disk -
projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/
region/disks/disk
Corresponds to the JSON property sourceDisk
20246 20247 20248 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20246 def source_disk @source_disk end |
#source_disk_id ⇒ String
[Output Only] The ID value of the disk used to create this InstantSnapshot.
This value may be used to determine whether the InstantSnapshot was taken from
the current or a previous instance of a given disk name.
Corresponds to the JSON property sourceDiskId
20253 20254 20255 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20253 def source_disk_id @source_disk_id end |
#status ⇒ String
[Output Only] The status of the instantSnapshot. This can be CREATING,
DELETING, FAILED, or READY.
Corresponds to the JSON property status
20259 20260 20261 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20259 def status @status end |
#zone ⇒ String
[Output Only] URL of the zone where the instant snapshot resides. You must
specify this field as part of the HTTP request URL. It is not settable as a
field in the request body.
Corresponds to the JSON property zone
20266 20267 20268 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20266 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 |
# File 'lib/google/apis/compute_beta/classes.rb', line 20273 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @resource_status = args[:resource_status] if args.key?(:resource_status) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @source_disk = args[:source_disk] if args.key?(:source_disk) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end |