Class: Google::Apis::GkeonpremV1::EnrollBareMetalStandaloneNodePoolRequest
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::EnrollBareMetalStandaloneNodePoolRequest
- 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
Overview
Message for enrolling an existing bare metal standalone node pool to the GKE on-prem API.
Instance Attribute Summary collapse
-
#bare_metal_standalone_node_pool_id ⇒ String
User provided OnePlatform identifier that is used as part of the resource name.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
If set, only validate the request, but do not actually enroll the node pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnrollBareMetalStandaloneNodePoolRequest
constructor
A new instance of EnrollBareMetalStandaloneNodePoolRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnrollBareMetalStandaloneNodePoolRequest
Returns a new instance of EnrollBareMetalStandaloneNodePoolRequest.
2242 2243 2244 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2242 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bare_metal_standalone_node_pool_id ⇒ String
User provided OnePlatform identifier that is used as part of the resource name.
This value must be up to 40 characters and follow RFC-1123 (https://tools.
ietf.org/html/rfc1123) format.
Corresponds to the JSON property bareMetalStandaloneNodePoolId
2234 2235 2236 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2234 def @bare_metal_standalone_node_pool_id end |
#validate_only ⇒ Boolean Also known as: validate_only?
If set, only validate the request, but do not actually enroll the node pool.
Corresponds to the JSON property validateOnly
2239 2240 2241 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2239 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2247 2248 2249 2250 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2247 def update!(**args) @bare_metal_standalone_node_pool_id = args[:bare_metal_standalone_node_pool_id] if args.key?(:bare_metal_standalone_node_pool_id) @validate_only = args[:validate_only] if args.key?(:validate_only) end |