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.
-
#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.
1847 1848 1849 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1847 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
1792 1793 1794 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1792 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
1798 1799 1800 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1798 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
1803 1804 1805 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1803 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
1808 1809 1810 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1808 def machine_ids @machine_ids end |
#name ⇒ String
Output only. The name of the volume config.
Corresponds to the JSON property name
1813 1814 1815 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1813 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
1818 1819 1820 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1818 def nfs_exports @nfs_exports end |
#protocol ⇒ String
Volume protocol.
Corresponds to the JSON property protocol
1823 1824 1825 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1823 def protocol @protocol end |
#size_gb ⇒ Fixnum
The requested size of this volume, in GB.
Corresponds to the JSON property sizeGb
1828 1829 1830 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1828 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
1833 1834 1835 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1833 def snapshots_enabled @snapshots_enabled end |
#type ⇒ String
The type of this Volume.
Corresponds to the JSON property type
1839 1840 1841 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1839 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
1845 1846 1847 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1845 def user_note @user_note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1852 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) @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 |