Class: Google::Apis::ComputeAlpha::InPlaceSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InPlaceSnapshot
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Represents a InPlaceSnapshot resource.
You can use in-place snapshots to create disk rollback points quickly.. (==
resource_for $api_version
.inPlaceSnapshots ==)
Instance Attribute Summary collapse
-
#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.
-
#guest_flush ⇒ Boolean
(also: #guest_flush?)
Specifies to create an application consistent in-place snapshot by informing the OS to prepare for the snapshot process.
-
#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 InPlaceSnapshot, which is essentially a hash of the labels set used for optimistic locking.
-
#labels ⇒ Hash<String,String>
Labels to apply to this InPlaceSnapshot.
-
#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 in-place snapshot resides.
-
#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 in-place snapshot.
-
#source_disk_id ⇒ String
[Output Only] The ID value of the disk used to create this InPlaceSnapshot.
-
#status ⇒ String
[Output Only] The status of the inPlaceSnapshot.
-
#zone ⇒ String
[Output Only] URL of the zone where the in-place snapshot resides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InPlaceSnapshot
constructor
A new instance of InPlaceSnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InPlaceSnapshot
Returns a new instance of InPlaceSnapshot.
12847 12848 12849 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
12737 12738 12739 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12737 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
12743 12744 12745 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12743 def description @description end |
#disk_size_gb ⇒ Fixnum
[Output Only] Size of the source disk, specified in GB.
Corresponds to the JSON property diskSizeGb
12748 12749 12750 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12748 def disk_size_gb @disk_size_gb end |
#guest_flush ⇒ Boolean Also known as: guest_flush?
Specifies to create an application consistent in-place snapshot by informing
the OS to prepare for the snapshot process. Currently only supported on
Windows instances using the Volume Shadow Copy Service (VSS).
Corresponds to the JSON property guestFlush
12755 12756 12757 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12755 def guest_flush @guest_flush end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
12762 12763 12764 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12762 def id @id end |
#kind ⇒ String
[Output Only] Type of the resource. Always compute#inPlaceSnapshot for
InPlaceSnapshot resources.
Corresponds to the JSON property kind
12768 12769 12770 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12768 def kind @kind end |
#label_fingerprint ⇒ String
A fingerprint for the labels being applied to this InPlaceSnapshot, 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
InPlaceSnapshot.
Corresponds to the JSON property labelFingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
12781 12782 12783 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12781 def label_fingerprint @label_fingerprint end |
#labels ⇒ Hash<String,String>
Labels to apply to this InPlaceSnapshot. These can be later modified by the
setLabels method. Label values may be empty.
Corresponds to the JSON property labels
12787 12788 12789 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12787 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
12797 12798 12799 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12797 def name @name end |
#region ⇒ String
[Output Only] URL of the region where the in-place 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
12804 12805 12806 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12804 def region @region end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
12809 12810 12811 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12809 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
12814 12815 12816 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12814 def self_link_with_id @self_link_with_id end |
#source_disk ⇒ String
URL of the source disk used to create this in-place snapshot. Note that the source disk must be in the same zone/region as the in-place 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
- projects/project/zones/zone/disks/disk
- zones/zone/disks/disk
Corresponds to the JSON property
sourceDisk
12825 12826 12827 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12825 def source_disk @source_disk end |
#source_disk_id ⇒ String
[Output Only] The ID value of the disk used to create this InPlaceSnapshot.
This value may be used to determine whether the InPlaceSnapshot was taken from
the current or a previous instance of a given disk name.
Corresponds to the JSON property sourceDiskId
12832 12833 12834 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12832 def source_disk_id @source_disk_id end |
#status ⇒ String
[Output Only] The status of the inPlaceSnapshot. This can be CREATING,
DELETING, FAILED, or READY.
Corresponds to the JSON property status
12838 12839 12840 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12838 def status @status end |
#zone ⇒ String
[Output Only] URL of the zone where the in-place 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
12845 12846 12847 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12845 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 12852 def update!(**args) @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) @guest_flush = args[:guest_flush] if args.key?(:guest_flush) @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) @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 |