Class: Google::Apis::ComputeAlpha::StoragePoolDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoragePoolDisk

Returns a new instance of StoragePoolDisk.



48498
48499
48500
# File 'lib/google/apis/compute_alpha/classes.rb', line 48498

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

Instance Attribute Details

#attached_instancesArray<String>

[Output Only] Instances this disk is attached to. Corresponds to the JSON property attachedInstances

Returns:

  • (Array<String>)


48445
48446
48447
# File 'lib/google/apis/compute_alpha/classes.rb', line 48445

def attached_instances
  @attached_instances
end

#creation_timestampString

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

Returns:

  • (String)


48450
48451
48452
# File 'lib/google/apis/compute_alpha/classes.rb', line 48450

def creation_timestamp
  @creation_timestamp
end

#diskString

[Output Only] The URL of the disk. Corresponds to the JSON property disk

Returns:

  • (String)


48455
48456
48457
# File 'lib/google/apis/compute_alpha/classes.rb', line 48455

def disk
  @disk
end

#nameString

[Output Only] The name of the disk. Corresponds to the JSON property name

Returns:

  • (String)


48460
48461
48462
# File 'lib/google/apis/compute_alpha/classes.rb', line 48460

def name
  @name
end

#provisioned_iopsFixnum

[Output Only] The number of IOPS provisioned for the disk. Corresponds to the JSON property provisionedIops

Returns:

  • (Fixnum)


48465
48466
48467
# File 'lib/google/apis/compute_alpha/classes.rb', line 48465

def provisioned_iops
  @provisioned_iops
end

#provisioned_throughputFixnum

[Output Only] The throughput provisioned for the disk. Corresponds to the JSON property provisionedThroughput

Returns:

  • (Fixnum)


48470
48471
48472
# File 'lib/google/apis/compute_alpha/classes.rb', line 48470

def provisioned_throughput
  @provisioned_throughput
end

#resource_policiesArray<String>

[Output Only] Resource policies applied to disk for automatic snapshot creations. Corresponds to the JSON property resourcePolicies

Returns:

  • (Array<String>)


48476
48477
48478
# File 'lib/google/apis/compute_alpha/classes.rb', line 48476

def resource_policies
  @resource_policies
end

#size_gbFixnum

[Output Only] The disk size, in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


48481
48482
48483
# File 'lib/google/apis/compute_alpha/classes.rb', line 48481

def size_gb
  @size_gb
end

#statusString

[Output Only] The disk status. Corresponds to the JSON property status

Returns:

  • (String)


48486
48487
48488
# File 'lib/google/apis/compute_alpha/classes.rb', line 48486

def status
  @status
end

#typeString

[Output Only] The disk type. Corresponds to the JSON property type

Returns:

  • (String)


48491
48492
48493
# File 'lib/google/apis/compute_alpha/classes.rb', line 48491

def type
  @type
end

#used_bytesFixnum

[Output Only] Amount of disk space used. Corresponds to the JSON property usedBytes

Returns:

  • (Fixnum)


48496
48497
48498
# File 'lib/google/apis/compute_alpha/classes.rb', line 48496

def used_bytes
  @used_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
# File 'lib/google/apis/compute_alpha/classes.rb', line 48503

def update!(**args)
  @attached_instances = args[:attached_instances] if args.key?(:attached_instances)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @disk = args[:disk] if args.key?(:disk)
  @name = args[:name] if args.key?(:name)
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
  @provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
  @used_bytes = args[:used_bytes] if args.key?(:used_bytes)
end