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.



2098
2099
2100
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2098

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



2080
2081
2082
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2080

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



2086
2087
2088
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2086

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



2091
2092
2093
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2091

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



2096
2097
2098
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2096

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2103
2104
2105
2106
2107
2108
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2103

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