Class: Google::Apis::GkeonpremV1::EnrollBareMetalAdminClusterRequest

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 admin cluster to the GKE on-prem API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnrollBareMetalAdminClusterRequest

Returns a new instance of EnrollBareMetalAdminClusterRequest.



2482
2483
2484
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2482

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bare_metal_admin_cluster_idString

User provided OnePlatform identifier that is used as part of the resource name. This must be unique among all GKE on-prem clusters within a project and location and will return a 409 if the cluster already exists. (https://tools. ietf.org/html/rfc1123) format. Corresponds to the JSON property bareMetalAdminClusterId

Returns:

  • (String)


2474
2475
2476
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2474

def bare_metal_admin_cluster_id
  @bare_metal_admin_cluster_id
end

#membershipString

Required. This is the full resource name of this admin cluster's fleet membership. Corresponds to the JSON property membership

Returns:

  • (String)


2480
2481
2482
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2480

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2487
2488
2489
2490
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2487

def update!(**args)
  @bare_metal_admin_cluster_id = args[:bare_metal_admin_cluster_id] if args.key?(:bare_metal_admin_cluster_id)
  @membership = args[:membership] if args.key?(:membership)
end