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

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

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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/slides/v1.dart ('k') | generated/googleapis/lib/speech/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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client spanner/v1'; 15 const core.String USER_AGENT = 'dart-api-client spanner/v1';
16 16
17 /** 17 /**
18 * Cloud Spanner is a managed, mission-critical, globally consistent and 18 * Cloud Spanner is a managed, mission-critical, globally consistent and
19 * scalable relational database service. 19 * scalable relational database service.
20 */ 20 */
21 class SpannerApi { 21 class SpannerApi {
22 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 24
25 /** Administer your Spanner databases */
26 static const SpannerAdminScope = "https://www.googleapis.com/auth/spanner.admi n";
27
28 /** View and manage the contents of your Spanner databases */
29 static const SpannerDataScope = "https://www.googleapis.com/auth/spanner.data" ;
30
25 31
26 final commons.ApiRequester _requester; 32 final commons.ApiRequester _requester;
27 33
28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 34 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
29 35
30 SpannerApi(http.Client client, {core.String rootUrl: "https://spanner.googleap is.com/", core.String servicePath: ""}) : 36 SpannerApi(http.Client client, {core.String rootUrl: "https://spanner.googleap is.com/", core.String servicePath: ""}) :
31 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
32 } 38 }
33 39
34 40
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 uploadOptions: _uploadOptions, 1261 uploadOptions: _uploadOptions,
1256 uploadMedia: _uploadMedia, 1262 uploadMedia: _uploadMedia,
1257 downloadOptions: _downloadOptions); 1263 downloadOptions: _downloadOptions);
1258 return _response.then((data) => new Operation.fromJson(data)); 1264 return _response.then((data) => new Operation.fromJson(data));
1259 } 1265 }
1260 1266
1261 /** 1267 /**
1262 * Lists operations that match the specified filter in the request. If the 1268 * Lists operations that match the specified filter in the request. If the
1263 * server doesn't support this method, it returns `UNIMPLEMENTED`. 1269 * server doesn't support this method, it returns `UNIMPLEMENTED`.
1264 * 1270 *
1265 * NOTE: the `name` binding below allows API services to override the binding 1271 * NOTE: the `name` binding allows API services to override the binding
1266 * to use different resource name schemes, such as `users / * /operations`. 1272 * to use different resource name schemes, such as `users / * /operations`. To
1273 * override the binding, API services can add a binding such as
1274 * `"/v1/{name=users / * }/operations"` to their service configuration.
1275 * For backwards compatibility, the default name includes the operations
1276 * collection id, however overriding users must ensure the name binding
1277 * is the parent resource, without the operations collection id.
1267 * 1278 *
1268 * Request parameters: 1279 * Request parameters:
1269 * 1280 *
1270 * [name] - The name of the operation collection. 1281 * [name] - The name of the operation's parent resource.
1271 * Value must have pattern 1282 * Value must have pattern
1272 * "^projects/[^/]+/instances/[^/]+/databases/[^/]+/operations$". 1283 * "^projects/[^/]+/instances/[^/]+/databases/[^/]+/operations$".
1273 * 1284 *
1274 * [filter] - The standard list filter.
1275 *
1276 * [pageToken] - The standard list page token. 1285 * [pageToken] - The standard list page token.
1277 * 1286 *
1278 * [pageSize] - The standard list page size. 1287 * [pageSize] - The standard list page size.
1279 * 1288 *
1289 * [filter] - The standard list filter.
1290 *
1280 * Completes with a [ListOperationsResponse]. 1291 * Completes with a [ListOperationsResponse].
1281 * 1292 *
1282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1283 * error. 1294 * error.
1284 * 1295 *
1285 * If the used [http.Client] completes with an error when making a REST call, 1296 * If the used [http.Client] completes with an error when making a REST call,
1286 * this method will complete with the same error. 1297 * this method will complete with the same error.
1287 */ 1298 */
1288 async.Future<ListOperationsResponse> list(core.String name, {core.String filte r, core.String pageToken, core.int pageSize}) { 1299 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT oken, core.int pageSize, core.String filter}) {
1289 var _url = null; 1300 var _url = null;
1290 var _queryParams = new core.Map(); 1301 var _queryParams = new core.Map();
1291 var _uploadMedia = null; 1302 var _uploadMedia = null;
1292 var _uploadOptions = null; 1303 var _uploadOptions = null;
1293 var _downloadOptions = commons.DownloadOptions.Metadata; 1304 var _downloadOptions = commons.DownloadOptions.Metadata;
1294 var _body = null; 1305 var _body = null;
1295 1306
1296 if (name == null) { 1307 if (name == null) {
1297 throw new core.ArgumentError("Parameter name is required."); 1308 throw new core.ArgumentError("Parameter name is required.");
1298 } 1309 }
1299 if (filter != null) {
1300 _queryParams["filter"] = [filter];
1301 }
1302 if (pageToken != null) { 1310 if (pageToken != null) {
1303 _queryParams["pageToken"] = [pageToken]; 1311 _queryParams["pageToken"] = [pageToken];
1304 } 1312 }
1305 if (pageSize != null) { 1313 if (pageSize != null) {
1306 _queryParams["pageSize"] = ["${pageSize}"]; 1314 _queryParams["pageSize"] = ["${pageSize}"];
1307 } 1315 }
1316 if (filter != null) {
1317 _queryParams["filter"] = [filter];
1318 }
1308 1319
1309 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 1320 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
1310 1321
1311 var _response = _requester.request(_url, 1322 var _response = _requester.request(_url,
1312 "GET", 1323 "GET",
1313 body: _body, 1324 body: _body,
1314 queryParams: _queryParams, 1325 queryParams: _queryParams,
1315 uploadOptions: _uploadOptions, 1326 uploadOptions: _uploadOptions,
1316 uploadMedia: _uploadMedia, 1327 uploadMedia: _uploadMedia,
1317 downloadOptions: _downloadOptions); 1328 downloadOptions: _downloadOptions);
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 uploadOptions: _uploadOptions, 1996 uploadOptions: _uploadOptions,
1986 uploadMedia: _uploadMedia, 1997 uploadMedia: _uploadMedia,
1987 downloadOptions: _downloadOptions); 1998 downloadOptions: _downloadOptions);
1988 return _response.then((data) => new Operation.fromJson(data)); 1999 return _response.then((data) => new Operation.fromJson(data));
1989 } 2000 }
1990 2001
1991 /** 2002 /**
1992 * Lists operations that match the specified filter in the request. If the 2003 * Lists operations that match the specified filter in the request. If the
1993 * server doesn't support this method, it returns `UNIMPLEMENTED`. 2004 * server doesn't support this method, it returns `UNIMPLEMENTED`.
1994 * 2005 *
1995 * NOTE: the `name` binding below allows API services to override the binding 2006 * NOTE: the `name` binding allows API services to override the binding
1996 * to use different resource name schemes, such as `users / * /operations`. 2007 * to use different resource name schemes, such as `users / * /operations`. To
2008 * override the binding, API services can add a binding such as
2009 * `"/v1/{name=users / * }/operations"` to their service configuration.
2010 * For backwards compatibility, the default name includes the operations
2011 * collection id, however overriding users must ensure the name binding
2012 * is the parent resource, without the operations collection id.
1997 * 2013 *
1998 * Request parameters: 2014 * Request parameters:
1999 * 2015 *
2000 * [name] - The name of the operation collection. 2016 * [name] - The name of the operation's parent resource.
2001 * Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$". 2017 * Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$".
2002 * 2018 *
2003 * [pageSize] - The standard list page size.
2004 *
2005 * [filter] - The standard list filter. 2019 * [filter] - The standard list filter.
2006 * 2020 *
2007 * [pageToken] - The standard list page token. 2021 * [pageToken] - The standard list page token.
2008 * 2022 *
2023 * [pageSize] - The standard list page size.
2024 *
2009 * Completes with a [ListOperationsResponse]. 2025 * Completes with a [ListOperationsResponse].
2010 * 2026 *
2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2027 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2012 * error. 2028 * error.
2013 * 2029 *
2014 * If the used [http.Client] completes with an error when making a REST call, 2030 * If the used [http.Client] completes with an error when making a REST call,
2015 * this method will complete with the same error. 2031 * this method will complete with the same error.
2016 */ 2032 */
2017 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize , core.String filter, core.String pageToken}) { 2033 async.Future<ListOperationsResponse> list(core.String name, {core.String filte r, core.String pageToken, core.int pageSize}) {
2018 var _url = null; 2034 var _url = null;
2019 var _queryParams = new core.Map(); 2035 var _queryParams = new core.Map();
2020 var _uploadMedia = null; 2036 var _uploadMedia = null;
2021 var _uploadOptions = null; 2037 var _uploadOptions = null;
2022 var _downloadOptions = commons.DownloadOptions.Metadata; 2038 var _downloadOptions = commons.DownloadOptions.Metadata;
2023 var _body = null; 2039 var _body = null;
2024 2040
2025 if (name == null) { 2041 if (name == null) {
2026 throw new core.ArgumentError("Parameter name is required."); 2042 throw new core.ArgumentError("Parameter name is required.");
2027 } 2043 }
2028 if (pageSize != null) {
2029 _queryParams["pageSize"] = ["${pageSize}"];
2030 }
2031 if (filter != null) { 2044 if (filter != null) {
2032 _queryParams["filter"] = [filter]; 2045 _queryParams["filter"] = [filter];
2033 } 2046 }
2034 if (pageToken != null) { 2047 if (pageToken != null) {
2035 _queryParams["pageToken"] = [pageToken]; 2048 _queryParams["pageToken"] = [pageToken];
2036 } 2049 }
2050 if (pageSize != null) {
2051 _queryParams["pageSize"] = ["${pageSize}"];
2052 }
2037 2053
2038 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 2054 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
2039 2055
2040 var _response = _requester.request(_url, 2056 var _response = _requester.request(_url,
2041 "GET", 2057 "GET",
2042 body: _body, 2058 body: _body,
2043 queryParams: _queryParams, 2059 queryParams: _queryParams,
2044 uploadOptions: _uploadOptions, 2060 uploadOptions: _uploadOptions,
2045 uploadMedia: _uploadMedia, 2061 uploadMedia: _uploadMedia,
2046 downloadOptions: _downloadOptions); 2062 downloadOptions: _downloadOptions);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2226 if (options != null) { 2242 if (options != null) {
2227 _json["options"] = (options).toJson(); 2243 _json["options"] = (options).toJson();
2228 } 2244 }
2229 return _json; 2245 return _json;
2230 } 2246 }
2231 } 2247 }
2232 2248
2233 /** Associates `members` with a `role`. */ 2249 /** Associates `members` with a `role`. */
2234 class Binding { 2250 class Binding {
2235 /** 2251 /**
2252 * The condition that is associated with this binding.
2253 * NOTE: an unsatisfied condition will not allow user access via current
2254 * binding. Different bindings, including their conditions, are examined
2255 * independently.
2256 * This field is GOOGLE_INTERNAL.
2257 */
2258 Expr condition;
2259 /**
2236 * Specifies the identities requesting access for a Cloud Platform resource. 2260 * Specifies the identities requesting access for a Cloud Platform resource.
2237 * `members` can have the following values: 2261 * `members` can have the following values:
2238 * 2262 *
2239 * * `allUsers`: A special identifier that represents anyone who is 2263 * * `allUsers`: A special identifier that represents anyone who is
2240 * on the internet; with or without a Google account. 2264 * on the internet; with or without a Google account.
2241 * 2265 *
2242 * * `allAuthenticatedUsers`: A special identifier that represents anyone 2266 * * `allAuthenticatedUsers`: A special identifier that represents anyone
2243 * who is authenticated with a Google account or a service account. 2267 * who is authenticated with a Google account or a service account.
2244 * 2268 *
2245 * * `user:{emailid}`: An email address that represents a specific Google 2269 * * `user:{emailid}`: An email address that represents a specific Google
2246 * account. For example, `alice@gmail.com` or `joe@example.com`. 2270 * account. For example, `alice@gmail.com` or `joe@example.com`.
2247 * 2271 *
2248 * 2272 *
2249 * * `serviceAccount:{emailid}`: An email address that represents a service 2273 * * `serviceAccount:{emailid}`: An email address that represents a service
2250 * account. For example, `my-other-app@appspot.gserviceaccount.com`. 2274 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
2251 * 2275 *
2252 * * `group:{emailid}`: An email address that represents a Google group. 2276 * * `group:{emailid}`: An email address that represents a Google group.
2253 * For example, `admins@example.com`. 2277 * For example, `admins@example.com`.
2254 * 2278 *
2279 *
2255 * * `domain:{domain}`: A Google Apps domain name that represents all the 2280 * * `domain:{domain}`: A Google Apps domain name that represents all the
2256 * users of that domain. For example, `google.com` or `example.com`. 2281 * users of that domain. For example, `google.com` or `example.com`.
2257 */ 2282 */
2258 core.List<core.String> members; 2283 core.List<core.String> members;
2259 /** 2284 /**
2260 * Role that is assigned to `members`. 2285 * Role that is assigned to `members`.
2261 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 2286 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2262 * Required 2287 * Required
2263 */ 2288 */
2264 core.String role; 2289 core.String role;
2265 2290
2266 Binding(); 2291 Binding();
2267 2292
2268 Binding.fromJson(core.Map _json) { 2293 Binding.fromJson(core.Map _json) {
2294 if (_json.containsKey("condition")) {
2295 condition = new Expr.fromJson(_json["condition"]);
2296 }
2269 if (_json.containsKey("members")) { 2297 if (_json.containsKey("members")) {
2270 members = _json["members"]; 2298 members = _json["members"];
2271 } 2299 }
2272 if (_json.containsKey("role")) { 2300 if (_json.containsKey("role")) {
2273 role = _json["role"]; 2301 role = _json["role"];
2274 } 2302 }
2275 } 2303 }
2276 2304
2277 core.Map<core.String, core.Object> toJson() { 2305 core.Map<core.String, core.Object> toJson() {
2278 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2307 if (condition != null) {
2308 _json["condition"] = (condition).toJson();
2309 }
2279 if (members != null) { 2310 if (members != null) {
2280 _json["members"] = members; 2311 _json["members"] = members;
2281 } 2312 }
2282 if (role != null) { 2313 if (role != null) {
2283 _json["role"] = role; 2314 _json["role"] = role;
2284 } 2315 }
2285 return _json; 2316 return _json;
2286 } 2317 }
2287 } 2318 }
2288 2319
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 } 2367 }
2337 if (variable != null) { 2368 if (variable != null) {
2338 _json["variable"] = variable; 2369 _json["variable"] = variable;
2339 } 2370 }
2340 return _json; 2371 return _json;
2341 } 2372 }
2342 } 2373 }
2343 2374
2344 /** Write a Cloud Audit log */ 2375 /** Write a Cloud Audit log */
2345 class CloudAuditOptions { 2376 class CloudAuditOptions {
2377 /**
2378 * The log_name to populate in the Cloud Audit Record.
2379 * Possible string values are:
2380 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used.
2381 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity"
2382 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access"
2383 */
2384 core.String logName;
2346 2385
2347 CloudAuditOptions(); 2386 CloudAuditOptions();
2348 2387
2349 CloudAuditOptions.fromJson(core.Map _json) { 2388 CloudAuditOptions.fromJson(core.Map _json) {
2389 if (_json.containsKey("logName")) {
2390 logName = _json["logName"];
2391 }
2350 } 2392 }
2351 2393
2352 core.Map<core.String, core.Object> toJson() { 2394 core.Map<core.String, core.Object> toJson() {
2353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2396 if (logName != null) {
2397 _json["logName"] = logName;
2398 }
2354 return _json; 2399 return _json;
2355 } 2400 }
2356 } 2401 }
2357 2402
2358 /** The request for Commit. */ 2403 /** The request for Commit. */
2359 class CommitRequest { 2404 class CommitRequest {
2360 /** 2405 /**
2361 * The mutations to be executed when this transaction commits. All 2406 * The mutations to be executed when this transaction commits. All
2362 * mutations are applied atomically, in the order they appear in 2407 * mutations are applied atomically, in the order they appear in
2363 * this list. 2408 * this list.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 * the *absence* of a realm, so realm conditions can only be used in 2499 * the *absence* of a realm, so realm conditions can only be used in
2455 * a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). 2500 * a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
2456 * - "APPROVER" : An approver (distinct from the requester) that has 2501 * - "APPROVER" : An approver (distinct from the requester) that has
2457 * authorized this 2502 * authorized this
2458 * request. 2503 * request.
2459 * When used with IN, the condition indicates that one of the approvers 2504 * When used with IN, the condition indicates that one of the approvers
2460 * associated with the request matches the specified principal, or is a 2505 * associated with the request matches the specified principal, or is a
2461 * member of the specified group. Approvers can only grant additional 2506 * member of the specified group. Approvers can only grant additional
2462 * access, and are thus only used in a strictly positive context 2507 * access, and are thus only used in a strictly positive context
2463 * (e.g. ALLOW/IN or DENY/NOT_IN). 2508 * (e.g. ALLOW/IN or DENY/NOT_IN).
2464 * See: go/rpc-security-policy-dynamicauth.
2465 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied 2509 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied
2466 * with this request. 2510 * with this request.
2467 * String values should match enum names from tech.iam.JustificationType, 2511 * String values should match enum names from tech.iam.JustificationType,
2468 * e.g. "MANUAL_STRING". It is not permitted to grant access based on 2512 * e.g. "MANUAL_STRING". It is not permitted to grant access based on
2469 * the *absence* of a justification, so justification conditions can only 2513 * the *absence* of a justification, so justification conditions can only
2470 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). 2514 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
2471 * 2515 *
2472 * Multiple justifications, e.g., a Buganizer ID and a manually-entered 2516 * Multiple justifications, e.g., a Buganizer ID and a manually-entered
2473 * reason, are normal and supported. 2517 * reason, are normal and supported.
2474 */ 2518 */
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 if (sql != null) { 3014 if (sql != null) {
2971 _json["sql"] = sql; 3015 _json["sql"] = sql;
2972 } 3016 }
2973 if (transaction != null) { 3017 if (transaction != null) {
2974 _json["transaction"] = (transaction).toJson(); 3018 _json["transaction"] = (transaction).toJson();
2975 } 3019 }
2976 return _json; 3020 return _json;
2977 } 3021 }
2978 } 3022 }
2979 3023
3024 /**
3025 * Represents an expression text. Example:
3026 *
3027 * title: "User account presence"
3028 * description: "Determines whether the request has a user account"
3029 * expression: "size(request.user) > 0"
3030 */
3031 class Expr {
3032 /**
3033 * An optional description of the expression. This is a longer text which
3034 * describes the expression, e.g. when hovered over it in a UI.
3035 */
3036 core.String description;
3037 /**
3038 * Textual representation of an expression in
3039 * [Common Expression Language](http://go/api-expr) syntax.
3040 *
3041 * The application context of the containing message determines which
3042 * well-known feature set of CEL is supported.
3043 */
3044 core.String expression;
3045 /**
3046 * An optional string indicating the location of the expression for error
3047 * reporting, e.g. a file name and a position in the file.
3048 */
3049 core.String location;
3050 /**
3051 * An optional title for the expression, i.e. a short string describing
3052 * its purpose. This can be used e.g. in UIs which allow to enter the
3053 * expression.
3054 */
3055 core.String title;
3056
3057 Expr();
3058
3059 Expr.fromJson(core.Map _json) {
3060 if (_json.containsKey("description")) {
3061 description = _json["description"];
3062 }
3063 if (_json.containsKey("expression")) {
3064 expression = _json["expression"];
3065 }
3066 if (_json.containsKey("location")) {
3067 location = _json["location"];
3068 }
3069 if (_json.containsKey("title")) {
3070 title = _json["title"];
3071 }
3072 }
3073
3074 core.Map<core.String, core.Object> toJson() {
3075 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3076 if (description != null) {
3077 _json["description"] = description;
3078 }
3079 if (expression != null) {
3080 _json["expression"] = expression;
3081 }
3082 if (location != null) {
3083 _json["location"] = location;
3084 }
3085 if (title != null) {
3086 _json["title"] = title;
3087 }
3088 return _json;
3089 }
3090 }
3091
2980 /** Message representing a single field of a struct. */ 3092 /** Message representing a single field of a struct. */
2981 class Field { 3093 class Field {
2982 /** 3094 /**
2983 * The name of the field. For reads, this is the column name. For 3095 * The name of the field. For reads, this is the column name. For
2984 * SQL queries, it is the column alias (e.g., `"Word"` in the 3096 * SQL queries, it is the column alias (e.g., `"Word"` in the
2985 * query `"SELECT 'hello' AS Word"`), or the column name (e.g., 3097 * query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
2986 * `"ColName"` in the query `"SELECT ColName FROM Table"`). Some 3098 * `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
2987 * columns might have an empty name (e.g., !"SELECT 3099 * columns might have an empty name (e.g., !"SELECT
2988 * UPPER(ColName)"`). Note that a query result can contain 3100 * UPPER(ColName)"`). Note that a query result can contain
2989 * multiple fields with the same name. 3101 * multiple fields with the same name.
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
4053 * } 4165 * }
4054 * 4166 *
4055 * For a description of IAM and its features, see the 4167 * For a description of IAM and its features, see the
4056 * [IAM developer's guide](https://cloud.google.com/iam). 4168 * [IAM developer's guide](https://cloud.google.com/iam).
4057 */ 4169 */
4058 class Policy { 4170 class Policy {
4059 /** Specifies cloud audit logging configuration for this policy. */ 4171 /** Specifies cloud audit logging configuration for this policy. */
4060 core.List<AuditConfig> auditConfigs; 4172 core.List<AuditConfig> auditConfigs;
4061 /** 4173 /**
4062 * Associates a list of `members` to a `role`. 4174 * Associates a list of `members` to a `role`.
4063 * Multiple `bindings` must not be specified for the same `role`.
4064 * `bindings` with no members will result in an error. 4175 * `bindings` with no members will result in an error.
4065 */ 4176 */
4066 core.List<Binding> bindings; 4177 core.List<Binding> bindings;
4067 /** 4178 /**
4068 * `etag` is used for optimistic concurrency control as a way to help 4179 * `etag` is used for optimistic concurrency control as a way to help
4069 * prevent simultaneous updates of a policy from overwriting each other. 4180 * prevent simultaneous updates of a policy from overwriting each other.
4070 * It is strongly suggested that systems make use of the `etag` in the 4181 * It is strongly suggested that systems make use of the `etag` in the
4071 * read-modify-write cycle to perform policy updates in order to avoid race 4182 * read-modify-write cycle to perform policy updates in order to avoid race
4072 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 4183 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
4073 * systems are expected to put that etag in the request to `setIamPolicy` to 4184 * systems are expected to put that etag in the request to `setIamPolicy` to
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
4166 4277
4167 core.Map<core.String, core.Object> toJson() { 4278 core.Map<core.String, core.Object> toJson() {
4168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4279 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4169 if (planNodes != null) { 4280 if (planNodes != null) {
4170 _json["planNodes"] = planNodes.map((value) => (value).toJson()).toList(); 4281 _json["planNodes"] = planNodes.map((value) => (value).toJson()).toList();
4171 } 4282 }
4172 return _json; 4283 return _json;
4173 } 4284 }
4174 } 4285 }
4175 4286
4176 /** Options for read-only transactions. */ 4287 /** Message type to initiate a read-only transaction. */
4177 class ReadOnly { 4288 class ReadOnly {
4178 /** 4289 /**
4179 * Executes all reads at a timestamp that is `exact_staleness` 4290 * Executes all reads at a timestamp that is `exact_staleness`
4180 * old. The timestamp is chosen soon after the read is started. 4291 * old. The timestamp is chosen soon after the read is started.
4181 * 4292 *
4182 * Guarantees that all writes that have committed more than the 4293 * Guarantees that all writes that have committed more than the
4183 * specified number of seconds ago are visible. Because Cloud Spanner 4294 * specified number of seconds ago are visible. Because Cloud Spanner
4184 * chooses the exact timestamp, this mode works even if the client's 4295 * chooses the exact timestamp, this mode works even if the client's
4185 * local clock is substantially skewed from Cloud Spanner commit 4296 * local clock is substantially skewed from Cloud Spanner commit
4186 * timestamps. 4297 * timestamps.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
4389 if (table != null) { 4500 if (table != null) {
4390 _json["table"] = table; 4501 _json["table"] = table;
4391 } 4502 }
4392 if (transaction != null) { 4503 if (transaction != null) {
4393 _json["transaction"] = (transaction).toJson(); 4504 _json["transaction"] = (transaction).toJson();
4394 } 4505 }
4395 return _json; 4506 return _json;
4396 } 4507 }
4397 } 4508 }
4398 4509
4399 /** Options for read-write transactions. */ 4510 /**
4511 * Message type to initiate a read-write transaction. Currently this
4512 * transaction type has no options.
4513 */
4400 class ReadWrite { 4514 class ReadWrite {
4401 4515
4402 ReadWrite(); 4516 ReadWrite();
4403 4517
4404 ReadWrite.fromJson(core.Map _json) { 4518 ReadWrite.fromJson(core.Map _json) {
4405 } 4519 }
4406 4520
4407 core.Map<core.String, core.Object> toJson() { 4521 core.Map<core.String, core.Object> toJson() {
4408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4409 return _json; 4523 return _json;
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
4792 * 4906 *
4793 * The `Status` message contains three pieces of data: error code, error 4907 * The `Status` message contains three pieces of data: error code, error
4794 * message, 4908 * message,
4795 * and error details. The error code should be an enum value of 4909 * and error details. The error code should be an enum value of
4796 * google.rpc.Code, but it may accept additional error codes if needed. The 4910 * google.rpc.Code, but it may accept additional error codes if needed. The
4797 * error message should be a developer-facing English message that helps 4911 * error message should be a developer-facing English message that helps
4798 * developers *understand* and *resolve* the error. If a localized user-facing 4912 * developers *understand* and *resolve* the error. If a localized user-facing
4799 * error message is needed, put the localized message in the error details or 4913 * error message is needed, put the localized message in the error details or
4800 * localize it in the client. The optional error details may contain arbitrary 4914 * localize it in the client. The optional error details may contain arbitrary
4801 * information about the error. There is a predefined set of error detail types 4915 * information about the error. There is a predefined set of error detail types
4802 * in the package `google.rpc` which can be used for common error conditions. 4916 * in the package `google.rpc` that can be used for common error conditions.
4803 * 4917 *
4804 * # Language mapping 4918 * # Language mapping
4805 * 4919 *
4806 * The `Status` message is the logical representation of the error model, but it 4920 * The `Status` message is the logical representation of the error model, but it
4807 * is not necessarily the actual wire format. When the `Status` message is 4921 * is not necessarily the actual wire format. When the `Status` message is
4808 * exposed in different client libraries and different wire protocols, it can be 4922 * exposed in different client libraries and different wire protocols, it can be
4809 * mapped differently. For example, it will likely be mapped to some exceptions 4923 * mapped differently. For example, it will likely be mapped to some exceptions
4810 * in Java, but more likely mapped to some error codes in C. 4924 * in Java, but more likely mapped to some error codes in C.
4811 * 4925 *
4812 * # Other uses 4926 * # Other uses
4813 * 4927 *
4814 * The error model and the `Status` message can be used in a variety of 4928 * The error model and the `Status` message can be used in a variety of
4815 * environments, either with or without APIs, to provide a 4929 * environments, either with or without APIs, to provide a
4816 * consistent developer experience across different environments. 4930 * consistent developer experience across different environments.
4817 * 4931 *
4818 * Example uses of this error model include: 4932 * Example uses of this error model include:
4819 * 4933 *
4820 * - Partial errors. If a service needs to return partial errors to the client, 4934 * - Partial errors. If a service needs to return partial errors to the client,
4821 * it may embed the `Status` in the normal response to indicate the partial 4935 * it may embed the `Status` in the normal response to indicate the partial
4822 * errors. 4936 * errors.
4823 * 4937 *
4824 * - Workflow errors. A typical workflow has multiple steps. Each step may 4938 * - Workflow errors. A typical workflow has multiple steps. Each step may
4825 * have a `Status` message for error reporting purpose. 4939 * have a `Status` message for error reporting.
4826 * 4940 *
4827 * - Batch operations. If a client uses batch request and batch response, the 4941 * - Batch operations. If a client uses batch request and batch response, the
4828 * `Status` message should be used directly inside batch response, one for 4942 * `Status` message should be used directly inside batch response, one for
4829 * each error sub-response. 4943 * each error sub-response.
4830 * 4944 *
4831 * - Asynchronous operations. If an API call embeds asynchronous operation 4945 * - Asynchronous operations. If an API call embeds asynchronous operation
4832 * results in its response, the status of those operations should be 4946 * results in its response, the status of those operations should be
4833 * represented directly using the `Status` message. 4947 * represented directly using the `Status` message.
4834 * 4948 *
4835 * - Logging. If some API errors are stored in logs, the message `Status` could 4949 * - Logging. If some API errors are stored in logs, the message `Status` could
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
5663 } 5777 }
5664 if (table != null) { 5778 if (table != null) {
5665 _json["table"] = table; 5779 _json["table"] = table;
5666 } 5780 }
5667 if (values != null) { 5781 if (values != null) {
5668 _json["values"] = values; 5782 _json["values"] = values;
5669 } 5783 }
5670 return _json; 5784 return _json;
5671 } 5785 }
5672 } 5786 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/slides/v1.dart ('k') | generated/googleapis/lib/speech/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698