Class: Google::Apis::DataprocV1::GkeClusterConfig

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

The cluster's GKE config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeClusterConfig

Returns a new instance of GkeClusterConfig.



1749
1750
1751
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1749

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

Instance Attribute Details

#gke_cluster_targetString

Optional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: 'projects/project/locations/location/clusters/cluster_id' Corresponds to the JSON property gkeClusterTarget

Returns:

  • (String)


1732
1733
1734
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1732

def gke_cluster_target
  @gke_cluster_target
end

#namespaced_gke_deployment_targetGoogle::Apis::DataprocV1::NamespacedGkeDeploymentTarget

Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster. Corresponds to the JSON property namespacedGkeDeploymentTarget



1738
1739
1740
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1738

def namespaced_gke_deployment_target
  @namespaced_gke_deployment_target
end

#node_pool_targetArray<Google::Apis::DataprocV1::GkeNodePoolTarget>

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings. Corresponds to the JSON property nodePoolTarget



1747
1748
1749
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1747

def node_pool_target
  @node_pool_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1754
1755
1756
1757
1758
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1754

def update!(**args)
  @gke_cluster_target = args[:gke_cluster_target] if args.key?(:gke_cluster_target)
  @namespaced_gke_deployment_target = args[:namespaced_gke_deployment_target] if args.key?(:namespaced_gke_deployment_target)
  @node_pool_target = args[:node_pool_target] if args.key?(:node_pool_target)
end