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

Side by Side Diff: generated/googleapis/lib/servicecontrol/v1.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.servicecontrol.v1; 3 library googleapis.servicecontrol.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 /** 734 /**
735 * Whether or not authorization for `resource` and `permission` 735 * Whether or not authorization for `resource` and `permission`
736 * was granted. 736 * was granted.
737 */ 737 */
738 core.bool granted; 738 core.bool granted;
739 /** The required IAM permission. */ 739 /** The required IAM permission. */
740 core.String permission; 740 core.String permission;
741 /** 741 /**
742 * The resource being accessed, as a REST-style string. For example: 742 * The resource being accessed, as a REST-style string. For example:
743 * 743 *
744 * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID 744 * bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
745 */ 745 */
746 core.String resource; 746 core.String resource;
747 747
748 AuthorizationInfo(); 748 AuthorizationInfo();
749 749
750 AuthorizationInfo.fromJson(core.Map _json) { 750 AuthorizationInfo.fromJson(core.Map _json) {
751 if (_json.containsKey("granted")) { 751 if (_json.containsKey("granted")) {
752 granted = _json["granted"]; 752 granted = _json["granted"];
753 } 753 }
754 if (_json.containsKey("permission")) { 754 if (_json.containsKey("permission")) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 _json["code"] = code; 865 _json["code"] = code;
866 } 866 }
867 if (detail != null) { 867 if (detail != null) {
868 _json["detail"] = detail; 868 _json["detail"] = detail;
869 } 869 }
870 return _json; 870 return _json;
871 } 871 }
872 } 872 }
873 873
874 class CheckInfo { 874 class CheckInfo {
875 /** Consumer info of this check. */
876 ConsumerInfo consumerInfo;
875 /** 877 /**
876 * A list of fields and label keys that are ignored by the server. 878 * A list of fields and label keys that are ignored by the server.
877 * The client doesn't need to send them for following requests to improve 879 * The client doesn't need to send them for following requests to improve
878 * performance and allow better aggregation. 880 * performance and allow better aggregation.
879 */ 881 */
880 core.List<core.String> unusedArguments; 882 core.List<core.String> unusedArguments;
881 883
882 CheckInfo(); 884 CheckInfo();
883 885
884 CheckInfo.fromJson(core.Map _json) { 886 CheckInfo.fromJson(core.Map _json) {
887 if (_json.containsKey("consumerInfo")) {
888 consumerInfo = new ConsumerInfo.fromJson(_json["consumerInfo"]);
889 }
885 if (_json.containsKey("unusedArguments")) { 890 if (_json.containsKey("unusedArguments")) {
886 unusedArguments = _json["unusedArguments"]; 891 unusedArguments = _json["unusedArguments"];
887 } 892 }
888 } 893 }
889 894
890 core.Map<core.String, core.Object> toJson() { 895 core.Map<core.String, core.Object> toJson() {
891 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 896 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
897 if (consumerInfo != null) {
898 _json["consumerInfo"] = (consumerInfo).toJson();
899 }
892 if (unusedArguments != null) { 900 if (unusedArguments != null) {
893 _json["unusedArguments"] = unusedArguments; 901 _json["unusedArguments"] = unusedArguments;
894 } 902 }
895 return _json; 903 return _json;
896 } 904 }
897 } 905 }
898 906
899 /** Request message for the Check method. */ 907 /** Request message for the Check method. */
900 class CheckRequest { 908 class CheckRequest {
901 /** The operation to be checked. */ 909 /** The operation to be checked. */
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 if (quotaInfo != null) { 1019 if (quotaInfo != null) {
1012 _json["quotaInfo"] = (quotaInfo).toJson(); 1020 _json["quotaInfo"] = (quotaInfo).toJson();
1013 } 1021 }
1014 if (serviceConfigId != null) { 1022 if (serviceConfigId != null) {
1015 _json["serviceConfigId"] = serviceConfigId; 1023 _json["serviceConfigId"] = serviceConfigId;
1016 } 1024 }
1017 return _json; 1025 return _json;
1018 } 1026 }
1019 } 1027 }
1020 1028
1029 /** `ConsumerInfo` provides information about the consumer project. */
1030 class ConsumerInfo {
1031 /**
1032 * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
1033 * no project number is found.
1034 */
1035 core.String projectNumber;
1036
1037 ConsumerInfo();
1038
1039 ConsumerInfo.fromJson(core.Map _json) {
1040 if (_json.containsKey("projectNumber")) {
1041 projectNumber = _json["projectNumber"];
1042 }
1043 }
1044
1045 core.Map<core.String, core.Object> toJson() {
1046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1047 if (projectNumber != null) {
1048 _json["projectNumber"] = projectNumber;
1049 }
1050 return _json;
1051 }
1052 }
1053
1021 /** 1054 /**
1022 * Distribution represents a frequency distribution of double-valued sample 1055 * Distribution represents a frequency distribution of double-valued sample
1023 * points. It contains the size of the population of sample points plus 1056 * points. It contains the size of the population of sample points plus
1024 * additional optional information: 1057 * additional optional information:
1025 * 1058 *
1026 * - the arithmetic mean of the samples 1059 * - the arithmetic mean of the samples
1027 * - the minimum and maximum of the samples 1060 * - the minimum and maximum of the samples
1028 * - the sum-squared-deviation of the samples, used to compute variance 1061 * - the sum-squared-deviation of the samples, used to compute variance
1029 * - a histogram of the values of the sample points 1062 * - a histogram of the values of the sample points
1030 */ 1063 */
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 } 1895 }
1863 } 1896 }
1864 1897
1865 class QuotaError { 1898 class QuotaError {
1866 /** 1899 /**
1867 * Error code. 1900 * Error code.
1868 * Possible string values are: 1901 * Possible string values are:
1869 * - "UNSPECIFIED" : This is never used. 1902 * - "UNSPECIFIED" : This is never used.
1870 * - "RESOURCE_EXHAUSTED" : Quota allocation failed. 1903 * - "RESOURCE_EXHAUSTED" : Quota allocation failed.
1871 * Same as google.rpc.Code.RESOURCE_EXHAUSTED. 1904 * Same as google.rpc.Code.RESOURCE_EXHAUSTED.
1905 * - "OUT_OF_RANGE" : Quota release failed. This error is ONLY returned on a
1906 * NORMAL release.
1907 * More formally: if a user requests a release of 10 tokens, but only
1908 * 5 tokens were previously allocated, in a BEST_EFFORT release, this will
1909 * be considered a success, 5 tokens will be released, and the result will
1910 * be "Ok". If this is done in NORMAL mode, no tokens will be released,
1911 * and an OUT_OF_RANGE error will be returned.
1912 * Same as google.rpc.Code.OUT_OF_RANGE.
1872 * - "BILLING_NOT_ACTIVE" : Consumer cannot access the service because the 1913 * - "BILLING_NOT_ACTIVE" : Consumer cannot access the service because the
1873 * service requires active 1914 * service requires active
1874 * billing. 1915 * billing.
1875 * - "PROJECT_DELETED" : Consumer's project has been marked as deleted (soft 1916 * - "PROJECT_DELETED" : Consumer's project has been marked as deleted (soft
1876 * deletion). 1917 * deletion).
1877 * - "API_KEY_INVALID" : Specified API key is invalid. 1918 * - "API_KEY_INVALID" : Specified API key is invalid.
1878 * - "API_KEY_EXPIRED" : Specified API Key has expired. 1919 * - "API_KEY_EXPIRED" : Specified API Key has expired.
1879 * - "SPATULA_HEADER_INVALID" : Consumer's spatula header is invalid. 1920 * - "SPATULA_HEADER_INVALID" : Consumer's spatula header is invalid.
1880 * - "LOAS_ROLE_INVALID" : The consumer's LOAS role is invalid. 1921 * - "LOAS_ROLE_INVALID" : The consumer's LOAS role is invalid.
1881 * - "NO_LOAS_PROJECT" : The consumer's LOAS role has no associated project. 1922 * - "NO_LOAS_PROJECT" : The consumer's LOAS role has no associated project.
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2441 } 2482 }
2442 if (serviceConfigId != null) { 2483 if (serviceConfigId != null) {
2443 _json["serviceConfigId"] = serviceConfigId; 2484 _json["serviceConfigId"] = serviceConfigId;
2444 } 2485 }
2445 return _json; 2486 return _json;
2446 } 2487 }
2447 } 2488 }
2448 2489
2449 /** Metadata about the request. */ 2490 /** Metadata about the request. */
2450 class RequestMetadata { 2491 class RequestMetadata {
2451 /** The IP address of the caller. */ 2492 /**
2493 * The IP address of the caller.
2494 * For caller from internet, this will be public IPv4 or IPv6 address.
2495 * For caller from GCE VM with external IP address, this will be the VM's
2496 * external IP address. For caller from GCE VM without external IP address, if
2497 * the VM is in the same GCP organization (or project) as the accessed
2498 * resource, `caller_ip` will be the GCE VM's internal IPv4 address, otherwise
2499 * it will be redacted to "gce-internal-ip".
2500 * See https://cloud.google.com/compute/docs/vpc/ for more information.
2501 */
2452 core.String callerIp; 2502 core.String callerIp;
2453 /** 2503 /**
2454 * The user agent of the caller. 2504 * The user agent of the caller.
2455 * This information is not authenticated and should be treated accordingly. 2505 * This information is not authenticated and should be treated accordingly.
2456 * For example: 2506 * For example:
2457 * 2507 *
2458 * + `google-api-python-client/1.4.0`: 2508 * + `google-api-python-client/1.4.0`:
2459 * The request was made by the Google API client for Python. 2509 * The request was made by the Google API client for Python.
2460 * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: 2510 * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
2461 * The request was made by the Google Cloud SDK CLI (gcloud). 2511 * The request was made by the Google Cloud SDK CLI (gcloud).
2462 * + `AppEngine-Google; (+http://code.google.com/appengine; appid: 2512 * + `AppEngine-Google; (+http://code.google.com/appengine; appid:
2463 * s~my-project`: 2513 * s~my-project`:
2464 * The request was made from the `my-project` App Engine app. 2514 * The request was made from the `my-project` App Engine app.
2465 *
2466 * NOLINT 2515 * NOLINT
2467 */ 2516 */
2468 core.String callerSuppliedUserAgent; 2517 core.String callerSuppliedUserAgent;
2469 2518
2470 RequestMetadata(); 2519 RequestMetadata();
2471 2520
2472 RequestMetadata.fromJson(core.Map _json) { 2521 RequestMetadata.fromJson(core.Map _json) {
2473 if (_json.containsKey("callerIp")) { 2522 if (_json.containsKey("callerIp")) {
2474 callerIp = _json["callerIp"]; 2523 callerIp = _json["callerIp"];
2475 } 2524 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 * results in its response, the status of those operations should be 2684 * results in its response, the status of those operations should be
2636 * represented directly using the `Status` message. 2685 * represented directly using the `Status` message.
2637 * 2686 *
2638 * - Logging. If some API errors are stored in logs, the message `Status` could 2687 * - Logging. If some API errors are stored in logs, the message `Status` could
2639 * be used directly after any stripping needed for security/privacy reasons. 2688 * be used directly after any stripping needed for security/privacy reasons.
2640 */ 2689 */
2641 class Status { 2690 class Status {
2642 /** The status code, which should be an enum value of google.rpc.Code. */ 2691 /** The status code, which should be an enum value of google.rpc.Code. */
2643 core.int code; 2692 core.int code;
2644 /** 2693 /**
2645 * A list of messages that carry the error details. There will be a 2694 * A list of messages that carry the error details. There is a common set of
2646 * common set of message types for APIs to use. 2695 * message types for APIs to use.
2647 * 2696 *
2648 * The values for Object must be JSON objects. It can consist of `num`, 2697 * The values for Object must be JSON objects. It can consist of `num`,
2649 * `String`, `bool` and `null` as well as `Map` and `List` values. 2698 * `String`, `bool` and `null` as well as `Map` and `List` values.
2650 */ 2699 */
2651 core.List<core.Map<core.String, core.Object>> details; 2700 core.List<core.Map<core.String, core.Object>> details;
2652 /** 2701 /**
2653 * A developer-facing error message, which should be in English. Any 2702 * A developer-facing error message, which should be in English. Any
2654 * user-facing error message should be localized and sent in the 2703 * user-facing error message should be localized and sent in the
2655 * google.rpc.Status.details field, or localized by the client. 2704 * google.rpc.Status.details field, or localized by the client.
2656 */ 2705 */
(...skipping 20 matching lines...) Expand all
2677 } 2726 }
2678 if (details != null) { 2727 if (details != null) {
2679 _json["details"] = details; 2728 _json["details"] = details;
2680 } 2729 }
2681 if (message != null) { 2730 if (message != null) {
2682 _json["message"] = message; 2731 _json["message"] = message;
2683 } 2732 }
2684 return _json; 2733 return _json;
2685 } 2734 }
2686 } 2735 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/safebrowsing/v4.dart ('k') | generated/googleapis/lib/servicemanagement/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698