Class: Google::Apis::GkehubV1alpha::OnPremCluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb

Overview

OnPremCluster contains information specific to GKE On-Prem clusters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnPremCluster

Returns a new instance of OnPremCluster.



5010
5011
5012
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5010

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

Instance Attribute Details

#admin_clusterBoolean Also known as: admin_cluster?

Immutable. Whether the cluster is an admin cluster. Corresponds to the JSON property adminCluster

Returns:

  • (Boolean)


4987
4988
4989
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4987

def admin_cluster
  @admin_cluster
end

#cluster_missingBoolean 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

Returns:

  • (Boolean)


4994
4995
4996
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 4994

def cluster_missing
  @cluster_missing
end

#cluster_typeString

Immutable. The on prem cluster's type. Corresponds to the JSON property clusterType

Returns:

  • (String)


5000
5001
5002
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5000

def cluster_type
  @cluster_type
end

Immutable. Self-link of the Google Cloud 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

Returns:

  • (String)


5008
5009
5010
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5008

def resource_link
  @resource_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5015
5016
5017
5018
5019
5020
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5015

def update!(**args)
  @admin_cluster = args[:admin_cluster] if args.key?(:admin_cluster)
  @cluster_missing = args[:cluster_missing] if args.key?(:cluster_missing)
  @cluster_type = args[:cluster_type] if args.key?(:cluster_type)
  @resource_link = args[:resource_link] if args.key?(:resource_link)
end