Class: Google::Apis::NotebooksV1::LocalDiskInitializeParams

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

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalDiskInitializeParams

Returns a new instance of LocalDiskInitializeParams.



1426
1427
1428
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1426

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

Instance Attribute Details

#descriptionString

Optional. Provide this property when creating the disk. Corresponds to the JSON property description

Returns:

  • (String)


1398
1399
1400
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1398

def description
  @description
end

#disk_nameString

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

Returns:

  • (String)


1405
1406
1407
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1405

def disk_name
  @disk_name
end

#disk_size_gbFixnum

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

Returns:

  • (Fixnum)


1412
1413
1414
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1412

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

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

Returns:

  • (String)


1418
1419
1420
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1418

def disk_type
  @disk_type
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1424
1425
1426
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1424

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1431
1432
1433
1434
1435
1436
1437
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1431

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