Class: Google::Apis::GkehubV1alpha2::MembershipEndpoint

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha2/classes.rb,
lib/google/apis/gkehub_v1alpha2/representations.rb,
lib/google/apis/gkehub_v1alpha2/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.



938
939
940
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 938

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

Instance Attribute Details

#appliance_clusterGoogle::Apis::GkehubV1alpha2::ApplianceCluster

ApplianceCluster contains information specific to GDC Edge Appliance Clusters. Corresponds to the JSON property applianceCluster



902
903
904
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 902

def appliance_cluster
  @appliance_cluster
end

#edge_clusterGoogle::Apis::GkehubV1alpha2::EdgeCluster

EdgeCluster contains information specific to Google Edge Clusters. Corresponds to the JSON property edgeCluster



907
908
909
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 907

def edge_cluster
  @edge_cluster
end

#gke_clusterGoogle::Apis::GkehubV1alpha2::GkeCluster

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



912
913
914
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 912

def gke_cluster
  @gke_cluster
end

#kubernetes_metadataGoogle::Apis::GkehubV1alpha2::KubernetesMetadata

KubernetesMetadata provides informational metadata for Memberships that are created from Kubernetes Endpoints (currently, these are equivalent to Kubernetes clusters). Corresponds to the JSON property kubernetesMetadata



919
920
921
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 919

def 
  @kubernetes_metadata
end

#kubernetes_resourceGoogle::Apis::GkehubV1alpha2::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



926
927
928
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 926

def kubernetes_resource
  @kubernetes_resource
end

#multi_cloud_clusterGoogle::Apis::GkehubV1alpha2::MultiCloudCluster

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



931
932
933
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 931

def multi_cloud_cluster
  @multi_cloud_cluster
end

#on_prem_clusterGoogle::Apis::GkehubV1alpha2::OnPremCluster

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



936
937
938
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 936

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
947
948
949
950
951
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 943

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