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.



2202
2203
2204
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2202

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)


2194
2195
2196
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2194

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)


2200
2201
2202
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2200

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2207
2208
2209
2210
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2207

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