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.



2264
2265
2266
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2264

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

Instance Attribute Details

#local_nameString

The object name of the VMware OnPremAdminCluster custom resource on the associated admin cluster. This field is used to support conflicting resource names when enrolling existing clusters to the API. When not provided, this field will resolve to the vmware_admin_cluster_id. Otherwise, it must match the object name of the VMware OnPremAdminCluster custom resource. It is not modifiable outside / beyond the enrollment operation. Corresponds to the JSON property localName

Returns:

  • (String)


2247
2248
2249
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2247

def local_name
  @local_name
end

#membershipString

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

Returns:

  • (String)


2253
2254
2255
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2253

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. This value must be up to 40 characters and follow RFC-1123 (https://tools.ietf.org/html/ rfc1123) format. Corresponds to the JSON property vmwareAdminClusterId

Returns:

  • (String)


2262
2263
2264
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2262

def vmware_admin_cluster_id
  @vmware_admin_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2269
2270
2271
2272
2273
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2269

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