Class: Google::Apis::GkeonpremV1::EnrollBareMetalAdminClusterRequest
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::EnrollBareMetalAdminClusterRequest
- 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 bare metal admin cluster to the GKE on-prem API.
Instance Attribute Summary collapse
-
#bare_metal_admin_cluster_id ⇒ String
User provided OnePlatform identifier that is used as part of the resource name.
-
#membership ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnrollBareMetalAdminClusterRequest
constructor
A new instance of EnrollBareMetalAdminClusterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnrollBareMetalAdminClusterRequest
Returns a new instance of EnrollBareMetalAdminClusterRequest.
2482 2483 2484 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2482 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bare_metal_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 bareMetalAdminClusterId
2474 2475 2476 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2474 def end |
#membership ⇒ String
Required. This is the full resource name of this admin cluster's fleet
membership.
Corresponds to the JSON property membership
2480 2481 2482 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2480 def membership @membership end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2487 2488 2489 2490 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2487 def update!(**args) = args[:bare_metal_admin_cluster_id] if args.key?(:bare_metal_admin_cluster_id) @membership = args[:membership] if args.key?(:membership) end |