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.



2054
2055
2056
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2054

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



2036
2037
2038
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2036

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



2042
2043
2044
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2042

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



2047
2048
2049
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2047

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



2052
2053
2054
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2052

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2059
2060
2061
2062
2063
2064
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2059

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