Class: Google::Apis::GkehubV1alpha::MembershipEndpoint

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

MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipEndpoint

Returns a new instance of MembershipEndpoint.



1973
1974
1975
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1973

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

Instance Attribute Details

#gke_clusterGoogle::Apis::GkehubV1alpha::GkeCluster

GkeCluster contains information specific to GKE clusters. Corresponds to the JSON property gkeCluster



1955
1956
1957
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1955

def gke_cluster
  @gke_cluster
end

#kubernetes_metadataGoogle::Apis::GkehubV1alpha::KubernetesMetadata

KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters. Corresponds to the JSON property kubernetesMetadata



1961
1962
1963
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1961

def 
  @kubernetes_metadata
end

#multi_cloud_clusterGoogle::Apis::GkehubV1alpha::MultiCloudCluster

MultiCloudCluster contains information specific to GKE Multi-Cloud clusters. Corresponds to the JSON property multiCloudCluster



1966
1967
1968
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1966

def multi_cloud_cluster
  @multi_cloud_cluster
end

#on_prem_clusterGoogle::Apis::GkehubV1alpha::OnPremCluster

OnPremCluster contains information specific to GKE On-Prem clusters. Corresponds to the JSON property onPremCluster



1971
1972
1973
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1971

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1978
1979
1980
1981
1982
1983
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1978

def update!(**args)
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
  @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
  @multi_cloud_cluster = args[:multi_cloud_cluster] if args.key?(:multi_cloud_cluster)
  @on_prem_cluster = args[:on_prem_cluster] if args.key?(:on_prem_cluster)
end