Class: Google::Apis::CloudbillingV1beta::PersistentDisk
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::PersistentDisk
- 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
-
#disk_size ⇒ Google::Apis::CloudbillingV1beta::Usage
An amount of usage over a time frame.
-
#disk_type ⇒ String
The disk type.
-
#provisioned_iops ⇒ Google::Apis::CloudbillingV1beta::Usage
An amount of usage over a time frame.
-
#scope ⇒ String
The geographic scope of the disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistentDisk
constructor
A new instance of PersistentDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistentDisk
Returns a new instance of PersistentDisk.
2421 2422 2423 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_size ⇒ Google::Apis::CloudbillingV1beta::Usage
An amount of usage over a time frame.
Corresponds to the JSON property diskSize
2403 2404 2405 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2403 def disk_size @disk_size end |
#disk_type ⇒ String
The disk type. For
example: "pd-standard".
Corresponds to the JSON property diskType
2409 2410 2411 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2409 def disk_type @disk_type end |
#provisioned_iops ⇒ Google::Apis::CloudbillingV1beta::Usage
An amount of usage over a time frame.
Corresponds to the JSON property provisionedIops
2414 2415 2416 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2414 def provisioned_iops @provisioned_iops end |
#scope ⇒ String
The geographic scope of the disk. Defaults to SCOPE_ZONAL
if not specified.
Corresponds to the JSON property scope
2419 2420 2421 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2419 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2426 2427 2428 2429 2430 2431 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2426 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 |