blob: 963f545ca74f0cca4745657e77e5a29dfdf429d3 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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_v1.html">Google Cloud Dataproc API</a> . <a href="dataproc_v1.projects.html">projects</a> . <a href="dataproc_v1.projects.regions.html">regions</a> . <a href="dataproc_v1.projects.regions.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(projectId, region, body, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a cluster in a project.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(projectId, region, clusterName, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a cluster in a project.</p>
83<p class="toc_element">
84 <code><a href="#diagnose">diagnose(projectId, region, clusterName, body, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseClusterOutputLocation.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080086<p class="toc_element">
87 <code><a href="#get">get(projectId, region, clusterName, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the resource representation for a cluster in a project.</p>
89<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080090 <code><a href="#list">list(projectId, region, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Lists all regions/{region}/clusters in a project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(projectId, region, clusterName, body, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Updates a cluster in a project.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="create">create(projectId, region, body, x__xgafv=None)</code>
101 <pre>Creates a cluster in a project.
102
103Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400104 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
105 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800106 body: object, The request body. (required)
107 The object takes the form of:
108
109{ # Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400110 "status": { # The status of a cluster and its instances. # Output-only. Cluster status.
111 "state": "A String", # Output-only. The cluster's state.
112 "stateStartTime": "A String", # Output-only. Time when this state was entered.
113 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
114 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800115 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400116 "clusterUuid": "A String", # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
117 "clusterName": "A String", # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
118 "projectId": "A String", # Required. The Google Cloud Platform project ID that the cluster belongs to.
119 "labels": { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800120 "a_key": "A String",
121 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400122 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800123 "yarnMetrics": { # The YARN metrics.
124 "a_key": "A String",
125 },
126 "hdfsMetrics": { # The HDFS metrics.
127 "a_key": "A String",
128 },
129 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400130 "statusHistory": [ # Output-only. The previous cluster status.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800131 { # The status of a cluster and its instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400132 "state": "A String", # Output-only. The cluster's state.
133 "stateStartTime": "A String", # Output-only. Time when this state was entered.
134 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
135 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800136 },
137 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400138 "config": { # The cluster config. # Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
139 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
140 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must match the regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (see Cloud Dataproc Versioning).
141 "properties": { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:
142 # capacity-scheduler: capacity-scheduler.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400143 # core: core-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400144 # distcp: distcp-default.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400145 # hdfs: hdfs-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146 # hive: hive-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400147 # mapred: mapred-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400148 # pig: pig.properties
149 # spark: spark-defaults.conf
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400150 # yarn: yarn-site.xml
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800151 "a_key": "A String",
152 },
153 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400154 "configBucket": "A String", # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
155 "gceClusterConfig": { # Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # Required. The shared Google Compute Engine config settings for all instances in a cluster.
156 "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.
157 "networkUri": "A String", # Optional. The Google 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). Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400158 "tags": [ # The Google Compute Engine tags to add to all instances (see Tagging instances).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800159 "A String",
160 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400161 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400162 # roles/logging.logWriter
163 # 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
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400164 "zoneUri": "A String", # Required. The zone where the Google Compute Engine cluster will be located. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone].
165 "subnetworkUri": "A String", # Optional. The Google Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
166 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400167 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
168 # https://www.googleapis.com/auth/devstorage.read_write
169 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
170 # https://www.googleapis.com/auth/bigquery
171 # https://www.googleapis.com/auth/bigtable.admin.table
172 # https://www.googleapis.com/auth/bigtable.data
173 # https://www.googleapis.com/auth/devstorage.full_control
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800174 "A String",
175 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400176 "metadata": { # The Google 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)).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800177 "a_key": "A String",
178 },
179 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400180 "workerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for worker instances in a cluster.
181 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
182 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
183 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800184 "A String",
185 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400186 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
187 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
188 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
189 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700190 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400191 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400192 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
193 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
194 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
195 },
196 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400197 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
198 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
199 "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.
200 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
201 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800202 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400203 "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 role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400204 # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
205 # if [[ "${ROLE}" == 'Master' ]]; then
206 # ... master specific actions ...
207 # else
208 # ... worker specific actions ...
209 # fi
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800210 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400211 "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.
212 "executableFile": "A String", # Required. Google Cloud Storage URI of executable file.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800213 },
214 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400215 "secondaryWorkerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
216 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
217 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
218 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800219 "A String",
220 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400221 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
222 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
223 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
224 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700225 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400226 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400227 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
228 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
229 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
230 },
231 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400232 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
233 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
234 "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.
235 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
236 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800237 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400238 "masterConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for the master instance in a cluster.
239 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
240 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
241 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800242 "A String",
243 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400244 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
245 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
246 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
247 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700248 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400249 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400250 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
251 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
252 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
253 },
254 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400255 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
256 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
257 "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.
258 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
259 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800260 },
261 },
262}
263
264 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800268
269Returns:
270 An object of the form:
271
272 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400273 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800274 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800275 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400276 "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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
277 # Simple to use and understand for most users
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400278 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400279 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400280 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400281 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
282 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
283 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800284 "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.
285 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
286 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
287 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800288 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800289 },
290 ],
291 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400292 "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.
293 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800294 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800295 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400296 "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 have the format of operations/some/unique/name.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="delete">delete(projectId, region, clusterName, x__xgafv=None)</code>
302 <pre>Deletes a cluster in a project.
303
304Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400305 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
306 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
307 clusterName: string, Required. The cluster name. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800308 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800312
313Returns:
314 An object of the form:
315
316 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400317 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800318 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800319 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400320 "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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
321 # Simple to use and understand for most users
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400322 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400323 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400324 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400325 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
326 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
327 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800328 "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.
329 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
330 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
331 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800332 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800333 },
334 ],
335 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400336 "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.
337 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800338 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800339 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400340 "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 have the format of operations/some/unique/name.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800341 }</pre>
342</div>
343
344<div class="method">
345 <code class="details" id="diagnose">diagnose(projectId, region, clusterName, body, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400346 <pre>Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseClusterOutputLocation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800347
348Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400349 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
350 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
351 clusterName: string, Required. The cluster name. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800352 body: object, The request body. (required)
353 The object takes the form of:
354
355{ # A request to collect cluster diagnostic information.
356 }
357
358 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400359 Allowed values
360 1 - v1 error format
361 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800362
363Returns:
364 An object of the form:
365
366 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400367 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800368 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800369 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400370 "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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
371 # Simple to use and understand for most users
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400372 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400373 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400374 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400375 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
376 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
377 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800378 "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.
379 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
380 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
381 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800382 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800383 },
384 ],
385 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400386 "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.
387 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800388 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800389 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400390 "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 have the format of operations/some/unique/name.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800391 }</pre>
392</div>
393
394<div class="method">
395 <code class="details" id="get">get(projectId, region, clusterName, x__xgafv=None)</code>
396 <pre>Gets the resource representation for a cluster in a project.
397
398Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400399 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
400 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
401 clusterName: string, Required. The cluster name. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800402 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400403 Allowed values
404 1 - v1 error format
405 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800406
407Returns:
408 An object of the form:
409
410 { # Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400411 "status": { # The status of a cluster and its instances. # Output-only. Cluster status.
412 "state": "A String", # Output-only. The cluster's state.
413 "stateStartTime": "A String", # Output-only. Time when this state was entered.
414 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
415 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800416 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400417 "clusterUuid": "A String", # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
418 "clusterName": "A String", # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
419 "projectId": "A String", # Required. The Google Cloud Platform project ID that the cluster belongs to.
420 "labels": { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800421 "a_key": "A String",
422 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400423 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800424 "yarnMetrics": { # The YARN metrics.
425 "a_key": "A String",
426 },
427 "hdfsMetrics": { # The HDFS metrics.
428 "a_key": "A String",
429 },
430 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400431 "statusHistory": [ # Output-only. The previous cluster status.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800432 { # The status of a cluster and its instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400433 "state": "A String", # Output-only. The cluster's state.
434 "stateStartTime": "A String", # Output-only. Time when this state was entered.
435 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
436 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800437 },
438 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400439 "config": { # The cluster config. # Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
440 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
441 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must match the regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (see Cloud Dataproc Versioning).
442 "properties": { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:
443 # capacity-scheduler: capacity-scheduler.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400444 # core: core-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400445 # distcp: distcp-default.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400446 # hdfs: hdfs-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400447 # hive: hive-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400448 # mapred: mapred-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400449 # pig: pig.properties
450 # spark: spark-defaults.conf
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400451 # yarn: yarn-site.xml
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800452 "a_key": "A String",
453 },
454 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400455 "configBucket": "A String", # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
456 "gceClusterConfig": { # Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # Required. The shared Google Compute Engine config settings for all instances in a cluster.
457 "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.
458 "networkUri": "A String", # Optional. The Google 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). Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400459 "tags": [ # The Google Compute Engine tags to add to all instances (see Tagging instances).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800460 "A String",
461 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400462 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400463 # roles/logging.logWriter
464 # 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
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400465 "zoneUri": "A String", # Required. The zone where the Google Compute Engine cluster will be located. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone].
466 "subnetworkUri": "A String", # Optional. The Google Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
467 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400468 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
469 # https://www.googleapis.com/auth/devstorage.read_write
470 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
471 # https://www.googleapis.com/auth/bigquery
472 # https://www.googleapis.com/auth/bigtable.admin.table
473 # https://www.googleapis.com/auth/bigtable.data
474 # https://www.googleapis.com/auth/devstorage.full_control
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800475 "A String",
476 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400477 "metadata": { # The Google 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)).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800478 "a_key": "A String",
479 },
480 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400481 "workerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for worker instances in a cluster.
482 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
483 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
484 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800485 "A String",
486 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400487 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
488 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
489 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
490 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700491 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400492 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400493 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
494 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
495 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
496 },
497 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400498 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
499 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
500 "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.
501 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
502 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800503 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400504 "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 role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400505 # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
506 # if [[ "${ROLE}" == 'Master' ]]; then
507 # ... master specific actions ...
508 # else
509 # ... worker specific actions ...
510 # fi
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800511 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400512 "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.
513 "executableFile": "A String", # Required. Google Cloud Storage URI of executable file.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800514 },
515 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400516 "secondaryWorkerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
517 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
518 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
519 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800520 "A String",
521 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400522 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
523 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
524 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
525 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700526 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400527 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400528 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
529 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
530 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
531 },
532 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400533 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
534 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
535 "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.
536 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
537 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800538 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400539 "masterConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for the master instance in a cluster.
540 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
541 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
542 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800543 "A String",
544 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400545 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
546 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
547 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
548 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700549 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400550 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400551 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
552 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
553 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
554 },
555 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400556 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
557 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
558 "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.
559 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
560 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800561 },
562 },
563 }</pre>
564</div>
565
566<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800567 <code class="details" id="list">list(projectId, region, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800568 <pre>Lists all regions/{region}/clusters in a project.
569
570Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400571 projectId: string, Required. The ID of the Google Cloud Platform project that the cluster belongs to. (required)
572 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
573 pageSize: integer, Optional. The standard List page size.
574 filter: string, Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *
575 pageToken: string, Optional. The standard List page token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800576 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400577 Allowed values
578 1 - v1 error format
579 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800580
581Returns:
582 An object of the form:
583
584 { # The list of all clusters in a project.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400585 "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 ListClustersRequest.
586 "clusters": [ # Output-only. The clusters in the project.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800587 { # Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400588 "status": { # The status of a cluster and its instances. # Output-only. Cluster status.
589 "state": "A String", # Output-only. The cluster's state.
590 "stateStartTime": "A String", # Output-only. Time when this state was entered.
591 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
592 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800593 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400594 "clusterUuid": "A String", # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
595 "clusterName": "A String", # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
596 "projectId": "A String", # Required. The Google Cloud Platform project ID that the cluster belongs to.
597 "labels": { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800598 "a_key": "A String",
599 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400600 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800601 "yarnMetrics": { # The YARN metrics.
602 "a_key": "A String",
603 },
604 "hdfsMetrics": { # The HDFS metrics.
605 "a_key": "A String",
606 },
607 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400608 "statusHistory": [ # Output-only. The previous cluster status.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800609 { # The status of a cluster and its instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400610 "state": "A String", # Output-only. The cluster's state.
611 "stateStartTime": "A String", # Output-only. Time when this state was entered.
612 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
613 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800614 },
615 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400616 "config": { # The cluster config. # Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
617 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
618 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must match the regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (see Cloud Dataproc Versioning).
619 "properties": { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:
620 # capacity-scheduler: capacity-scheduler.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400621 # core: core-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400622 # distcp: distcp-default.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400623 # hdfs: hdfs-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400624 # hive: hive-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400625 # mapred: mapred-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400626 # pig: pig.properties
627 # spark: spark-defaults.conf
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400628 # yarn: yarn-site.xml
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800629 "a_key": "A String",
630 },
631 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400632 "configBucket": "A String", # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
633 "gceClusterConfig": { # Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # Required. The shared Google Compute Engine config settings for all instances in a cluster.
634 "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.
635 "networkUri": "A String", # Optional. The Google 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). Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400636 "tags": [ # The Google Compute Engine tags to add to all instances (see Tagging instances).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800637 "A String",
638 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400639 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400640 # roles/logging.logWriter
641 # 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
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400642 "zoneUri": "A String", # Required. The zone where the Google Compute Engine cluster will be located. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone].
643 "subnetworkUri": "A String", # Optional. The Google Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
644 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400645 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
646 # https://www.googleapis.com/auth/devstorage.read_write
647 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
648 # https://www.googleapis.com/auth/bigquery
649 # https://www.googleapis.com/auth/bigtable.admin.table
650 # https://www.googleapis.com/auth/bigtable.data
651 # https://www.googleapis.com/auth/devstorage.full_control
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800652 "A String",
653 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400654 "metadata": { # The Google 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)).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800655 "a_key": "A String",
656 },
657 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400658 "workerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for worker instances in a cluster.
659 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
660 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
661 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800662 "A String",
663 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400664 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
665 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
666 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
667 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700668 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400669 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400670 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
671 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
672 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
673 },
674 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400675 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
676 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
677 "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.
678 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
679 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800680 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400681 "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 role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400682 # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
683 # if [[ "${ROLE}" == 'Master' ]]; then
684 # ... master specific actions ...
685 # else
686 # ... worker specific actions ...
687 # fi
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800688 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400689 "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.
690 "executableFile": "A String", # Required. Google Cloud Storage URI of executable file.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800691 },
692 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400693 "secondaryWorkerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
694 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
695 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
696 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800697 "A String",
698 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400699 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
700 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
701 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
702 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700703 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400704 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400705 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
706 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
707 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
708 },
709 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400710 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
711 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
712 "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.
713 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
714 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800715 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400716 "masterConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for the master instance in a cluster.
717 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
718 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
719 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800720 "A String",
721 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400722 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
723 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google 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.
Thomas Coffee2f245372017-03-27 10:39:26 -0700726 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400727 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400728 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
729 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
730 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
731 },
732 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400733 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
734 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
735 "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.
736 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
737 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800738 },
739 },
740 },
741 ],
742 }</pre>
743</div>
744
745<div class="method">
746 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
747 <pre>Retrieves the next page of results.
748
749Args:
750 previous_request: The request for the previous page. (required)
751 previous_response: The response from the request for the previous page. (required)
752
753Returns:
754 A request object that you can call 'execute()' on to request the next
755 page. Returns None if there are no more items in the collection.
756 </pre>
757</div>
758
759<div class="method">
760 <code class="details" id="patch">patch(projectId, region, clusterName, body, updateMask=None, x__xgafv=None)</code>
761 <pre>Updates a cluster in a project.
762
763Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400764 projectId: string, Required. The ID of the Google Cloud Platform project the cluster belongs to. (required)
765 region: string, Required. The Cloud Dataproc region in which to handle the request. (required)
766 clusterName: string, Required. The cluster name. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800767 body: object, The request body. (required)
768 The object takes the form of:
769
770{ # Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400771 "status": { # The status of a cluster and its instances. # Output-only. Cluster status.
772 "state": "A String", # Output-only. The cluster's state.
773 "stateStartTime": "A String", # Output-only. Time when this state was entered.
774 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
775 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800776 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400777 "clusterUuid": "A String", # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
778 "clusterName": "A String", # Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
779 "projectId": "A String", # Required. The Google Cloud Platform project ID that the cluster belongs to.
780 "labels": { # Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800781 "a_key": "A String",
782 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400783 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release. # Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800784 "yarnMetrics": { # The YARN metrics.
785 "a_key": "A String",
786 },
787 "hdfsMetrics": { # The HDFS metrics.
788 "a_key": "A String",
789 },
790 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400791 "statusHistory": [ # Output-only. The previous cluster status.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800792 { # The status of a cluster and its instances.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400793 "state": "A String", # Output-only. The cluster's state.
794 "stateStartTime": "A String", # Output-only. Time when this state was entered.
795 "substate": "A String", # Output-only. Additional state information that includes status reported by the agent.
796 "detail": "A String", # Output-only. Optional details of cluster's state.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800797 },
798 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400799 "config": { # The cluster config. # Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
800 "softwareConfig": { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
801 "imageVersion": "A String", # Optional. The version of software inside the cluster. It must match the regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (see Cloud Dataproc Versioning).
802 "properties": { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:
803 # capacity-scheduler: capacity-scheduler.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400804 # core: core-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400805 # distcp: distcp-default.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400806 # hdfs: hdfs-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400807 # hive: hive-site.xml
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400808 # mapred: mapred-site.xml
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400809 # pig: pig.properties
810 # spark: spark-defaults.conf
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400811 # yarn: yarn-site.xml
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800812 "a_key": "A String",
813 },
814 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400815 "configBucket": "A String", # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate 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 it will create and manage this project-level, per-location bucket for you.
816 "gceClusterConfig": { # Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # Required. The shared Google Compute Engine config settings for all instances in a cluster.
817 "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.
818 "networkUri": "A String", # Optional. The Google 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). Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400819 "tags": [ # The Google Compute Engine tags to add to all instances (see Tagging instances).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800820 "A String",
821 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400822 "serviceAccount": "A String", # Optional. The service account of the instances. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400823 # roles/logging.logWriter
824 # 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
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400825 "zoneUri": "A String", # Required. The zone where the Google Compute Engine cluster will be located. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone].
826 "subnetworkUri": "A String", # Optional. The Google Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
827 "serviceAccountScopes": [ # Optional. The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400828 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
829 # https://www.googleapis.com/auth/devstorage.read_write
830 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
831 # https://www.googleapis.com/auth/bigquery
832 # https://www.googleapis.com/auth/bigtable.admin.table
833 # https://www.googleapis.com/auth/bigtable.data
834 # https://www.googleapis.com/auth/devstorage.full_control
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800835 "A String",
836 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400837 "metadata": { # The Google 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)).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800838 "a_key": "A String",
839 },
840 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400841 "workerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for worker instances in a cluster.
842 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
843 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
844 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800845 "A String",
846 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400847 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
848 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
849 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
850 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700851 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400852 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400853 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
854 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
855 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
856 },
857 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400858 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
859 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
860 "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.
861 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
862 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800863 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400864 "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 role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
866 # if [[ "${ROLE}" == 'Master' ]]; then
867 # ... master specific actions ...
868 # else
869 # ... worker specific actions ...
870 # fi
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800871 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400872 "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.
873 "executableFile": "A String", # Required. Google Cloud Storage URI of executable file.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800874 },
875 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400876 "secondaryWorkerConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
877 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
878 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
879 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800880 "A String",
881 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400882 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
883 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
884 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
885 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700886 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400887 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400888 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
889 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
890 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
891 },
892 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400893 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
894 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
895 "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.
896 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
897 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800898 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400899 "masterConfig": { # Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Google Compute Engine config settings for the master instance in a cluster.
900 "numInstances": 42, # Required. The number of VM instances in the instance group. For master instance groups, must be set to 1.
901 "machineTypeUri": "A String", # Required. The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
902 "instanceNames": [ # Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800903 "A String",
904 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400905 "imageUri": "A String", # Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.
906 "managedGroupConfig": { # Specifies the resources used to actively manage an instance group. # Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
907 "instanceTemplateName": "A String", # Output-only. The name of the Instance Template used for the Managed Instance Group.
908 "instanceGroupManagerName": "A String", # Output-only. The name of the Instance Group Manager for this group.
Thomas Coffee2f245372017-03-27 10:39:26 -0700909 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400910 "accelerators": [ # Optional. The Google Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400911 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
912 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
913 "acceleratorTypeUri": "A String", # Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)
914 },
915 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400916 "isPreemptible": True or False, # Optional. Specifies that this instance group contains preemptible instances.
917 "diskConfig": { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
918 "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.
919 "bootDiskSizeGb": 42, # Optional. Size in GB of the boot disk (default is 500GB).
920 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800921 },
922 },
923}
924
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400925 updateMask: string, Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400926{
927 "config":{
928 "workerConfig":{
929 "numInstances":"5"
930 }
931 }
932}
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400933Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400934{
935 "config":{
936 "secondaryWorkerConfig":{
937 "numInstances":"5"
938 }
939 }
940}
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400941<strong>Note:</strong> Currently, only the following fields can be updated:<table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.num_instances</em></strong></td> <td>Resize primary worker group</td> </tr> <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800942 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400943 Allowed values
944 1 - v1 error format
945 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800946
947Returns:
948 An object of the form:
949
950 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400951 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800952 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800953 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400954 "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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
955 # Simple to use and understand for most users
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400956 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400957 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400958 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400959 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
960 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
961 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800962 "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.
963 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
964 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
965 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800966 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800967 },
968 ],
969 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400970 "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.
971 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800972 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800973 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400974 "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 have the format of operations/some/unique/name.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800975 }</pre>
976</div>
977
978</body></html>