Class: Google::Apis::GkehubV1::MembershipEndpoint

Inherits:
Object
  • Object
show all
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

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.



1841
1842
1843
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1841

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

Instance Attribute Details

#gke_clusterGoogle::Apis::GkehubV1::GkeCluster

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



1816
1817
1818
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1816

def gke_cluster
  @gke_cluster
end

#kubernetes_metadataGoogle::Apis::GkehubV1::KubernetesMetadata

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



1822
1823
1824
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1822

def 
  @kubernetes_metadata
end

#kubernetes_resourceGoogle::Apis::GkehubV1::KubernetesResource

KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster. Corresponds to the JSON property kubernetesResource



1829
1830
1831
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1829

def kubernetes_resource
  @kubernetes_resource
end

#multi_cloud_clusterGoogle::Apis::GkehubV1::MultiCloudCluster

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



1834
1835
1836
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1834

def multi_cloud_cluster
  @multi_cloud_cluster
end

#on_prem_clusterGoogle::Apis::GkehubV1::OnPremCluster

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



1839
1840
1841
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1839

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1846
1847
1848
1849
1850
1851
1852
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1846

def update!(**args)
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
  @kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
  @kubernetes_resource = args[:kubernetes_resource] if args.key?(:kubernetes_resource)
  @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