Class: Google::Apis::BaremetalsolutionV1alpha1::VolumeConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::VolumeConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
Configuration parameters for a new volume.
Instance Attribute Summary collapse
-
#id ⇒ String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
-
#location ⇒ String
Location where to deploy the volume.
-
#lun_ranges ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::LunRange>
LUN ranges to be configured.
-
#machine_ids ⇒ Array<String>
Machine ids connected to this volume.
-
#nfs_exports ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::NfsExport>
NFS exports.
-
#protocol ⇒ String
Volume protocol.
-
#size_gb ⇒ Fixnum
The requested size of this volume, in GB.
-
#snapshots_enabled ⇒ Boolean
(also: #snapshots_enabled?)
Whether snapshots should be enabled.
-
#type ⇒ String
The type of this Volume.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617).
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeConfig
constructor
A new instance of VolumeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeConfig
Returns a new instance of VolumeConfig.
1105 1106 1107 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1105 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
Corresponds to the JSON property id
1055 1056 1057 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1055 def id @id end |
#location ⇒ String
Location where to deploy the volume.
Corresponds to the JSON property location
1060 1061 1062 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1060 def location @location end |
#lun_ranges ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::LunRange>
LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
Corresponds to the JSON property lunRanges
1065 1066 1067 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1065 def lun_ranges @lun_ranges end |
#machine_ids ⇒ Array<String>
Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
Corresponds to the JSON property machineIds
1070 1071 1072 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1070 def machine_ids @machine_ids end |
#nfs_exports ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::NfsExport>
NFS exports. Set only when protocol is PROTOCOL_NFS.
Corresponds to the JSON property nfsExports
1075 1076 1077 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1075 def nfs_exports @nfs_exports end |
#protocol ⇒ String
Volume protocol.
Corresponds to the JSON property protocol
1080 1081 1082 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1080 def protocol @protocol end |
#size_gb ⇒ Fixnum
The requested size of this volume, in GB. This will be updated in a later
iteration with a generic size field.
Corresponds to the JSON property sizeGb
1086 1087 1088 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1086 def size_gb @size_gb end |
#snapshots_enabled ⇒ Boolean Also known as: snapshots_enabled?
Whether snapshots should be enabled.
Corresponds to the JSON property snapshotsEnabled
1091 1092 1093 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1091 def snapshots_enabled @snapshots_enabled end |
#type ⇒ String
The type of this Volume.
Corresponds to the JSON property type
1097 1098 1099 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1097 def type @type end |
#user_note ⇒ String
User note field, it can be used by customers to add additional information for
the BMS Ops team (b/194021617).
Corresponds to the JSON property userNote
1103 1104 1105 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1103 def user_note @user_note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1110 def update!(**args) @id = args[:id] if args.key?(:id) @location = args[:location] if args.key?(:location) @lun_ranges = args[:lun_ranges] if args.key?(:lun_ranges) @machine_ids = args[:machine_ids] if args.key?(:machine_ids) @nfs_exports = args[:nfs_exports] if args.key?(:nfs_exports) @protocol = args[:protocol] if args.key?(:protocol) @size_gb = args[:size_gb] if args.key?(:size_gb) @snapshots_enabled = args[:snapshots_enabled] if args.key?(:snapshots_enabled) @type = args[:type] if args.key?(:type) @user_note = args[:user_note] if args.key?(:user_note) end |