1<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.workflowTemplates.html">workflowTemplates</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(parent, body, x__xgafv=None)</a></code></p> 79<p class="firstline">Creates new workflow template.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(name, version=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Deletes a workflow template. It does not cancel in-progress workflows.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(name, version=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.</p> 86<p class="toc_element"> 87 <code><a href="#getIamPolicy">getIamPolicy(resource, x__xgafv=None)</a></code></p> 88<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> 89<p class="toc_element"> 90 <code><a href="#instantiate">instantiate(name, body, x__xgafv=None)</a></code></p> 91<p class="firstline">Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata.On successful completion, Operation.response will be Empty.</p> 92<p class="toc_element"> 93 <code><a href="#instantiateInline">instantiateInline(parent, body, instanceId=None, requestId=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata.On successful completion, Operation.response will be Empty.</p> 95<p class="toc_element"> 96 <code><a href="#list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</a></code></p> 97<p class="firstline">Lists workflows that match the specified filter in the request.</p> 98<p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100<p class="firstline">Retrieves the next page of results.</p> 101<p class="toc_element"> 102 <code><a href="#setIamPolicy">setIamPolicy(resource, body, x__xgafv=None)</a></code></p> 103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p> 104<p class="toc_element"> 105 <code><a href="#testIamPermissions">testIamPermissions(resource, body, x__xgafv=None)</a></code></p> 106<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> 107<p class="toc_element"> 108 <code><a href="#update">update(name, body, x__xgafv=None)</a></code></p> 109<p class="firstline">Updates (replaces) workflow template. The updated template must contain version that matches the current server version.</p> 110<h3>Method Details</h3> 111<div class="method"> 112 <code class="details" id="create">create(parent, body, x__xgafv=None)</code> 113 <pre>Creates new workflow template. 114 115Args: 116 parent: string, Required. The "resource name" of the region, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region} (required) 117 body: object, The request body. (required) 118 The object takes the form of: 119 120{ # A Cloud Dataproc workflow template resource. 121 "updateTime": "A String", # Output only. The time template was last updated. 122 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 123 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 124 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 125 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 126 "a_key": "A String", 127 }, 128 }, 129 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 130 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 131 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 132 "a_key": "A String", 133 }, 134 "config": { # The cluster config. # Required. The cluster configuration. 135 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 136 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 137 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 138 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 139 }, 140 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 141 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 142 "optionalComponents": [ # The set of optional components to activate on the cluster. 143 "A String", 144 ], 145 "properties": { # 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: 146 # capacity-scheduler: capacity-scheduler.xml 147 # core: core-site.xml 148 # distcp: distcp-default.xml 149 # hdfs: hdfs-site.xml 150 # hive: hive-site.xml 151 # mapred: mapred-site.xml 152 # pig: pig.properties 153 # spark: spark-defaults.conf 154 # yarn: yarn-site.xmlFor more information, see Cluster properties. 155 "a_key": "A String", 156 }, 157 }, 158 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 159 "gceClusterConfig": { # 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. 160 "internalIpOnly": 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. 161 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 162 "values": [ # Optional. Corresponds to the label values of reservation resource. 163 "A String", 164 ], 165 "consumeReservationType": "A String", # Optional. Type of reservation to consume 166 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 167 }, 168 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 169 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 170 # projects/[project_id]/regions/global/default 171 # default 172 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 173 "A String", 174 ], 175 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 176 # roles/logging.logWriter 177 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 178 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 179 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 180 # projects/[project_id]/zones/[zone] 181 # us-central1-f 182 "subnetworkUri": "A String", # 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: 183 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 184 # projects/[project_id]/regions/us-east1/subnetworks/sub0 185 # sub0 186 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 187 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 188 # https://www.googleapis.com/auth/devstorage.read_write 189 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 190 # https://www.googleapis.com/auth/bigquery 191 # https://www.googleapis.com/auth/bigtable.admin.table 192 # https://www.googleapis.com/auth/bigtable.data 193 # https://www.googleapis.com/auth/devstorage.full_control 194 "A String", 195 ], 196 "metadata": { # 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)). 197 "a_key": "A String", 198 }, 199 }, 200 "autoscalingConfig": { # 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. 201 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 202 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 203 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 204 }, 205 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 206 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 207 "a_key": "A String", 208 }, 209 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 210 }, 211 "workerConfig": { # Optional. 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. 212 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 213 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 214 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 215 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 216 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 217 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 218 "A String", 219 ], 220 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 221 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 222 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 223 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 224 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 225 }, 226 ], 227 "managedGroupConfig": { # 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. 228 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 229 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 230 }, 231 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 232 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 233 "numLocalSsds": 42, # Optional. 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. 234 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 235 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 236 }, 237 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 238 }, 239 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 240 # ROLE=$(curl -H Metadata-Flavor:Google 241 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 242 # if [[ "${ROLE}" == 'Master' ]]; then 243 # ... master specific actions ... 244 # else 245 # ... worker specific actions ... 246 # fi 247 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 248 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 249 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 250 }, 251 ], 252 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 253 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 254 }, 255 "secondaryWorkerConfig": { # Optional. 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. 256 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 257 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 258 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 259 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 260 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 261 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 262 "A String", 263 ], 264 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 265 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 266 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 267 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 268 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 269 }, 270 ], 271 "managedGroupConfig": { # 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. 272 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 273 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 274 }, 275 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 276 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 277 "numLocalSsds": 42, # Optional. 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. 278 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 279 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 280 }, 281 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 282 }, 283 "masterConfig": { # Optional. 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. 284 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 285 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 286 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 287 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 288 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 289 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 290 "A String", 291 ], 292 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 293 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 294 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 295 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 296 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 297 }, 298 ], 299 "managedGroupConfig": { # 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. 300 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 301 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 302 }, 303 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 304 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 305 "numLocalSsds": 42, # Optional. 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. 306 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 307 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 308 }, 309 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 310 }, 311 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 312 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 313 "truststorePasswordUri": "A String", # 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. 314 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 315 "keyPasswordUri": "A String", # 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. 316 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 317 "tgtLifetimeHours": 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. 318 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 319 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 320 "keystorePasswordUri": "A String", # 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. 321 "crossRealmTrustSharedPasswordUri": "A String", # 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. 322 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 323 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 324 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 325 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 326 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 327 }, 328 }, 329 }, 330 }, 331 }, 332 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 333 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 334 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 335 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 336 # Values in maps can be referenced by key: 337 # labels'key' 338 # placement.clusterSelector.clusterLabels'key' 339 # placement.managedCluster.labels'key' 340 # placement.clusterSelector.clusterLabels'key' 341 # jobs'step-id'.labels'key' 342 # Jobs in the jobs list can be referenced by step-id: 343 # jobs'step-id'.hadoopJob.mainJarFileUri 344 # jobs'step-id'.hiveJob.queryFileUri 345 # jobs'step-id'.pySparkJob.mainPythonFileUri 346 # jobs'step-id'.hadoopJob.jarFileUris0 347 # jobs'step-id'.hadoopJob.archiveUris0 348 # jobs'step-id'.hadoopJob.fileUris0 349 # jobs'step-id'.pySparkJob.pythonFileUris0 350 # Items in repeated fields can be referenced by a zero-based index: 351 # jobs'step-id'.sparkJob.args0 352 # Other examples: 353 # jobs'step-id'.hadoopJob.properties'key' 354 # jobs'step-id'.hadoopJob.args0 355 # jobs'step-id'.hiveJob.scriptVariables'key' 356 # jobs'step-id'.hadoopJob.mainJarFileUri 357 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 358 # placement.clusterSelector.clusterLabels 359 # jobs'step-id'.sparkJob.args 360 "A String", 361 ], 362 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 363 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 364 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 365 "A String", 366 ], 367 }, 368 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 369 "values": [ # Required. List of allowed values for the parameter. 370 "A String", 371 ], 372 }, 373 }, 374 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 375 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 376 }, 377 ], 378 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 379 "a_key": "A String", 380 }, 381 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 382 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 383 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 384 { # A job executed by the workflow. 385 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 386 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 387 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 388 "a_key": "A String", 389 }, 390 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 391 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 392 "a_key": "A String", 393 }, 394 }, 395 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 396 "A String", 397 ], 398 "queryList": { # A list of queries to run on a cluster. # A list of queries. 399 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 400 # "hiveJob": { 401 # "queryList": { 402 # "queries": [ 403 # "query1", 404 # "query2", 405 # "query3;query4", 406 # ] 407 # } 408 # } 409 "A String", 410 ], 411 }, 412 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 413 "a_key": "A String", 414 }, 415 }, 416 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 417 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 418 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 419 "a_key": "A String", 420 }, 421 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 422 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 423 "a_key": "A String", 424 }, 425 }, 426 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 427 "A String", 428 ], 429 "queryList": { # A list of queries to run on a cluster. # A list of queries. 430 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 431 # "hiveJob": { 432 # "queryList": { 433 # "queries": [ 434 # "query1", 435 # "query2", 436 # "query3;query4", 437 # ] 438 # } 439 # } 440 "A String", 441 ], 442 }, 443 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 444 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 445 "a_key": "A String", 446 }, 447 }, 448 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 449 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 450 "A String", 451 ], 452 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 453 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 454 "a_key": "A String", 455 }, 456 }, 457 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 458 "A String", 459 ], 460 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 461 "A String", 462 ], 463 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 464 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 465 "A String", 466 ], 467 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 468 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 469 "a_key": "A String", 470 }, 471 }, 472 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 473 "A String", 474 ], 475 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 476 "a_key": "A String", 477 }, 478 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 479 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 480 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 481 "A String", 482 ], 483 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 484 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 485 "a_key": "A String", 486 }, 487 }, 488 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 489 "A String", 490 ], 491 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 492 "A String", 493 ], 494 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 495 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 496 "A String", 497 ], 498 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 499 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 500 "a_key": "A String", 501 }, 502 }, 503 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 504 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 505 }, 506 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 507 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 508 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 509 "A String", 510 ], 511 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 512 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 513 "a_key": "A String", 514 }, 515 }, 516 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 517 "A String", 518 ], 519 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 520 "A String", 521 ], 522 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 523 "A String", 524 ], 525 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 526 "A String", 527 ], 528 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 529 "a_key": "A String", 530 }, 531 }, 532 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 533 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 534 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 535 "a_key": "A String", 536 }, 537 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 538 "A String", 539 ], 540 "queryList": { # A list of queries to run on a cluster. # A list of queries. 541 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 542 # "hiveJob": { 543 # "queryList": { 544 # "queries": [ 545 # "query1", 546 # "query2", 547 # "query3;query4", 548 # ] 549 # } 550 # } 551 "A String", 552 ], 553 }, 554 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 555 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 556 "a_key": "A String", 557 }, 558 }, 559 }, 560 ], 561 "createTime": "A String", # Output only. The time template was created. 562} 563 564 x__xgafv: string, V1 error format. 565 Allowed values 566 1 - v1 error format 567 2 - v2 error format 568 569Returns: 570 An object of the form: 571 572 { # A Cloud Dataproc workflow template resource. 573 "updateTime": "A String", # Output only. The time template was last updated. 574 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 575 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 576 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 577 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 578 "a_key": "A String", 579 }, 580 }, 581 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 582 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 583 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 584 "a_key": "A String", 585 }, 586 "config": { # The cluster config. # Required. The cluster configuration. 587 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 588 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 589 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 590 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 591 }, 592 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 593 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 594 "optionalComponents": [ # The set of optional components to activate on the cluster. 595 "A String", 596 ], 597 "properties": { # 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: 598 # capacity-scheduler: capacity-scheduler.xml 599 # core: core-site.xml 600 # distcp: distcp-default.xml 601 # hdfs: hdfs-site.xml 602 # hive: hive-site.xml 603 # mapred: mapred-site.xml 604 # pig: pig.properties 605 # spark: spark-defaults.conf 606 # yarn: yarn-site.xmlFor more information, see Cluster properties. 607 "a_key": "A String", 608 }, 609 }, 610 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 611 "gceClusterConfig": { # 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. 612 "internalIpOnly": 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. 613 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 614 "values": [ # Optional. Corresponds to the label values of reservation resource. 615 "A String", 616 ], 617 "consumeReservationType": "A String", # Optional. Type of reservation to consume 618 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 619 }, 620 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 621 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 622 # projects/[project_id]/regions/global/default 623 # default 624 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 625 "A String", 626 ], 627 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 628 # roles/logging.logWriter 629 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 630 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 631 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 632 # projects/[project_id]/zones/[zone] 633 # us-central1-f 634 "subnetworkUri": "A String", # 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: 635 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 636 # projects/[project_id]/regions/us-east1/subnetworks/sub0 637 # sub0 638 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 639 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 640 # https://www.googleapis.com/auth/devstorage.read_write 641 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 642 # https://www.googleapis.com/auth/bigquery 643 # https://www.googleapis.com/auth/bigtable.admin.table 644 # https://www.googleapis.com/auth/bigtable.data 645 # https://www.googleapis.com/auth/devstorage.full_control 646 "A String", 647 ], 648 "metadata": { # 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)). 649 "a_key": "A String", 650 }, 651 }, 652 "autoscalingConfig": { # 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. 653 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 654 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 655 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 656 }, 657 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 658 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 659 "a_key": "A String", 660 }, 661 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 662 }, 663 "workerConfig": { # Optional. 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. 664 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 665 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 666 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 667 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 668 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 669 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 670 "A String", 671 ], 672 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 673 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 674 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 675 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 676 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 677 }, 678 ], 679 "managedGroupConfig": { # 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. 680 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 681 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 682 }, 683 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 684 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 685 "numLocalSsds": 42, # Optional. 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. 686 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 687 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 688 }, 689 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 690 }, 691 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 692 # ROLE=$(curl -H Metadata-Flavor:Google 693 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 694 # if [[ "${ROLE}" == 'Master' ]]; then 695 # ... master specific actions ... 696 # else 697 # ... worker specific actions ... 698 # fi 699 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 700 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 701 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 702 }, 703 ], 704 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 705 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 706 }, 707 "secondaryWorkerConfig": { # Optional. 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. 708 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 709 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 710 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 711 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 712 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 713 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 714 "A String", 715 ], 716 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 717 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 718 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 719 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 720 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 721 }, 722 ], 723 "managedGroupConfig": { # 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. 724 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 725 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 726 }, 727 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 728 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 729 "numLocalSsds": 42, # Optional. 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. 730 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 731 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 732 }, 733 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 734 }, 735 "masterConfig": { # Optional. 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. 736 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 737 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 738 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 739 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 740 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 741 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 742 "A String", 743 ], 744 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 745 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 746 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 747 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 748 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 749 }, 750 ], 751 "managedGroupConfig": { # 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. 752 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 753 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 754 }, 755 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 756 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 757 "numLocalSsds": 42, # Optional. 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. 758 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 759 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 760 }, 761 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 762 }, 763 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 764 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 765 "truststorePasswordUri": "A String", # 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. 766 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 767 "keyPasswordUri": "A String", # 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. 768 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 769 "tgtLifetimeHours": 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. 770 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 771 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 772 "keystorePasswordUri": "A String", # 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. 773 "crossRealmTrustSharedPasswordUri": "A String", # 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. 774 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 775 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 776 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 777 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 778 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 779 }, 780 }, 781 }, 782 }, 783 }, 784 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 785 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 786 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 787 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 788 # Values in maps can be referenced by key: 789 # labels'key' 790 # placement.clusterSelector.clusterLabels'key' 791 # placement.managedCluster.labels'key' 792 # placement.clusterSelector.clusterLabels'key' 793 # jobs'step-id'.labels'key' 794 # Jobs in the jobs list can be referenced by step-id: 795 # jobs'step-id'.hadoopJob.mainJarFileUri 796 # jobs'step-id'.hiveJob.queryFileUri 797 # jobs'step-id'.pySparkJob.mainPythonFileUri 798 # jobs'step-id'.hadoopJob.jarFileUris0 799 # jobs'step-id'.hadoopJob.archiveUris0 800 # jobs'step-id'.hadoopJob.fileUris0 801 # jobs'step-id'.pySparkJob.pythonFileUris0 802 # Items in repeated fields can be referenced by a zero-based index: 803 # jobs'step-id'.sparkJob.args0 804 # Other examples: 805 # jobs'step-id'.hadoopJob.properties'key' 806 # jobs'step-id'.hadoopJob.args0 807 # jobs'step-id'.hiveJob.scriptVariables'key' 808 # jobs'step-id'.hadoopJob.mainJarFileUri 809 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 810 # placement.clusterSelector.clusterLabels 811 # jobs'step-id'.sparkJob.args 812 "A String", 813 ], 814 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 815 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 816 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 817 "A String", 818 ], 819 }, 820 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 821 "values": [ # Required. List of allowed values for the parameter. 822 "A String", 823 ], 824 }, 825 }, 826 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 827 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 828 }, 829 ], 830 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 831 "a_key": "A String", 832 }, 833 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 834 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 835 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 836 { # A job executed by the workflow. 837 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 838 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 839 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 840 "a_key": "A String", 841 }, 842 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 843 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 844 "a_key": "A String", 845 }, 846 }, 847 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 848 "A String", 849 ], 850 "queryList": { # A list of queries to run on a cluster. # A list of queries. 851 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 852 # "hiveJob": { 853 # "queryList": { 854 # "queries": [ 855 # "query1", 856 # "query2", 857 # "query3;query4", 858 # ] 859 # } 860 # } 861 "A String", 862 ], 863 }, 864 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 865 "a_key": "A String", 866 }, 867 }, 868 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 869 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 870 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 871 "a_key": "A String", 872 }, 873 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 874 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 875 "a_key": "A String", 876 }, 877 }, 878 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 879 "A String", 880 ], 881 "queryList": { # A list of queries to run on a cluster. # A list of queries. 882 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 883 # "hiveJob": { 884 # "queryList": { 885 # "queries": [ 886 # "query1", 887 # "query2", 888 # "query3;query4", 889 # ] 890 # } 891 # } 892 "A String", 893 ], 894 }, 895 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 896 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 897 "a_key": "A String", 898 }, 899 }, 900 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 901 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 902 "A String", 903 ], 904 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 905 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 906 "a_key": "A String", 907 }, 908 }, 909 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 910 "A String", 911 ], 912 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 913 "A String", 914 ], 915 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 916 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 917 "A String", 918 ], 919 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 920 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 921 "a_key": "A String", 922 }, 923 }, 924 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 925 "A String", 926 ], 927 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 928 "a_key": "A String", 929 }, 930 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 931 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 932 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 933 "A String", 934 ], 935 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 936 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 937 "a_key": "A String", 938 }, 939 }, 940 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 941 "A String", 942 ], 943 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 944 "A String", 945 ], 946 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 947 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 948 "A String", 949 ], 950 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 951 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 952 "a_key": "A String", 953 }, 954 }, 955 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 956 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 957 }, 958 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 959 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 960 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 961 "A String", 962 ], 963 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 964 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 965 "a_key": "A String", 966 }, 967 }, 968 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 969 "A String", 970 ], 971 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 972 "A String", 973 ], 974 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 975 "A String", 976 ], 977 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 978 "A String", 979 ], 980 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 981 "a_key": "A String", 982 }, 983 }, 984 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 985 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 986 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 987 "a_key": "A String", 988 }, 989 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 990 "A String", 991 ], 992 "queryList": { # A list of queries to run on a cluster. # A list of queries. 993 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 994 # "hiveJob": { 995 # "queryList": { 996 # "queries": [ 997 # "query1", 998 # "query2", 999 # "query3;query4", 1000 # ] 1001 # } 1002 # } 1003 "A String", 1004 ], 1005 }, 1006 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1007 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1008 "a_key": "A String", 1009 }, 1010 }, 1011 }, 1012 ], 1013 "createTime": "A String", # Output only. The time template was created. 1014 }</pre> 1015</div> 1016 1017<div class="method"> 1018 <code class="details" id="delete">delete(name, version=None, x__xgafv=None)</code> 1019 <pre>Deletes a workflow template. It does not cancel in-progress workflows. 1020 1021Args: 1022 name: string, Required. The "resource name" of the workflow template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} (required) 1023 version: integer, Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version. 1024 x__xgafv: string, V1 error format. 1025 Allowed values 1026 1 - v1 error format 1027 2 - v2 error format 1028 1029Returns: 1030 An object of the form: 1031 1032 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: 1033 # service Foo { 1034 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 1035 # } 1036 # The JSON representation for Empty is empty JSON object {}. 1037 }</pre> 1038</div> 1039 1040<div class="method"> 1041 <code class="details" id="get">get(name, version=None, x__xgafv=None)</code> 1042 <pre>Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter. 1043 1044Args: 1045 name: string, Required. The "resource name" of the workflow template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} (required) 1046 version: integer, Optional. The version of workflow template to retrieve. Only previously instatiated versions can be retrieved.If unspecified, retrieves the current version. 1047 x__xgafv: string, V1 error format. 1048 Allowed values 1049 1 - v1 error format 1050 2 - v2 error format 1051 1052Returns: 1053 An object of the form: 1054 1055 { # A Cloud Dataproc workflow template resource. 1056 "updateTime": "A String", # Output only. The time template was last updated. 1057 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 1058 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 1059 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 1060 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 1061 "a_key": "A String", 1062 }, 1063 }, 1064 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 1065 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 1066 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 1067 "a_key": "A String", 1068 }, 1069 "config": { # The cluster config. # Required. The cluster configuration. 1070 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 1071 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 1072 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 1073 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 1074 }, 1075 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 1076 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 1077 "optionalComponents": [ # The set of optional components to activate on the cluster. 1078 "A String", 1079 ], 1080 "properties": { # 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: 1081 # capacity-scheduler: capacity-scheduler.xml 1082 # core: core-site.xml 1083 # distcp: distcp-default.xml 1084 # hdfs: hdfs-site.xml 1085 # hive: hive-site.xml 1086 # mapred: mapred-site.xml 1087 # pig: pig.properties 1088 # spark: spark-defaults.conf 1089 # yarn: yarn-site.xmlFor more information, see Cluster properties. 1090 "a_key": "A String", 1091 }, 1092 }, 1093 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 1094 "gceClusterConfig": { # 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. 1095 "internalIpOnly": 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. 1096 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 1097 "values": [ # Optional. Corresponds to the label values of reservation resource. 1098 "A String", 1099 ], 1100 "consumeReservationType": "A String", # Optional. Type of reservation to consume 1101 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 1102 }, 1103 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 1104 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 1105 # projects/[project_id]/regions/global/default 1106 # default 1107 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 1108 "A String", 1109 ], 1110 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 1111 # roles/logging.logWriter 1112 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 1113 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 1114 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 1115 # projects/[project_id]/zones/[zone] 1116 # us-central1-f 1117 "subnetworkUri": "A String", # 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: 1118 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 1119 # projects/[project_id]/regions/us-east1/subnetworks/sub0 1120 # sub0 1121 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 1122 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 1123 # https://www.googleapis.com/auth/devstorage.read_write 1124 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 1125 # https://www.googleapis.com/auth/bigquery 1126 # https://www.googleapis.com/auth/bigtable.admin.table 1127 # https://www.googleapis.com/auth/bigtable.data 1128 # https://www.googleapis.com/auth/devstorage.full_control 1129 "A String", 1130 ], 1131 "metadata": { # 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)). 1132 "a_key": "A String", 1133 }, 1134 }, 1135 "autoscalingConfig": { # 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. 1136 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 1137 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 1138 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 1139 }, 1140 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 1141 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 1142 "a_key": "A String", 1143 }, 1144 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 1145 }, 1146 "workerConfig": { # Optional. 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. 1147 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1148 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1149 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1150 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1151 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1152 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1153 "A String", 1154 ], 1155 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1156 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1157 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1158 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1159 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1160 }, 1161 ], 1162 "managedGroupConfig": { # 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. 1163 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1164 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1165 }, 1166 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1167 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1168 "numLocalSsds": 42, # Optional. 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. 1169 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1170 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1171 }, 1172 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1173 }, 1174 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 1175 # ROLE=$(curl -H Metadata-Flavor:Google 1176 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 1177 # if [[ "${ROLE}" == 'Master' ]]; then 1178 # ... master specific actions ... 1179 # else 1180 # ... worker specific actions ... 1181 # fi 1182 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 1183 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 1184 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 1185 }, 1186 ], 1187 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 1188 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 1189 }, 1190 "secondaryWorkerConfig": { # Optional. 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. 1191 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1192 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1193 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1194 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1195 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1196 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1197 "A String", 1198 ], 1199 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1200 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1201 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1202 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1203 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1204 }, 1205 ], 1206 "managedGroupConfig": { # 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. 1207 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1208 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1209 }, 1210 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1211 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1212 "numLocalSsds": 42, # Optional. 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. 1213 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1214 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1215 }, 1216 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1217 }, 1218 "masterConfig": { # Optional. 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. 1219 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1220 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1221 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1222 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1223 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1224 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1225 "A String", 1226 ], 1227 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1228 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1229 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1230 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1231 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1232 }, 1233 ], 1234 "managedGroupConfig": { # 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. 1235 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1236 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1237 }, 1238 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1239 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1240 "numLocalSsds": 42, # Optional. 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. 1241 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1242 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1243 }, 1244 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1245 }, 1246 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 1247 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 1248 "truststorePasswordUri": "A String", # 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. 1249 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 1250 "keyPasswordUri": "A String", # 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. 1251 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 1252 "tgtLifetimeHours": 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. 1253 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 1254 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 1255 "keystorePasswordUri": "A String", # 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. 1256 "crossRealmTrustSharedPasswordUri": "A String", # 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. 1257 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 1258 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 1259 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 1260 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 1261 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 1262 }, 1263 }, 1264 }, 1265 }, 1266 }, 1267 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 1268 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 1269 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 1270 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 1271 # Values in maps can be referenced by key: 1272 # labels'key' 1273 # placement.clusterSelector.clusterLabels'key' 1274 # placement.managedCluster.labels'key' 1275 # placement.clusterSelector.clusterLabels'key' 1276 # jobs'step-id'.labels'key' 1277 # Jobs in the jobs list can be referenced by step-id: 1278 # jobs'step-id'.hadoopJob.mainJarFileUri 1279 # jobs'step-id'.hiveJob.queryFileUri 1280 # jobs'step-id'.pySparkJob.mainPythonFileUri 1281 # jobs'step-id'.hadoopJob.jarFileUris0 1282 # jobs'step-id'.hadoopJob.archiveUris0 1283 # jobs'step-id'.hadoopJob.fileUris0 1284 # jobs'step-id'.pySparkJob.pythonFileUris0 1285 # Items in repeated fields can be referenced by a zero-based index: 1286 # jobs'step-id'.sparkJob.args0 1287 # Other examples: 1288 # jobs'step-id'.hadoopJob.properties'key' 1289 # jobs'step-id'.hadoopJob.args0 1290 # jobs'step-id'.hiveJob.scriptVariables'key' 1291 # jobs'step-id'.hadoopJob.mainJarFileUri 1292 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 1293 # placement.clusterSelector.clusterLabels 1294 # jobs'step-id'.sparkJob.args 1295 "A String", 1296 ], 1297 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 1298 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 1299 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 1300 "A String", 1301 ], 1302 }, 1303 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 1304 "values": [ # Required. List of allowed values for the parameter. 1305 "A String", 1306 ], 1307 }, 1308 }, 1309 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 1310 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 1311 }, 1312 ], 1313 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 1314 "a_key": "A String", 1315 }, 1316 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 1317 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 1318 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 1319 { # A job executed by the workflow. 1320 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 1321 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 1322 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 1323 "a_key": "A String", 1324 }, 1325 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1326 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1327 "a_key": "A String", 1328 }, 1329 }, 1330 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 1331 "A String", 1332 ], 1333 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1334 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1335 # "hiveJob": { 1336 # "queryList": { 1337 # "queries": [ 1338 # "query1", 1339 # "query2", 1340 # "query3;query4", 1341 # ] 1342 # } 1343 # } 1344 "A String", 1345 ], 1346 }, 1347 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 1348 "a_key": "A String", 1349 }, 1350 }, 1351 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 1352 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 1353 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 1354 "a_key": "A String", 1355 }, 1356 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1357 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1358 "a_key": "A String", 1359 }, 1360 }, 1361 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 1362 "A String", 1363 ], 1364 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1365 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1366 # "hiveJob": { 1367 # "queryList": { 1368 # "queries": [ 1369 # "query1", 1370 # "query2", 1371 # "query3;query4", 1372 # ] 1373 # } 1374 # } 1375 "A String", 1376 ], 1377 }, 1378 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1379 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 1380 "a_key": "A String", 1381 }, 1382 }, 1383 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 1384 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1385 "A String", 1386 ], 1387 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1388 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1389 "a_key": "A String", 1390 }, 1391 }, 1392 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 1393 "A String", 1394 ], 1395 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 1396 "A String", 1397 ], 1398 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 1399 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 1400 "A String", 1401 ], 1402 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 1403 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 1404 "a_key": "A String", 1405 }, 1406 }, 1407 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 1408 "A String", 1409 ], 1410 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 1411 "a_key": "A String", 1412 }, 1413 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 1414 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 1415 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1416 "A String", 1417 ], 1418 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1419 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1420 "a_key": "A String", 1421 }, 1422 }, 1423 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 1424 "A String", 1425 ], 1426 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 1427 "A String", 1428 ], 1429 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 1430 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 1431 "A String", 1432 ], 1433 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 1434 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1435 "a_key": "A String", 1436 }, 1437 }, 1438 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 1439 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 1440 }, 1441 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 1442 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 1443 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 1444 "A String", 1445 ], 1446 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1447 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1448 "a_key": "A String", 1449 }, 1450 }, 1451 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1452 "A String", 1453 ], 1454 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 1455 "A String", 1456 ], 1457 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 1458 "A String", 1459 ], 1460 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 1461 "A String", 1462 ], 1463 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 1464 "a_key": "A String", 1465 }, 1466 }, 1467 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 1468 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 1469 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 1470 "a_key": "A String", 1471 }, 1472 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 1473 "A String", 1474 ], 1475 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1476 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1477 # "hiveJob": { 1478 # "queryList": { 1479 # "queries": [ 1480 # "query1", 1481 # "query2", 1482 # "query3;query4", 1483 # ] 1484 # } 1485 # } 1486 "A String", 1487 ], 1488 }, 1489 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1490 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 1491 "a_key": "A String", 1492 }, 1493 }, 1494 }, 1495 ], 1496 "createTime": "A String", # Output only. The time template was created. 1497 }</pre> 1498</div> 1499 1500<div class="method"> 1501 <code class="details" id="getIamPolicy">getIamPolicy(resource, x__xgafv=None)</code> 1502 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. 1503 1504Args: 1505 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required) 1506 x__xgafv: string, V1 error format. 1507 Allowed values 1508 1 - v1 error format 1509 2 - v2 error format 1510 1511Returns: 1512 An object of the form: 1513 1514 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy consists of a list of bindings. A binding binds a list of members to a role, where the members can be user accounts, Google groups, Google domains, and service accounts. A role is a named list of permissions defined by IAM.JSON Example 1515 # { 1516 # "bindings": [ 1517 # { 1518 # "role": "roles/owner", 1519 # "members": [ 1520 # "user:mike@example.com", 1521 # "group:admins@example.com", 1522 # "domain:google.com", 1523 # "serviceAccount:my-other-app@appspot.gserviceaccount.com" 1524 # ] 1525 # }, 1526 # { 1527 # "role": "roles/viewer", 1528 # "members": ["user:sean@example.com"] 1529 # } 1530 # ] 1531 # } 1532 # YAML Example 1533 # bindings: 1534 # - members: 1535 # - user:mike@example.com 1536 # - group:admins@example.com 1537 # - domain:google.com 1538 # - serviceAccount:my-other-app@appspot.gserviceaccount.com 1539 # role: roles/owner 1540 # - members: 1541 # - user:sean@example.com 1542 # role: roles/viewer 1543 # For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). 1544 "bindings": [ # Associates a list of members to a role. bindings with no members will result in an error. 1545 { # Associates members with a role. 1546 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner. 1547 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values: 1548 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. 1549 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. 1550 # user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com . 1551 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. 1552 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com. 1553 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. 1554 "A String", 1555 ], 1556 "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. 1557 # title: "User account presence" 1558 # description: "Determines whether the request has a user account" 1559 # expression: "size(request.user) > 0" 1560 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 1561 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.The application context of the containing message determines which well-known feature set of CEL is supported. 1562 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 1563 "title": "A String", # An 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. 1564 }, 1565 }, 1566 ], 1567 "etag": "A String", # 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.If no etag is provided in the call to setIamPolicy, then the existing policy is overwritten blindly. 1568 "version": 42, # Deprecated. 1569 }</pre> 1570</div> 1571 1572<div class="method"> 1573 <code class="details" id="instantiate">instantiate(name, body, x__xgafv=None)</code> 1574 <pre>Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata.On successful completion, Operation.response will be Empty. 1575 1576Args: 1577 name: string, Required. The "resource name" of the workflow template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} (required) 1578 body: object, The request body. (required) 1579 The object takes the form of: 1580 1581{ # A request to instantiate a workflow template. 1582 "instanceId": "A String", # Deprecated. Please use request_id field instead. 1583 "version": 42, # Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.This option cannot be used to instantiate a previous version of workflow template. 1584 "requestId": "A String", # Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. 1585 "parameters": { # Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 100 characters. 1586 "a_key": "A String", 1587 }, 1588 } 1589 1590 x__xgafv: string, V1 error format. 1591 Allowed values 1592 1 - v1 error format 1593 2 - v2 error format 1594 1595Returns: 1596 An object of the form: 1597 1598 { # This resource represents a long-running operation that is the result of a network API call. 1599 "response": { # 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. 1600 "a_key": "", # Properties of the object. Contains field @type with type URL. 1601 }, 1602 "metadata": { # 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. 1603 "a_key": "", # Properties of the object. Contains field @type with type URL. 1604 }, 1605 "done": 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. 1606 "name": "A String", # 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}. 1607 "error": { # 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. 1608 "message": "A String", # 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. 1609 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 1610 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 1611 { 1612 "a_key": "", # Properties of the object. Contains field @type with type URL. 1613 }, 1614 ], 1615 }, 1616 }</pre> 1617</div> 1618 1619<div class="method"> 1620 <code class="details" id="instantiateInline">instantiateInline(parent, body, instanceId=None, requestId=None, x__xgafv=None)</code> 1621 <pre>Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata.On successful completion, Operation.response will be Empty. 1622 1623Args: 1624 parent: string, Required. The "resource name" of the workflow template region, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region} (required) 1625 body: object, The request body. (required) 1626 The object takes the form of: 1627 1628{ # A Cloud Dataproc workflow template resource. 1629 "updateTime": "A String", # Output only. The time template was last updated. 1630 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 1631 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 1632 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 1633 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 1634 "a_key": "A String", 1635 }, 1636 }, 1637 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 1638 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 1639 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 1640 "a_key": "A String", 1641 }, 1642 "config": { # The cluster config. # Required. The cluster configuration. 1643 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 1644 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 1645 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 1646 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 1647 }, 1648 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 1649 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 1650 "optionalComponents": [ # The set of optional components to activate on the cluster. 1651 "A String", 1652 ], 1653 "properties": { # 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: 1654 # capacity-scheduler: capacity-scheduler.xml 1655 # core: core-site.xml 1656 # distcp: distcp-default.xml 1657 # hdfs: hdfs-site.xml 1658 # hive: hive-site.xml 1659 # mapred: mapred-site.xml 1660 # pig: pig.properties 1661 # spark: spark-defaults.conf 1662 # yarn: yarn-site.xmlFor more information, see Cluster properties. 1663 "a_key": "A String", 1664 }, 1665 }, 1666 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 1667 "gceClusterConfig": { # 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. 1668 "internalIpOnly": 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. 1669 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 1670 "values": [ # Optional. Corresponds to the label values of reservation resource. 1671 "A String", 1672 ], 1673 "consumeReservationType": "A String", # Optional. Type of reservation to consume 1674 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 1675 }, 1676 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 1677 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 1678 # projects/[project_id]/regions/global/default 1679 # default 1680 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 1681 "A String", 1682 ], 1683 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 1684 # roles/logging.logWriter 1685 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 1686 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 1687 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 1688 # projects/[project_id]/zones/[zone] 1689 # us-central1-f 1690 "subnetworkUri": "A String", # 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: 1691 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 1692 # projects/[project_id]/regions/us-east1/subnetworks/sub0 1693 # sub0 1694 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 1695 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 1696 # https://www.googleapis.com/auth/devstorage.read_write 1697 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 1698 # https://www.googleapis.com/auth/bigquery 1699 # https://www.googleapis.com/auth/bigtable.admin.table 1700 # https://www.googleapis.com/auth/bigtable.data 1701 # https://www.googleapis.com/auth/devstorage.full_control 1702 "A String", 1703 ], 1704 "metadata": { # 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)). 1705 "a_key": "A String", 1706 }, 1707 }, 1708 "autoscalingConfig": { # 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. 1709 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 1710 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 1711 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 1712 }, 1713 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 1714 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 1715 "a_key": "A String", 1716 }, 1717 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 1718 }, 1719 "workerConfig": { # Optional. 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. 1720 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1721 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1722 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1723 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1724 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1725 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1726 "A String", 1727 ], 1728 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1729 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1730 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1731 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1732 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1733 }, 1734 ], 1735 "managedGroupConfig": { # 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. 1736 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1737 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1738 }, 1739 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1740 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1741 "numLocalSsds": 42, # Optional. 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. 1742 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1743 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1744 }, 1745 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1746 }, 1747 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 1748 # ROLE=$(curl -H Metadata-Flavor:Google 1749 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 1750 # if [[ "${ROLE}" == 'Master' ]]; then 1751 # ... master specific actions ... 1752 # else 1753 # ... worker specific actions ... 1754 # fi 1755 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 1756 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 1757 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 1758 }, 1759 ], 1760 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 1761 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 1762 }, 1763 "secondaryWorkerConfig": { # Optional. 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. 1764 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1765 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1766 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1767 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1768 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1769 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1770 "A String", 1771 ], 1772 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1773 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1774 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1775 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1776 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1777 }, 1778 ], 1779 "managedGroupConfig": { # 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. 1780 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1781 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1782 }, 1783 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1784 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1785 "numLocalSsds": 42, # Optional. 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. 1786 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1787 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1788 }, 1789 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1790 }, 1791 "masterConfig": { # Optional. 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. 1792 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 1793 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 1794 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1795 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 1796 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 1797 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 1798 "A String", 1799 ], 1800 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 1801 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 1802 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 1803 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 1804 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 1805 }, 1806 ], 1807 "managedGroupConfig": { # 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. 1808 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 1809 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 1810 }, 1811 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 1812 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 1813 "numLocalSsds": 42, # Optional. 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. 1814 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 1815 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 1816 }, 1817 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 1818 }, 1819 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 1820 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 1821 "truststorePasswordUri": "A String", # 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. 1822 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 1823 "keyPasswordUri": "A String", # 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. 1824 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 1825 "tgtLifetimeHours": 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. 1826 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 1827 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 1828 "keystorePasswordUri": "A String", # 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. 1829 "crossRealmTrustSharedPasswordUri": "A String", # 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. 1830 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 1831 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 1832 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 1833 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 1834 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 1835 }, 1836 }, 1837 }, 1838 }, 1839 }, 1840 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 1841 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 1842 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 1843 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 1844 # Values in maps can be referenced by key: 1845 # labels'key' 1846 # placement.clusterSelector.clusterLabels'key' 1847 # placement.managedCluster.labels'key' 1848 # placement.clusterSelector.clusterLabels'key' 1849 # jobs'step-id'.labels'key' 1850 # Jobs in the jobs list can be referenced by step-id: 1851 # jobs'step-id'.hadoopJob.mainJarFileUri 1852 # jobs'step-id'.hiveJob.queryFileUri 1853 # jobs'step-id'.pySparkJob.mainPythonFileUri 1854 # jobs'step-id'.hadoopJob.jarFileUris0 1855 # jobs'step-id'.hadoopJob.archiveUris0 1856 # jobs'step-id'.hadoopJob.fileUris0 1857 # jobs'step-id'.pySparkJob.pythonFileUris0 1858 # Items in repeated fields can be referenced by a zero-based index: 1859 # jobs'step-id'.sparkJob.args0 1860 # Other examples: 1861 # jobs'step-id'.hadoopJob.properties'key' 1862 # jobs'step-id'.hadoopJob.args0 1863 # jobs'step-id'.hiveJob.scriptVariables'key' 1864 # jobs'step-id'.hadoopJob.mainJarFileUri 1865 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 1866 # placement.clusterSelector.clusterLabels 1867 # jobs'step-id'.sparkJob.args 1868 "A String", 1869 ], 1870 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 1871 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 1872 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 1873 "A String", 1874 ], 1875 }, 1876 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 1877 "values": [ # Required. List of allowed values for the parameter. 1878 "A String", 1879 ], 1880 }, 1881 }, 1882 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 1883 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 1884 }, 1885 ], 1886 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 1887 "a_key": "A String", 1888 }, 1889 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 1890 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 1891 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 1892 { # A job executed by the workflow. 1893 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 1894 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 1895 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 1896 "a_key": "A String", 1897 }, 1898 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1899 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1900 "a_key": "A String", 1901 }, 1902 }, 1903 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 1904 "A String", 1905 ], 1906 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1907 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1908 # "hiveJob": { 1909 # "queryList": { 1910 # "queries": [ 1911 # "query1", 1912 # "query2", 1913 # "query3;query4", 1914 # ] 1915 # } 1916 # } 1917 "A String", 1918 ], 1919 }, 1920 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 1921 "a_key": "A String", 1922 }, 1923 }, 1924 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 1925 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 1926 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 1927 "a_key": "A String", 1928 }, 1929 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1930 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1931 "a_key": "A String", 1932 }, 1933 }, 1934 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 1935 "A String", 1936 ], 1937 "queryList": { # A list of queries to run on a cluster. # A list of queries. 1938 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 1939 # "hiveJob": { 1940 # "queryList": { 1941 # "queries": [ 1942 # "query1", 1943 # "query2", 1944 # "query3;query4", 1945 # ] 1946 # } 1947 # } 1948 "A String", 1949 ], 1950 }, 1951 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 1952 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 1953 "a_key": "A String", 1954 }, 1955 }, 1956 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 1957 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1958 "A String", 1959 ], 1960 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1961 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1962 "a_key": "A String", 1963 }, 1964 }, 1965 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 1966 "A String", 1967 ], 1968 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 1969 "A String", 1970 ], 1971 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 1972 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 1973 "A String", 1974 ], 1975 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 1976 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 1977 "a_key": "A String", 1978 }, 1979 }, 1980 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 1981 "A String", 1982 ], 1983 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 1984 "a_key": "A String", 1985 }, 1986 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 1987 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 1988 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 1989 "A String", 1990 ], 1991 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 1992 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 1993 "a_key": "A String", 1994 }, 1995 }, 1996 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 1997 "A String", 1998 ], 1999 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 2000 "A String", 2001 ], 2002 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 2003 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 2004 "A String", 2005 ], 2006 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 2007 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 2008 "a_key": "A String", 2009 }, 2010 }, 2011 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 2012 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 2013 }, 2014 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 2015 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 2016 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 2017 "A String", 2018 ], 2019 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2020 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2021 "a_key": "A String", 2022 }, 2023 }, 2024 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 2025 "A String", 2026 ], 2027 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 2028 "A String", 2029 ], 2030 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 2031 "A String", 2032 ], 2033 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 2034 "A String", 2035 ], 2036 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 2037 "a_key": "A String", 2038 }, 2039 }, 2040 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 2041 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 2042 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 2043 "a_key": "A String", 2044 }, 2045 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 2046 "A String", 2047 ], 2048 "queryList": { # A list of queries to run on a cluster. # A list of queries. 2049 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 2050 # "hiveJob": { 2051 # "queryList": { 2052 # "queries": [ 2053 # "query1", 2054 # "query2", 2055 # "query3;query4", 2056 # ] 2057 # } 2058 # } 2059 "A String", 2060 ], 2061 }, 2062 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 2063 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 2064 "a_key": "A String", 2065 }, 2066 }, 2067 }, 2068 ], 2069 "createTime": "A String", # Output only. The time template was created. 2070} 2071 2072 instanceId: string, Deprecated. Please use request_id field instead. 2073 requestId: string, Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. 2074 x__xgafv: string, V1 error format. 2075 Allowed values 2076 1 - v1 error format 2077 2 - v2 error format 2078 2079Returns: 2080 An object of the form: 2081 2082 { # This resource represents a long-running operation that is the result of a network API call. 2083 "response": { # 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. 2084 "a_key": "", # Properties of the object. Contains field @type with type URL. 2085 }, 2086 "metadata": { # 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. 2087 "a_key": "", # Properties of the object. Contains field @type with type URL. 2088 }, 2089 "done": 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. 2090 "name": "A String", # 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}. 2091 "error": { # 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. 2092 "message": "A String", # 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. 2093 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 2094 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 2095 { 2096 "a_key": "", # Properties of the object. Contains field @type with type URL. 2097 }, 2098 ], 2099 }, 2100 }</pre> 2101</div> 2102 2103<div class="method"> 2104 <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</code> 2105 <pre>Lists workflows that match the specified filter in the request. 2106 2107Args: 2108 parent: string, Required. The "resource name" of the region, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region} (required) 2109 pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results. 2110 x__xgafv: string, V1 error format. 2111 Allowed values 2112 1 - v1 error format 2113 2 - v2 error format 2114 pageSize: integer, Optional. The maximum number of results to return in each response. 2115 2116Returns: 2117 An object of the form: 2118 2119 { # A response to a request to list workflow templates in a project. 2120 "templates": [ # Output only. WorkflowTemplates list. 2121 { # A Cloud Dataproc workflow template resource. 2122 "updateTime": "A String", # Output only. The time template was last updated. 2123 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 2124 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 2125 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 2126 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 2127 "a_key": "A String", 2128 }, 2129 }, 2130 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 2131 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 2132 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 2133 "a_key": "A String", 2134 }, 2135 "config": { # The cluster config. # Required. The cluster configuration. 2136 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 2137 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 2138 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 2139 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 2140 }, 2141 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 2142 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 2143 "optionalComponents": [ # The set of optional components to activate on the cluster. 2144 "A String", 2145 ], 2146 "properties": { # 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: 2147 # capacity-scheduler: capacity-scheduler.xml 2148 # core: core-site.xml 2149 # distcp: distcp-default.xml 2150 # hdfs: hdfs-site.xml 2151 # hive: hive-site.xml 2152 # mapred: mapred-site.xml 2153 # pig: pig.properties 2154 # spark: spark-defaults.conf 2155 # yarn: yarn-site.xmlFor more information, see Cluster properties. 2156 "a_key": "A String", 2157 }, 2158 }, 2159 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 2160 "gceClusterConfig": { # 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. 2161 "internalIpOnly": 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. 2162 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 2163 "values": [ # Optional. Corresponds to the label values of reservation resource. 2164 "A String", 2165 ], 2166 "consumeReservationType": "A String", # Optional. Type of reservation to consume 2167 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 2168 }, 2169 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 2170 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 2171 # projects/[project_id]/regions/global/default 2172 # default 2173 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 2174 "A String", 2175 ], 2176 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 2177 # roles/logging.logWriter 2178 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 2179 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 2180 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 2181 # projects/[project_id]/zones/[zone] 2182 # us-central1-f 2183 "subnetworkUri": "A String", # 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: 2184 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 2185 # projects/[project_id]/regions/us-east1/subnetworks/sub0 2186 # sub0 2187 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 2188 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 2189 # https://www.googleapis.com/auth/devstorage.read_write 2190 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 2191 # https://www.googleapis.com/auth/bigquery 2192 # https://www.googleapis.com/auth/bigtable.admin.table 2193 # https://www.googleapis.com/auth/bigtable.data 2194 # https://www.googleapis.com/auth/devstorage.full_control 2195 "A String", 2196 ], 2197 "metadata": { # 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)). 2198 "a_key": "A String", 2199 }, 2200 }, 2201 "autoscalingConfig": { # 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. 2202 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 2203 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 2204 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 2205 }, 2206 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 2207 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 2208 "a_key": "A String", 2209 }, 2210 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 2211 }, 2212 "workerConfig": { # Optional. 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. 2213 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2214 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2215 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2216 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2217 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2218 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2219 "A String", 2220 ], 2221 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2222 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2223 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2224 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2225 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2226 }, 2227 ], 2228 "managedGroupConfig": { # 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. 2229 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2230 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2231 }, 2232 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2233 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2234 "numLocalSsds": 42, # Optional. 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. 2235 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2236 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2237 }, 2238 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2239 }, 2240 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 2241 # ROLE=$(curl -H Metadata-Flavor:Google 2242 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 2243 # if [[ "${ROLE}" == 'Master' ]]; then 2244 # ... master specific actions ... 2245 # else 2246 # ... worker specific actions ... 2247 # fi 2248 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 2249 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 2250 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 2251 }, 2252 ], 2253 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 2254 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 2255 }, 2256 "secondaryWorkerConfig": { # Optional. 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. 2257 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2258 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2259 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2260 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2261 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2262 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2263 "A String", 2264 ], 2265 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2266 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2267 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2268 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2269 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2270 }, 2271 ], 2272 "managedGroupConfig": { # 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. 2273 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2274 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2275 }, 2276 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2277 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2278 "numLocalSsds": 42, # Optional. 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. 2279 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2280 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2281 }, 2282 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2283 }, 2284 "masterConfig": { # Optional. 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. 2285 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2286 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2287 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2288 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2289 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2290 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2291 "A String", 2292 ], 2293 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2294 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2295 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2296 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2297 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2298 }, 2299 ], 2300 "managedGroupConfig": { # 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. 2301 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2302 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2303 }, 2304 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2305 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2306 "numLocalSsds": 42, # Optional. 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. 2307 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2308 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2309 }, 2310 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2311 }, 2312 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 2313 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 2314 "truststorePasswordUri": "A String", # 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. 2315 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 2316 "keyPasswordUri": "A String", # 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. 2317 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 2318 "tgtLifetimeHours": 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. 2319 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 2320 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 2321 "keystorePasswordUri": "A String", # 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. 2322 "crossRealmTrustSharedPasswordUri": "A String", # 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. 2323 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 2324 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 2325 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 2326 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 2327 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 2328 }, 2329 }, 2330 }, 2331 }, 2332 }, 2333 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 2334 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 2335 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 2336 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 2337 # Values in maps can be referenced by key: 2338 # labels'key' 2339 # placement.clusterSelector.clusterLabels'key' 2340 # placement.managedCluster.labels'key' 2341 # placement.clusterSelector.clusterLabels'key' 2342 # jobs'step-id'.labels'key' 2343 # Jobs in the jobs list can be referenced by step-id: 2344 # jobs'step-id'.hadoopJob.mainJarFileUri 2345 # jobs'step-id'.hiveJob.queryFileUri 2346 # jobs'step-id'.pySparkJob.mainPythonFileUri 2347 # jobs'step-id'.hadoopJob.jarFileUris0 2348 # jobs'step-id'.hadoopJob.archiveUris0 2349 # jobs'step-id'.hadoopJob.fileUris0 2350 # jobs'step-id'.pySparkJob.pythonFileUris0 2351 # Items in repeated fields can be referenced by a zero-based index: 2352 # jobs'step-id'.sparkJob.args0 2353 # Other examples: 2354 # jobs'step-id'.hadoopJob.properties'key' 2355 # jobs'step-id'.hadoopJob.args0 2356 # jobs'step-id'.hiveJob.scriptVariables'key' 2357 # jobs'step-id'.hadoopJob.mainJarFileUri 2358 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 2359 # placement.clusterSelector.clusterLabels 2360 # jobs'step-id'.sparkJob.args 2361 "A String", 2362 ], 2363 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 2364 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 2365 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 2366 "A String", 2367 ], 2368 }, 2369 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 2370 "values": [ # Required. List of allowed values for the parameter. 2371 "A String", 2372 ], 2373 }, 2374 }, 2375 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 2376 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 2377 }, 2378 ], 2379 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 2380 "a_key": "A String", 2381 }, 2382 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 2383 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 2384 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 2385 { # A job executed by the workflow. 2386 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 2387 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 2388 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 2389 "a_key": "A String", 2390 }, 2391 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2392 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2393 "a_key": "A String", 2394 }, 2395 }, 2396 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 2397 "A String", 2398 ], 2399 "queryList": { # A list of queries to run on a cluster. # A list of queries. 2400 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 2401 # "hiveJob": { 2402 # "queryList": { 2403 # "queries": [ 2404 # "query1", 2405 # "query2", 2406 # "query3;query4", 2407 # ] 2408 # } 2409 # } 2410 "A String", 2411 ], 2412 }, 2413 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 2414 "a_key": "A String", 2415 }, 2416 }, 2417 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 2418 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 2419 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 2420 "a_key": "A String", 2421 }, 2422 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2423 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2424 "a_key": "A String", 2425 }, 2426 }, 2427 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 2428 "A String", 2429 ], 2430 "queryList": { # A list of queries to run on a cluster. # A list of queries. 2431 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 2432 # "hiveJob": { 2433 # "queryList": { 2434 # "queries": [ 2435 # "query1", 2436 # "query2", 2437 # "query3;query4", 2438 # ] 2439 # } 2440 # } 2441 "A String", 2442 ], 2443 }, 2444 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 2445 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 2446 "a_key": "A String", 2447 }, 2448 }, 2449 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 2450 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 2451 "A String", 2452 ], 2453 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2454 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2455 "a_key": "A String", 2456 }, 2457 }, 2458 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 2459 "A String", 2460 ], 2461 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 2462 "A String", 2463 ], 2464 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 2465 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 2466 "A String", 2467 ], 2468 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 2469 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 2470 "a_key": "A String", 2471 }, 2472 }, 2473 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 2474 "A String", 2475 ], 2476 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 2477 "a_key": "A String", 2478 }, 2479 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 2480 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 2481 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 2482 "A String", 2483 ], 2484 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2485 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2486 "a_key": "A String", 2487 }, 2488 }, 2489 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 2490 "A String", 2491 ], 2492 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 2493 "A String", 2494 ], 2495 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 2496 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 2497 "A String", 2498 ], 2499 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 2500 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 2501 "a_key": "A String", 2502 }, 2503 }, 2504 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 2505 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 2506 }, 2507 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 2508 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 2509 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 2510 "A String", 2511 ], 2512 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 2513 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 2514 "a_key": "A String", 2515 }, 2516 }, 2517 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 2518 "A String", 2519 ], 2520 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 2521 "A String", 2522 ], 2523 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 2524 "A String", 2525 ], 2526 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 2527 "A String", 2528 ], 2529 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 2530 "a_key": "A String", 2531 }, 2532 }, 2533 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 2534 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 2535 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 2536 "a_key": "A String", 2537 }, 2538 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 2539 "A String", 2540 ], 2541 "queryList": { # A list of queries to run on a cluster. # A list of queries. 2542 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 2543 # "hiveJob": { 2544 # "queryList": { 2545 # "queries": [ 2546 # "query1", 2547 # "query2", 2548 # "query3;query4", 2549 # ] 2550 # } 2551 # } 2552 "A String", 2553 ], 2554 }, 2555 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 2556 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 2557 "a_key": "A String", 2558 }, 2559 }, 2560 }, 2561 ], 2562 "createTime": "A String", # Output only. The time template was created. 2563 }, 2564 ], 2565 "nextPageToken": "A String", # 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 <code>ListWorkflowTemplatesRequest</code>. 2566 }</pre> 2567</div> 2568 2569<div class="method"> 2570 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 2571 <pre>Retrieves the next page of results. 2572 2573Args: 2574 previous_request: The request for the previous page. (required) 2575 previous_response: The response from the request for the previous page. (required) 2576 2577Returns: 2578 A request object that you can call 'execute()' on to request the next 2579 page. Returns None if there are no more items in the collection. 2580 </pre> 2581</div> 2582 2583<div class="method"> 2584 <code class="details" id="setIamPolicy">setIamPolicy(resource, body, x__xgafv=None)</code> 2585 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. 2586 2587Args: 2588 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required) 2589 body: object, The request body. (required) 2590 The object takes the form of: 2591 2592{ # Request message for SetIamPolicy method. 2593 "policy": { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy consists of a list of bindings. A binding binds a list of members to a role, where the members can be user accounts, Google groups, Google domains, and service accounts. A role is a named list of permissions defined by IAM.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. 2594 # { 2595 # "bindings": [ 2596 # { 2597 # "role": "roles/owner", 2598 # "members": [ 2599 # "user:mike@example.com", 2600 # "group:admins@example.com", 2601 # "domain:google.com", 2602 # "serviceAccount:my-other-app@appspot.gserviceaccount.com" 2603 # ] 2604 # }, 2605 # { 2606 # "role": "roles/viewer", 2607 # "members": ["user:sean@example.com"] 2608 # } 2609 # ] 2610 # } 2611 # YAML Example 2612 # bindings: 2613 # - members: 2614 # - user:mike@example.com 2615 # - group:admins@example.com 2616 # - domain:google.com 2617 # - serviceAccount:my-other-app@appspot.gserviceaccount.com 2618 # role: roles/owner 2619 # - members: 2620 # - user:sean@example.com 2621 # role: roles/viewer 2622 # For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). 2623 "bindings": [ # Associates a list of members to a role. bindings with no members will result in an error. 2624 { # Associates members with a role. 2625 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner. 2626 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values: 2627 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. 2628 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. 2629 # user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com . 2630 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. 2631 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com. 2632 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. 2633 "A String", 2634 ], 2635 "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. 2636 # title: "User account presence" 2637 # description: "Determines whether the request has a user account" 2638 # expression: "size(request.user) > 0" 2639 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 2640 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.The application context of the containing message determines which well-known feature set of CEL is supported. 2641 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 2642 "title": "A String", # An 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. 2643 }, 2644 }, 2645 ], 2646 "etag": "A String", # 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.If no etag is provided in the call to setIamPolicy, then the existing policy is overwritten blindly. 2647 "version": 42, # Deprecated. 2648 }, 2649 } 2650 2651 x__xgafv: string, V1 error format. 2652 Allowed values 2653 1 - v1 error format 2654 2 - v2 error format 2655 2656Returns: 2657 An object of the form: 2658 2659 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy consists of a list of bindings. A binding binds a list of members to a role, where the members can be user accounts, Google groups, Google domains, and service accounts. A role is a named list of permissions defined by IAM.JSON Example 2660 # { 2661 # "bindings": [ 2662 # { 2663 # "role": "roles/owner", 2664 # "members": [ 2665 # "user:mike@example.com", 2666 # "group:admins@example.com", 2667 # "domain:google.com", 2668 # "serviceAccount:my-other-app@appspot.gserviceaccount.com" 2669 # ] 2670 # }, 2671 # { 2672 # "role": "roles/viewer", 2673 # "members": ["user:sean@example.com"] 2674 # } 2675 # ] 2676 # } 2677 # YAML Example 2678 # bindings: 2679 # - members: 2680 # - user:mike@example.com 2681 # - group:admins@example.com 2682 # - domain:google.com 2683 # - serviceAccount:my-other-app@appspot.gserviceaccount.com 2684 # role: roles/owner 2685 # - members: 2686 # - user:sean@example.com 2687 # role: roles/viewer 2688 # For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). 2689 "bindings": [ # Associates a list of members to a role. bindings with no members will result in an error. 2690 { # Associates members with a role. 2691 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner. 2692 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values: 2693 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. 2694 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. 2695 # user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com . 2696 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. 2697 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com. 2698 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. 2699 "A String", 2700 ], 2701 "condition": { # Represents an expression text. Example: # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. 2702 # title: "User account presence" 2703 # description: "Determines whether the request has a user account" 2704 # expression: "size(request.user) > 0" 2705 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 2706 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.The application context of the containing message determines which well-known feature set of CEL is supported. 2707 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 2708 "title": "A String", # An 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. 2709 }, 2710 }, 2711 ], 2712 "etag": "A String", # 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.If no etag is provided in the call to setIamPolicy, then the existing policy is overwritten blindly. 2713 "version": 42, # Deprecated. 2714 }</pre> 2715</div> 2716 2717<div class="method"> 2718 <code class="details" id="testIamPermissions">testIamPermissions(resource, body, x__xgafv=None)</code> 2719 <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 "fail open" without warning. 2720 2721Args: 2722 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) 2723 body: object, The request body. (required) 2724 The object takes the form of: 2725 2726{ # Request message for TestIamPermissions method. 2727 "permissions": [ # The set of permissions to check for the resource. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). 2728 "A String", 2729 ], 2730 } 2731 2732 x__xgafv: string, V1 error format. 2733 Allowed values 2734 1 - v1 error format 2735 2 - v2 error format 2736 2737Returns: 2738 An object of the form: 2739 2740 { # Response message for TestIamPermissions method. 2741 "permissions": [ # A subset of TestPermissionsRequest.permissions that the caller is allowed. 2742 "A String", 2743 ], 2744 }</pre> 2745</div> 2746 2747<div class="method"> 2748 <code class="details" id="update">update(name, body, x__xgafv=None)</code> 2749 <pre>Updates (replaces) workflow template. The updated template must contain version that matches the current server version. 2750 2751Args: 2752 name: string, Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} (required) 2753 body: object, The request body. (required) 2754 The object takes the form of: 2755 2756{ # A Cloud Dataproc workflow template resource. 2757 "updateTime": "A String", # Output only. The time template was last updated. 2758 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 2759 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 2760 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 2761 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 2762 "a_key": "A String", 2763 }, 2764 }, 2765 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 2766 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 2767 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 2768 "a_key": "A String", 2769 }, 2770 "config": { # The cluster config. # Required. The cluster configuration. 2771 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 2772 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 2773 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 2774 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 2775 }, 2776 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 2777 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 2778 "optionalComponents": [ # The set of optional components to activate on the cluster. 2779 "A String", 2780 ], 2781 "properties": { # 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: 2782 # capacity-scheduler: capacity-scheduler.xml 2783 # core: core-site.xml 2784 # distcp: distcp-default.xml 2785 # hdfs: hdfs-site.xml 2786 # hive: hive-site.xml 2787 # mapred: mapred-site.xml 2788 # pig: pig.properties 2789 # spark: spark-defaults.conf 2790 # yarn: yarn-site.xmlFor more information, see Cluster properties. 2791 "a_key": "A String", 2792 }, 2793 }, 2794 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 2795 "gceClusterConfig": { # 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. 2796 "internalIpOnly": 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. 2797 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 2798 "values": [ # Optional. Corresponds to the label values of reservation resource. 2799 "A String", 2800 ], 2801 "consumeReservationType": "A String", # Optional. Type of reservation to consume 2802 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 2803 }, 2804 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 2805 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 2806 # projects/[project_id]/regions/global/default 2807 # default 2808 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 2809 "A String", 2810 ], 2811 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 2812 # roles/logging.logWriter 2813 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 2814 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 2815 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 2816 # projects/[project_id]/zones/[zone] 2817 # us-central1-f 2818 "subnetworkUri": "A String", # 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: 2819 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 2820 # projects/[project_id]/regions/us-east1/subnetworks/sub0 2821 # sub0 2822 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 2823 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 2824 # https://www.googleapis.com/auth/devstorage.read_write 2825 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 2826 # https://www.googleapis.com/auth/bigquery 2827 # https://www.googleapis.com/auth/bigtable.admin.table 2828 # https://www.googleapis.com/auth/bigtable.data 2829 # https://www.googleapis.com/auth/devstorage.full_control 2830 "A String", 2831 ], 2832 "metadata": { # 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)). 2833 "a_key": "A String", 2834 }, 2835 }, 2836 "autoscalingConfig": { # 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. 2837 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 2838 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 2839 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 2840 }, 2841 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 2842 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 2843 "a_key": "A String", 2844 }, 2845 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 2846 }, 2847 "workerConfig": { # Optional. 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. 2848 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2849 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2850 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2851 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2852 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2853 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2854 "A String", 2855 ], 2856 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2857 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2858 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2859 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2860 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2861 }, 2862 ], 2863 "managedGroupConfig": { # 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. 2864 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2865 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2866 }, 2867 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2868 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2869 "numLocalSsds": 42, # Optional. 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. 2870 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2871 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2872 }, 2873 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2874 }, 2875 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 2876 # ROLE=$(curl -H Metadata-Flavor:Google 2877 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 2878 # if [[ "${ROLE}" == 'Master' ]]; then 2879 # ... master specific actions ... 2880 # else 2881 # ... worker specific actions ... 2882 # fi 2883 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 2884 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 2885 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 2886 }, 2887 ], 2888 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 2889 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 2890 }, 2891 "secondaryWorkerConfig": { # Optional. 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. 2892 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2893 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2894 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2895 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2896 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2897 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2898 "A String", 2899 ], 2900 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2901 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2902 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2903 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2904 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2905 }, 2906 ], 2907 "managedGroupConfig": { # 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. 2908 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2909 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2910 }, 2911 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2912 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2913 "numLocalSsds": 42, # Optional. 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. 2914 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2915 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2916 }, 2917 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2918 }, 2919 "masterConfig": { # Optional. 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. 2920 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 2921 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 2922 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2923 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 2924 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 2925 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 2926 "A String", 2927 ], 2928 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 2929 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 2930 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 2931 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 2932 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 2933 }, 2934 ], 2935 "managedGroupConfig": { # 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. 2936 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 2937 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 2938 }, 2939 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 2940 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 2941 "numLocalSsds": 42, # Optional. 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. 2942 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 2943 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 2944 }, 2945 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 2946 }, 2947 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 2948 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 2949 "truststorePasswordUri": "A String", # 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. 2950 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 2951 "keyPasswordUri": "A String", # 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. 2952 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 2953 "tgtLifetimeHours": 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. 2954 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 2955 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 2956 "keystorePasswordUri": "A String", # 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. 2957 "crossRealmTrustSharedPasswordUri": "A String", # 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. 2958 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 2959 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 2960 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 2961 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 2962 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 2963 }, 2964 }, 2965 }, 2966 }, 2967 }, 2968 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 2969 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 2970 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 2971 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 2972 # Values in maps can be referenced by key: 2973 # labels'key' 2974 # placement.clusterSelector.clusterLabels'key' 2975 # placement.managedCluster.labels'key' 2976 # placement.clusterSelector.clusterLabels'key' 2977 # jobs'step-id'.labels'key' 2978 # Jobs in the jobs list can be referenced by step-id: 2979 # jobs'step-id'.hadoopJob.mainJarFileUri 2980 # jobs'step-id'.hiveJob.queryFileUri 2981 # jobs'step-id'.pySparkJob.mainPythonFileUri 2982 # jobs'step-id'.hadoopJob.jarFileUris0 2983 # jobs'step-id'.hadoopJob.archiveUris0 2984 # jobs'step-id'.hadoopJob.fileUris0 2985 # jobs'step-id'.pySparkJob.pythonFileUris0 2986 # Items in repeated fields can be referenced by a zero-based index: 2987 # jobs'step-id'.sparkJob.args0 2988 # Other examples: 2989 # jobs'step-id'.hadoopJob.properties'key' 2990 # jobs'step-id'.hadoopJob.args0 2991 # jobs'step-id'.hiveJob.scriptVariables'key' 2992 # jobs'step-id'.hadoopJob.mainJarFileUri 2993 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 2994 # placement.clusterSelector.clusterLabels 2995 # jobs'step-id'.sparkJob.args 2996 "A String", 2997 ], 2998 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 2999 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 3000 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 3001 "A String", 3002 ], 3003 }, 3004 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 3005 "values": [ # Required. List of allowed values for the parameter. 3006 "A String", 3007 ], 3008 }, 3009 }, 3010 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 3011 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 3012 }, 3013 ], 3014 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 3015 "a_key": "A String", 3016 }, 3017 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 3018 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 3019 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 3020 { # A job executed by the workflow. 3021 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 3022 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 3023 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 3024 "a_key": "A String", 3025 }, 3026 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3027 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3028 "a_key": "A String", 3029 }, 3030 }, 3031 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 3032 "A String", 3033 ], 3034 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3035 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3036 # "hiveJob": { 3037 # "queryList": { 3038 # "queries": [ 3039 # "query1", 3040 # "query2", 3041 # "query3;query4", 3042 # ] 3043 # } 3044 # } 3045 "A String", 3046 ], 3047 }, 3048 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 3049 "a_key": "A String", 3050 }, 3051 }, 3052 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 3053 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 3054 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 3055 "a_key": "A String", 3056 }, 3057 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3058 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3059 "a_key": "A String", 3060 }, 3061 }, 3062 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 3063 "A String", 3064 ], 3065 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3066 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3067 # "hiveJob": { 3068 # "queryList": { 3069 # "queries": [ 3070 # "query1", 3071 # "query2", 3072 # "query3;query4", 3073 # ] 3074 # } 3075 # } 3076 "A String", 3077 ], 3078 }, 3079 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 3080 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 3081 "a_key": "A String", 3082 }, 3083 }, 3084 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 3085 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3086 "A String", 3087 ], 3088 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3089 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3090 "a_key": "A String", 3091 }, 3092 }, 3093 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 3094 "A String", 3095 ], 3096 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 3097 "A String", 3098 ], 3099 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 3100 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 3101 "A String", 3102 ], 3103 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 3104 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 3105 "a_key": "A String", 3106 }, 3107 }, 3108 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 3109 "A String", 3110 ], 3111 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 3112 "a_key": "A String", 3113 }, 3114 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 3115 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 3116 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3117 "A String", 3118 ], 3119 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3120 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3121 "a_key": "A String", 3122 }, 3123 }, 3124 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 3125 "A String", 3126 ], 3127 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 3128 "A String", 3129 ], 3130 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 3131 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 3132 "A String", 3133 ], 3134 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 3135 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 3136 "a_key": "A String", 3137 }, 3138 }, 3139 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 3140 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 3141 }, 3142 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 3143 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 3144 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 3145 "A String", 3146 ], 3147 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3148 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3149 "a_key": "A String", 3150 }, 3151 }, 3152 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3153 "A String", 3154 ], 3155 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 3156 "A String", 3157 ], 3158 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 3159 "A String", 3160 ], 3161 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 3162 "A String", 3163 ], 3164 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 3165 "a_key": "A String", 3166 }, 3167 }, 3168 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 3169 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 3170 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 3171 "a_key": "A String", 3172 }, 3173 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 3174 "A String", 3175 ], 3176 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3177 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3178 # "hiveJob": { 3179 # "queryList": { 3180 # "queries": [ 3181 # "query1", 3182 # "query2", 3183 # "query3;query4", 3184 # ] 3185 # } 3186 # } 3187 "A String", 3188 ], 3189 }, 3190 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 3191 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 3192 "a_key": "A String", 3193 }, 3194 }, 3195 }, 3196 ], 3197 "createTime": "A String", # Output only. The time template was created. 3198} 3199 3200 x__xgafv: string, V1 error format. 3201 Allowed values 3202 1 - v1 error format 3203 2 - v2 error format 3204 3205Returns: 3206 An object of the form: 3207 3208 { # A Cloud Dataproc workflow template resource. 3209 "updateTime": "A String", # Output only. The time template was last updated. 3210 "placement": { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information. 3211 "clusterSelector": { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted. 3212 "zone": "A String", # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. 3213 "clusterLabels": { # Required. The cluster labels. Cluster must have all labels to match. 3214 "a_key": "A String", 3215 }, 3216 }, 3217 "managedCluster": { # Cluster that is managed by the workflow. # Optional. A cluster that is managed by the workflow. 3218 "clusterName": "A String", # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. 3219 "labels": { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster. 3220 "a_key": "A String", 3221 }, 3222 "config": { # The cluster config. # Required. The cluster configuration. 3223 "lifecycleConfig": { # Specifies the cluster auto-delete schedule configuration. # Optional. The config setting for auto delete cluster schedule. 3224 "autoDeleteTime": "A String", # Optional. The time when cluster will be auto-deleted. 3225 "idleDeleteTtl": "A String", # Optional. The duration to keep the cluster alive while idling. Passing this threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example: "10m", the minimum value, to delete the cluster when it has had no jobs running for 10 minutes. 3226 "autoDeleteTtl": "A String", # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the cluster 1 day after its creation.. 3227 }, 3228 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster. 3229 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must be one of the supported Cloud Dataproc Versions, such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version. If unspecified, it defaults to the latest Debian version. 3230 "optionalComponents": [ # The set of optional components to activate on the cluster. 3231 "A String", 3232 ], 3233 "properties": { # 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: 3234 # capacity-scheduler: capacity-scheduler.xml 3235 # core: core-site.xml 3236 # distcp: distcp-default.xml 3237 # hdfs: hdfs-site.xml 3238 # hive: hive-site.xml 3239 # mapred: mapred-site.xml 3240 # pig: pig.properties 3241 # spark: spark-defaults.conf 3242 # yarn: yarn-site.xmlFor more information, see Cluster properties. 3243 "a_key": "A String", 3244 }, 3245 }, 3246 "configBucket": "A String", # Optional. A Google 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's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Cloud Dataproc staging bucket). 3247 "gceClusterConfig": { # 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. 3248 "internalIpOnly": 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. 3249 "reservationAffinity": { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation. 3250 "values": [ # Optional. Corresponds to the label values of reservation resource. 3251 "A String", 3252 ], 3253 "consumeReservationType": "A String", # Optional. Type of reservation to consume 3254 "key": "A String", # Optional. Corresponds to the label key of reservation resource. 3255 }, 3256 "networkUri": "A String", # 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 "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples: 3257 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default 3258 # projects/[project_id]/regions/global/default 3259 # default 3260 "tags": [ # The Compute Engine tags to add to all instances (see Tagging instances). 3261 "A String", 3262 ], 3263 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Compute Engine service account. Custom service accounts need permissions equivalent to the following IAM roles: 3264 # roles/logging.logWriter 3265 # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts for more information). Example: [account_id]@[project_id].iam.gserviceaccount.com 3266 "zoneUri": "A String", # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Cloud 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: 3267 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] 3268 # projects/[project_id]/zones/[zone] 3269 # us-central1-f 3270 "subnetworkUri": "A String", # 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: 3271 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 3272 # projects/[project_id]/regions/us-east1/subnetworks/sub0 3273 # sub0 3274 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: 3275 # https://www.googleapis.com/auth/cloud.useraccounts.readonly 3276 # https://www.googleapis.com/auth/devstorage.read_write 3277 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: 3278 # https://www.googleapis.com/auth/bigquery 3279 # https://www.googleapis.com/auth/bigtable.admin.table 3280 # https://www.googleapis.com/auth/bigtable.data 3281 # https://www.googleapis.com/auth/devstorage.full_control 3282 "A String", 3283 ], 3284 "metadata": { # 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)). 3285 "a_key": "A String", 3286 }, 3287 }, 3288 "autoscalingConfig": { # 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. 3289 "policyUri": "A String", # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: 3290 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] 3291 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Cloud Dataproc region. 3292 }, 3293 "endpointConfig": { # Endpoint config for this cluster # Optional. Port/endpoint configuration for this cluster 3294 "httpPorts": { # Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. 3295 "a_key": "A String", 3296 }, 3297 "enableHttpPortAccess": True or False, # Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. 3298 }, 3299 "workerConfig": { # Optional. 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. 3300 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 3301 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 3302 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3303 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3304 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 3305 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 3306 "A String", 3307 ], 3308 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 3309 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 3310 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 3311 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 3312 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 3313 }, 3314 ], 3315 "managedGroupConfig": { # 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. 3316 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 3317 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 3318 }, 3319 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 3320 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 3321 "numLocalSsds": 42, # Optional. 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. 3322 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 3323 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 3324 }, 3325 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 3326 }, 3327 "initializationActions": [ # 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's <code>role</code> metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): 3328 # ROLE=$(curl -H Metadata-Flavor:Google 3329 # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) 3330 # if [[ "${ROLE}" == 'Master' ]]; then 3331 # ... master specific actions ... 3332 # else 3333 # ... worker specific actions ... 3334 # fi 3335 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion. 3336 "executionTimeout": "A String", # Optional. Amount of time executable has to complete. Default is 10 minutes. 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. 3337 "executableFile": "A String", # Required. Cloud Storage URI of executable file. 3338 }, 3339 ], 3340 "encryptionConfig": { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster. 3341 "gcePdKmsKeyName": "A String", # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. 3342 }, 3343 "secondaryWorkerConfig": { # Optional. 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. 3344 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 3345 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 3346 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3347 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3348 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 3349 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 3350 "A String", 3351 ], 3352 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 3353 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 3354 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 3355 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 3356 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 3357 }, 3358 ], 3359 "managedGroupConfig": { # 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. 3360 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 3361 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 3362 }, 3363 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 3364 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 3365 "numLocalSsds": 42, # Optional. 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. 3366 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 3367 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 3368 }, 3369 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 3370 }, 3371 "masterConfig": { # Optional. 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. 3372 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances. 3373 "machineTypeUri": "A String", # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: 3374 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3375 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 3376 # n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. 3377 "instanceNames": [ # Output only. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group. 3378 "A String", 3379 ], 3380 "imageUri": "A String", # Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. 3381 "accelerators": [ # Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. 3382 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine). 3383 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance. 3384 "acceleratorTypeUri": "A String", # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypesExamples * 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 Cloud Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. 3385 }, 3386 ], 3387 "managedGroupConfig": { # 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. 3388 "instanceTemplateName": "A String", # Output only. The name of the Instance Template used for the Managed Instance Group. 3389 "instanceGroupManagerName": "A String", # Output only. The name of the Instance Group Manager for this group. 3390 }, 3391 "minCpuPlatform": "A String", # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc→Minimum CPU Platform. 3392 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings. 3393 "numLocalSsds": 42, # Optional. 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. 3394 "bootDiskType": "A String", # Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). 3395 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB). 3396 }, 3397 "numInstances": 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. 3398 }, 3399 "securityConfig": { # Security related configuration, including encryption, Kerberos, etc. # Optional. Security related configuration. 3400 "kerberosConfig": { # Specifies Kerberos related configuration. # Kerberos related configuration. 3401 "truststorePasswordUri": "A String", # 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. 3402 "crossRealmTrustRealm": "A String", # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. 3403 "keyPasswordUri": "A String", # 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. 3404 "enableKerberos": True or False, # Optional. Flag to indicate whether to Kerberize the cluster. 3405 "tgtLifetimeHours": 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. 3406 "crossRealmTrustKdc": "A String", # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 3407 "rootPrincipalPasswordUri": "A String", # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password. 3408 "keystorePasswordUri": "A String", # 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. 3409 "crossRealmTrustSharedPasswordUri": "A String", # 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. 3410 "crossRealmTrustAdminServer": "A String", # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. 3411 "truststoreUri": "A String", # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 3412 "kmsKeyUri": "A String", # Required. The uri of the KMS key used to encrypt various sensitive files. 3413 "kdcDbKeyUri": "A String", # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. 3414 "keystoreUri": "A String", # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. 3415 }, 3416 }, 3417 }, 3418 }, 3419 }, 3420 "name": "A String", # Output only. The "resource name" of the template, as described in https://cloud.google.com/apis/design/resource_names of the form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} 3421 "parameters": [ # Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated. 3422 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector) 3423 "fields": [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax: 3424 # Values in maps can be referenced by key: 3425 # labels'key' 3426 # placement.clusterSelector.clusterLabels'key' 3427 # placement.managedCluster.labels'key' 3428 # placement.clusterSelector.clusterLabels'key' 3429 # jobs'step-id'.labels'key' 3430 # Jobs in the jobs list can be referenced by step-id: 3431 # jobs'step-id'.hadoopJob.mainJarFileUri 3432 # jobs'step-id'.hiveJob.queryFileUri 3433 # jobs'step-id'.pySparkJob.mainPythonFileUri 3434 # jobs'step-id'.hadoopJob.jarFileUris0 3435 # jobs'step-id'.hadoopJob.archiveUris0 3436 # jobs'step-id'.hadoopJob.fileUris0 3437 # jobs'step-id'.pySparkJob.pythonFileUris0 3438 # Items in repeated fields can be referenced by a zero-based index: 3439 # jobs'step-id'.sparkJob.args0 3440 # Other examples: 3441 # jobs'step-id'.hadoopJob.properties'key' 3442 # jobs'step-id'.hadoopJob.args0 3443 # jobs'step-id'.hiveJob.scriptVariables'key' 3444 # jobs'step-id'.hadoopJob.mainJarFileUri 3445 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: 3446 # placement.clusterSelector.clusterLabels 3447 # jobs'step-id'.sparkJob.args 3448 "A String", 3449 ], 3450 "validation": { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter's value. 3451 "regex": { # Validation based on regular expressions. # Validation based on regular expressions. 3452 "regexes": [ # Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). 3453 "A String", 3454 ], 3455 }, 3456 "values": { # Validation based on a list of allowed values. # Validation based on a list of allowed values. 3457 "values": [ # Required. List of allowed values for the parameter. 3458 "A String", 3459 ], 3460 }, 3461 }, 3462 "name": "A String", # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters. 3463 "description": "A String", # Optional. Brief description of the parameter. Must not exceed 1024 characters. 3464 }, 3465 ], 3466 "labels": { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.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 template. 3467 "a_key": "A String", 3468 }, 3469 "id": "A String", # Required. The template id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.. 3470 "version": 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request. 3471 "jobs": [ # Required. The Directed Acyclic Graph of Jobs to submit. 3472 { # A job executed by the workflow. 3473 "sparkSqlJob": { # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Job is a SparkSql job. 3474 "queryFileUri": "A String", # The HCFS URI of the script that contains SQL queries. 3475 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). 3476 "a_key": "A String", 3477 }, 3478 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3479 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3480 "a_key": "A String", 3481 }, 3482 }, 3483 "jarFileUris": [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. 3484 "A String", 3485 ], 3486 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3487 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3488 # "hiveJob": { 3489 # "queryList": { 3490 # "queries": [ 3491 # "query1", 3492 # "query2", 3493 # "query3;query4", 3494 # ] 3495 # } 3496 # } 3497 "A String", 3498 ], 3499 }, 3500 "properties": { # Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. 3501 "a_key": "A String", 3502 }, 3503 }, 3504 "pigJob": { # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Job is a Pig job. 3505 "queryFileUri": "A String", # The HCFS URI of the script that contains the Pig queries. 3506 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]). 3507 "a_key": "A String", 3508 }, 3509 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3510 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3511 "a_key": "A String", 3512 }, 3513 }, 3514 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. 3515 "A String", 3516 ], 3517 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3518 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3519 # "hiveJob": { 3520 # "queryList": { 3521 # "queries": [ 3522 # "query1", 3523 # "query2", 3524 # "query3;query4", 3525 # ] 3526 # } 3527 # } 3528 "A String", 3529 ], 3530 }, 3531 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 3532 "properties": { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code. 3533 "a_key": "A String", 3534 }, 3535 }, 3536 "hadoopJob": { # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Job is a Hadoop job. 3537 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3538 "A String", 3539 ], 3540 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3541 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3542 "a_key": "A String", 3543 }, 3544 }, 3545 "jarFileUris": [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks. 3546 "A String", 3547 ], 3548 "fileUris": [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks. 3549 "A String", 3550 ], 3551 "mainClass": "A String", # The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris. 3552 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip. 3553 "A String", 3554 ], 3555 "mainJarFileUri": "A String", # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' 3556 "properties": { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code. 3557 "a_key": "A String", 3558 }, 3559 }, 3560 "prerequisiteStepIds": [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. 3561 "A String", 3562 ], 3563 "labels": { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job. 3564 "a_key": "A String", 3565 }, 3566 "stepId": "A String", # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 3567 "sparkJob": { # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Job is a Spark job. 3568 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3569 "A String", 3570 ], 3571 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3572 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3573 "a_key": "A String", 3574 }, 3575 }, 3576 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks. 3577 "A String", 3578 ], 3579 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks. 3580 "A String", 3581 ], 3582 "mainClass": "A String", # The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. 3583 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. 3584 "A String", 3585 ], 3586 "mainJarFileUri": "A String", # The HCFS URI of the jar file that contains the main class. 3587 "properties": { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 3588 "a_key": "A String", 3589 }, 3590 }, 3591 "scheduling": { # Job scheduling options. # Optional. Job scheduling configuration. 3592 "maxFailuresPerHour": 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. 3593 }, 3594 "pysparkJob": { # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Job is a Pyspark job. 3595 "mainPythonFileUri": "A String", # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file. 3596 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks. 3597 "A String", 3598 ], 3599 "loggingConfig": { # The runtime logging config of the job. # Optional. The runtime log config for job execution. 3600 "driverLogLevels": { # The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' 3601 "a_key": "A String", 3602 }, 3603 }, 3604 "args": [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. 3605 "A String", 3606 ], 3607 "fileUris": [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks. 3608 "A String", 3609 ], 3610 "archiveUris": [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip. 3611 "A String", 3612 ], 3613 "pythonFileUris": [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip. 3614 "A String", 3615 ], 3616 "properties": { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. 3617 "a_key": "A String", 3618 }, 3619 }, 3620 "hiveJob": { # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Job is a Hive job. 3621 "queryFileUri": "A String", # The HCFS URI of the script that contains Hive queries. 3622 "scriptVariables": { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name="value";). 3623 "a_key": "A String", 3624 }, 3625 "jarFileUris": [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. 3626 "A String", 3627 ], 3628 "queryList": { # A list of queries to run on a cluster. # A list of queries. 3629 "queries": [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: 3630 # "hiveJob": { 3631 # "queryList": { 3632 # "queries": [ 3633 # "query1", 3634 # "query2", 3635 # "query3;query4", 3636 # ] 3637 # } 3638 # } 3639 "A String", 3640 ], 3641 }, 3642 "continueOnFailure": True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. 3643 "properties": { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. 3644 "a_key": "A String", 3645 }, 3646 }, 3647 }, 3648 ], 3649 "createTime": "A String", # Output only. The time template was created. 3650 }</pre> 3651</div> 3652 3653</body></html>