Class: Google::Apis::GkeonpremV1::BareMetalLvpConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalLvpConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb more...
Overview
Specifies the configs for local persistent volumes (PVs).
Instance Attribute Summary collapse
-
#path ⇒ String
Required.
-
#storage_class ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalLvpConfig
constructor
A new instance of BareMetalLvpConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalLvpConfig
Returns a new instance of BareMetalLvpConfig.
1424 1425 1426 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1424 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
Required. The host machine path.
Corresponds to the JSON property path
1417 1418 1419 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1417 def path @path end |
#storage_class ⇒ String
Required. The StorageClass name that PVs will be created with.
Corresponds to the JSON property storageClass
1422 1423 1424 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1422 def storage_class @storage_class end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1429 1430 1431 1432 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1429 def update!(**args) @path = args[:path] if args.key?(:path) @storage_class = args[:storage_class] if args.key?(:storage_class) end |