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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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
« no previous file with comments | « generated/googleapis/lib/sourcerepo/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.spanner.v1; 3 library googleapis.spanner.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 * Lists the supported instance configurations for a given project. 95 * Lists the supported instance configurations for a given project.
96 * 96 *
97 * Request parameters: 97 * Request parameters:
98 * 98 *
99 * [parent] - Required. The name of the project for which a list of supported 99 * [parent] - Required. The name of the project for which a list of supported
100 * instance 100 * instance
101 * configurations is requested. Values are of the form 101 * configurations is requested. Values are of the form
102 * `projects/<project>`. 102 * `projects/<project>`.
103 * Value must have pattern "^projects/[^/]+$". 103 * Value must have pattern "^projects/[^/]+$".
104 * 104 *
105 * [pageToken] - If non-empty, `page_token` should contain a
106 * next_page_token
107 * from a previous ListInstanceConfigsResponse.
108 *
105 * [pageSize] - Number of instance configurations to be returned in the 109 * [pageSize] - Number of instance configurations to be returned in the
106 * response. If 0 or 110 * response. If 0 or
107 * less, defaults to the server's maximum allowed page size. 111 * less, defaults to the server's maximum allowed page size.
108 * 112 *
109 * [pageToken] - If non-empty, `page_token` should contain a
110 * next_page_token
111 * from a previous ListInstanceConfigsResponse.
112 *
113 * Completes with a [ListInstanceConfigsResponse]. 113 * Completes with a [ListInstanceConfigsResponse].
114 * 114 *
115 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 115 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
116 * error. 116 * error.
117 * 117 *
118 * If the used [http.Client] completes with an error when making a REST call, 118 * If the used [http.Client] completes with an error when making a REST call,
119 * this method will complete with the same error. 119 * this method will complete with the same error.
120 */ 120 */
121 async.Future<ListInstanceConfigsResponse> list(core.String parent, {core.int p ageSize, core.String pageToken}) { 121 async.Future<ListInstanceConfigsResponse> list(core.String parent, {core.Strin g pageToken, core.int pageSize}) {
122 var _url = null; 122 var _url = null;
123 var _queryParams = new core.Map(); 123 var _queryParams = new core.Map();
124 var _uploadMedia = null; 124 var _uploadMedia = null;
125 var _uploadOptions = null; 125 var _uploadOptions = null;
126 var _downloadOptions = commons.DownloadOptions.Metadata; 126 var _downloadOptions = commons.DownloadOptions.Metadata;
127 var _body = null; 127 var _body = null;
128 128
129 if (parent == null) { 129 if (parent == null) {
130 throw new core.ArgumentError("Parameter parent is required."); 130 throw new core.ArgumentError("Parameter parent is required.");
131 } 131 }
132 if (pageToken != null) {
133 _queryParams["pageToken"] = [pageToken];
134 }
132 if (pageSize != null) { 135 if (pageSize != null) {
133 _queryParams["pageSize"] = ["${pageSize}"]; 136 _queryParams["pageSize"] = ["${pageSize}"];
134 } 137 }
135 if (pageToken != null) {
136 _queryParams["pageToken"] = [pageToken];
137 }
138 138
139 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/instance Configs'; 139 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/instance Configs';
140 140
141 var _response = _requester.request(_url, 141 var _response = _requester.request(_url,
142 "GET", 142 "GET",
143 body: _body, 143 body: _body,
144 queryParams: _queryParams, 144 queryParams: _queryParams,
145 uploadOptions: _uploadOptions, 145 uploadOptions: _uploadOptions,
146 uploadMedia: _uploadMedia, 146 uploadMedia: _uploadMedia,
147 downloadOptions: _downloadOptions); 147 downloadOptions: _downloadOptions);
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 903
904 /** 904 /**
905 * Lists Cloud Spanner databases. 905 * Lists Cloud Spanner databases.
906 * 906 *
907 * Request parameters: 907 * Request parameters:
908 * 908 *
909 * [parent] - Required. The instance whose databases should be listed. 909 * [parent] - Required. The instance whose databases should be listed.
910 * Values are of the form `projects/<project>/instances/<instance>`. 910 * Values are of the form `projects/<project>/instances/<instance>`.
911 * Value must have pattern "^projects/[^/]+/instances/[^/]+$". 911 * Value must have pattern "^projects/[^/]+/instances/[^/]+$".
912 * 912 *
913 * [pageToken] - If non-empty, `page_token` should contain a
914 * next_page_token from a
915 * previous ListDatabasesResponse.
916 *
913 * [pageSize] - Number of databases to be returned in the response. If 0 or 917 * [pageSize] - Number of databases to be returned in the response. If 0 or
914 * less, 918 * less,
915 * defaults to the server's maximum allowed page size. 919 * defaults to the server's maximum allowed page size.
916 * 920 *
917 * [pageToken] - If non-empty, `page_token` should contain a
918 * next_page_token from a
919 * previous ListDatabasesResponse.
920 *
921 * Completes with a [ListDatabasesResponse]. 921 * Completes with a [ListDatabasesResponse].
922 * 922 *
923 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 923 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
924 * error. 924 * error.
925 * 925 *
926 * If the used [http.Client] completes with an error when making a REST call, 926 * If the used [http.Client] completes with an error when making a REST call,
927 * this method will complete with the same error. 927 * this method will complete with the same error.
928 */ 928 */
929 async.Future<ListDatabasesResponse> list(core.String parent, {core.int pageSiz e, core.String pageToken}) { 929 async.Future<ListDatabasesResponse> list(core.String parent, {core.String page Token, core.int pageSize}) {
930 var _url = null; 930 var _url = null;
931 var _queryParams = new core.Map(); 931 var _queryParams = new core.Map();
932 var _uploadMedia = null; 932 var _uploadMedia = null;
933 var _uploadOptions = null; 933 var _uploadOptions = null;
934 var _downloadOptions = commons.DownloadOptions.Metadata; 934 var _downloadOptions = commons.DownloadOptions.Metadata;
935 var _body = null; 935 var _body = null;
936 936
937 if (parent == null) { 937 if (parent == null) {
938 throw new core.ArgumentError("Parameter parent is required."); 938 throw new core.ArgumentError("Parameter parent is required.");
939 } 939 }
940 if (pageToken != null) {
941 _queryParams["pageToken"] = [pageToken];
942 }
940 if (pageSize != null) { 943 if (pageSize != null) {
941 _queryParams["pageSize"] = ["${pageSize}"]; 944 _queryParams["pageSize"] = ["${pageSize}"];
942 } 945 }
943 if (pageToken != null) {
944 _queryParams["pageToken"] = [pageToken];
945 }
946 946
947 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/database s'; 947 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/database s';
948 948
949 var _response = _requester.request(_url, 949 var _response = _requester.request(_url,
950 "GET", 950 "GET",
951 body: _body, 951 body: _body,
952 queryParams: _queryParams, 952 queryParams: _queryParams,
953 uploadOptions: _uploadOptions, 953 uploadOptions: _uploadOptions,
954 uploadMedia: _uploadMedia, 954 uploadMedia: _uploadMedia,
955 downloadOptions: _downloadOptions); 955 downloadOptions: _downloadOptions);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 * 1264 *
1265 * NOTE: the `name` binding below allows API services to override the binding 1265 * NOTE: the `name` binding below allows API services to override the binding
1266 * to use different resource name schemes, such as `users / * /operations`. 1266 * to use different resource name schemes, such as `users / * /operations`.
1267 * 1267 *
1268 * Request parameters: 1268 * Request parameters:
1269 * 1269 *
1270 * [name] - The name of the operation collection. 1270 * [name] - The name of the operation collection.
1271 * Value must have pattern 1271 * Value must have pattern
1272 * "^projects/[^/]+/instances/[^/]+/databases/[^/]+/operations$". 1272 * "^projects/[^/]+/instances/[^/]+/databases/[^/]+/operations$".
1273 * 1273 *
1274 * [filter] - The standard list filter.
1275 *
1276 * [pageToken] - The standard list page token. 1274 * [pageToken] - The standard list page token.
1277 * 1275 *
1278 * [pageSize] - The standard list page size. 1276 * [pageSize] - The standard list page size.
1279 * 1277 *
1278 * [filter] - The standard list filter.
1279 *
1280 * Completes with a [ListOperationsResponse]. 1280 * Completes with a [ListOperationsResponse].
1281 * 1281 *
1282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1283 * error. 1283 * error.
1284 * 1284 *
1285 * If the used [http.Client] completes with an error when making a REST call, 1285 * If the used [http.Client] completes with an error when making a REST call,
1286 * this method will complete with the same error. 1286 * this method will complete with the same error.
1287 */ 1287 */
1288 async.Future<ListOperationsResponse> list(core.String name, {core.String filte r, core.String pageToken, core.int pageSize}) { 1288 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT oken, core.int pageSize, core.String filter}) {
1289 var _url = null; 1289 var _url = null;
1290 var _queryParams = new core.Map(); 1290 var _queryParams = new core.Map();
1291 var _uploadMedia = null; 1291 var _uploadMedia = null;
1292 var _uploadOptions = null; 1292 var _uploadOptions = null;
1293 var _downloadOptions = commons.DownloadOptions.Metadata; 1293 var _downloadOptions = commons.DownloadOptions.Metadata;
1294 var _body = null; 1294 var _body = null;
1295 1295
1296 if (name == null) { 1296 if (name == null) {
1297 throw new core.ArgumentError("Parameter name is required."); 1297 throw new core.ArgumentError("Parameter name is required.");
1298 } 1298 }
1299 if (filter != null) {
1300 _queryParams["filter"] = [filter];
1301 }
1302 if (pageToken != null) { 1299 if (pageToken != null) {
1303 _queryParams["pageToken"] = [pageToken]; 1300 _queryParams["pageToken"] = [pageToken];
1304 } 1301 }
1305 if (pageSize != null) { 1302 if (pageSize != null) {
1306 _queryParams["pageSize"] = ["${pageSize}"]; 1303 _queryParams["pageSize"] = ["${pageSize}"];
1307 } 1304 }
1305 if (filter != null) {
1306 _queryParams["filter"] = [filter];
1307 }
1308 1308
1309 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 1309 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
1310 1310
1311 var _response = _requester.request(_url, 1311 var _response = _requester.request(_url,
1312 "GET", 1312 "GET",
1313 body: _body, 1313 body: _body,
1314 queryParams: _queryParams, 1314 queryParams: _queryParams,
1315 uploadOptions: _uploadOptions, 1315 uploadOptions: _uploadOptions,
1316 uploadMedia: _uploadMedia, 1316 uploadMedia: _uploadMedia,
1317 downloadOptions: _downloadOptions); 1317 downloadOptions: _downloadOptions);
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2046 downloadOptions: _downloadOptions); 2046 downloadOptions: _downloadOptions);
2047 return _response.then((data) => new ListOperationsResponse.fromJson(data)); 2047 return _response.then((data) => new ListOperationsResponse.fromJson(data));
2048 } 2048 }
2049 2049
2050 } 2050 }
2051 2051
2052 2052
2053 2053
2054 /** 2054 /**
2055 * Specifies the audit configuration for a service. 2055 * Specifies the audit configuration for a service.
2056 * It consists of which permission types are logged, and what identities, if 2056 * The configuration determines which permission types are logged, and what
2057 * any, are exempted from logging. 2057 * identities, if any, are exempted from logging.
2058 * An AuditConifg must have one or more AuditLogConfigs. 2058 * An AuditConifg must have one or more AuditLogConfigs.
2059 *
2060 * If there are AuditConfigs for both `allServices` and a specific service,
2061 * the union of the two AuditConfigs is used for that service: the log_types
2062 * specified in each AuditConfig are enabled, and the exempted_members in each
2063 * AuditConfig are exempted.
2064 * Example Policy with multiple AuditConfigs:
2065 * {
2066 * "audit_configs": [
2067 * {
2068 * "service": "allServices"
2069 * "audit_log_configs": [
2070 * {
2071 * "log_type": "DATA_READ",
2072 * "exempted_members": [
2073 * "user:foo@gmail.com"
2074 * ]
2075 * },
2076 * {
2077 * "log_type": "DATA_WRITE",
2078 * },
2079 * {
2080 * "log_type": "ADMIN_READ",
2081 * }
2082 * ]
2083 * },
2084 * {
2085 * "service": "fooservice@googleapis.com"
2086 * "audit_log_configs": [
2087 * {
2088 * "log_type": "DATA_READ",
2089 * },
2090 * {
2091 * "log_type": "DATA_WRITE",
2092 * "exempted_members": [
2093 * "user:bar@gmail.com"
2094 * ]
2095 * }
2096 * ]
2097 * }
2098 * ]
2099 * }
2100 * For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2101 * logging. It also exempts foo@gmail.com from DATA_READ logging, and
2102 * bar@gmail.com from DATA_WRITE logging.
2059 */ 2103 */
2060 class AuditConfig { 2104 class AuditConfig {
2061 /** 2105 /**
2062 * The configuration for logging of each type of permission. 2106 * The configuration for logging of each type of permission.
2063 * Next ID: 4 2107 * Next ID: 4
2064 */ 2108 */
2065 core.List<AuditLogConfig> auditLogConfigs; 2109 core.List<AuditLogConfig> auditLogConfigs;
2066 /**
2067 * Specifies the identities that are exempted from "data access" audit
2068 * logging for the `service` specified above.
2069 * Follows the same format of Binding.members.
2070 * This field is deprecated in favor of per-permission-type exemptions.
2071 */
2072 core.List<core.String> exemptedMembers; 2110 core.List<core.String> exemptedMembers;
2073 /** 2111 /**
2074 * Specifies a service that will be enabled for audit logging. 2112 * Specifies a service that will be enabled for audit logging.
2075 * For example, `resourcemanager`, `storage`, `compute`. 2113 * For example, `resourcemanager`, `storage`, `compute`.
2076 * `allServices` is a special value that covers all services. 2114 * `allServices` is a special value that covers all services.
2077 */ 2115 */
2078 core.String service; 2116 core.String service;
2079 2117
2080 AuditConfig(); 2118 AuditConfig();
2081 2119
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 * a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). 2452 * a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
2415 * - "APPROVER" : An approver (distinct from the requester) that has 2453 * - "APPROVER" : An approver (distinct from the requester) that has
2416 * authorized this 2454 * authorized this
2417 * request. 2455 * request.
2418 * When used with IN, the condition indicates that one of the approvers 2456 * When used with IN, the condition indicates that one of the approvers
2419 * associated with the request matches the specified principal, or is a 2457 * associated with the request matches the specified principal, or is a
2420 * member of the specified group. Approvers can only grant additional 2458 * member of the specified group. Approvers can only grant additional
2421 * access, and are thus only used in a strictly positive context 2459 * access, and are thus only used in a strictly positive context
2422 * (e.g. ALLOW/IN or DENY/NOT_IN). 2460 * (e.g. ALLOW/IN or DENY/NOT_IN).
2423 * See: go/rpc-security-policy-dynamicauth. 2461 * See: go/rpc-security-policy-dynamicauth.
2462 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied
2463 * with this request.
2464 * String values should match enum names from tech.iam.JustificationType,
2465 * e.g. "MANUAL_STRING". It is not permitted to grant access based on
2466 * the *absence* of a justification, so justification conditions can only
2467 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
2468 *
2469 * Multiple justifications, e.g., a Buganizer ID and a manually-entered
2470 * reason, are normal and supported.
2424 */ 2471 */
2425 core.String iam; 2472 core.String iam;
2426 /** 2473 /**
2427 * An operator to apply the subject with. 2474 * An operator to apply the subject with.
2428 * Possible string values are: 2475 * Possible string values are:
2429 * - "NO_OP" : Default no-op. 2476 * - "NO_OP" : Default no-op.
2430 * - "EQUALS" : DEPRECATED. Use IN instead. 2477 * - "EQUALS" : DEPRECATED. Use IN instead.
2431 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. 2478 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead.
2432 * - "IN" : Set-inclusion check. 2479 * - "IN" : The condition is true if the subject (or any element of it if it
2433 * - "NOT_IN" : Set-exclusion check. 2480 * is
2481 * a set) matches any of the supplied values.
2482 * - "NOT_IN" : The condition is true if the subject (or every element of it
2483 * if it is
2484 * a set) matches none of the supplied values.
2434 * - "DISCHARGED" : Subject is discharged 2485 * - "DISCHARGED" : Subject is discharged
2435 */ 2486 */
2436 core.String op; 2487 core.String op;
2437 /** Trusted attributes discharged by the service. */ 2488 /** Trusted attributes discharged by the service. */
2438 core.String svc; 2489 core.String svc;
2439 /** 2490 /**
2440 * Trusted attributes supplied by any service that owns resources and uses 2491 * Trusted attributes supplied by any service that owns resources and uses
2441 * the IAM system for access control. 2492 * the IAM system for access control.
2442 * Possible string values are: 2493 * Possible string values are:
2443 * - "NO_ATTR" : Default non-attribute type 2494 * - "NO_ATTR" : Default non-attribute type
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
4668 class SetIamPolicyRequest { 4719 class SetIamPolicyRequest {
4669 /** 4720 /**
4670 * REQUIRED: The complete policy to be applied to the `resource`. The size of 4721 * REQUIRED: The complete policy to be applied to the `resource`. The size of
4671 * the policy is limited to a few 10s of KB. An empty policy is a 4722 * the policy is limited to a few 10s of KB. An empty policy is a
4672 * valid policy but certain Cloud Platform services (such as Projects) 4723 * valid policy but certain Cloud Platform services (such as Projects)
4673 * might reject them. 4724 * might reject them.
4674 */ 4725 */
4675 Policy policy; 4726 Policy policy;
4676 /** 4727 /**
4677 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only 4728 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
4678 * the fields in the mask will be modified. If no mask is provided, a default 4729 * the fields in the mask will be modified. If no mask is provided, the
4679 * mask is used: 4730 * following default mask is used:
4680 * paths: "bindings, etag" 4731 * paths: "bindings, etag"
4681 * This field is only used by Cloud IAM. 4732 * This field is only used by Cloud IAM.
4682 */ 4733 */
4683 core.String updateMask; 4734 core.String updateMask;
4684 4735
4685 SetIamPolicyRequest(); 4736 SetIamPolicyRequest();
4686 4737
4687 SetIamPolicyRequest.fromJson(core.Map _json) { 4738 SetIamPolicyRequest.fromJson(core.Map _json) {
4688 if (_json.containsKey("policy")) { 4739 if (_json.containsKey("policy")) {
4689 policy = new Policy.fromJson(_json["policy"]); 4740 policy = new Policy.fromJson(_json["policy"]);
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
5628 } 5679 }
5629 if (table != null) { 5680 if (table != null) {
5630 _json["table"] = table; 5681 _json["table"] = table;
5631 } 5682 }
5632 if (values != null) { 5683 if (values != null) {
5633 _json["values"] = values; 5684 _json["values"] = values;
5634 } 5685 }
5635 return _json; 5686 return _json;
5636 } 5687 }
5637 } 5688 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/sourcerepo/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698