blob: 7aca002d8d57d98f7b5c7ef1396f37fbd8543bca [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dataproc_v1beta1.html">Google Cloud Dataproc API</a> . <a href="dataproc_v1beta1.projects.html">projects</a> . <a href="dataproc_v1beta1.projects.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(projectId, 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, 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, clusterName, body, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseClusterOutputLocation`.</p>
86<p class="toc_element">
87 <code><a href="#get">get(projectId, 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, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070091<p class="firstline">Lists all 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, 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, body, x__xgafv=None)</code>
101 <pre>Creates a cluster in a project.
102
103Args:
104 projectId: string, [Required] The ID of the Google Cloud Platform project that the cluster belongs to. (required)
105 body: object, The request body. (required)
106 The object takes the form of:
107
108{ # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
109 "status": { # The status of a cluster and its instances. # [Output-only] Cluster status.
110 "state": "A String", # The cluster's state.
111 "stateStartTime": "A String", # Time when this state was entered.
112 "detail": "A String", # Optional details of cluster's state.
113 },
114 "statusHistory": [ # [Output-only] Previous cluster statuses.
115 { # The status of a cluster and its instances.
116 "state": "A String", # The cluster's state.
117 "stateStartTime": "A String", # Time when this state was entered.
118 "detail": "A String", # Optional details of cluster's state.
119 },
120 ],
121 "clusterUuid": "A String", # [Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
122 "clusterName": "A String", # [Required] The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
123 "projectId": "A String", # [Required] The Google Cloud Platform project ID that the cluster belongs to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800124 "labels": { # [Optional] The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given cluster.
125 "a_key": "A String",
126 },
127 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
128 "yarnMetrics": { # The YARN metrics.
129 "a_key": "A String",
130 },
131 "hdfsMetrics": { # The HDFS metrics.
132 "a_key": "A String",
133 },
134 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700135 "configuration": { # The cluster configuration. # [Required] The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
136 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # [Optional] The configuration settings for software inside the cluster.
137 "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](/dataproc/versioning)).
138 "properties": { # [Optional] The properties to set on daemon configuration files. Property keys are specified in "prefix:property" format, such as "core:fs.defaultFS". The following are supported prefixes and their mappings: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defaults.conf
139 "a_key": "A String",
140 },
141 },
142 "gceClusterConfiguration": { # Common configuration settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # [Required] The shared Google Compute Engine configuration settings for all instances in a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800143 "internalIpOnly": True or False, # If true, all instances in the cluser 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 restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700144 "networkUri": "A String", # 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 https://cloud.google.com/compute/docs/subnetworks for more information). Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
145 "tags": [ # The Google Compute Engine tags to add to all instances.
146 "A String",
147 ],
148 "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]`.
149 "subnetworkUri": "A String", # 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`.
150 "serviceAccountScopes": [ # The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - https://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.com/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - https://www.googleapis.com/auth/devstorage.full_control
151 "A String",
152 ],
153 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
154 "a_key": "A String",
155 },
156 },
157 "configurationBucket": "A String", # [Optional] A Google Cloud Storage staging bucket used for sharing generated SSH keys and configuration. 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.
158 "masterConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for the master instance in a cluster.
159 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
160 "machineTypeUri": "A String", # 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`.
161 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
162 "A String",
163 ],
164 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
165 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
166 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
167 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
168 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
169 },
170 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
171 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
172 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
173 },
174 },
175 "initializationActions": [ # [Optional] Commands to execute on each node after configuration 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: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
176 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
177 "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.
178 "executableFile": "A String", # [Required] Google Cloud Storage URI of executable file.
179 },
180 ],
181 "secondaryWorkerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for additional worker instances in a cluster.
182 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
183 "machineTypeUri": "A String", # 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`.
184 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
185 "A String",
186 ],
187 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
188 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
189 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
190 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
191 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
192 },
193 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
194 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
195 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
196 },
197 },
198 "workerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for worker instances in a cluster.
199 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
200 "machineTypeUri": "A String", # 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`.
201 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
202 "A String",
203 ],
204 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
205 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
206 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
207 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
208 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
209 },
210 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
211 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
212 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
213 },
214 },
215 },
216}
217
218 x__xgafv: string, V1 error format.
219
220Returns:
221 An object of the form:
222
223 { # This resource represents a long-running operation that is the result of a network API call.
224 "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 -0800225 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700226 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800227 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure or cancellation.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700228 "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.
229 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
230 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
231 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800232 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700233 },
234 ],
235 },
236 "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.
237 "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`.
238 "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 -0800239 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700240 },
241 }</pre>
242</div>
243
244<div class="method">
245 <code class="details" id="delete">delete(projectId, clusterName, x__xgafv=None)</code>
246 <pre>Deletes a cluster in a project.
247
248Args:
249 projectId: string, [Required] The ID of the Google Cloud Platform project that the cluster belongs to. (required)
250 clusterName: string, [Required] The cluster name. (required)
251 x__xgafv: string, V1 error format.
252
253Returns:
254 An object of the form:
255
256 { # This resource represents a long-running operation that is the result of a network API call.
257 "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 -0800258 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700259 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800260 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure or cancellation.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700261 "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.
262 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
263 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
264 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800265 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700266 },
267 ],
268 },
269 "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.
270 "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`.
271 "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 -0800272 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700273 },
274 }</pre>
275</div>
276
277<div class="method">
278 <code class="details" id="diagnose">diagnose(projectId, clusterName, body, x__xgafv=None)</code>
279 <pre>Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseClusterOutputLocation`.
280
281Args:
282 projectId: string, [Required] The ID of the Google Cloud Platform project that the cluster belongs to. (required)
283 clusterName: string, [Required] The cluster name. (required)
284 body: object, The request body. (required)
285 The object takes the form of:
286
287{ # A request to collect cluster diagnostic information.
288 }
289
290 x__xgafv: string, V1 error format.
291
292Returns:
293 An object of the form:
294
295 { # This resource represents a long-running operation that is the result of a network API call.
296 "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 -0800297 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700298 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800299 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure or cancellation.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700300 "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.
301 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
302 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
303 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800304 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700305 },
306 ],
307 },
308 "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.
309 "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`.
310 "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 -0800311 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700312 },
313 }</pre>
314</div>
315
316<div class="method">
317 <code class="details" id="get">get(projectId, clusterName, x__xgafv=None)</code>
318 <pre>Gets the resource representation for a cluster in a project.
319
320Args:
321 projectId: string, [Required] The ID of the Google Cloud Platform project that the cluster belongs to. (required)
322 clusterName: string, [Required] The cluster name. (required)
323 x__xgafv: string, V1 error format.
324
325Returns:
326 An object of the form:
327
328 { # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
329 "status": { # The status of a cluster and its instances. # [Output-only] Cluster status.
330 "state": "A String", # The cluster's state.
331 "stateStartTime": "A String", # Time when this state was entered.
332 "detail": "A String", # Optional details of cluster's state.
333 },
334 "statusHistory": [ # [Output-only] Previous cluster statuses.
335 { # The status of a cluster and its instances.
336 "state": "A String", # The cluster's state.
337 "stateStartTime": "A String", # Time when this state was entered.
338 "detail": "A String", # Optional details of cluster's state.
339 },
340 ],
341 "clusterUuid": "A String", # [Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
342 "clusterName": "A String", # [Required] The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
343 "projectId": "A String", # [Required] The Google Cloud Platform project ID that the cluster belongs to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800344 "labels": { # [Optional] The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given cluster.
345 "a_key": "A String",
346 },
347 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
348 "yarnMetrics": { # The YARN metrics.
349 "a_key": "A String",
350 },
351 "hdfsMetrics": { # The HDFS metrics.
352 "a_key": "A String",
353 },
354 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700355 "configuration": { # The cluster configuration. # [Required] The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
356 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # [Optional] The configuration settings for software inside the cluster.
357 "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](/dataproc/versioning)).
358 "properties": { # [Optional] The properties to set on daemon configuration files. Property keys are specified in "prefix:property" format, such as "core:fs.defaultFS". The following are supported prefixes and their mappings: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defaults.conf
359 "a_key": "A String",
360 },
361 },
362 "gceClusterConfiguration": { # Common configuration settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # [Required] The shared Google Compute Engine configuration settings for all instances in a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800363 "internalIpOnly": True or False, # If true, all instances in the cluser 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 restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700364 "networkUri": "A String", # 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 https://cloud.google.com/compute/docs/subnetworks for more information). Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
365 "tags": [ # The Google Compute Engine tags to add to all instances.
366 "A String",
367 ],
368 "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]`.
369 "subnetworkUri": "A String", # 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`.
370 "serviceAccountScopes": [ # The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - https://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.com/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - https://www.googleapis.com/auth/devstorage.full_control
371 "A String",
372 ],
373 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
374 "a_key": "A String",
375 },
376 },
377 "configurationBucket": "A String", # [Optional] A Google Cloud Storage staging bucket used for sharing generated SSH keys and configuration. 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.
378 "masterConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for the master instance in a cluster.
379 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
380 "machineTypeUri": "A String", # 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`.
381 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
382 "A String",
383 ],
384 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
385 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
386 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
387 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
388 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
389 },
390 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
391 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
392 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
393 },
394 },
395 "initializationActions": [ # [Optional] Commands to execute on each node after configuration 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: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
396 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
397 "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.
398 "executableFile": "A String", # [Required] Google Cloud Storage URI of executable file.
399 },
400 ],
401 "secondaryWorkerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for additional worker instances in a cluster.
402 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
403 "machineTypeUri": "A String", # 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`.
404 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
405 "A String",
406 ],
407 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
408 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
409 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
410 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
411 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
412 },
413 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
414 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
415 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
416 },
417 },
418 "workerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for worker instances in a cluster.
419 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
420 "machineTypeUri": "A String", # 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`.
421 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
422 "A String",
423 ],
424 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
425 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
426 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
427 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
428 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
429 },
430 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
431 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
432 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
433 },
434 },
435 },
436 }</pre>
437</div>
438
439<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800440 <code class="details" id="list">list(projectId, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700441 <pre>Lists all clusters in a project.
442
443Args:
444 projectId: string, [Required] The ID of the Google Cloud Platform project that the cluster belongs to. (required)
445 pageSize: integer, The standard List page size.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800446 filter: string, [Optional] A filter constraining which clusters to list. Valid filters contain label terms such as: labels.key1 = val1 AND (-labels.k2 = val2 OR labels.k3 = val3)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700447 pageToken: string, The standard List page token.
448 x__xgafv: string, V1 error format.
449
450Returns:
451 An object of the form:
452
453 { # The list of all clusters in a project.
454 "nextPageToken": "A String", # The standard List next-page token.
455 "clusters": [ # [Output-only] The clusters in the project.
456 { # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
457 "status": { # The status of a cluster and its instances. # [Output-only] Cluster status.
458 "state": "A String", # The cluster's state.
459 "stateStartTime": "A String", # Time when this state was entered.
460 "detail": "A String", # Optional details of cluster's state.
461 },
462 "statusHistory": [ # [Output-only] Previous cluster statuses.
463 { # The status of a cluster and its instances.
464 "state": "A String", # The cluster's state.
465 "stateStartTime": "A String", # Time when this state was entered.
466 "detail": "A String", # Optional details of cluster's state.
467 },
468 ],
469 "clusterUuid": "A String", # [Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
470 "clusterName": "A String", # [Required] The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
471 "projectId": "A String", # [Required] The Google Cloud Platform project ID that the cluster belongs to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800472 "labels": { # [Optional] The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given cluster.
473 "a_key": "A String",
474 },
475 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
476 "yarnMetrics": { # The YARN metrics.
477 "a_key": "A String",
478 },
479 "hdfsMetrics": { # The HDFS metrics.
480 "a_key": "A String",
481 },
482 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700483 "configuration": { # The cluster configuration. # [Required] The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
484 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # [Optional] The configuration settings for software inside the cluster.
485 "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](/dataproc/versioning)).
486 "properties": { # [Optional] The properties to set on daemon configuration files. Property keys are specified in "prefix:property" format, such as "core:fs.defaultFS". The following are supported prefixes and their mappings: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defaults.conf
487 "a_key": "A String",
488 },
489 },
490 "gceClusterConfiguration": { # Common configuration settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # [Required] The shared Google Compute Engine configuration settings for all instances in a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800491 "internalIpOnly": True or False, # If true, all instances in the cluser 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 restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700492 "networkUri": "A String", # 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 https://cloud.google.com/compute/docs/subnetworks for more information). Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
493 "tags": [ # The Google Compute Engine tags to add to all instances.
494 "A String",
495 ],
496 "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]`.
497 "subnetworkUri": "A String", # 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`.
498 "serviceAccountScopes": [ # The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - https://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.com/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - https://www.googleapis.com/auth/devstorage.full_control
499 "A String",
500 ],
501 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
502 "a_key": "A String",
503 },
504 },
505 "configurationBucket": "A String", # [Optional] A Google Cloud Storage staging bucket used for sharing generated SSH keys and configuration. 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.
506 "masterConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for the master instance in a cluster.
507 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
508 "machineTypeUri": "A String", # 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`.
509 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
510 "A String",
511 ],
512 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
513 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
514 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
515 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
516 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
517 },
518 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
519 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
520 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
521 },
522 },
523 "initializationActions": [ # [Optional] Commands to execute on each node after configuration 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: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
524 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
525 "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.
526 "executableFile": "A String", # [Required] Google Cloud Storage URI of executable file.
527 },
528 ],
529 "secondaryWorkerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for additional worker instances in a cluster.
530 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
531 "machineTypeUri": "A String", # 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`.
532 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
533 "A String",
534 ],
535 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
536 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
537 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
538 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
539 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
540 },
541 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
542 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
543 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
544 },
545 },
546 "workerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for worker instances in a cluster.
547 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
548 "machineTypeUri": "A String", # 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`.
549 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
550 "A String",
551 ],
552 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
553 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
554 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
555 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
556 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
557 },
558 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
559 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
560 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
561 },
562 },
563 },
564 },
565 ],
566 }</pre>
567</div>
568
569<div class="method">
570 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
571 <pre>Retrieves the next page of results.
572
573Args:
574 previous_request: The request for the previous page. (required)
575 previous_response: The response from the request for the previous page. (required)
576
577Returns:
578 A request object that you can call 'execute()' on to request the next
579 page. Returns None if there are no more items in the collection.
580 </pre>
581</div>
582
583<div class="method">
584 <code class="details" id="patch">patch(projectId, clusterName, body, updateMask=None, x__xgafv=None)</code>
585 <pre>Updates a cluster in a project.
586
587Args:
588 projectId: string, [Required] The ID of the Google Cloud Platform project the cluster belongs to. (required)
589 clusterName: string, [Required] The cluster name. (required)
590 body: object, The request body. (required)
591 The object takes the form of:
592
593{ # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
594 "status": { # The status of a cluster and its instances. # [Output-only] Cluster status.
595 "state": "A String", # The cluster's state.
596 "stateStartTime": "A String", # Time when this state was entered.
597 "detail": "A String", # Optional details of cluster's state.
598 },
599 "statusHistory": [ # [Output-only] Previous cluster statuses.
600 { # The status of a cluster and its instances.
601 "state": "A String", # The cluster's state.
602 "stateStartTime": "A String", # Time when this state was entered.
603 "detail": "A String", # Optional details of cluster's state.
604 },
605 ],
606 "clusterUuid": "A String", # [Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
607 "clusterName": "A String", # [Required] The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
608 "projectId": "A String", # [Required] The Google Cloud Platform project ID that the cluster belongs to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800609 "labels": { # [Optional] The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given cluster.
610 "a_key": "A String",
611 },
612 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
613 "yarnMetrics": { # The YARN metrics.
614 "a_key": "A String",
615 },
616 "hdfsMetrics": { # The HDFS metrics.
617 "a_key": "A String",
618 },
619 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700620 "configuration": { # The cluster configuration. # [Required] The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
621 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # [Optional] The configuration settings for software inside the cluster.
622 "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](/dataproc/versioning)).
623 "properties": { # [Optional] The properties to set on daemon configuration files. Property keys are specified in "prefix:property" format, such as "core:fs.defaultFS". The following are supported prefixes and their mappings: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defaults.conf
624 "a_key": "A String",
625 },
626 },
627 "gceClusterConfiguration": { # Common configuration settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster. # [Required] The shared Google Compute Engine configuration settings for all instances in a cluster.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800628 "internalIpOnly": True or False, # If true, all instances in the cluser 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 restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700629 "networkUri": "A String", # 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 https://cloud.google.com/compute/docs/subnetworks for more information). Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
630 "tags": [ # The Google Compute Engine tags to add to all instances.
631 "A String",
632 ],
633 "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]`.
634 "subnetworkUri": "A String", # 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`.
635 "serviceAccountScopes": [ # The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - https://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.com/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - https://www.googleapis.com/auth/devstorage.full_control
636 "A String",
637 ],
638 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
639 "a_key": "A String",
640 },
641 },
642 "configurationBucket": "A String", # [Optional] A Google Cloud Storage staging bucket used for sharing generated SSH keys and configuration. 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.
643 "masterConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for the master instance in a cluster.
644 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
645 "machineTypeUri": "A String", # 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`.
646 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
647 "A String",
648 ],
649 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
650 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
651 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
652 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
653 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
654 },
655 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
656 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
657 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
658 },
659 },
660 "initializationActions": [ # [Optional] Commands to execute on each node after configuration 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: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
661 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
662 "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.
663 "executableFile": "A String", # [Required] Google Cloud Storage URI of executable file.
664 },
665 ],
666 "secondaryWorkerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for additional worker instances in a cluster.
667 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
668 "machineTypeUri": "A String", # 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`.
669 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
670 "A String",
671 ],
672 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
673 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
674 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
675 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
676 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
677 },
678 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
679 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
680 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
681 },
682 },
683 "workerConfiguration": { # The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group. # [Optional] The Google Compute Engine configuration settings for worker instances in a cluster.
684 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
685 "machineTypeUri": "A String", # 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`.
686 "instanceNames": [ # The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Dataproc derive the name).
687 "A String",
688 ],
689 "imageUri": "A String", # [Output-only] The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfiguration.image_version`.
690 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
691 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
692 "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 data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and installed binaries.
693 "bootDiskSizeGb": 42, # [Optional] Size in GB of the boot disk (default is 500GB).
694 },
695 "managedGroupConfiguration": { # Specifies the resources used to actively manage an instance group. # [Output-only] The configuration for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
696 "instanceTemplateName": "A String", # [Output-only] The name of the Instance Template used for the Managed Instance Group.
697 "instanceGroupManagerName": "A String", # [Output-only] The name of the Instance Group Manager for this group.
698 },
699 },
700 },
701}
702
703 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 configuration.worker_configuration.num_instances, and the `PATCH` request body would specify the new value, as follows: { "configuration":{ "workerConfiguration":{ "numInstances":"5" } } } Similarly, 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: { "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } Note: Currently, config.worker_config.num_instances and config.secondary_worker_config.num_instances are the only fields that can be updated.
704 x__xgafv: string, V1 error format.
705
706Returns:
707 An object of the form:
708
709 { # This resource represents a long-running operation that is the result of a network API call.
710 "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 -0800711 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700712 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800713 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure or cancellation.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700714 "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.
715 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
716 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
717 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800718 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700719 },
720 ],
721 },
722 "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.
723 "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`.
724 "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 -0800725 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700726 },
727 }</pre>
728</div>
729
730</body></html>