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.



2381
2382
2383
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2381

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)


2371
2372
2373
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2371

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)


2379
2380
2381
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2379

def vmware_admin_cluster_id
  @vmware_admin_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2386
2387
2388
2389
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2386

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