class Google::Apis::NotebooksV1::LocalDiskInitializeParams

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.

Attributes

description[RW]

Optional. Provide this property when creating the disk. Corresponds to the JSON property `description` @return [String]

disk_name[RW]

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. Corresponds to the JSON property `diskName` @return [String]

disk_size_gb[RW]

Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB. Corresponds to the JSON property `diskSizeGb` @return [Fixnum]

disk_type[RW]

Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`). Corresponds to the JSON property `diskType` @return [String]

labels[RW]

Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. Corresponds to the JSON property `labels` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/notebooks_v1/classes.rb, line 1398
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/notebooks_v1/classes.rb, line 1403
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @disk_name = args[:disk_name] if args.key?(:disk_name)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @labels = args[:labels] if args.key?(:labels)
end