Class: Google::Apis::ComputeAlpha::SavedDisk

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

An instance-attached disk resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SavedDisk

Returns a new instance of SavedDisk.



36662
36663
36664
# File 'lib/google/apis/compute_alpha/classes.rb', line 36662

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

Instance Attribute Details

#kindString

[Output Only] Type of the resource. Always compute#savedDisk for attached disks. Corresponds to the JSON property kind

Returns:

  • (String)


36642
36643
36644
# File 'lib/google/apis/compute_alpha/classes.rb', line 36642

def kind
  @kind
end

#source_diskString

Specifies a URL of the disk attached to the source instance. Corresponds to the JSON property sourceDisk

Returns:

  • (String)


36647
36648
36649
# File 'lib/google/apis/compute_alpha/classes.rb', line 36647

def source_disk
  @source_disk
end

#storage_bytesFixnum

[Output Only] Size of the individual disk snapshot used by this machine image. Corresponds to the JSON property storageBytes

Returns:

  • (Fixnum)


36652
36653
36654
# File 'lib/google/apis/compute_alpha/classes.rb', line 36652

def storage_bytes
  @storage_bytes
end

#storage_bytes_statusString

[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Corresponds to the JSON property storageBytesStatus

Returns:

  • (String)


36660
36661
36662
# File 'lib/google/apis/compute_alpha/classes.rb', line 36660

def storage_bytes_status
  @storage_bytes_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36667
36668
36669
36670
36671
36672
# File 'lib/google/apis/compute_alpha/classes.rb', line 36667

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @source_disk = args[:source_disk] if args.key?(:source_disk)
  @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
  @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
end