Class: Google::Apis::GkeonpremV1::EnrollBareMetalNodePoolRequest
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::EnrollBareMetalNodePoolRequest
- 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 node pool to the GKE on-prem API.
Instance Attribute Summary collapse
-
#bare_metal_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) ⇒ EnrollBareMetalNodePoolRequest
constructor
A new instance of EnrollBareMetalNodePoolRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnrollBareMetalNodePoolRequest
Returns a new instance of EnrollBareMetalNodePoolRequest.
2360 2361 2362 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bare_metal_node_pool_id ⇒ String
User provided OnePlatform identifier that is used as part of the resource name.
(https://tools.ietf.org/html/rfc1123) format.
Corresponds to the JSON property bareMetalNodePoolId
2352 2353 2354 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2352 def @bare_metal_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
2357 2358 2359 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2357 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2365 2366 2367 2368 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2365 def update!(**args) @bare_metal_node_pool_id = args[:bare_metal_node_pool_id] if args.key?(:bare_metal_node_pool_id) @validate_only = args[:validate_only] if args.key?(:validate_only) end |