Class: Google::Apis::BaremetalsolutionV2::VolumeConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::VolumeConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
Configuration parameters for a new volume.
Instance Attribute Summary collapse
-
#gcp_service ⇒ String
The GCP service of the storage volume.
-
#id ⇒ String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
-
#lun_ranges ⇒ Array<Google::Apis::BaremetalsolutionV2::LunRange>
LUN ranges to be configured.
-
#machine_ids ⇒ Array<String>
Machine ids connected to this volume.
-
#name ⇒ String
Output only.
-
#nfs_exports ⇒ Array<Google::Apis::BaremetalsolutionV2::NfsExport>
NFS exports.
-
#performance_tier ⇒ String
Performance tier of the Volume.
-
#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.
-
#storage_aggregate_pool ⇒ String
Input only.
-
#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 .
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.
2362 2363 2364 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_service ⇒ String
The GCP service of the storage volume. Available gcp_service are in https://
cloud.google.com/bare-metal/docs/bms-planning.
Corresponds to the JSON property gcpService
2296 2297 2298 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2296 def gcp_service @gcp_service end |
#id ⇒ String
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
Corresponds to the JSON property id
2302 2303 2304 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2302 def id @id end |
#lun_ranges ⇒ Array<Google::Apis::BaremetalsolutionV2::LunRange>
LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
Corresponds to the JSON property lunRanges
2307 2308 2309 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2307 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
2312 2313 2314 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2312 def machine_ids @machine_ids end |
#name ⇒ String
Output only. The name of the volume config.
Corresponds to the JSON property name
2317 2318 2319 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2317 def name @name end |
#nfs_exports ⇒ Array<Google::Apis::BaremetalsolutionV2::NfsExport>
NFS exports. Set only when protocol is PROTOCOL_NFS.
Corresponds to the JSON property nfsExports
2322 2323 2324 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2322 def nfs_exports @nfs_exports end |
#performance_tier ⇒ String
Performance tier of the Volume. Default is SHARED.
Corresponds to the JSON property performanceTier
2327 2328 2329 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2327 def performance_tier @performance_tier end |
#protocol ⇒ String
Volume protocol.
Corresponds to the JSON property protocol
2332 2333 2334 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2332 def protocol @protocol end |
#size_gb ⇒ Fixnum
The requested size of this volume, in GB.
Corresponds to the JSON property sizeGb
2337 2338 2339 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2337 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
2342 2343 2344 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2342 def snapshots_enabled @snapshots_enabled end |
#storage_aggregate_pool ⇒ String
Input only. Name of the storage aggregate pool to allocate the volume in. Can
be used only for VOLUME_PERFORMANCE_TIER_ASSIGNED volumes.
Corresponds to the JSON property storageAggregatePool
2349 2350 2351 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2349 def storage_aggregate_pool @storage_aggregate_pool end |
#type ⇒ String
The type of this Volume.
Corresponds to the JSON property type
2354 2355 2356 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2354 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 .
Corresponds to the JSON property userNote
2360 2361 2362 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2360 def user_note @user_note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2367 def update!(**args) @gcp_service = args[:gcp_service] if args.key?(:gcp_service) @id = args[:id] if args.key?(:id) @lun_ranges = args[:lun_ranges] if args.key?(:lun_ranges) @machine_ids = args[:machine_ids] if args.key?(:machine_ids) @name = args[:name] if args.key?(:name) @nfs_exports = args[:nfs_exports] if args.key?(:nfs_exports) @performance_tier = args[:performance_tier] if args.key?(:performance_tier) @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) @storage_aggregate_pool = args[:storage_aggregate_pool] if args.key?(:storage_aggregate_pool) @type = args[:type] if args.key?(:type) @user_note = args[:user_note] if args.key?(:user_note) end |