Class: Google::Apis::GkeonpremV1::EnrollBareMetalNodePoolRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

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

Returns:

  • (String)


2352
2353
2354
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2352

def bare_metal_node_pool_id
  @bare_metal_node_pool_id
end

#validate_onlyBoolean 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

Returns:

  • (Boolean)


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