Class: Google::Apis::GkehubV1beta::MembershipEndpoint

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



3589
3590
3591
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3589

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

Instance Attribute Details

#appliance_clusterGoogle::Apis::GkehubV1beta::ApplianceCluster

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



3547
3548
3549
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3547

def appliance_cluster
  @appliance_cluster
end

#edge_clusterGoogle::Apis::GkehubV1beta::EdgeCluster

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



3552
3553
3554
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3552

def edge_cluster
  @edge_cluster
end

#gke_clusterGoogle::Apis::GkehubV1beta::GkeCluster

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



3557
3558
3559
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3557

def gke_cluster
  @gke_cluster
end

#google_managedBoolean Also known as: google_managed?

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service. Corresponds to the JSON property googleManaged

Returns:

  • (Boolean)


3563
3564
3565
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3563

def google_managed
  @google_managed
end

#kubernetes_metadataGoogle::Apis::GkehubV1beta::KubernetesMetadata

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



3570
3571
3572
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3570

def 
  @kubernetes_metadata
end

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



3577
3578
3579
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3577

def kubernetes_resource
  @kubernetes_resource
end

#multi_cloud_clusterGoogle::Apis::GkehubV1beta::MultiCloudCluster

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



3582
3583
3584
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3582

def multi_cloud_cluster
  @multi_cloud_cluster
end

#on_prem_clusterGoogle::Apis::GkehubV1beta::OnPremCluster

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



3587
3588
3589
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3587

def on_prem_cluster
  @on_prem_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3594

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)
  @google_managed = args[:google_managed] if args.key?(:google_managed)
  @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