Class: Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_gbFixnum

The size of the created disk in gigabytes. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


414
415
416
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 414

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

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

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 420

def disk_type
  @disk_type
end

#source_imageString

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

Returns:

  • (String)


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