Class: Google::Apis::CloudbillingV1beta::PersistentDisk

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

Overview

Specification of a persistent disk attached to a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersistentDisk

Returns a new instance of PersistentDisk.



871
872
873
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 871

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

Instance Attribute Details

#disk_sizeGoogle::Apis::CloudbillingV1beta::Usage

An amount of usage over a time frame. Corresponds to the JSON property diskSize



853
854
855
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 853

def disk_size
  @disk_size
end

#disk_typeString

The disk type. For example: "pd-standard". Corresponds to the JSON property diskType

Returns:

  • (String)


859
860
861
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 859

def disk_type
  @disk_type
end

#provisioned_iopsGoogle::Apis::CloudbillingV1beta::Usage

An amount of usage over a time frame. Corresponds to the JSON property provisionedIops



864
865
866
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 864

def provisioned_iops
  @provisioned_iops
end

#scopeString

The geographic scope of the disk. Defaults to SCOPE_ZONAL if not specified. Corresponds to the JSON property scope

Returns:

  • (String)


869
870
871
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 869

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



876
877
878
879
880
881
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 876

def update!(**args)
  @disk_size = args[:disk_size] if args.key?(:disk_size)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
  @scope = args[:scope] if args.key?(:scope)
end