Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: discovery/googleapis/dataproc__v1.json

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/customsearch__v1.json ('k') | discovery/googleapis/datastore__v1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/dataproc__v1.json
diff --git a/discovery/googleapis/dataproc__v1.json b/discovery/googleapis/dataproc__v1.json
index 5a1cf748b2ec1090701c4d0e8475dc26122a1374..237d913d423aab142a2d9089cd3d97e0785a3a2d 100644
--- a/discovery/googleapis/dataproc__v1.json
+++ b/discovery/googleapis/dataproc__v1.json
@@ -24,16 +24,37 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
+ "access_token": {
+ "description": "OAuth access token.",
+ "location": "query",
+ "type": "string"
+ },
+ "key": {
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
+ "location": "query",
+ "type": "string"
+ },
+ "quotaUser": {
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
+ "pp": {
+ "default": "true",
+ "description": "Pretty-print response.",
+ "location": "query",
+ "type": "boolean"
+ },
"bearer_token": {
"description": "OAuth bearer token.",
"location": "query",
"type": "string"
},
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
+ "location": "query",
+ "type": "string"
+ },
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
@@ -55,11 +76,6 @@
"location": "query",
"type": "string"
},
- "callback": {
- "description": "JSONP",
- "location": "query",
- "type": "string"
- },
"$.xgafv": {
"description": "V1 error format.",
"enum": [
@@ -73,6 +89,11 @@
"location": "query",
"type": "string"
},
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
+ },
"alt": {
"default": "json",
"description": "Data format for response.",
@@ -88,27 +109,6 @@
],
"location": "query",
"type": "string"
- },
- "key": {
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
- "location": "query",
- "type": "string"
- },
- "access_token": {
- "description": "OAuth access token.",
- "location": "query",
- "type": "string"
- },
- "quotaUser": {
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
- "location": "query",
- "type": "string"
- },
- "pp": {
- "default": "true",
- "description": "Pretty-print response.",
- "location": "query",
- "type": "boolean"
}
},
"protocol": "rest",
@@ -119,6 +119,30 @@
"resources": {
"operations": {
"methods": {
+ "delete": {
+ "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.",
+ "httpMethod": "DELETE",
+ "id": "dataproc.projects.regions.operations.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The name of the operation resource to be deleted.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"httpMethod": "GET",
@@ -151,11 +175,6 @@
"name"
],
"parameters": {
- "filter": {
- "description": "The standard list filter.",
- "location": "query",
- "type": "string"
- },
"pageToken": {
"description": "The standard list page token.",
"location": "query",
@@ -173,6 +192,11 @@
"format": "int32",
"location": "query",
"type": "integer"
+ },
+ "filter": {
+ "description": "The standard list filter.",
+ "location": "query",
+ "type": "string"
}
},
"path": "v1/{+name}",
@@ -206,112 +230,21 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
- },
- "delete": {
- "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.",
- "httpMethod": "DELETE",
- "id": "dataproc.projects.regions.operations.delete",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "The name of the operation resource to be deleted.",
- "location": "path",
- "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$",
- "required": true,
- "type": "string"
- }
- },
- "path": "v1/{+name}",
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
}
}
},
"jobs": {
"methods": {
- "list": {
- "description": "Lists regions/{region}/jobs in a project.",
+ "get": {
+ "description": "Gets the resource representation for a job in a project.",
"httpMethod": "GET",
- "id": "dataproc.projects.regions.jobs.list",
- "parameterOrder": [
- "projectId",
- "region"
- ],
- "parameters": {
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "filter": {
- "description": "Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or INACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *",
- "location": "query",
- "type": "string"
- },
- "jobStateMatcher": {
- "description": "Optional. Specifies enumerated categories of jobs to list (default = match ALL jobs).",
- "enum": [
- "ALL",
- "ACTIVE",
- "NON_ACTIVE"
- ],
- "location": "query",
- "type": "string"
- },
- "pageToken": {
- "description": "Optional. The page token, returned by a previous call, to request the next page of results.",
- "location": "query",
- "type": "string"
- },
- "pageSize": {
- "description": "Optional. The number of results to return in each response.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "region": {
- "description": "Required. The Cloud Dataproc region in which to handle the request.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "clusterName": {
- "description": "Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.",
- "location": "query",
- "type": "string"
- }
- },
- "path": "v1/projects/{projectId}/regions/{region}/jobs",
- "response": {
- "$ref": "ListJobsResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "cancel": {
- "description": "Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.",
- "httpMethod": "POST",
- "id": "dataproc.projects.regions.jobs.cancel",
+ "id": "dataproc.projects.regions.jobs.get",
"parameterOrder": [
"projectId",
"region",
"jobId"
],
"parameters": {
- "region": {
- "description": "Required. The Cloud Dataproc region in which to handle the request.",
- "location": "path",
- "required": true,
- "type": "string"
- },
"jobId": {
"description": "Required. The job ID.",
"location": "path",
@@ -323,12 +256,15 @@
"location": "path",
"required": true,
"type": "string"
+ },
+ "region": {
+ "description": "Required. The Cloud Dataproc region in which to handle the request.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel",
- "request": {
- "$ref": "CancelJobRequest"
- },
+ "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}",
"response": {
"$ref": "Job"
},
@@ -382,43 +318,6 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "get": {
- "description": "Gets the resource representation for a job in a project.",
- "httpMethod": "GET",
- "id": "dataproc.projects.regions.jobs.get",
- "parameterOrder": [
- "projectId",
- "region",
- "jobId"
- ],
- "parameters": {
- "jobId": {
- "description": "Required. The job ID.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.",
- "location": "path",
- "required": true,
- "type": "string"
- },
- "region": {
- "description": "Required. The Cloud Dataproc region in which to handle the request.",
- "location": "path",
- "required": true,
- "type": "string"
- }
- },
- "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}",
- "response": {
- "$ref": "Job"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
"submit": {
"description": "Submits a job to a cluster.",
"httpMethod": "POST",
@@ -462,12 +361,6 @@
"jobId"
],
"parameters": {
- "region": {
- "description": "Required. The Cloud Dataproc region in which to handle the request.",
- "location": "path",
- "required": true,
- "type": "string"
- },
"jobId": {
"description": "Required. The job ID.",
"location": "path",
@@ -479,6 +372,12 @@
"location": "path",
"required": true,
"type": "string"
+ },
+ "region": {
+ "description": "Required. The Cloud Dataproc region in which to handle the request.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
"path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}",
@@ -488,32 +387,26 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
- }
- }
- },
- "clusters": {
- "methods": {
- "patch": {
- "description": "Updates a cluster in a project.",
- "httpMethod": "PATCH",
- "id": "dataproc.projects.regions.clusters.patch",
+ },
+ "list": {
+ "description": "Lists regions/{region}/jobs in a project.",
+ "httpMethod": "GET",
+ "id": "dataproc.projects.regions.jobs.list",
"parameterOrder": [
"projectId",
- "region",
- "clusterName"
+ "region"
],
"parameters": {
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.",
- "location": "path",
- "required": true,
+ "pageToken": {
+ "description": "Optional. The page token, returned by a previous call, to request the next page of results.",
+ "location": "query",
"type": "string"
},
- "updateMask": {
- "description": "Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows:\n{\n \"config\":{\n \"workerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\nSimilarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows:\n{\n \"config\":{\n \"secondaryWorkerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\n<strong>Note:</strong> Currently, only the following fields can be updated:<table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.num_instances</em></strong></td> <td>Resize primary worker group</td> </tr> <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>",
- "format": "google-fieldmask",
+ "pageSize": {
+ "description": "Optional. The number of results to return in each response.",
+ "format": "int32",
"location": "query",
- "type": "string"
+ "type": "integer"
},
"region": {
"description": "Required. The Cloud Dataproc region in which to handle the request.",
@@ -522,31 +415,48 @@
"type": "string"
},
"clusterName": {
- "description": "Required. The cluster name.",
+ "description": "Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.",
+ "location": "query",
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.",
"location": "path",
"required": true,
"type": "string"
+ },
+ "filter": {
+ "description": "Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or INACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *",
+ "location": "query",
+ "type": "string"
+ },
+ "jobStateMatcher": {
+ "description": "Optional. Specifies enumerated categories of jobs to list (default = match ALL jobs).",
+ "enum": [
+ "ALL",
+ "ACTIVE",
+ "NON_ACTIVE"
+ ],
+ "location": "query",
+ "type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
- "request": {
- "$ref": "Cluster"
- },
+ "path": "v1/projects/{projectId}/regions/{region}/jobs",
"response": {
- "$ref": "Operation"
+ "$ref": "ListJobsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "get": {
- "description": "Gets the resource representation for a cluster in a project.",
- "httpMethod": "GET",
- "id": "dataproc.projects.regions.clusters.get",
+ "cancel": {
+ "description": "Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.",
+ "httpMethod": "POST",
+ "id": "dataproc.projects.regions.jobs.cancel",
"parameterOrder": [
"projectId",
"region",
- "clusterName"
+ "jobId"
],
"parameters": {
"region": {
@@ -555,43 +465,44 @@
"required": true,
"type": "string"
},
- "clusterName": {
- "description": "Required. The cluster name.",
+ "jobId": {
+ "description": "Required. The job ID.",
"location": "path",
"required": true,
"type": "string"
},
"projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
+ "path": "v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel",
+ "request": {
+ "$ref": "CancelJobRequest"
+ },
"response": {
- "$ref": "Cluster"
+ "$ref": "Job"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
- },
- "diagnose": {
- "description": "Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseClusterOutputLocation.",
- "httpMethod": "POST",
- "id": "dataproc.projects.regions.clusters.diagnose",
+ }
+ }
+ },
+ "clusters": {
+ "methods": {
+ "delete": {
+ "description": "Deletes a cluster in a project.",
+ "httpMethod": "DELETE",
+ "id": "dataproc.projects.regions.clusters.delete",
"parameterOrder": [
"projectId",
"region",
"clusterName"
],
"parameters": {
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
- "location": "path",
- "required": true,
- "type": "string"
- },
"region": {
"description": "Required. The Cloud Dataproc region in which to handle the request.",
"location": "path",
@@ -603,12 +514,15 @@
"location": "path",
"required": true,
"type": "string"
+ },
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose",
- "request": {
- "$ref": "DiagnoseClusterRequest"
- },
+ "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
"response": {
"$ref": "Operation"
},
@@ -616,22 +530,16 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "delete": {
- "description": "Deletes a cluster in a project.",
- "httpMethod": "DELETE",
- "id": "dataproc.projects.regions.clusters.delete",
+ "diagnose": {
+ "description": "Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseClusterOutputLocation.",
+ "httpMethod": "POST",
+ "id": "dataproc.projects.regions.clusters.diagnose",
"parameterOrder": [
"projectId",
"region",
"clusterName"
],
"parameters": {
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
- "location": "path",
- "required": true,
- "type": "string"
- },
"region": {
"description": "Required. The Cloud Dataproc region in which to handle the request.",
"location": "path",
@@ -643,9 +551,18 @@
"location": "path",
"required": true,
"type": "string"
+ },
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
+ "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose",
+ "request": {
+ "$ref": "DiagnoseClusterRequest"
+ },
"response": {
"$ref": "Operation"
},
@@ -662,18 +579,6 @@
"region"
],
"parameters": {
- "pageSize": {
- "description": "Optional. The standard List page size.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
- "location": "path",
- "required": true,
- "type": "string"
- },
"filter": {
"description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *",
"location": "query",
@@ -689,6 +594,18 @@
"description": "Optional. The standard List page token.",
"location": "query",
"type": "string"
+ },
+ "pageSize": {
+ "description": "Optional. The standard List page size.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
+ },
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
}
},
"path": "v1/projects/{projectId}/regions/{region}/clusters",
@@ -708,20 +625,66 @@
"region"
],
"parameters": {
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
"region": {
"description": "Required. The Cloud Dataproc region in which to handle the request.",
"location": "path",
"required": true,
"type": "string"
+ }
+ },
+ "path": "v1/projects/{projectId}/regions/{region}/clusters",
+ "request": {
+ "$ref": "Cluster"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
+ "patch": {
+ "description": "Updates a cluster in a project.",
+ "httpMethod": "PATCH",
+ "id": "dataproc.projects.regions.clusters.patch",
+ "parameterOrder": [
+ "projectId",
+ "region",
+ "clusterName"
+ ],
+ "parameters": {
+ "clusterName": {
+ "description": "Required. The cluster name.",
+ "location": "path",
+ "required": true,
+ "type": "string"
},
"projectId": {
- "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "updateMask": {
+ "description": "Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows:\n{\n \"config\":{\n \"workerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\nSimilarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows:\n{\n \"config\":{\n \"secondaryWorkerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\n<strong>Note:</strong> Currently, only the following fields can be updated:<table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.num_instances</em></strong></td> <td>Resize primary worker group</td> </tr> <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>",
+ "format": "google-fieldmask",
+ "location": "query",
+ "type": "string"
+ },
+ "region": {
+ "description": "Required. The Cloud Dataproc region in which to handle the request.",
"location": "path",
"required": true,
"type": "string"
}
},
- "path": "v1/projects/{projectId}/regions/{region}/clusters",
+ "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
"request": {
"$ref": "Cluster"
},
@@ -731,6 +694,43 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
+ },
+ "get": {
+ "description": "Gets the resource representation for a cluster in a project.",
+ "httpMethod": "GET",
+ "id": "dataproc.projects.regions.clusters.get",
+ "parameterOrder": [
+ "projectId",
+ "region",
+ "clusterName"
+ ],
+ "parameters": {
+ "clusterName": {
+ "description": "Required. The cluster name.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "projectId": {
+ "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "region": {
+ "description": "Required. The Cloud Dataproc region in which to handle the request.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/projects/{projectId}/regions/{region}/clusters/{clusterName}",
+ "response": {
+ "$ref": "Cluster"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
}
}
}
@@ -739,32 +739,9 @@
}
}
},
- "revision": "20170816",
+ "revision": "20170822",
"rootUrl": "https://dataproc.googleapis.com/",
"schemas": {
- "DiagnoseClusterRequest": {
- "description": "A request to collect cluster diagnostic information.",
- "id": "DiagnoseClusterRequest",
- "properties": {},
- "type": "object"
- },
- "DiskConfig": {
- "description": "Specifies the config of disk options for a group of VM instances.",
- "id": "DiskConfig",
- "properties": {
- "numLocalSsds": {
- "description": "Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.",
- "format": "int32",
- "type": "integer"
- },
- "bootDiskSizeGb": {
- "description": "Optional. Size in GB of the boot disk (default is 500GB).",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
"ClusterOperationMetadata": {
"description": "Metadata describing the operation.",
"id": "ClusterOperationMetadata",
@@ -798,14 +775,14 @@
},
"type": "array"
},
- "clusterName": {
- "description": "Output-only. Name of the cluster for the operation.",
- "type": "string"
- },
"clusterUuid": {
"description": "Output-only. Cluster UUID for the operation.",
"type": "string"
},
+ "clusterName": {
+ "description": "Output-only. Name of the cluster for the operation.",
+ "type": "string"
+ },
"operationType": {
"description": "Output-only. The operation type.",
"type": "string"
@@ -912,6 +889,24 @@
"description": "A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN.",
"id": "PySparkJob",
"properties": {
+ "jarFileUris": {
+ "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "loggingConfig": {
+ "$ref": "LoggingConfig",
+ "description": "Optional. The runtime log config for job execution."
+ },
+ "properties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
+ "type": "object"
+ },
"args": {
"description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.",
"items": {
@@ -942,25 +937,7 @@
"items": {
"type": "string"
},
- "type": "array"
- },
- "jarFileUris": {
- "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "loggingConfig": {
- "$ref": "LoggingConfig",
- "description": "Optional. The runtime log config for job execution."
- },
- "properties": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
- "type": "object"
+ "type": "array"
}
},
"type": "object"
@@ -969,6 +946,10 @@
"description": "Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster.",
"id": "GceClusterConfig",
"properties": {
+ "zoneUri": {
+ "description": "Optional. The zone where the Google Compute Engine cluster will be located. On a create request, it is required in the \"global\" region. If omitted in a non-global Cloud Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]\nprojects/[project_id]/zones/[zone]\nus-central1-f",
+ "type": "string"
+ },
"metadata": {
"additionalProperties": {
"type": "string"
@@ -1005,9 +986,21 @@
"networkUri": {
"description": "Optional. The Google Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks for more information).A full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default\nprojects/[project_id]/regions/global/default\ndefault",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "AcceleratorConfig": {
+ "description": "Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).",
+ "id": "AcceleratorConfig",
+ "properties": {
+ "acceleratorCount": {
+ "description": "The number of the accelerator cards of this type exposed to this instance.",
+ "format": "int32",
+ "type": "integer"
},
- "zoneUri": {
- "description": "Optional. The zone where the Google Compute Engine cluster will be located. On a create request, it is required in the \"global\" region. If omitted in a non-global Cloud Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]\nprojects/[project_id]/zones/[zone]\nus-central1-f",
+ "acceleratorTypeUri": {
+ "description": "Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80",
"type": "string"
}
},
@@ -1017,41 +1010,25 @@
"description": "Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
"id": "ClusterMetrics",
"properties": {
- "hdfsMetrics": {
+ "yarnMetrics": {
"additionalProperties": {
"format": "int64",
"type": "string"
},
- "description": "The HDFS metrics.",
+ "description": "The YARN metrics.",
"type": "object"
},
- "yarnMetrics": {
+ "hdfsMetrics": {
"additionalProperties": {
"format": "int64",
"type": "string"
},
- "description": "The YARN metrics.",
+ "description": "The HDFS metrics.",
"type": "object"
}
},
"type": "object"
},
- "AcceleratorConfig": {
- "description": "Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).",
- "id": "AcceleratorConfig",
- "properties": {
- "acceleratorTypeUri": {
- "description": "Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80",
- "type": "string"
- },
- "acceleratorCount": {
- "description": "The number of the accelerator cards of this type exposed to this instance.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
"LoggingConfig": {
"description": "The runtime logging config of the job.",
"id": "LoggingConfig",
@@ -1081,6 +1058,10 @@
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
"properties": {
+ "name": {
+ "description": "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.",
+ "type": "string"
+ },
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
@@ -1104,10 +1085,6 @@
},
"description": "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.",
"type": "object"
- },
- "name": {
- "description": "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.",
- "type": "string"
}
},
"type": "object"
@@ -1142,6 +1119,15 @@
"description": "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:\nSimple to use and understand for most users\nFlexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:\nPartial 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.\nWorkflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.\nBatch 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.\nAsynchronous 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.\nLogging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.",
"id": "Status",
"properties": {
+ "code": {
+ "description": "The status code, which should be an enum value of google.rpc.Code.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "description": "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.",
+ "type": "string"
+ },
"details": {
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
"items": {
@@ -1152,27 +1138,6 @@
"type": "object"
},
"type": "array"
- },
- "code": {
- "description": "The status code, which should be an enum value of google.rpc.Code.",
- "format": "int32",
- "type": "integer"
- },
- "message": {
- "description": "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.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "JobScheduling": {
- "description": "Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release.",
- "id": "JobScheduling",
- "properties": {
- "maxFailuresPerHour": {
- "description": "Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.",
- "format": "int32",
- "type": "integer"
}
},
"type": "object"
@@ -1181,9 +1146,13 @@
"description": "Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group.",
"id": "InstanceGroupConfig",
"properties": {
- "diskConfig": {
- "$ref": "DiskConfig",
- "description": "Optional. Disk option config settings."
+ "machineTypeUri": {
+ "description": "Optional. The Google Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2\nprojects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2\nn1-standard-2",
+ "type": "string"
+ },
+ "imageUri": {
+ "description": "Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.",
+ "type": "string"
},
"managedGroupConfig": {
"$ref": "ManagedGroupConfig",
@@ -1193,14 +1162,6 @@
"description": "Optional. Specifies that this instance group contains preemptible instances.",
"type": "boolean"
},
- "imageUri": {
- "description": "Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version.",
- "type": "string"
- },
- "machineTypeUri": {
- "description": "Optional. The Google Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2\nprojects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2\nn1-standard-2",
- "type": "string"
- },
"instanceNames": {
"description": "Optional. The list of instance names. Cloud Dataproc derives the names from cluster_name, num_instances, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).",
"items": {
@@ -1219,6 +1180,22 @@
"description": "Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.",
"format": "int32",
"type": "integer"
+ },
+ "diskConfig": {
+ "$ref": "DiskConfig",
+ "description": "Optional. Disk option config settings."
+ }
+ },
+ "type": "object"
+ },
+ "JobScheduling": {
+ "description": "Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release.",
+ "id": "JobScheduling",
+ "properties": {
+ "maxFailuresPerHour": {
+ "description": "Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
@@ -1267,6 +1244,14 @@
"description": "A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries.",
"id": "SparkSqlJob",
"properties": {
+ "queryList": {
+ "$ref": "QueryList",
+ "description": "A list of queries."
+ },
+ "queryFileUri": {
+ "description": "The HCFS URI of the script that contains SQL queries.",
+ "type": "string"
+ },
"scriptVariables": {
"additionalProperties": {
"type": "string"
@@ -1291,14 +1276,6 @@
},
"description": "Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten.",
"type": "object"
- },
- "queryFileUri": {
- "description": "The HCFS URI of the script that contains SQL queries.",
- "type": "string"
- },
- "queryList": {
- "$ref": "QueryList",
- "description": "A list of queries."
}
},
"type": "object"
@@ -1307,6 +1284,14 @@
"description": "Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.",
"id": "Cluster",
"properties": {
+ "clusterUuid": {
+ "description": "Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.",
+ "type": "string"
+ },
+ "clusterName": {
+ "description": "Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.",
+ "type": "string"
+ },
"projectId": {
"description": "Required. The Google Cloud Platform project ID that the cluster belongs to.",
"type": "string"
@@ -1336,14 +1321,6 @@
"config": {
"$ref": "ClusterConfig",
"description": "Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated."
- },
- "clusterUuid": {
- "description": "Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.",
- "type": "string"
- },
- "clusterName": {
- "description": "Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.",
- "type": "string"
}
},
"type": "object"
@@ -1352,16 +1329,16 @@
"description": "The response message for Operations.ListOperations.",
"id": "ListOperationsResponse",
"properties": {
+ "nextPageToken": {
+ "description": "The standard List next-page token.",
+ "type": "string"
+ },
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"items": {
"$ref": "Operation"
},
"type": "array"
- },
- "nextPageToken": {
- "description": "The standard List next-page token.",
- "type": "string"
}
},
"type": "object"
@@ -1378,7 +1355,7 @@
"additionalProperties": {
"type": "string"
},
- "description": "Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:\ncapacity-scheduler: capacity-scheduler.xml\ncore: core-site.xml\ndistcp: distcp-default.xml\nhdfs: hdfs-site.xml\nhive: hive-site.xml\nmapred: mapred-site.xml\npig: pig.properties\nspark: spark-defaults.conf\nyarn: yarn-site.xml",
+ "description": "Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, such as core:fs.defaultFS. The following are supported prefixes and their mappings:\ncapacity-scheduler: capacity-scheduler.xml\ncore: core-site.xml\ndistcp: distcp-default.xml\nhdfs: hdfs-site.xml\nhive: hive-site.xml\nmapred: mapred-site.xml\npig: pig.properties\nspark: spark-defaults.conf\nyarn: yarn-site.xmlFor more information, see Cluster properties.",
"type": "object"
}
},
@@ -1415,13 +1392,6 @@
"description": "The HCFS URI of the script that contains the Pig queries.",
"type": "string"
},
- "scriptVariables": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).",
- "type": "object"
- },
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.",
"items": {
@@ -1429,6 +1399,13 @@
},
"type": "array"
},
+ "scriptVariables": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).",
+ "type": "object"
+ },
"loggingConfig": {
"$ref": "LoggingConfig",
"description": "Optional. The runtime log config for job execution."
@@ -1447,25 +1424,6 @@
"description": "The status of a cluster and its instances.",
"id": "ClusterStatus",
"properties": {
- "substate": {
- "description": "Output-only. Additional state information that includes status reported by the agent.",
- "enum": [
- "UNSPECIFIED",
- "UNHEALTHY",
- "STALE_STATUS"
- ],
- "enumDescriptions": [
- "",
- "The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).Applies to RUNNING state.",
- "The agent-reported status is out of date (may occur if Cloud Dataproc loses communication with Agent).Applies to RUNNING state."
- ],
- "type": "string"
- },
- "stateStartTime": {
- "description": "Output-only. Time when this state was entered.",
- "format": "google-datetime",
- "type": "string"
- },
"detail": {
"description": "Output-only. Optional details of cluster's state.",
"type": "string"
@@ -1489,6 +1447,25 @@
"The cluster is being updated. It continues to accept and process jobs."
],
"type": "string"
+ },
+ "substate": {
+ "description": "Output-only. Additional state information that includes status reported by the agent.",
+ "enum": [
+ "UNSPECIFIED",
+ "UNHEALTHY",
+ "STALE_STATUS"
+ ],
+ "enumDescriptions": [
+ "",
+ "The cluster is known to be in an unhealthy state (for example, critical daemons are not running or HDFS capacity is exhausted).Applies to RUNNING state.",
+ "The agent-reported status is out of date (may occur if Cloud Dataproc loses communication with Agent).Applies to RUNNING state."
+ ],
+ "type": "string"
+ },
+ "stateStartTime": {
+ "description": "Output-only. Time when this state was entered.",
+ "format": "google-datetime",
+ "type": "string"
}
},
"type": "object"
@@ -1501,66 +1478,12 @@
"description": "Output-only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.",
"type": "string"
},
- "clusters": {
- "description": "Output-only. The clusters in the project.",
- "items": {
- "$ref": "Cluster"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "SparkJob": {
- "description": "A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN.",
- "id": "SparkJob",
- "properties": {
- "args": {
- "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "fileUris": {
- "description": "Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "mainClass": {
- "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.",
- "type": "string"
- },
- "archiveUris": {
- "description": "Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "mainJarFileUri": {
- "description": "The HCFS URI of the jar file that contains the main class.",
- "type": "string"
- },
- "jarFileUris": {
- "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.",
+ "clusters": {
+ "description": "Output-only. The clusters in the project.",
"items": {
- "type": "string"
+ "$ref": "Cluster"
},
"type": "array"
- },
- "loggingConfig": {
- "$ref": "LoggingConfig",
- "description": "Optional. The runtime log config for job execution."
- },
- "properties": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
- "type": "object"
}
},
"type": "object"
@@ -1626,14 +1549,14 @@
"$ref": "HadoopJob",
"description": "Job is a Hadoop job."
},
- "status": {
- "$ref": "JobStatus",
- "description": "Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields."
- },
"placement": {
"$ref": "JobPlacement",
"description": "Required. Job information, including how, when, and where to run the job."
},
+ "status": {
+ "$ref": "JobStatus",
+ "description": "Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields."
+ },
"driverControlFilesUri": {
"description": "Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.",
"type": "string"
@@ -1641,10 +1564,85 @@
},
"type": "object"
},
+ "SparkJob": {
+ "description": "A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN.",
+ "id": "SparkJob",
+ "properties": {
+ "mainJarFileUri": {
+ "description": "The HCFS URI of the jar file that contains the main class.",
+ "type": "string"
+ },
+ "jarFileUris": {
+ "description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "loggingConfig": {
+ "$ref": "LoggingConfig",
+ "description": "Optional. The runtime log config for job execution."
+ },
+ "properties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
+ "type": "object"
+ },
+ "args": {
+ "description": "Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "fileUris": {
+ "description": "Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "mainClass": {
+ "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.",
+ "type": "string"
+ },
+ "archiveUris": {
+ "description": "Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"JobStatus": {
"description": "Cloud Dataproc job status.",
"id": "JobStatus",
"properties": {
+ "substate": {
+ "description": "Output-only. Additional state information, which includes status reported by the agent.",
+ "enum": [
+ "UNSPECIFIED",
+ "SUBMITTED",
+ "QUEUED",
+ "STALE_STATUS"
+ ],
+ "enumDescriptions": [
+ "",
+ "The Job is submitted to the agent.Applies to RUNNING state.",
+ "The Job has been received and is awaiting execution (it may be waiting for a condition to be met). See the \"details\" field for the reason for the delay.Applies to RUNNING state.",
+ "The agent-reported status is out of date, which may be caused by a loss of communication between the agent and Cloud Dataproc. If the agent does not send a timely update, the job will fail.Applies to RUNNING state."
+ ],
+ "type": "string"
+ },
+ "stateStartTime": {
+ "description": "Output-only. The time when this state was entered.",
+ "format": "google-datetime",
+ "type": "string"
+ },
"details": {
"description": "Output-only. Optional job state details, such as an error description if the state is <code>ERROR</code>.",
"type": "string"
@@ -1676,27 +1674,6 @@
"Job attempt has failed. The detail field contains failure details for this attempt.Applies to restartable jobs only."
],
"type": "string"
- },
- "substate": {
- "description": "Output-only. Additional state information, which includes status reported by the agent.",
- "enum": [
- "UNSPECIFIED",
- "SUBMITTED",
- "QUEUED",
- "STALE_STATUS"
- ],
- "enumDescriptions": [
- "",
- "The Job is submitted to the agent.Applies to RUNNING state.",
- "The Job has been received and is awaiting execution (it may be waiting for a condition to be met). See the \"details\" field for the reason for the delay.Applies to RUNNING state.",
- "The agent-reported status is out of date, which may be caused by a loss of communication between the agent and Cloud Dataproc. If the agent does not send a timely update, the job will fail.Applies to RUNNING state."
- ],
- "type": "string"
- },
- "stateStartTime": {
- "description": "Output-only. The time when this state was entered.",
- "format": "google-datetime",
- "type": "string"
}
},
"type": "object"
@@ -1720,6 +1697,15 @@
"description": "The status of the operation.",
"id": "ClusterOperationStatus",
"properties": {
+ "innerState": {
+ "description": "Output-only. A message containing the detailed operation state.",
+ "type": "string"
+ },
+ "stateStartTime": {
+ "description": "Output-only. The time this state was entered.",
+ "format": "google-datetime",
+ "type": "string"
+ },
"details": {
"description": "Output-only.A message containing any operation metadata details.",
"type": "string"
@@ -1739,19 +1725,70 @@
"The operation is done; either cancelled or completed."
],
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "YarnApplication": {
+ "description": "A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
+ "id": "YarnApplication",
+ "properties": {
+ "name": {
+ "description": "Required. The application name.",
+ "type": "string"
},
- "innerState": {
- "description": "Output-only. A message containing the detailed operation state.",
+ "trackingUrl": {
+ "description": "Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.",
"type": "string"
},
- "stateStartTime": {
- "description": "Output-only. The time this state was entered.",
- "format": "google-datetime",
+ "progress": {
+ "description": "Required. The numerical progress of the application, from 1 to 100.",
+ "format": "float",
+ "type": "number"
+ },
+ "state": {
+ "description": "Required. The application state.",
+ "enum": [
+ "STATE_UNSPECIFIED",
+ "NEW",
+ "NEW_SAVING",
+ "SUBMITTED",
+ "ACCEPTED",
+ "RUNNING",
+ "FINISHED",
+ "FAILED",
+ "KILLED"
+ ],
+ "enumDescriptions": [
+ "Status is unspecified.",
+ "Status is NEW.",
+ "Status is NEW_SAVING.",
+ "Status is SUBMITTED.",
+ "Status is ACCEPTED.",
+ "Status is RUNNING.",
+ "Status is FINISHED.",
+ "Status is FAILED.",
+ "Status is KILLED."
+ ],
"type": "string"
}
},
"type": "object"
},
+ "QueryList": {
+ "description": "A list of queries to run on a cluster.",
+ "id": "QueryList",
+ "properties": {
+ "queries": {
+ "description": "Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:\n\"hiveJob\": {\n \"queryList\": {\n \"queries\": [\n \"query1\",\n \"query2\",\n \"query3;query4\",\n ]\n }\n}\n",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"HadoopJob": {
"description": "A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).",
"id": "HadoopJob",
@@ -1806,62 +1843,25 @@
},
"type": "object"
},
- "QueryList": {
- "description": "A list of queries to run on a cluster.",
- "id": "QueryList",
- "properties": {
- "queries": {
- "description": "Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:\n\"hiveJob\": {\n \"queryList\": {\n \"queries\": [\n \"query1\",\n \"query2\",\n \"query3;query4\",\n ]\n }\n}\n",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
+ "DiagnoseClusterRequest": {
+ "description": "A request to collect cluster diagnostic information.",
+ "id": "DiagnoseClusterRequest",
+ "properties": {},
"type": "object"
},
- "YarnApplication": {
- "description": "A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
- "id": "YarnApplication",
+ "DiskConfig": {
+ "description": "Specifies the config of disk options for a group of VM instances.",
+ "id": "DiskConfig",
"properties": {
- "state": {
- "description": "Required. The application state.",
- "enum": [
- "STATE_UNSPECIFIED",
- "NEW",
- "NEW_SAVING",
- "SUBMITTED",
- "ACCEPTED",
- "RUNNING",
- "FINISHED",
- "FAILED",
- "KILLED"
- ],
- "enumDescriptions": [
- "Status is unspecified.",
- "Status is NEW.",
- "Status is NEW_SAVING.",
- "Status is SUBMITTED.",
- "Status is ACCEPTED.",
- "Status is RUNNING.",
- "Status is FINISHED.",
- "Status is FAILED.",
- "Status is KILLED."
- ],
- "type": "string"
- },
- "name": {
- "description": "Required. The application name.",
- "type": "string"
- },
- "trackingUrl": {
- "description": "Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.",
- "type": "string"
+ "numLocalSsds": {
+ "description": "Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.",
+ "format": "int32",
+ "type": "integer"
},
- "progress": {
- "description": "Required. The numerical progress of the application, from 1 to 100.",
- "format": "float",
- "type": "number"
+ "bootDiskSizeGb": {
+ "description": "Optional. Size in GB of the boot disk (default is 500GB).",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
« no previous file with comments | « discovery/googleapis/customsearch__v1.json ('k') | discovery/googleapis/datastore__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698