Class: Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb
Overview
Initialization parameters for creating a new disk.
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Fixnum
The size of the created disk in gigabytes.
-
#disk_type ⇒ String
Name of the disk type resource describing which disk type to use to create the disk.
-
#source_image ⇒ String
The name or fully-qualified URL of a source image to use to create this disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NewDiskInitializeParams
constructor
A new instance of NewDiskInitializeParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NewDiskInitializeParams
Returns a new instance of NewDiskInitializeParams
433 434 435 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_size_gb ⇒ Fixnum
The size of the created disk in gigabytes.
Corresponds to the JSON property diskSizeGb
414 415 416 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 414 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
Name of the disk type resource describing which disk type to use to create the
disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
Corresponds to the JSON property diskType
420 421 422 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 420 def disk_type @disk_type end |
#source_image ⇒ String
The name or fully-qualified URL of a source image to use to create this disk.
If you provide a name of the source image, Replica Pool will look for an image
with that name in your project. If you are specifying an image provided by
Compute Engine, you will need to provide the full URL with the correct project,
such as:
http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/
debian-wheezy-7-vYYYYMMDD
Corresponds to the JSON property sourceImage
431 432 433 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 431 def source_image @source_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
438 439 440 441 442 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 438 def update!(**args) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @source_image = args[:source_image] if args.key?(:source_image) end |