Class: Google::Apis::ComputeAlpha::InstantSnapshot

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstantSnapshot

Returns a new instance of InstantSnapshot.



18521
18522
18523
# File 'lib/google/apis/compute_alpha/classes.rb', line 18521

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#architectureString

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Corresponds to the JSON property architecture

Returns:

  • (String)


18395
18396
18397
# File 'lib/google/apis/compute_alpha/classes.rb', line 18395

def architecture
  @architecture
end

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


18400
18401
18402
# File 'lib/google/apis/compute_alpha/classes.rb', line 18400

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property description

Returns:

  • (String)


18406
18407
18408
# File 'lib/google/apis/compute_alpha/classes.rb', line 18406

def description
  @description
end

#disk_size_gbFixnum

[Output Only] Size of the source disk, specified in GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


18411
18412
18413
# File 'lib/google/apis/compute_alpha/classes.rb', line 18411

def disk_size_gb
  @disk_size_gb
end

#guest_flushBoolean Also known as: guest_flush?

Whether to attempt an application consistent instant 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

Returns:

  • (Boolean)


18418
18419
18420
# File 'lib/google/apis/compute_alpha/classes.rb', line 18418

def guest_flush
  @guest_flush
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


18425
18426
18427
# File 'lib/google/apis/compute_alpha/classes.rb', line 18425

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources. Corresponds to the JSON property kind

Returns:

  • (String)


18431
18432
18433
# File 'lib/google/apis/compute_alpha/classes.rb', line 18431

def kind
  @kind
end

#label_fingerprintString

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.

Returns:

  • (String)


18443
18444
18445
# File 'lib/google/apis/compute_alpha/classes.rb', line 18443

def label_fingerprint
  @label_fingerprint
end

#labelsHash<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

Returns:

  • (Hash<String,String>)


18449
18450
18451
# File 'lib/google/apis/compute_alpha/classes.rb', line 18449

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


18459
18460
18461
# File 'lib/google/apis/compute_alpha/classes.rb', line 18459

def name
  @name
end

#regionString

[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

Returns:

  • (String)


18466
18467
18468
# File 'lib/google/apis/compute_alpha/classes.rb', line 18466

def region
  @region
end

#resource_statusGoogle::Apis::ComputeAlpha::InstantSnapshotResourceStatus

[Output Only] Status information for the instant snapshot resource. Corresponds to the JSON property resourceStatus



18471
18472
18473
# File 'lib/google/apis/compute_alpha/classes.rb', line 18471

def resource_status
  @resource_status
end

#satisfies_pzsBoolean Also known as: satisfies_pzs?

[Output Only] Reserved for future use. Corresponds to the JSON property satisfiesPzs

Returns:

  • (Boolean)


18476
18477
18478
# File 'lib/google/apis/compute_alpha/classes.rb', line 18476

def satisfies_pzs
  @satisfies_pzs
end

[Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


18482
18483
18484
# File 'lib/google/apis/compute_alpha/classes.rb', line 18482

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource's resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


18487
18488
18489
# File 'lib/google/apis/compute_alpha/classes.rb', line 18487

def self_link_with_id
  @self_link_with_id
end

#source_diskString

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

Returns:

  • (String)


18499
18500
18501
# File 'lib/google/apis/compute_alpha/classes.rb', line 18499

def source_disk
  @source_disk
end

#source_disk_idString

[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

Returns:

  • (String)


18506
18507
18508
# File 'lib/google/apis/compute_alpha/classes.rb', line 18506

def source_disk_id
  @source_disk_id
end

#statusString

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Corresponds to the JSON property status

Returns:

  • (String)


18512
18513
18514
# File 'lib/google/apis/compute_alpha/classes.rb', line 18512

def status
  @status
end

#zoneString

[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

Returns:

  • (String)


18519
18520
18521
# File 'lib/google/apis/compute_alpha/classes.rb', line 18519

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
# File 'lib/google/apis/compute_alpha/classes.rb', line 18526

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)
  @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)
  @resource_status = args[:resource_status] if args.key?(:resource_status)
  @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