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.
2586 2587 2588 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2586 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
2576 2577 2578 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2576 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. (https://tools.
ietf.org/html/rfc1123) format.
Corresponds to the JSON property vmwareAdminClusterId
2584 2585 2586 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2584 def vmware_admin_cluster_id @vmware_admin_cluster_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2591 2592 2593 2594 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2591 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 |