blob: d03a93963cb42190fab8c9eab89070f822a72d94 [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>
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>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070086<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:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400104 projectId: string, Required The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700105 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109 "status": { # The status of a cluster and its instances. # Output-only Cluster status.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700110 "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 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400114 "configuration": { # The cluster configuration. # Required The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
115 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # Optional The configuration settings for software inside the cluster.
116 "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).
117 "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
118 "a_key": "A String",
119 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700120 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400121 "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.
122 "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.
123 "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.
124 "tags": [ # The Google Compute Engine tags to add to all instances.
125 "A String",
126 ],
127 "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:
128 # roles/logging.logWriter
129 # 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
130 "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].
131 "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.
132 "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
133 "A String",
134 ],
135 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
136 "a_key": "A String",
137 },
138 },
139 "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.
140 "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.
141 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
142 "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.
143 "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).
144 "A String",
145 ],
146 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
147 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
148 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
149 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
150 "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)
151 },
152 ],
153 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
154 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
155 "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.
156 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
157 },
158 "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.
159 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
160 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
161 },
162 },
163 "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 <code>role</code> metadata to run an executable on a master or worker node, as shown below:
164 # ROLE=$(/usr/share/google/get_metadata_value attributes/role)
165 # if [[ "${ROLE}" == 'Master' ]]; then
166 # ... master specific actions ...
167 # else
168 # ... worker specific actions ...
169 # fi
170 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
171 "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.
172 "executableFile": "A String", # Required Google Cloud Storage URI of executable file.
173 },
174 ],
175 "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.
176 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
177 "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.
178 "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).
179 "A String",
180 ],
181 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
182 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
183 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
184 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
185 "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)
186 },
187 ],
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 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
206 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
207 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
208 "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)
209 },
210 ],
211 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
212 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
213 "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.
214 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
215 },
216 "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.
217 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
218 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
219 },
220 },
221 },
222 "clusterUuid": "A String", # Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
223 "clusterName": "A String", # Required The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
224 "projectId": "A String", # Required The Google Cloud Platform project ID that the cluster belongs to.
225 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800226 "a_key": "A String",
227 },
228 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
229 "yarnMetrics": { # The YARN metrics.
230 "a_key": "A String",
231 },
232 "hdfsMetrics": { # The HDFS metrics.
233 "a_key": "A String",
234 },
235 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400236 "statusHistory": [ # Output-only Previous cluster statuses.
237 { # The status of a cluster and its instances.
238 "state": "A String", # The cluster's state.
239 "stateStartTime": "A String", # Time when this state was entered.
240 "detail": "A String", # Optional details of cluster's state.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700241 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400242 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700243}
244
245 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400246 Allowed values
247 1 - v1 error format
248 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700249
250Returns:
251 An object of the form:
252
253 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400254 "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 -0800255 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700256 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 "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.
258 # Simple to use and understand for most users
259 # 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 which 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:
260 # 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.
261 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose.
262 # 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.
263 # 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.
264 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700265 "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.
266 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
267 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
268 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800269 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700270 },
271 ],
272 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400273 "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.
274 "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 -0800275 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700276 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400277 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700278 }</pre>
279</div>
280
281<div class="method">
282 <code class="details" id="delete">delete(projectId, clusterName, x__xgafv=None)</code>
283 <pre>Deletes a cluster in a project.
284
285Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400286 projectId: string, Required The ID of the Google Cloud Platform project that the cluster belongs to. (required)
287 clusterName: string, Required The cluster name. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700288 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400289 Allowed values
290 1 - v1 error format
291 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700292
293Returns:
294 An object of the form:
295
296 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400297 "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 -0800298 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700299 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400300 "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.
301 # Simple to use and understand for most users
302 # 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 which 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:
303 # 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.
304 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose.
305 # 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.
306 # 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.
307 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700308 "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.
309 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
310 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
311 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800312 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700313 },
314 ],
315 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400316 "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.
317 "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 -0800318 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700319 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400320 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700321 }</pre>
322</div>
323
324<div class="method">
325 <code class="details" id="diagnose">diagnose(projectId, clusterName, body, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400326 <pre>Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseClusterOutputLocation.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700327
328Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400329 projectId: string, Required The ID of the Google Cloud Platform project that the cluster belongs to. (required)
330 clusterName: string, Required The cluster name. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700331 body: object, The request body. (required)
332 The object takes the form of:
333
334{ # A request to collect cluster diagnostic information.
335 }
336
337 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 Allowed values
339 1 - v1 error format
340 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700341
342Returns:
343 An object of the form:
344
345 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400346 "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 -0800347 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700348 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400349 "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.
350 # Simple to use and understand for most users
351 # 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 which 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:
352 # 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.
353 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose.
354 # 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.
355 # 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.
356 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700357 "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.
358 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
359 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
360 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800361 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700362 },
363 ],
364 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400365 "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.
366 "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 -0800367 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700368 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400369 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700370 }</pre>
371</div>
372
373<div class="method">
374 <code class="details" id="get">get(projectId, clusterName, x__xgafv=None)</code>
375 <pre>Gets the resource representation for a cluster in a project.
376
377Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400378 projectId: string, Required The ID of the Google Cloud Platform project that the cluster belongs to. (required)
379 clusterName: string, Required The cluster name. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700380 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700384
385Returns:
386 An object of the form:
387
388 { # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400389 "status": { # The status of a cluster and its instances. # Output-only Cluster status.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700390 "state": "A String", # The cluster's state.
391 "stateStartTime": "A String", # Time when this state was entered.
392 "detail": "A String", # Optional details of cluster's state.
393 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400394 "configuration": { # The cluster configuration. # Required The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
395 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # Optional The configuration settings for software inside the cluster.
396 "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).
397 "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
398 "a_key": "A String",
399 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700400 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400401 "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.
402 "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.
403 "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.
404 "tags": [ # The Google Compute Engine tags to add to all instances.
405 "A String",
406 ],
407 "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:
408 # roles/logging.logWriter
409 # 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
410 "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].
411 "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.
412 "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
413 "A String",
414 ],
415 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
416 "a_key": "A String",
417 },
418 },
419 "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.
420 "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.
421 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
422 "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.
423 "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).
424 "A String",
425 ],
426 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
427 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
428 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
429 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
430 "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)
431 },
432 ],
433 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
434 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
435 "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.
436 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
437 },
438 "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.
439 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
440 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
441 },
442 },
443 "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 <code>role</code> metadata to run an executable on a master or worker node, as shown below:
444 # ROLE=$(/usr/share/google/get_metadata_value attributes/role)
445 # if [[ "${ROLE}" == 'Master' ]]; then
446 # ... master specific actions ...
447 # else
448 # ... worker specific actions ...
449 # fi
450 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
451 "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.
452 "executableFile": "A String", # Required Google Cloud Storage URI of executable file.
453 },
454 ],
455 "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.
456 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
457 "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.
458 "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).
459 "A String",
460 ],
461 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
462 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
463 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
464 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
465 "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)
466 },
467 ],
468 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
469 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
470 "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.
471 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
472 },
473 "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.
474 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
475 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
476 },
477 },
478 "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.
479 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
480 "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.
481 "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).
482 "A String",
483 ],
484 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
485 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
486 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
487 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
488 "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)
489 },
490 ],
491 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
492 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
493 "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.
494 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
495 },
496 "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.
497 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
498 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
499 },
500 },
501 },
502 "clusterUuid": "A String", # Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
503 "clusterName": "A String", # Required The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
504 "projectId": "A String", # Required The Google Cloud Platform project ID that the cluster belongs to.
505 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800506 "a_key": "A String",
507 },
508 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
509 "yarnMetrics": { # The YARN metrics.
510 "a_key": "A String",
511 },
512 "hdfsMetrics": { # The HDFS metrics.
513 "a_key": "A String",
514 },
515 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400516 "statusHistory": [ # Output-only Previous cluster statuses.
517 { # The status of a cluster and its instances.
518 "state": "A String", # The cluster's state.
519 "stateStartTime": "A String", # Time when this state was entered.
520 "detail": "A String", # Optional details of cluster's state.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700521 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400522 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700523 }</pre>
524</div>
525
526<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800527 <code class="details" id="list">list(projectId, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700528 <pre>Lists all clusters in a project.
529
530Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400531 projectId: string, Required The ID of the Google Cloud Platform project that the cluster belongs to. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700532 pageSize: integer, The standard List page size.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400533 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 -0700534 pageToken: string, The standard List page token.
535 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400536 Allowed values
537 1 - v1 error format
538 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700539
540Returns:
541 An object of the form:
542
543 { # The list of all clusters in a project.
544 "nextPageToken": "A String", # The standard List next-page token.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400545 "clusters": [ # Output-only The clusters in the project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700546 { # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400547 "status": { # The status of a cluster and its instances. # Output-only Cluster status.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700548 "state": "A String", # The cluster's state.
549 "stateStartTime": "A String", # Time when this state was entered.
550 "detail": "A String", # Optional details of cluster's state.
551 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400552 "configuration": { # The cluster configuration. # Required The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
553 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # Optional The configuration settings for software inside the cluster.
554 "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).
555 "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
556 "a_key": "A String",
557 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700558 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400559 "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.
560 "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.
561 "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.
562 "tags": [ # The Google Compute Engine tags to add to all instances.
563 "A String",
564 ],
565 "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:
566 # roles/logging.logWriter
567 # 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
568 "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].
569 "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.
570 "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
571 "A String",
572 ],
573 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
574 "a_key": "A String",
575 },
576 },
577 "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.
578 "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.
579 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
580 "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.
581 "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).
582 "A String",
583 ],
584 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
585 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
586 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
587 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
588 "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)
589 },
590 ],
591 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
592 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
593 "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.
594 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
595 },
596 "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.
597 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
598 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
599 },
600 },
601 "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 <code>role</code> metadata to run an executable on a master or worker node, as shown below:
602 # ROLE=$(/usr/share/google/get_metadata_value attributes/role)
603 # if [[ "${ROLE}" == 'Master' ]]; then
604 # ... master specific actions ...
605 # else
606 # ... worker specific actions ...
607 # fi
608 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
609 "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.
610 "executableFile": "A String", # Required Google Cloud Storage URI of executable file.
611 },
612 ],
613 "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.
614 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
615 "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.
616 "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).
617 "A String",
618 ],
619 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
620 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
621 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
622 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
623 "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)
624 },
625 ],
626 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
627 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
628 "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.
629 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
630 },
631 "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.
632 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
633 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
634 },
635 },
636 "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.
637 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
638 "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.
639 "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).
640 "A String",
641 ],
642 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
643 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
644 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
645 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
646 "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)
647 },
648 ],
649 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
650 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
651 "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.
652 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
653 },
654 "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.
655 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
656 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
657 },
658 },
659 },
660 "clusterUuid": "A String", # Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
661 "clusterName": "A String", # Required The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
662 "projectId": "A String", # Required The Google Cloud Platform project ID that the cluster belongs to.
663 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800664 "a_key": "A String",
665 },
666 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
667 "yarnMetrics": { # The YARN metrics.
668 "a_key": "A String",
669 },
670 "hdfsMetrics": { # The HDFS metrics.
671 "a_key": "A String",
672 },
673 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400674 "statusHistory": [ # Output-only Previous cluster statuses.
675 { # The status of a cluster and its instances.
676 "state": "A String", # The cluster's state.
677 "stateStartTime": "A String", # Time when this state was entered.
678 "detail": "A String", # Optional details of cluster's state.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700679 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400680 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700681 },
682 ],
683 }</pre>
684</div>
685
686<div class="method">
687 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
688 <pre>Retrieves the next page of results.
689
690Args:
691 previous_request: The request for the previous page. (required)
692 previous_response: The response from the request for the previous page. (required)
693
694Returns:
695 A request object that you can call 'execute()' on to request the next
696 page. Returns None if there are no more items in the collection.
697 </pre>
698</div>
699
700<div class="method">
701 <code class="details" id="patch">patch(projectId, clusterName, body, updateMask=None, x__xgafv=None)</code>
702 <pre>Updates a cluster in a project.
703
704Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400705 projectId: string, Required The ID of the Google Cloud Platform project the cluster belongs to. (required)
706 clusterName: string, Required The cluster name. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700707 body: object, The request body. (required)
708 The object takes the form of:
709
710{ # Describes the identifying information, configuration, and status of a cluster of Google Compute Engine instances.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400711 "status": { # The status of a cluster and its instances. # Output-only Cluster status.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700712 "state": "A String", # The cluster's state.
713 "stateStartTime": "A String", # Time when this state was entered.
714 "detail": "A String", # Optional details of cluster's state.
715 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400716 "configuration": { # The cluster configuration. # Required The cluster configuration. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
717 "softwareConfiguration": { # Specifies the selection and configuration of software inside the cluster. # Optional The configuration settings for software inside the cluster.
718 "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).
719 "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
720 "a_key": "A String",
721 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700722 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400723 "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.
724 "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.
725 "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.
726 "tags": [ # The Google Compute Engine tags to add to all instances.
727 "A String",
728 ],
729 "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:
730 # roles/logging.logWriter
731 # 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
732 "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].
733 "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.
734 "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
735 "A String",
736 ],
737 "metadata": { # The Google Compute Engine metadata entries to add to all instances.
738 "a_key": "A String",
739 },
740 },
741 "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.
742 "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.
743 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
744 "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.
745 "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).
746 "A String",
747 ],
748 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
749 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
750 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
751 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
752 "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)
753 },
754 ],
755 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
756 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
757 "numLocalSsds": 42, # Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS 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.
758 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
759 },
760 "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.
761 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
762 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
763 },
764 },
765 "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 <code>role</code> metadata to run an executable on a master or worker node, as shown below:
766 # ROLE=$(/usr/share/google/get_metadata_value attributes/role)
767 # if [[ "${ROLE}" == 'Master' ]]; then
768 # ... master specific actions ...
769 # else
770 # ... worker specific actions ...
771 # fi
772 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
773 "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.
774 "executableFile": "A String", # Required Google Cloud Storage URI of executable file.
775 },
776 ],
777 "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.
778 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
779 "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.
780 "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).
781 "A String",
782 ],
783 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
784 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
785 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
786 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
787 "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)
788 },
789 ],
790 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
791 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
792 "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.
793 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
794 },
795 "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.
796 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
797 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
798 },
799 },
800 "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.
801 "isPreemptible": True or False, # Specifies that this instance group contains Preemptible Instances.
802 "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.
803 "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).
804 "A String",
805 ],
806 "imageUri": "A String", # Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_version.
807 "accelerators": [ # Optional The Google Compute Engine accelerator configuration for these instances.
808 { # Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
809 "acceleratorCount": 42, # The number of the accelerator cards of this type exposed to this instance.
810 "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)
811 },
812 ],
813 "numInstances": 42, # The number of VM instances in the instance group. For master instance groups, must be set to 1.
814 "diskConfiguration": { # Specifies the configuration of disk options for a group of VM instances. # Disk option configuration settings.
815 "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.
816 "bootDiskSizeGb": 42, # Optional Size in GB of the boot disk (default is 500GB).
817 },
818 "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.
819 "instanceTemplateName": "A String", # Output-only The name of the Instance Template used for the Managed Instance Group.
820 "instanceGroupManagerName": "A String", # Output-only The name of the Instance Group Manager for this group.
821 },
822 },
823 },
824 "clusterUuid": "A String", # Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
825 "clusterName": "A String", # Required The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused.
826 "projectId": "A String", # Required The Google Cloud Platform project ID that the cluster belongs to.
827 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800828 "a_key": "A String",
829 },
830 "metrics": { # Contains cluster daemon metrics, such as HDFS and YARN stats. # Contains cluster daemon metrics such as HDFS and YARN stats.
831 "yarnMetrics": { # The YARN metrics.
832 "a_key": "A String",
833 },
834 "hdfsMetrics": { # The HDFS metrics.
835 "a_key": "A String",
836 },
837 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400838 "statusHistory": [ # Output-only Previous cluster statuses.
839 { # The status of a cluster and its instances.
840 "state": "A String", # The cluster's state.
841 "stateStartTime": "A String", # Time when this state was entered.
842 "detail": "A String", # Optional details of cluster's state.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700843 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400844 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700845}
846
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400847 updateMask: string, Required Specifies the path, relative to <code>Cluster</code>, of the field to update. For example, to change the number of workers in a cluster to 5, the <code>update_mask</code> parameter would be specified as <code>configuration.worker_configuration.num_instances</code>, and the PATCH request body would specify the new value, as follows:
848{
849 "configuration":{
850 "workerConfiguration":{
851 "numInstances":"5"
852 }
853 }
854}
855Similarly, to change the number of preemptible workers in a cluster to 5, the <code>update_mask</code> parameter would be <code>config.secondary_worker_config.num_instances</code>, and the PATCH request body would be set as follows:
856{
857 "config":{
858 "secondaryWorkerConfig":{
859 "numInstances":"5"
860 }
861 }
862}
863<strong>Note:</strong> Currently, <code>config.worker_config.num_instances</code> and <code>config.secondary_worker_config.num_instances</code> are the only fields that can be updated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700864 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 Allowed values
866 1 - v1 error format
867 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700868
869Returns:
870 An object of the form:
871
872 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400873 "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 -0800874 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700875 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400876 "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.
877 # Simple to use and understand for most users
878 # 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 which 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:
879 # 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.
880 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting purpose.
881 # 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.
882 # 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.
883 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700884 "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.
885 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
886 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
887 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800888 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700889 },
890 ],
891 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400892 "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.
893 "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 -0800894 "a_key": "", # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700895 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400896 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700897 }</pre>
898</div>
899
900</body></html>