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.
2557 2558 2559 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2557 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
2549 2550 2551 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2549 def 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
2554 2555 2556 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2554 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2562 2563 2564 2565 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2562 def update!(**args) = 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 |