blob: acdb9c88b642453f92c606a4ee1c0453e0f29868 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dataproc_v1beta2.html">Cloud Dataproc API</a> . <a href="dataproc_v1beta2.projects.html">projects</a> . <a href="dataproc_v1beta2.projects.regions.html">regions</a> . <a href="dataproc_v1beta2.projects.regions.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(projectId, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#delete">delete(projectId, region, clusterName, requestId=None, clusterUuid=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070082<p class="firstline">Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#diagnose">diagnose(projectId, region, clusterName, body=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). After the operation completes, Operation.response contains Empty.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(projectId, region, clusterName, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the resource representation for a cluster in a project.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(projectId, region, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070094<p class="firstline">Lists all regions/{region}/clusters in a project alphabetically.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#patch">patch(projectId, region, clusterName, body=None, gracefulDecommissionTimeout=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700100<p class="firstline">Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#start">start(projectId, region, clusterName, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Starts a cluster in a project.</p>
107<p class="toc_element">
108 <code><a href="#stop">stop(projectId, region, clusterName, body=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Stops a cluster in a project.</p>
110<p class="toc_element">
111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="create">create(projectId, region, body=None, requestId=None, x__xgafv=None)</code>
116 <pre>Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
118Args:
119 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 region: string, Required. The Dataproc region in which to handle the request. (required)
121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;labels&quot;: { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
126 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;metrics&quot;: { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
129 &quot;hdfsMetrics&quot;: { # The HDFS metrics.
130 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;yarnMetrics&quot;: { # The YARN metrics.
133 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 },
135 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;status&quot;: { # The status of a cluster and its instances. # Output only. Cluster status.
137 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
138 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
139 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
140 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
141 },
142 &quot;config&quot;: { # The cluster config. # Required. The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated.
143 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
144 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
145 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
146 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
147 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
148 },
149 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
150 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
151 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
152 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
153 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
154 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
155 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
156 # projects/[project_id]/global/images/[image-id]
157 # image-idImage family examples. Dataproc will use the most recent image from the family:
158 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
159 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
160 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
161 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
162 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
163 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
164 },
165 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
166 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
169 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
170 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
171 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
172 },
173 ],
174 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
175 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
176 },
177 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
178 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
179 &quot;subnetworkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples:
180 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
181 # projects/[project_id]/regions/us-east1/subnetworks/sub0
182 # sub0
183 &quot;networkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
184 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
185 # projects/[project_id]/regions/global/default
186 # default
187 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:
188 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
189 # projects/[project_id]/zones/[zone]
190 # us-central1-f
191 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
192 &quot;a_key&quot;: &quot;A String&quot;,
193 },
194 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
195 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
196 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
197 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
198 &quot;A String&quot;,
199 ],
200 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
201 },
202 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
203 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
204 # https://www.googleapis.com/auth/devstorage.read_write
205 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
206 # https://www.googleapis.com/auth/bigquery
207 # https://www.googleapis.com/auth/bigtable.admin.table
208 # https://www.googleapis.com/auth/bigtable.data
209 # https://www.googleapis.com/auth/devstorage.full_control
210 &quot;A String&quot;,
211 ],
212 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
213 &quot;A String&quot;,
214 ],
215 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
216 },
217 &quot;gkeClusterConfig&quot;: { # The GKE config for this cluster. # Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. Setting this is considered mutually exclusive with Compute Engine-based options such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
218 &quot;namespacedGkeDeploymentTarget&quot;: { # A full, namespace-isolated deployment target for an existing GKE cluster. # Optional. A target for the deployment.
219 &quot;clusterNamespace&quot;: &quot;A String&quot;, # Optional. A namespace within the GKE cluster to deploy into.
220 &quot;targetGkeCluster&quot;: &quot;A String&quot;, # Optional. The target GKE cluster to deploy to. Format: &#x27;projects/{project}/locations/{location}/clusters/{cluster_id}&#x27;
221 },
222 },
223 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
224 &quot;imageVersion&quot;: &quot;A String&quot;, # Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
225 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 # capacity-scheduler: capacity-scheduler.xml
227 # core: core-site.xml
228 # distcp: distcp-default.xml
229 # hdfs: hdfs-site.xml
230 # hive: hive-site.xml
231 # mapred: mapred-site.xml
232 # pig: pig.properties
233 # spark: spark-defaults.conf
Dan O'Mearadd494642020-05-01 07:42:23 -0700234 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;optionalComponents&quot;: [ # The set of optional components to activate on the cluster.
238 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
242 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
Dan O'Mearadd494642020-05-01 07:42:23 -0700244 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
245 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;endpointConfig&quot;: { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster
247 &quot;httpPorts&quot;: { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
248 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700249 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;enableHttpPortAccess&quot;: True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
253 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
254 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
255 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
256 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
259 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
261 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700264 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
265 # projects/[project_id]/global/images/[image-id]
266 # image-idImage family examples. Dataproc will use the most recent image from the family:
267 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
268 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
270 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
271 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
272 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
273 },
274 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
275 &quot;A String&quot;,
276 ],
277 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700278 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
280 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700281 },
282 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
284 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
285 },
286 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
287 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
288 },
289 &quot;securityConfig&quot;: { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration.
290 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
291 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
292 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
293 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
294 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
295 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
296 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
297 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
298 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
299 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
300 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
301 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
302 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
303 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
304 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
305 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s &lt;code&gt;role&lt;/code&gt; metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 # ROLE=$(curl -H Metadata-Flavor:Google
310 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312 # ... master specific actions ...
313 # else
314 # ... worker specific actions ...
315 # fi
316 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
318 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 },
320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule.
322 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted. (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
323 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
324 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
325 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
328 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
329 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
330 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
331 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
332 },
333 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
334 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700335 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
336 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -0700337 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700339 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
340 # projects/[project_id]/global/images/[image-id]
341 # image-idImage family examples. Dataproc will use the most recent image from the family:
342 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
343 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
345 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
346 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
347 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
348 },
349 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
350 &quot;A String&quot;,
351 ],
352 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
355 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
359 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 },
361 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;statusHistory&quot;: [ # Output only. The previous cluster status.
363 { # The status of a cluster and its instances.
364 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
365 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
366 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
367 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
368 },
369 ],
370 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
371 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
372 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Cloud Platform project ID that the cluster belongs to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373}
374
375 requestId: string, Optional. A unique id used to identify the request. If the server receives two CreateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
376 x__xgafv: string, V1 error format.
377 Allowed values
378 1 - v1 error format
379 2 - v2 error format
380
381Returns:
382 An object of the form:
383
384 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
386 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
389 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
390 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
391 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
392 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 },
396 ],
397 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
399 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700400 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402 }</pre>
403</div>
404
405<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 <code class="details" id="delete">delete(projectId, region, clusterName, requestId=None, clusterUuid=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700407 <pre>Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408
409Args:
410 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 clusterName: string, Required. The cluster name. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 requestId: string, Optional. A unique id used to identify the request. If the server receives two DeleteClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 clusterUuid: string, Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 x__xgafv: string, V1 error format.
416 Allowed values
417 1 - v1 error format
418 2 - v2 error format
419
420Returns:
421 An object of the form:
422
423 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
425 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
428 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
429 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
430 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
431 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700434 },
435 ],
436 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
438 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700439 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441 }</pre>
442</div>
443
444<div class="method">
445 <code class="details" id="diagnose">diagnose(projectId, region, clusterName, body=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700446 <pre>Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). After the operation completes, Operation.response contains Empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447
448Args:
449 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700450 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 clusterName: string, Required. The cluster name. (required)
452 body: object, The request body.
453 The object takes the form of:
454
455{ # A request to collect cluster diagnostic information.
456 }
457
458 x__xgafv: string, V1 error format.
459 Allowed values
460 1 - v1 error format
461 2 - v2 error format
462
463Returns:
464 An object of the form:
465
466 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700469 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700470 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
471 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
472 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
473 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
474 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 },
478 ],
479 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
481 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700482 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700484 }</pre>
485</div>
486
487<div class="method">
488 <code class="details" id="get">get(projectId, region, clusterName, x__xgafv=None)</code>
489 <pre>Gets the resource representation for a cluster in a project.
490
491Args:
492 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494 clusterName: string, Required. The cluster name. (required)
495 x__xgafv: string, V1 error format.
496 Allowed values
497 1 - v1 error format
498 2 - v2 error format
499
500Returns:
501 An object of the form:
502
503 { # Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;labels&quot;: { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
505 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 &quot;metrics&quot;: { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
508 &quot;hdfsMetrics&quot;: { # The HDFS metrics.
509 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700510 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 &quot;yarnMetrics&quot;: { # The YARN metrics.
512 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700513 },
514 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 &quot;status&quot;: { # The status of a cluster and its instances. # Output only. Cluster status.
516 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
517 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
518 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
519 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
520 },
521 &quot;config&quot;: { # The cluster config. # Required. The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated.
522 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
523 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
524 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
525 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
526 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
527 },
528 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
529 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
530 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
531 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
532 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
533 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
534 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
535 # projects/[project_id]/global/images/[image-id]
536 # image-idImage family examples. Dataproc will use the most recent image from the family:
537 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
538 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
539 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
540 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
541 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
542 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
543 },
544 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
545 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
548 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
549 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
550 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
551 },
552 ],
553 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
554 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
555 },
556 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
557 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
558 &quot;subnetworkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples:
559 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
560 # projects/[project_id]/regions/us-east1/subnetworks/sub0
561 # sub0
562 &quot;networkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
563 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
564 # projects/[project_id]/regions/global/default
565 # default
566 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:
567 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
568 # projects/[project_id]/zones/[zone]
569 # us-central1-f
570 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
571 &quot;a_key&quot;: &quot;A String&quot;,
572 },
573 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
574 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
575 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
576 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
577 &quot;A String&quot;,
578 ],
579 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
580 },
581 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
582 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
583 # https://www.googleapis.com/auth/devstorage.read_write
584 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
585 # https://www.googleapis.com/auth/bigquery
586 # https://www.googleapis.com/auth/bigtable.admin.table
587 # https://www.googleapis.com/auth/bigtable.data
588 # https://www.googleapis.com/auth/devstorage.full_control
589 &quot;A String&quot;,
590 ],
591 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
592 &quot;A String&quot;,
593 ],
594 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
595 },
596 &quot;gkeClusterConfig&quot;: { # The GKE config for this cluster. # Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. Setting this is considered mutually exclusive with Compute Engine-based options such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
597 &quot;namespacedGkeDeploymentTarget&quot;: { # A full, namespace-isolated deployment target for an existing GKE cluster. # Optional. A target for the deployment.
598 &quot;clusterNamespace&quot;: &quot;A String&quot;, # Optional. A namespace within the GKE cluster to deploy into.
599 &quot;targetGkeCluster&quot;: &quot;A String&quot;, # Optional. The target GKE cluster to deploy to. Format: &#x27;projects/{project}/locations/{location}/clusters/{cluster_id}&#x27;
600 },
601 },
602 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
603 &quot;imageVersion&quot;: &quot;A String&quot;, # Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
604 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700605 # capacity-scheduler: capacity-scheduler.xml
606 # core: core-site.xml
607 # distcp: distcp-default.xml
608 # hdfs: hdfs-site.xml
609 # hive: hive-site.xml
610 # mapred: mapred-site.xml
611 # pig: pig.properties
612 # spark: spark-defaults.conf
Dan O'Mearadd494642020-05-01 07:42:23 -0700613 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700615 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;optionalComponents&quot;: [ # The set of optional components to activate on the cluster.
617 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
621 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700622 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
Dan O'Mearadd494642020-05-01 07:42:23 -0700623 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
624 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 &quot;endpointConfig&quot;: { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster
626 &quot;httpPorts&quot;: { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
627 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;enableHttpPortAccess&quot;: True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700630 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700631 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
632 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
633 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
634 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
635 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700636 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
638 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700639 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
640 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -0700641 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700643 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
644 # projects/[project_id]/global/images/[image-id]
645 # image-idImage family examples. Dataproc will use the most recent image from the family:
646 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
647 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
649 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
650 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
651 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
652 },
653 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
654 &quot;A String&quot;,
655 ],
656 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700657 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
659 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 },
661 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
663 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
664 },
665 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
666 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
667 },
668 &quot;securityConfig&quot;: { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration.
669 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
670 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
671 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
672 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
673 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
674 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
675 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
676 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
677 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
678 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
679 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
680 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
681 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
682 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
683 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
684 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700685 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s &lt;code&gt;role&lt;/code&gt; metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 # ROLE=$(curl -H Metadata-Flavor:Google
689 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691 # ... master specific actions ...
692 # else
693 # ... worker specific actions ...
694 # fi
695 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
697 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 },
699 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule.
701 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted. (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
702 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
703 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
704 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700706 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
707 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
708 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
709 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
710 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
711 },
712 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
713 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700714 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
715 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700718 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
719 # projects/[project_id]/global/images/[image-id]
720 # image-idImage family examples. Dataproc will use the most recent image from the family:
721 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
722 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
724 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
725 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
726 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
727 },
728 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
729 &quot;A String&quot;,
730 ],
731 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700732 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
734 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700735 },
736 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
738 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 },
740 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;statusHistory&quot;: [ # Output only. The previous cluster status.
742 { # The status of a cluster and its instances.
743 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
744 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
745 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
746 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
747 },
748 ],
749 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
750 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
751 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Cloud Platform project ID that the cluster belongs to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 }</pre>
753</div>
754
755<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700756 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700757 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
758
759Args:
760 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 x__xgafv: string, V1 error format.
763 Allowed values
764 1 - v1 error format
765 2 - v2 error format
766
767Returns:
768 An object of the form:
769
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
775 # &quot;members&quot;: [
776 # &quot;user:mike@example.com&quot;,
777 # &quot;group:admins@example.com&quot;,
778 # &quot;domain:google.com&quot;,
779 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700780 # ]
781 # },
782 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
784 # &quot;members&quot;: [
785 # &quot;user:eve@example.com&quot;
786 # ],
787 # &quot;condition&quot;: {
788 # &quot;title&quot;: &quot;expirable access&quot;,
789 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
790 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700791 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700792 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
795 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700797 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 # bindings:
799 # - members:
800 # - user:mike@example.com
801 # - group:admins@example.com
802 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700803 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
804 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700805 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700806 # - user:eve@example.com
807 # role: roles/resourcemanager.organizationViewer
808 # condition:
809 # title: expirable access
810 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700812 # - etag: BwWWja0YfJA=
813 # - version: 3
814 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
816 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
817 # Getting a policy that includes a conditional role binding
818 # Adding a conditional role binding to a policy
819 # Changing a conditional role binding in a policy
820 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
821 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
824 # title: &quot;Summary size limit&quot;
825 # description: &quot;Determines if a summary is less than 100 chars&quot;
826 # expression: &quot;document.summary.size() &lt; 100&quot;
827 # Example (Equality):
828 # title: &quot;Requestor is owner&quot;
829 # description: &quot;Determines if requestor is the document owner&quot;
830 # expression: &quot;document.owner == request.auth.claims.email&quot;
831 # Example (Logic):
832 # title: &quot;Public documents&quot;
833 # description: &quot;Determine whether the document should be publicly visible&quot;
834 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
835 # Example (Data Manipulation):
836 # title: &quot;Notification string&quot;
837 # description: &quot;Create a notification string with a timestamp.&quot;
838 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
839 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
840 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
841 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
842 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
843 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
844 },
845 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
847 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -0700848 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700849 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
850 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700851 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
852 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
853 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700856 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700858 },
859 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 }</pre>
861</div>
862
863<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 <code class="details" id="list">list(projectId, region, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700865 <pre>Lists all regions/{region}/clusters in a project alphabetically.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866
867Args:
868 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700869 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700870 pageToken: string, Optional. The standard List page token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 pageSize: integer, Optional. The standard List page size.
872 filter: string, Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700873 x__xgafv: string, V1 error format.
874 Allowed values
875 1 - v1 error format
876 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877
878Returns:
879 An object of the form:
880
881 { # The list of all clusters in a project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 &quot;clusters&quot;: [ # Output only. The clusters in the project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700883 { # Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 &quot;labels&quot;: { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
885 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700886 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;metrics&quot;: { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
888 &quot;hdfsMetrics&quot;: { # The HDFS metrics.
889 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700891 &quot;yarnMetrics&quot;: { # The YARN metrics.
892 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700893 },
894 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 &quot;status&quot;: { # The status of a cluster and its instances. # Output only. Cluster status.
896 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
897 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
898 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
899 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
900 },
901 &quot;config&quot;: { # The cluster config. # Required. The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated.
902 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
903 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
904 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
905 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
906 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
907 },
908 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
909 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
910 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
911 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
912 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
913 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
914 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
915 # projects/[project_id]/global/images/[image-id]
916 # image-idImage family examples. Dataproc will use the most recent image from the family:
917 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
918 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
919 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
920 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
921 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
922 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
923 },
924 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
925 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700926 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
928 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
929 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
930 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
931 },
932 ],
933 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
934 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
935 },
936 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
937 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
938 &quot;subnetworkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples:
939 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
940 # projects/[project_id]/regions/us-east1/subnetworks/sub0
941 # sub0
942 &quot;networkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
943 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
944 # projects/[project_id]/regions/global/default
945 # default
946 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:
947 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
948 # projects/[project_id]/zones/[zone]
949 # us-central1-f
950 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
951 &quot;a_key&quot;: &quot;A String&quot;,
952 },
953 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
954 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
955 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
956 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
957 &quot;A String&quot;,
958 ],
959 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
960 },
961 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
962 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
963 # https://www.googleapis.com/auth/devstorage.read_write
964 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
965 # https://www.googleapis.com/auth/bigquery
966 # https://www.googleapis.com/auth/bigtable.admin.table
967 # https://www.googleapis.com/auth/bigtable.data
968 # https://www.googleapis.com/auth/devstorage.full_control
969 &quot;A String&quot;,
970 ],
971 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
972 &quot;A String&quot;,
973 ],
974 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
975 },
976 &quot;gkeClusterConfig&quot;: { # The GKE config for this cluster. # Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. Setting this is considered mutually exclusive with Compute Engine-based options such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
977 &quot;namespacedGkeDeploymentTarget&quot;: { # A full, namespace-isolated deployment target for an existing GKE cluster. # Optional. A target for the deployment.
978 &quot;clusterNamespace&quot;: &quot;A String&quot;, # Optional. A namespace within the GKE cluster to deploy into.
979 &quot;targetGkeCluster&quot;: &quot;A String&quot;, # Optional. The target GKE cluster to deploy to. Format: &#x27;projects/{project}/locations/{location}/clusters/{cluster_id}&#x27;
980 },
981 },
982 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
983 &quot;imageVersion&quot;: &quot;A String&quot;, # Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
984 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700985 # capacity-scheduler: capacity-scheduler.xml
986 # core: core-site.xml
987 # distcp: distcp-default.xml
988 # hdfs: hdfs-site.xml
989 # hive: hive-site.xml
990 # mapred: mapred-site.xml
991 # pig: pig.properties
992 # spark: spark-defaults.conf
Dan O'Mearadd494642020-05-01 07:42:23 -0700993 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;optionalComponents&quot;: [ # The set of optional components to activate on the cluster.
997 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700999 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
1001 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001002 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
Dan O'Mearadd494642020-05-01 07:42:23 -07001003 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
1004 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;endpointConfig&quot;: { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster
1006 &quot;httpPorts&quot;: { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
1007 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001008 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &quot;enableHttpPortAccess&quot;: True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001010 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
1012 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1013 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1014 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1015 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001016 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1018 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001019 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1020 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -07001021 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -07001023 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1024 # projects/[project_id]/global/images/[image-id]
1025 # image-idImage family examples. Dataproc will use the most recent image from the family:
1026 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1027 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1029 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1030 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1031 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1032 },
1033 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1034 &quot;A String&quot;,
1035 ],
1036 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -07001037 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -07001038 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1039 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 },
1041 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1043 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1044 },
1045 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
1046 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
1047 },
1048 &quot;securityConfig&quot;: { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration.
1049 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
1050 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
1051 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1052 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
1053 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
1054 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1055 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
1056 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
1057 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
1058 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
1059 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1060 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
1061 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
1062 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
1063 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1064 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001065 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001066 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s &lt;code&gt;role&lt;/code&gt; metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068 # ROLE=$(curl -H Metadata-Flavor:Google
1069 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001071 # ... master specific actions ...
1072 # else
1073 # ... worker specific actions ...
1074 # fi
1075 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
1077 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001078 },
1079 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule.
1081 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted. (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1082 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
1083 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1084 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001085 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
1087 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1088 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1089 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1090 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1091 },
1092 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1093 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001094 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1095 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -07001096 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -07001098 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1099 # projects/[project_id]/global/images/[image-id]
1100 # image-idImage family examples. Dataproc will use the most recent image from the family:
1101 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1102 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -07001103 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1104 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1105 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1106 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1107 },
1108 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1109 &quot;A String&quot;,
1110 ],
1111 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -07001112 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -07001113 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1114 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 },
1116 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1118 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001119 },
1120 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001121 &quot;statusHistory&quot;: [ # Output only. The previous cluster status.
1122 { # The status of a cluster and its instances.
1123 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1124 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
1125 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
1126 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
1127 },
1128 ],
1129 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
1130 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
1131 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Cloud Platform project ID that the cluster belongs to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001132 },
1133 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent &lt;code&gt;ListClustersRequest&lt;/code&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001135 }</pre>
1136</div>
1137
1138<div class="method">
1139 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1140 <pre>Retrieves the next page of results.
1141
1142Args:
1143 previous_request: The request for the previous page. (required)
1144 previous_response: The response from the request for the previous page. (required)
1145
1146Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001148 page. Returns None if there are no more items in the collection.
1149 </pre>
1150</div>
1151
1152<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 <code class="details" id="patch">patch(projectId, region, clusterName, body=None, gracefulDecommissionTimeout=None, requestId=None, updateMask=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07001154 <pre>Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001155
1156Args:
1157 projectId: string, Required. The ID of the Google Cloud Platform project the cluster belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001158 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001159 clusterName: string, Required. The cluster name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001160 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001161 The object takes the form of:
1162
1163{ # Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &quot;labels&quot;: { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
1165 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001166 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;metrics&quot;: { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
1168 &quot;hdfsMetrics&quot;: { # The HDFS metrics.
1169 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001170 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 &quot;yarnMetrics&quot;: { # The YARN metrics.
1172 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 },
1174 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;status&quot;: { # The status of a cluster and its instances. # Output only. Cluster status.
1176 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1177 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
1178 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
1179 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
1180 },
1181 &quot;config&quot;: { # The cluster config. # Required. The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated.
1182 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
1183 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1184 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1185 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1186 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1187 },
1188 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1189 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1190 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1191 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1192 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
1193 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1194 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1195 # projects/[project_id]/global/images/[image-id]
1196 # image-idImage family examples. Dataproc will use the most recent image from the family:
1197 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1198 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
1199 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1200 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1201 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1202 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1203 },
1204 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1205 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001206 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1208 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
1209 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1210 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1211 },
1212 ],
1213 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1214 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1215 },
1216 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
1217 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
1218 &quot;subnetworkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples:
1219 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
1220 # projects/[project_id]/regions/us-east1/subnetworks/sub0
1221 # sub0
1222 &quot;networkUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
1223 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
1224 # projects/[project_id]/regions/global/default
1225 # default
1226 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:
1227 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
1228 # projects/[project_id]/zones/[zone]
1229 # us-central1-f
1230 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
1231 &quot;a_key&quot;: &quot;A String&quot;,
1232 },
1233 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
1234 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
1235 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
1236 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
1237 &quot;A String&quot;,
1238 ],
1239 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
1240 },
1241 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
1242 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
1243 # https://www.googleapis.com/auth/devstorage.read_write
1244 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
1245 # https://www.googleapis.com/auth/bigquery
1246 # https://www.googleapis.com/auth/bigtable.admin.table
1247 # https://www.googleapis.com/auth/bigtable.data
1248 # https://www.googleapis.com/auth/devstorage.full_control
1249 &quot;A String&quot;,
1250 ],
1251 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
1252 &quot;A String&quot;,
1253 ],
1254 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
1255 },
1256 &quot;gkeClusterConfig&quot;: { # The GKE config for this cluster. # Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. Setting this is considered mutually exclusive with Compute Engine-based options such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
1257 &quot;namespacedGkeDeploymentTarget&quot;: { # A full, namespace-isolated deployment target for an existing GKE cluster. # Optional. A target for the deployment.
1258 &quot;clusterNamespace&quot;: &quot;A String&quot;, # Optional. A namespace within the GKE cluster to deploy into.
1259 &quot;targetGkeCluster&quot;: &quot;A String&quot;, # Optional. The target GKE cluster to deploy to. Format: &#x27;projects/{project}/locations/{location}/clusters/{cluster_id}&#x27;
1260 },
1261 },
1262 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
1263 &quot;imageVersion&quot;: &quot;A String&quot;, # Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
1264 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001265 # capacity-scheduler: capacity-scheduler.xml
1266 # core: core-site.xml
1267 # distcp: distcp-default.xml
1268 # hdfs: hdfs-site.xml
1269 # hive: hive-site.xml
1270 # mapred: mapred-site.xml
1271 # pig: pig.properties
1272 # spark: spark-defaults.conf
Dan O'Mearadd494642020-05-01 07:42:23 -07001273 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001275 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 &quot;optionalComponents&quot;: [ # The set of optional components to activate on the cluster.
1277 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001279 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
1281 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001282 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
Dan O'Mearadd494642020-05-01 07:42:23 -07001283 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
1284 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 &quot;endpointConfig&quot;: { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster
1286 &quot;httpPorts&quot;: { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
1287 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001288 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;enableHttpPortAccess&quot;: True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001290 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
1292 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1293 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1294 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1295 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001296 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1298 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001299 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1300 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -07001301 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -07001302 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -07001303 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1304 # projects/[project_id]/global/images/[image-id]
1305 # image-idImage family examples. Dataproc will use the most recent image from the family:
1306 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1307 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1309 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1310 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1311 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1312 },
1313 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1314 &quot;A String&quot;,
1315 ],
1316 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -07001317 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1319 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001320 },
1321 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1323 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1324 },
1325 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
1326 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
1327 },
1328 &quot;securityConfig&quot;: { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration.
1329 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
1330 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
1331 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1332 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
1333 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
1334 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1335 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
1336 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
1337 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
1338 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
1339 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1340 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
1341 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
1342 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
1343 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1344 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001346 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s &lt;code&gt;role&lt;/code&gt; metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001348 # ROLE=$(curl -H Metadata-Flavor:Google
1349 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001351 # ... master specific actions ...
1352 # else
1353 # ... worker specific actions ...
1354 # fi
1355 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
1357 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001358 },
1359 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule.
1361 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted. (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1362 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
1363 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1364 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001365 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
1367 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1368 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1369 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1370 &quot;numLocalSsds&quot;: 42, # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1371 },
1372 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1373 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001374 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1375 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
Dan O'Mearadd494642020-05-01 07:42:23 -07001376 # n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
Dan O'Mearadd494642020-05-01 07:42:23 -07001378 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1379 # projects/[project_id]/global/images/[image-id]
1380 # image-idImage family examples. Dataproc will use the most recent image from the family:
1381 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1382 # projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1384 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1385 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1386 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1387 },
1388 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1389 &quot;A String&quot;,
1390 ],
1391 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
Dan O'Mearadd494642020-05-01 07:42:23 -07001392 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).
Bu Sun Kim65020912020-05-20 12:08:20 -07001393 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1394 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001395 },
1396 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001397 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1398 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001399 },
1400 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 &quot;statusHistory&quot;: [ # Output only. The previous cluster status.
1402 { # The status of a cluster and its instances.
1403 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1404 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information that includes status reported by the agent.
1405 &quot;detail&quot;: &quot;A String&quot;, # Output only. Optional details of cluster&#x27;s state.
1406 &quot;state&quot;: &quot;A String&quot;, # Output only. The cluster&#x27;s state.
1407 },
1408 ],
1409 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
1410 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
1411 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Cloud Platform project ID that the cluster belongs to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001412}
1413
Dan O'Mearadd494642020-05-01 07:42:23 -07001414 gracefulDecommissionTimeout: string, Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 requestId: string, Optional. A unique id used to identify the request. If the server receives two UpdateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
1416 updateMask: string, Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows:
1417{
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 &quot;config&quot;:{
1419 &quot;workerConfig&quot;:{
1420 &quot;numInstances&quot;:&quot;5&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001421 }
1422 }
1423}
1424Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows:
1425{
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;config&quot;:{
1427 &quot;secondaryWorkerConfig&quot;:{
1428 &quot;numInstances&quot;:&quot;5&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001429 }
1430 }
1431}
Dan O'Mearadd494642020-05-01 07:42:23 -07001432&lt;strong&gt;Note:&lt;/strong&gt; currently only the following fields can be updated:
1433&lt;table&gt;
1434&lt;tr&gt;
1435&lt;td&gt;&lt;strong&gt;Mask&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Purpose&lt;/strong&gt;&lt;/td&gt;
1436&lt;/tr&gt;
1437&lt;tr&gt;
1438&lt;td&gt;labels&lt;/td&gt;&lt;td&gt;Updates labels&lt;/td&gt;
1439&lt;/tr&gt;
1440&lt;tr&gt;
1441&lt;td&gt;config.worker_config.num_instances&lt;/td&gt;&lt;td&gt;Resize primary worker
1442group&lt;/td&gt;
1443&lt;/tr&gt;
1444&lt;tr&gt;
1445&lt;td&gt;config.secondary_worker_config.num_instances&lt;/td&gt;&lt;td&gt;Resize secondary
1446worker group&lt;/td&gt;
1447&lt;/tr&gt;
1448&lt;tr&gt;
1449&lt;td&gt;config.lifecycle_config.auto_delete_ttl&lt;/td&gt;&lt;td&gt;Reset MAX TTL
1450duration&lt;/td&gt;
1451&lt;/tr&gt;
1452&lt;tr&gt;
1453&lt;td&gt;config.lifecycle_config.auto_delete_time&lt;/td&gt;&lt;td&gt;Update MAX TTL
1454deletion timestamp&lt;/td&gt;
1455&lt;/tr&gt;
1456&lt;tr&gt;
1457&lt;td&gt;config.lifecycle_config.idle_delete_ttl&lt;/td&gt;&lt;td&gt;Update Idle TTL
1458duration&lt;/td&gt;
1459&lt;/tr&gt;
1460&lt;tr&gt;
1461&lt;td&gt;config.autoscaling_config.policy_uri&lt;/td&gt;&lt;td&gt;Use, stop using, or change
1462autoscaling policies&lt;/td&gt;
1463&lt;/tr&gt;
1464&lt;/table&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001465 x__xgafv: string, V1 error format.
1466 Allowed values
1467 1 - v1 error format
1468 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001469
1470Returns:
1471 An object of the form:
1472
1473 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1475 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001476 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001477 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1478 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1479 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1480 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1481 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001482 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001484 },
1485 ],
1486 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001487 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1488 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001489 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001490 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001491 }</pre>
1492</div>
1493
1494<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001495 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001497
1498Args:
1499 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001500 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001501 The object takes the form of:
1502
1503{ # Request message for SetIamPolicy method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001504 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001505 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001506 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001507 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001508 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1509 # &quot;members&quot;: [
1510 # &quot;user:mike@example.com&quot;,
1511 # &quot;group:admins@example.com&quot;,
1512 # &quot;domain:google.com&quot;,
1513 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001514 # ]
1515 # },
1516 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001517 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1518 # &quot;members&quot;: [
1519 # &quot;user:eve@example.com&quot;
1520 # ],
1521 # &quot;condition&quot;: {
1522 # &quot;title&quot;: &quot;expirable access&quot;,
1523 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1524 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001525 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001526 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001527 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1529 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001530 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001531 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001532 # bindings:
1533 # - members:
1534 # - user:mike@example.com
1535 # - group:admins@example.com
1536 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001537 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1538 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001539 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001540 # - user:eve@example.com
1541 # role: roles/resourcemanager.organizationViewer
1542 # condition:
1543 # title: expirable access
1544 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001545 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001546 # - etag: BwWWja0YfJA=
1547 # - version: 3
1548 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1550 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
1551 # Getting a policy that includes a conditional role binding
1552 # Adding a conditional role binding to a policy
1553 # Changing a conditional role binding in a policy
1554 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1555 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001556 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1558 # title: &quot;Summary size limit&quot;
1559 # description: &quot;Determines if a summary is less than 100 chars&quot;
1560 # expression: &quot;document.summary.size() &lt; 100&quot;
1561 # Example (Equality):
1562 # title: &quot;Requestor is owner&quot;
1563 # description: &quot;Determines if requestor is the document owner&quot;
1564 # expression: &quot;document.owner == request.auth.claims.email&quot;
1565 # Example (Logic):
1566 # title: &quot;Public documents&quot;
1567 # description: &quot;Determine whether the document should be publicly visible&quot;
1568 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1569 # Example (Data Manipulation):
1570 # title: &quot;Notification string&quot;
1571 # description: &quot;Create a notification string with a timestamp.&quot;
1572 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1573 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
1574 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1575 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1576 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1577 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1578 },
1579 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001580 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1581 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07001582 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001583 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1584 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001585 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
1586 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
1587 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001588 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07001589 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001590 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001592 },
1593 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001594 },
1595 }
1596
1597 x__xgafv: string, V1 error format.
1598 Allowed values
1599 1 - v1 error format
1600 2 - v2 error format
1601
1602Returns:
1603 An object of the form:
1604
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001606 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001607 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001608 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001609 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1610 # &quot;members&quot;: [
1611 # &quot;user:mike@example.com&quot;,
1612 # &quot;group:admins@example.com&quot;,
1613 # &quot;domain:google.com&quot;,
1614 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001615 # ]
1616 # },
1617 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1619 # &quot;members&quot;: [
1620 # &quot;user:eve@example.com&quot;
1621 # ],
1622 # &quot;condition&quot;: {
1623 # &quot;title&quot;: &quot;expirable access&quot;,
1624 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1625 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001628 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1630 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001631 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001632 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 # bindings:
1634 # - members:
1635 # - user:mike@example.com
1636 # - group:admins@example.com
1637 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001638 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1639 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001641 # - user:eve@example.com
1642 # role: roles/resourcemanager.organizationViewer
1643 # condition:
1644 # title: expirable access
1645 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001646 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001647 # - etag: BwWWja0YfJA=
1648 # - version: 3
1649 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001650 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1651 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
1652 # Getting a policy that includes a conditional role binding
1653 # Adding a conditional role binding to a policy
1654 # Changing a conditional role binding in a policy
1655 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1656 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001657 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1659 # title: &quot;Summary size limit&quot;
1660 # description: &quot;Determines if a summary is less than 100 chars&quot;
1661 # expression: &quot;document.summary.size() &lt; 100&quot;
1662 # Example (Equality):
1663 # title: &quot;Requestor is owner&quot;
1664 # description: &quot;Determines if requestor is the document owner&quot;
1665 # expression: &quot;document.owner == request.auth.claims.email&quot;
1666 # Example (Logic):
1667 # title: &quot;Public documents&quot;
1668 # description: &quot;Determine whether the document should be publicly visible&quot;
1669 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1670 # Example (Data Manipulation):
1671 # title: &quot;Notification string&quot;
1672 # description: &quot;Create a notification string with a timestamp.&quot;
1673 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1674 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
1675 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1676 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1677 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1678 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1679 },
1680 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001681 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1682 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07001683 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001684 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1685 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001686 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
1687 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
1688 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001689 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07001690 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001692 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001693 },
1694 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001695 }</pre>
1696</div>
1697
1698<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001699 <code class="details" id="start">start(projectId, region, clusterName, body=None, x__xgafv=None)</code>
1700 <pre>Starts a cluster in a project.
1701
1702Args:
1703 projectId: string, Required. The ID of the Google Cloud Platform project the cluster belongs to. (required)
1704 region: string, Required. The Dataproc region in which to handle the request. (required)
1705 clusterName: string, Required. The cluster name. (required)
1706 body: object, The request body.
1707 The object takes the form of:
1708
1709{ # A request to start a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001710 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A unique id used to identify the request. If the server receives two StartClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
1711 &quot;clusterUuid&quot;: &quot;A String&quot;, # Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.
Dan O'Mearadd494642020-05-01 07:42:23 -07001712 }
1713
1714 x__xgafv: string, V1 error format.
1715 Allowed values
1716 1 - v1 error format
1717 2 - v2 error format
1718
1719Returns:
1720 An object of the form:
1721
1722 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001723 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1724 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001725 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001726 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1727 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1728 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1729 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1730 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001731 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001733 },
1734 ],
1735 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001736 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1737 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001738 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001739 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Dan O'Mearadd494642020-05-01 07:42:23 -07001740 }</pre>
1741</div>
1742
1743<div class="method">
1744 <code class="details" id="stop">stop(projectId, region, clusterName, body=None, x__xgafv=None)</code>
1745 <pre>Stops a cluster in a project.
1746
1747Args:
1748 projectId: string, Required. The ID of the Google Cloud Platform project the cluster belongs to. (required)
1749 region: string, Required. The Dataproc region in which to handle the request. (required)
1750 clusterName: string, Required. The cluster name. (required)
1751 body: object, The request body.
1752 The object takes the form of:
1753
1754{ # A request to stop a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 &quot;clusterUuid&quot;: &quot;A String&quot;, # Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.
1756 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A unique id used to identify the request. If the server receives two StopClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Dan O'Mearadd494642020-05-01 07:42:23 -07001757 }
1758
1759 x__xgafv: string, V1 error format.
1760 Allowed values
1761 1 - v1 error format
1762 2 - v2 error format
1763
1764Returns:
1765 An object of the form:
1766
1767 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001768 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1769 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001770 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001771 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1772 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1773 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1774 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1775 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001776 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001778 },
1779 ],
1780 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001781 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1782 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001783 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
Dan O'Mearadd494642020-05-01 07:42:23 -07001785 }</pre>
1786</div>
1787
1788<div class="method">
1789 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001791
1792Args:
1793 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001794 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001795 The object takes the form of:
1796
1797{ # Request message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001798 &quot;permissions&quot;: [ # The set of permissions to check for the resource. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
1799 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001800 ],
1801 }
1802
1803 x__xgafv: string, V1 error format.
1804 Allowed values
1805 1 - v1 error format
1806 2 - v2 error format
1807
1808Returns:
1809 An object of the form:
1810
1811 { # Response message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001812 &quot;permissions&quot;: [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
1813 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001814 ],
1815 }</pre>
1816</div>
1817
1818</body></html>