Class: Google::Apis::GkehubV1::OnPremCluster
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::OnPremCluster
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb
Overview
OnPremCluster contains information specific to GKE On-Prem clusters.
Instance Attribute Summary collapse
-
#admin_cluster ⇒ Boolean
(also: #admin_cluster?)
Immutable.
-
#cluster_missing ⇒ Boolean
(also: #cluster_missing?)
Output only.
-
#resource_link ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OnPremCluster
constructor
A new instance of OnPremCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OnPremCluster
Returns a new instance of OnPremCluster.
2038 2039 2040 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2038 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_cluster ⇒ Boolean Also known as: admin_cluster?
Immutable. Whether the cluster is an admin cluster.
Corresponds to the JSON property adminCluster
2020 2021 2022 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2020 def admin_cluster @admin_cluster end |
#cluster_missing ⇒ Boolean Also known as: cluster_missing?
Output only. If cluster_missing is set then it denotes that API(gkeonprem.
googleapis.com) resource for this GKE On-Prem cluster no longer exists.
Corresponds to the JSON property clusterMissing
2027 2028 2029 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2027 def cluster_missing @cluster_missing end |
#resource_link ⇒ String
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For
example: //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/
vmwareClusters/my-cluster //gkeonprem.googleapis.com/projects/my-project/
locations/us-west1-a/bareMetalClusters/my-cluster
Corresponds to the JSON property resourceLink
2036 2037 2038 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2036 def resource_link @resource_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2043 2044 2045 2046 2047 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2043 def update!(**args) @admin_cluster = args[:admin_cluster] if args.key?(:admin_cluster) @cluster_missing = args[:cluster_missing] if args.key?(:cluster_missing) @resource_link = args[:resource_link] if args.key?(:resource_link) end |