Class: Google::Apis::GkeonpremV1::EnrollVmwareAdminClusterRequest
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::EnrollVmwareAdminClusterRequest
- 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
-
#membership ⇒ String
Required.
-
#vmware_admin_cluster_id ⇒ String
User provided OnePlatform identifier that is used as part of the resource name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnrollVmwareAdminClusterRequest
constructor
A new instance of EnrollVmwareAdminClusterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnrollVmwareAdminClusterRequest
Returns a new instance of EnrollVmwareAdminClusterRequest.
2304 2305 2306 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2304 def initialize(**args) update!(**args) end |
Instance Attribute Details
#membership ⇒ String
Required. This is the full resource name of this admin cluster's fleet
membership.
Corresponds to the JSON property membership
2293 2294 2295 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2293 def membership @membership end |
#vmware_admin_cluster_id ⇒ String
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
2302 2303 2304 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2302 def vmware_admin_cluster_id @vmware_admin_cluster_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2309 2310 2311 2312 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2309 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 |