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

Side by Side Diff: discovery/googleapis_beta/dataproc__v1beta1.json

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://dataproc.googleapis.com/", 12 "baseUrl": "https://dataproc.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "description": "Manages Hadoop-based clusters and jobs on Google Cloud Platf orm.", 14 "description": "An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.",
15 "discoveryVersion": "v1", 15 "discoveryVersion": "v1",
16 "documentationLink": "https://cloud.google.com/dataproc/", 16 "documentationLink": "https://cloud.google.com/dataproc/",
17 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/xUykUeDoZBMkhqViXbAjUkEVLQw\"", 17 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/cZQ-6vqHhMM0YELMHYWsiSzNXAM\"",
18 "icons": { 18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", 19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" 20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 }, 21 },
22 "id": "dataproc:v1beta1", 22 "id": "dataproc:v1beta1",
23 "kind": "discovery#restDescription", 23 "kind": "discovery#restDescription",
24 "name": "dataproc", 24 "name": "dataproc",
25 "ownerDomain": "google.com", 25 "ownerDomain": "google.com",
26 "ownerName": "Google", 26 "ownerName": "Google",
27 "parameters": { 27 "parameters": {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 "parameterOrder": [ 240 "parameterOrder": [
241 "projectId" 241 "projectId"
242 ], 242 ],
243 "parameters": { 243 "parameters": {
244 "projectId": { 244 "projectId": {
245 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.", 245 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.",
246 "location": "path", 246 "location": "path",
247 "required": true, 247 "required": true,
248 "type": "string" 248 "type": "string"
249 }, 249 },
250 "filter": {
251 "description": "[Optional] A filter constrai ning which clusters to list. Valid filters contain label terms such as: labels.k ey1 = val1 AND (-labels.k2 = val2 OR labels.k3 = val3)",
252 "location": "query",
253 "type": "string"
254 },
250 "pageSize": { 255 "pageSize": {
251 "description": "The standard List page size. ", 256 "description": "The standard List page size. ",
252 "format": "int32", 257 "format": "int32",
253 "location": "query", 258 "location": "query",
254 "type": "integer" 259 "type": "integer"
255 }, 260 },
256 "pageToken": { 261 "pageToken": {
257 "description": "The standard List page token .", 262 "description": "The standard List page token .",
258 "location": "query", 263 "location": "query",
259 "type": "string" 264 "type": "string"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 }, 397 },
393 "jobStateMatcher": { 398 "jobStateMatcher": {
394 "description": "[Optional] Specifies enumera ted categories of jobs to list.", 399 "description": "[Optional] Specifies enumera ted categories of jobs to list.",
395 "enum": [ 400 "enum": [
396 "ALL", 401 "ALL",
397 "ACTIVE", 402 "ACTIVE",
398 "NON_ACTIVE" 403 "NON_ACTIVE"
399 ], 404 ],
400 "location": "query", 405 "location": "query",
401 "type": "string" 406 "type": "string"
407 },
408 "filter": {
409 "description": "[Optional] A filter constrai ning which jobs to list. Valid filters contain job state and label terms such as : labels.key1 = val1 AND (labels.k2 = val2 OR labels.k3 = val3)",
410 "location": "query",
411 "type": "string"
402 } 412 }
403 }, 413 },
404 "path": "v1beta1/projects/{projectId}/jobs", 414 "path": "v1beta1/projects/{projectId}/jobs",
405 "response": { 415 "response": {
406 "$ref": "ListJobsResponse" 416 "$ref": "ListJobsResponse"
407 }, 417 },
408 "scopes": [ 418 "scopes": [
409 "https://www.googleapis.com/auth/cloud-platform" 419 "https://www.googleapis.com/auth/cloud-platform"
410 ] 420 ]
411 }, 421 },
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 "description": "Gets the latest state of a long-running oper ation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", 492 "description": "Gets the latest state of a long-running oper ation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
483 "httpMethod": "GET", 493 "httpMethod": "GET",
484 "id": "dataproc.operations.get", 494 "id": "dataproc.operations.get",
485 "parameterOrder": [ 495 "parameterOrder": [
486 "name" 496 "name"
487 ], 497 ],
488 "parameters": { 498 "parameters": {
489 "name": { 499 "name": {
490 "description": "The name of the operation resource." , 500 "description": "The name of the operation resource." ,
491 "location": "path", 501 "location": "path",
492 "pattern": "^operations/.*$", 502 "pattern": "^operations/.+$",
493 "required": true, 503 "required": true,
494 "type": "string" 504 "type": "string"
495 } 505 }
496 }, 506 },
497 "path": "v1beta1/{+name}", 507 "path": "v1beta1/{+name}",
498 "response": { 508 "response": {
499 "$ref": "Operation" 509 "$ref": "Operation"
500 }, 510 },
501 "scopes": [ 511 "scopes": [
502 "https://www.googleapis.com/auth/cloud-platform" 512 "https://www.googleapis.com/auth/cloud-platform"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 "description": "Starts asynchronous cancellation on a long-r unning operation. The server makes a best effort to cancel the operation, but su ccess is not guaranteed. If the server doesn't support this method, it returns ` google.rpc.Code.UNIMPLEMENTED`. Clients can use [operations.get](/dataproc/refer ence/rest/v1beta1/operations/get) or other methods to check whether the cancella tion succeeded or whether the operation completed despite cancellation.", 556 "description": "Starts asynchronous cancellation on a long-r unning operation. The server makes a best effort to cancel the operation, but su ccess is not guaranteed. If the server doesn't support this method, it returns ` google.rpc.Code.UNIMPLEMENTED`. Clients can use [operations.get](/dataproc/refer ence/rest/v1beta1/operations/get) or other methods to check whether the cancella tion succeeded or whether the operation completed despite cancellation.",
547 "httpMethod": "POST", 557 "httpMethod": "POST",
548 "id": "dataproc.operations.cancel", 558 "id": "dataproc.operations.cancel",
549 "parameterOrder": [ 559 "parameterOrder": [
550 "name" 560 "name"
551 ], 561 ],
552 "parameters": { 562 "parameters": {
553 "name": { 563 "name": {
554 "description": "The name of the operation resource t o be cancelled.", 564 "description": "The name of the operation resource t o be cancelled.",
555 "location": "path", 565 "location": "path",
556 "pattern": "^operations/.*$", 566 "pattern": "^operations/.+$",
557 "required": true, 567 "required": true,
558 "type": "string" 568 "type": "string"
559 } 569 }
560 }, 570 },
561 "path": "v1beta1/{+name}:cancel", 571 "path": "v1beta1/{+name}:cancel",
562 "request": { 572 "request": {
563 "$ref": "CancelOperationRequest" 573 "$ref": "CancelOperationRequest"
564 }, 574 },
565 "response": { 575 "response": {
566 "$ref": "Empty" 576 "$ref": "Empty"
567 }, 577 },
568 "scopes": [ 578 "scopes": [
569 "https://www.googleapis.com/auth/cloud-platform" 579 "https://www.googleapis.com/auth/cloud-platform"
570 ] 580 ]
571 }, 581 },
572 "delete": { 582 "delete": {
573 "description": "Deletes a long-running operation. This metho d 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 ret urns `google.rpc.Code.UNIMPLEMENTED`.", 583 "description": "Deletes a long-running operation. This metho d 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 ret urns `google.rpc.Code.UNIMPLEMENTED`.",
574 "httpMethod": "DELETE", 584 "httpMethod": "DELETE",
575 "id": "dataproc.operations.delete", 585 "id": "dataproc.operations.delete",
576 "parameterOrder": [ 586 "parameterOrder": [
577 "name" 587 "name"
578 ], 588 ],
579 "parameters": { 589 "parameters": {
580 "name": { 590 "name": {
581 "description": "The name of the operation resource t o be deleted.", 591 "description": "The name of the operation resource t o be deleted.",
582 "location": "path", 592 "location": "path",
583 "pattern": "^operations/.*$", 593 "pattern": "^operations/.+$",
584 "required": true, 594 "required": true,
585 "type": "string" 595 "type": "string"
586 } 596 }
587 }, 597 },
588 "path": "v1beta1/{+name}", 598 "path": "v1beta1/{+name}",
589 "response": { 599 "response": {
590 "$ref": "Empty" 600 "$ref": "Empty"
591 }, 601 },
592 "scopes": [ 602 "scopes": [
593 "https://www.googleapis.com/auth/cloud-platform" 603 "https://www.googleapis.com/auth/cloud-platform"
594 ] 604 ]
595 } 605 }
596 } 606 }
597 } 607 }
598 }, 608 },
599 "revision": "20160503", 609 "revision": "20161102",
600 "rootUrl": "https://dataproc.googleapis.com/", 610 "rootUrl": "https://dataproc.googleapis.com/",
601 "schemas": { 611 "schemas": {
602 "Cluster": { 612 "Cluster": {
603 "description": "Describes the identifying information, configuration , and status of a cluster of Google Compute Engine instances.", 613 "description": "Describes the identifying information, configuration , and status of a cluster of Google Compute Engine instances.",
604 "id": "Cluster", 614 "id": "Cluster",
605 "properties": { 615 "properties": {
606 "projectId": { 616 "projectId": {
607 "description": "[Required] The Google Cloud Platform project ID that the cluster belongs to.", 617 "description": "[Required] The Google Cloud Platform project ID that the cluster belongs to.",
608 "type": "string" 618 "type": "string"
609 }, 619 },
610 "clusterName": { 620 "clusterName": {
611 "description": "[Required] The cluster name. Cluster names w ithin a project must be unique. Names from deleted clusters can be reused.", 621 "description": "[Required] The cluster name. Cluster names w ithin a project must be unique. Names from deleted clusters can be reused.",
612 "type": "string" 622 "type": "string"
613 }, 623 },
614 "configuration": { 624 "configuration": {
615 "$ref": "ClusterConfiguration", 625 "$ref": "ClusterConfiguration",
616 "description": "[Required] The cluster configuration. Note t hat Cloud Dataproc may set default values, and values may change when clusters a re updated." 626 "description": "[Required] The cluster configuration. Note t hat Cloud Dataproc may set default values, and values may change when clusters a re updated."
617 }, 627 },
628 "labels": {
629 "additionalProperties": {
630 "type": "string"
631 },
632 "description": "[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 reg ular expression: [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} No more than 64 labels can be as sociated with a given cluster.",
633 "type": "object"
634 },
618 "status": { 635 "status": {
619 "$ref": "ClusterStatus", 636 "$ref": "ClusterStatus",
620 "description": "[Output-only] Cluster status." 637 "description": "[Output-only] Cluster status."
621 }, 638 },
622 "statusHistory": { 639 "statusHistory": {
623 "description": "[Output-only] Previous cluster statuses.", 640 "description": "[Output-only] Previous cluster statuses.",
624 "items": { 641 "items": {
625 "$ref": "ClusterStatus" 642 "$ref": "ClusterStatus"
626 }, 643 },
627 "type": "array" 644 "type": "array"
628 }, 645 },
629 "clusterUuid": { 646 "clusterUuid": {
630 "description": "[Output-only] A cluster UUID (Unique Univers al Identifier). Cloud Dataproc generates this value when it creates the cluster. ", 647 "description": "[Output-only] A cluster UUID (Unique Univers al Identifier). Cloud Dataproc generates this value when it creates the cluster. ",
631 "type": "string" 648 "type": "string"
649 },
650 "metrics": {
651 "$ref": "ClusterMetrics",
652 "description": "Contains cluster daemon metrics such as HDFS and YARN stats."
632 } 653 }
633 }, 654 },
634 "type": "object" 655 "type": "object"
635 }, 656 },
636 "ClusterConfiguration": { 657 "ClusterConfiguration": {
637 "description": "The cluster configuration.", 658 "description": "The cluster configuration.",
638 "id": "ClusterConfiguration", 659 "id": "ClusterConfiguration",
639 "properties": { 660 "properties": {
640 "configurationBucket": { 661 "configurationBucket": {
641 "description": "[Optional] A Google Cloud Storage staging bu cket used for sharing generated SSH keys and configuration. If you do not specif y a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage l ocation (US, ASIA, or EU) for your cluster's staging bucket according to the Goo gle Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.", 662 "description": "[Optional] A Google Cloud Storage staging bu cket used for sharing generated SSH keys and configuration. If you do not specif y a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage l ocation (US, ASIA, or EU) for your cluster's staging bucket according to the Goo gle Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 "type": "string" 701 "type": "string"
681 }, 702 },
682 "networkUri": { 703 "networkUri": {
683 "description": "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 pro ject is used, if it exists. Cannot be a \"Custom Subnet Network\" (see https://c loud.google.com/compute/docs/subnetworks for more information). Example: `https: //www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.", 704 "description": "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 pro ject is used, if it exists. Cannot be a \"Custom Subnet Network\" (see https://c loud.google.com/compute/docs/subnetworks for more information). Example: `https: //www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.",
684 "type": "string" 705 "type": "string"
685 }, 706 },
686 "subnetworkUri": { 707 "subnetworkUri": {
687 "description": "The Google Compute Engine subnetwork to be u sed for machine communications. Cannot be specified with network_uri. Example: ` https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub 0`.", 708 "description": "The Google Compute Engine subnetwork to be u sed for machine communications. Cannot be specified with network_uri. Example: ` https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub 0`.",
688 "type": "string" 709 "type": "string"
689 }, 710 },
711 "internalIpOnly": {
712 "description": "If true, all instances in the cluser will on ly have internal IP addresses. By default, clusters are not restricted to intern al 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 ext ernal IP addresses.",
713 "type": "boolean"
714 },
690 "serviceAccountScopes": { 715 "serviceAccountScopes": {
691 "description": "The URIs of service account scopes to be inc luded in Google Compute Engine instances. The following base set of scopes is al ways included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - h ttps://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.co m/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.co m/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - ht tps://www.googleapis.com/auth/devstorage.full_control", 716 "description": "The URIs of service account scopes to be inc luded in Google Compute Engine instances. The following base set of scopes is al ways included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - h ttps://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.co m/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.co m/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - ht tps://www.googleapis.com/auth/devstorage.full_control",
692 "items": { 717 "items": {
693 "type": "string" 718 "type": "string"
694 }, 719 },
695 "type": "array" 720 "type": "array"
696 }, 721 },
697 "tags": { 722 "tags": {
698 "description": "The Google Compute Engine tags to add to all instances.", 723 "description": "The Google Compute Engine tags to add to all instances.",
699 "items": { 724 "items": {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 "description": "Optional details of cluster's state.", 860 "description": "Optional details of cluster's state.",
836 "type": "string" 861 "type": "string"
837 }, 862 },
838 "stateStartTime": { 863 "stateStartTime": {
839 "description": "Time when this state was entered.", 864 "description": "Time when this state was entered.",
840 "type": "string" 865 "type": "string"
841 } 866 }
842 }, 867 },
843 "type": "object" 868 "type": "object"
844 }, 869 },
870 "ClusterMetrics": {
871 "description": "Contains cluster daemon metrics, such as HDFS and YA RN stats.",
872 "id": "ClusterMetrics",
873 "properties": {
874 "hdfsMetrics": {
875 "additionalProperties": {
876 "format": "int64",
877 "type": "string"
878 },
879 "description": "The HDFS metrics.",
880 "type": "object"
881 },
882 "yarnMetrics": {
883 "additionalProperties": {
884 "format": "int64",
885 "type": "string"
886 },
887 "description": "The YARN metrics.",
888 "type": "object"
889 }
890 },
891 "type": "object"
892 },
845 "Operation": { 893 "Operation": {
846 "description": "This resource represents a long-running operation th at is the result of a network API call.", 894 "description": "This resource represents a long-running operation th at is the result of a network API call.",
847 "id": "Operation", 895 "id": "Operation",
848 "properties": { 896 "properties": {
849 "name": { 897 "name": {
850 "description": "The server-assigned name, which is only uniq ue within the same service that originally returns it. If you use the default HT TP mapping, the `name` should have the format of `operations/some/unique/name`." , 898 "description": "The server-assigned name, which is only uniq ue within the same service that originally returns it. If you use the default HT TP mapping, the `name` should have the format of `operations/some/unique/name`." ,
851 "type": "string" 899 "type": "string"
852 }, 900 },
853 "metadata": { 901 "metadata": {
854 "additionalProperties": { 902 "additionalProperties": {
855 "description": "Properties of the object. Contains field @ype with type URL.", 903 "description": "Properties of the object. Contains field @type with type URL.",
856 "type": "any" 904 "type": "any"
857 }, 905 },
858 "description": "Service-specific metadata associated with th e 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.", 906 "description": "Service-specific metadata associated with th e 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.",
859 "type": "object" 907 "type": "object"
860 }, 908 },
861 "done": { 909 "done": {
862 "description": "If the value is `false`, it means the operat ion is still in progress. If true, the operation is completed, and either `error ` or `response` is available.", 910 "description": "If the value is `false`, it means the operat ion is still in progress. If true, the operation is completed, and either `error ` or `response` is available.",
863 "type": "boolean" 911 "type": "boolean"
864 }, 912 },
865 "error": { 913 "error": {
866 "$ref": "Status", 914 "$ref": "Status",
867 "description": "The error result of the operation in case of failure." 915 "description": "The error result of the operation in case of failure or cancellation."
868 }, 916 },
869 "response": { 917 "response": {
870 "additionalProperties": { 918 "additionalProperties": {
871 "description": "Properties of the object. Contains field @ype with type URL.", 919 "description": "Properties of the object. Contains field @type with type URL.",
872 "type": "any" 920 "type": "any"
873 }, 921 },
874 "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 `G et`/`Create`/`Update`, the response should be the resource. For other methods, t he response should have the type `XxxResponse`, where `Xxx` is the original meth od name. For example, if the original method name is `TakeSnapshot()`, the infer red response type is `TakeSnapshotResponse`.", 922 "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 `G et`/`Create`/`Update`, the response should be the resource. For other methods, t he response should have the type `XxxResponse`, where `Xxx` is the original meth od name. For example, if the original method name is `TakeSnapshot()`, the infer red response type is `TakeSnapshotResponse`.",
875 "type": "object" 923 "type": "object"
876 } 924 }
877 }, 925 },
878 "type": "object" 926 "type": "object"
879 }, 927 },
880 "Status": { 928 "Status": {
881 "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 designe d to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. Th e error message should be a developer-facing English message that helps develope rs *understand* and *resolve* the error. If a localized user-facing error messag e is needed, put the localized message in the error details or localize it in th e 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.r pc` which can be used for common error conditions. # Language mapping The `Statu s` message is the logical representation of the error model, but it is not neces sarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. Fo r example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` m essage can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Exampl e uses of this error model include: - Partial errors. If a service needs to retu rn partial errors to the client, it may embed the `Status` in the normal respons e to indicate the partial errors. - Workflow errors. A typical workflow has mult iple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Statu s` message should be used directly inside batch response, one for each error sub -response. - Asynchronous operations. If an API call embeds asynchronous operati on results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored i n logs, the message `Status` could be used directly after any stripping needed f or security/privacy reasons.", 929 "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 designe d to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. Th e error message should be a developer-facing English message that helps develope rs *understand* and *resolve* the error. If a localized user-facing error messag e is needed, put the localized message in the error details or localize it in th e 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.r pc` which can be used for common error conditions. # Language mapping The `Statu s` message is the logical representation of the error model, but it is not neces sarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. Fo r example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` m essage can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Exampl e uses of this error model include: - Partial errors. If a service needs to retu rn partial errors to the client, it may embed the `Status` in the normal respons e to indicate the partial errors. - Workflow errors. A typical workflow has mult iple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Statu s` message should be used directly inside batch response, one for each error sub -response. - Asynchronous operations. If an API call embeds asynchronous operati on results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored i n logs, the message `Status` could be used directly after any stripping needed f or security/privacy reasons.",
882 "id": "Status", 930 "id": "Status",
883 "properties": { 931 "properties": {
884 "code": { 932 "code": {
885 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 933 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
886 "format": "int32", 934 "format": "int32",
887 "type": "integer" 935 "type": "integer"
888 }, 936 },
889 "message": { 937 "message": {
890 "description": "A developer-facing error message, which shou ld 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.", 938 "description": "A developer-facing error message, which shou ld 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.",
891 "type": "string" 939 "type": "string"
892 }, 940 },
893 "details": { 941 "details": {
894 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.", 942 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.",
895 "items": { 943 "items": {
896 "additionalProperties": { 944 "additionalProperties": {
897 "description": "Properties of the object. Contains f ield @ype with type URL.", 945 "description": "Properties of the object. Contains f ield @type with type URL.",
898 "type": "any" 946 "type": "any"
899 }, 947 },
900 "type": "object" 948 "type": "object"
901 }, 949 },
902 "type": "array" 950 "type": "array"
903 } 951 }
904 }, 952 },
905 "type": "object" 953 "type": "object"
906 }, 954 },
907 "ListClustersResponse": { 955 "ListClustersResponse": {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 "description": "[Output-only] A URI pointing to the location of the stdout of the job's driver program.", 1052 "description": "[Output-only] A URI pointing to the location of the stdout of the job's driver program.",
1005 "type": "string" 1053 "type": "string"
1006 }, 1054 },
1007 "driverControlFilesUri": { 1055 "driverControlFilesUri": {
1008 "description": "[Output-only] If present, the location of mi scellaneous control files which may be used as part of job setup and handling. I f not present, control files may be placed in the same location as `driver_outpu t_uri`.", 1056 "description": "[Output-only] If present, the location of mi scellaneous control files which may be used as part of job setup and handling. I f not present, control files may be placed in the same location as `driver_outpu t_uri`.",
1009 "type": "string" 1057 "type": "string"
1010 }, 1058 },
1011 "interactive": { 1059 "interactive": {
1012 "description": "[Optional] If set to `true`, the driver's st din will be kept open and `driver_input_uri` will be set to provide a path at wh ich additional input can be sent to the driver.", 1060 "description": "[Optional] If set to `true`, the driver's st din will be kept open and `driver_input_uri` will be set to provide a path at wh ich additional input can be sent to the driver.",
1013 "type": "boolean" 1061 "type": "boolean"
1062 },
1063 "labels": {
1064 "additionalProperties": {
1065 "type": "string"
1066 },
1067 "description": "[Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to t he following regular expression: \\p{Ll}\\p{Lo}{0,62} Label values must be betwe en 1 and 63 characters long, and must conform to the following regular expressio n: [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} No more than 64 labels can be associated with a given job.",
1068 "type": "object"
1014 } 1069 }
1015 }, 1070 },
1016 "type": "object" 1071 "type": "object"
1017 }, 1072 },
1018 "JobReference": { 1073 "JobReference": {
1019 "description": "Encapsulates the full scoping used to reference a jo b.", 1074 "description": "Encapsulates the full scoping used to reference a jo b.",
1020 "id": "JobReference", 1075 "id": "JobReference",
1021 "properties": { 1076 "properties": {
1022 "projectId": { 1077 "projectId": {
1023 "description": "[Required] The ID of the Google Cloud Platfo rm project that the job belongs to.", 1078 "description": "[Required] The ID of the Google Cloud Platfo rm project that the job belongs to.",
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 "CancelOperationRequest": { 1542 "CancelOperationRequest": {
1488 "description": "The request message for Operations.CancelOperation." , 1543 "description": "The request message for Operations.CancelOperation." ,
1489 "id": "CancelOperationRequest", 1544 "id": "CancelOperationRequest",
1490 "type": "object" 1545 "type": "object"
1491 }, 1546 },
1492 "DiagnoseClusterResults": { 1547 "DiagnoseClusterResults": {
1493 "description": "The location of diagnostic output.", 1548 "description": "The location of diagnostic output.",
1494 "id": "DiagnoseClusterResults", 1549 "id": "DiagnoseClusterResults",
1495 "properties": { 1550 "properties": {
1496 "outputUri": { 1551 "outputUri": {
1497 "description": "[Output-only] The Google Cloud Storage URI o f the diagnostic output. This is a plain text file with a summary of collected d iagnostics.", 1552 "description": "[Output-only] The Google Cloud Storage URI o f the diagnostic output. The output report is a plain text file with a summary o f collected diagnostics.",
1498 "type": "string" 1553 "type": "string"
1499 } 1554 }
1500 }, 1555 },
1501 "type": "object" 1556 "type": "object"
1502 }, 1557 },
1503 "ClusterOperationMetadata": { 1558 "ClusterOperationMetadata": {
1504 "description": "Metadata describing the operation.", 1559 "description": "Metadata describing the operation.",
1505 "id": "ClusterOperationMetadata", 1560 "id": "ClusterOperationMetadata",
1506 "properties": { 1561 "properties": {
1507 "clusterName": { 1562 "clusterName": {
1508 "description": "Name of the cluster for the operation.", 1563 "description": "[Output-only] Name of the cluster for the op eration.",
1509 "type": "string" 1564 "type": "string"
1510 }, 1565 },
1511 "clusterUuid": { 1566 "clusterUuid": {
1512 "description": "Cluster UUId for the operation.", 1567 "description": "[Output-only] Cluster UUID for the operation .",
1513 "type": "string" 1568 "type": "string"
1514 }, 1569 },
1515 "status": { 1570 "status": {
1516 "$ref": "ClusterOperationStatus", 1571 "$ref": "ClusterOperationStatus",
1517 "description": "[Output-only] Current operation status." 1572 "description": "[Output-only] Current operation status."
1518 }, 1573 },
1519 "statusHistory": { 1574 "statusHistory": {
1520 "description": "[Output-only] The previous operation status. ", 1575 "description": "[Output-only] The previous operation status. ",
1521 "items": { 1576 "items": {
1522 "$ref": "ClusterOperationStatus" 1577 "$ref": "ClusterOperationStatus"
1523 }, 1578 },
1524 "type": "array" 1579 "type": "array"
1525 }, 1580 },
1526 "operationType": { 1581 "operationType": {
1527 "description": "[Output-only] The operation type.", 1582 "description": "[Output-only] The operation type.",
1528 "type": "string" 1583 "type": "string"
1529 }, 1584 },
1530 "description": { 1585 "description": {
1531 "description": "[Output-only] Short description of operation .", 1586 "description": "[Output-only] Short description of operation .",
1532 "type": "string" 1587 "type": "string"
1588 },
1589 "labels": {
1590 "additionalProperties": {
1591 "type": "string"
1592 },
1593 "description": "[Output-only] labels associated with the ope ration",
1594 "type": "object"
1533 } 1595 }
1534 }, 1596 },
1535 "type": "object" 1597 "type": "object"
1536 }, 1598 },
1537 "ClusterOperationStatus": { 1599 "ClusterOperationStatus": {
1538 "description": "The status of the operation.", 1600 "description": "The status of the operation.",
1539 "id": "ClusterOperationStatus", 1601 "id": "ClusterOperationStatus",
1540 "properties": { 1602 "properties": {
1541 "state": { 1603 "state": {
1542 "description": "A message containing the operation state.", 1604 "description": "[Output-only] A message containing the opera tion state.",
1543 "enum": [ 1605 "enum": [
1544 "UNKNOWN", 1606 "UNKNOWN",
1545 "PENDING", 1607 "PENDING",
1546 "RUNNING", 1608 "RUNNING",
1547 "DONE" 1609 "DONE"
1548 ], 1610 ],
1549 "type": "string" 1611 "type": "string"
1550 }, 1612 },
1551 "innerState": { 1613 "innerState": {
1552 "description": "A message containing the detailed operation state.", 1614 "description": "[Output-only] A message containing the detai led operation state.",
1553 "type": "string" 1615 "type": "string"
1554 }, 1616 },
1555 "details": { 1617 "details": {
1556 "description": "A message containing any operation metadata details.", 1618 "description": "[Output-only]A message containing any operat ion metadata details.",
1557 "type": "string" 1619 "type": "string"
1558 }, 1620 },
1559 "stateStartTime": { 1621 "stateStartTime": {
1560 "description": "The time this state was entered.", 1622 "description": "[Output-only] The time this state was entere d.",
1561 "type": "string" 1623 "type": "string"
1562 } 1624 }
1563 }, 1625 },
1564 "type": "object" 1626 "type": "object"
1565 }, 1627 },
1566 "DiagnoseClusterOutputLocation": { 1628 "DiagnoseClusterOutputLocation": {
1567 "description": "The location where output from diagnostic command ca n be found.", 1629 "description": "The location where output from diagnostic command ca n be found.",
1568 "id": "DiagnoseClusterOutputLocation", 1630 "id": "DiagnoseClusterOutputLocation",
1569 "properties": { 1631 "properties": {
1570 "outputUri": { 1632 "outputUri": {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 "type": "string" 1727 "type": "string"
1666 } 1728 }
1667 }, 1729 },
1668 "type": "object" 1730 "type": "object"
1669 } 1731 }
1670 }, 1732 },
1671 "servicePath": "", 1733 "servicePath": "",
1672 "title": "Google Cloud Dataproc API", 1734 "title": "Google Cloud Dataproc API",
1673 "version": "v1beta1" 1735 "version": "v1beta1"
1674 } 1736 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/dataflow__v1b3.json ('k') | discovery/googleapis_beta/datastore__v1beta3.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698