Class: Google::Apis::GkeonpremV1::EnrollVmwareAdminClusterRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnrollVmwareAdminClusterRequest

Returns a new instance of EnrollVmwareAdminClusterRequest.



2356
2357
2358
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2356

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

Instance Attribute Details

#membershipString

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

Returns:

  • (String)


2346
2347
2348
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2346

def membership
  @membership
end

#vmware_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 vmwareAdminClusterId

Returns:

  • (String)


2354
2355
2356
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2354

def vmware_admin_cluster_id
  @vmware_admin_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2361
2362
2363
2364
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2361

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