Class: Google::Apis::DataprocV1::NamespacedGkeDeploymentTarget

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

A full, namespace-isolated deployment target for an existing GKE cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NamespacedGkeDeploymentTarget

Returns a new instance of NamespacedGkeDeploymentTarget.



2667
2668
2669
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2667

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

Instance Attribute Details

#cluster_namespaceString

Optional. A namespace within the GKE cluster to deploy into. Corresponds to the JSON property clusterNamespace

Returns:

  • (String)


2659
2660
2661
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2659

def cluster_namespace
  @cluster_namespace
end

#target_gke_clusterString

Optional. The target GKE cluster to deploy to. Format: 'projects/project/ locations/location/clusters/cluster_id' Corresponds to the JSON property targetGkeCluster

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2665

def target_gke_cluster
  @target_gke_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2672
2673
2674
2675
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2672

def update!(**args)
  @cluster_namespace = args[:cluster_namespace] if args.key?(:cluster_namespace)
  @target_gke_cluster = args[:target_gke_cluster] if args.key?(:target_gke_cluster)
end