OLD | NEW |
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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 /** | 389 /** |
390 * Lists all instances in the given project. | 390 * Lists all instances in the given project. |
391 * | 391 * |
392 * Request parameters: | 392 * Request parameters: |
393 * | 393 * |
394 * [parent] - Required. The name of the project for which a list of instances | 394 * [parent] - Required. The name of the project for which a list of instances |
395 * is | 395 * is |
396 * requested. Values are of the form `projects/<project>`. | 396 * requested. Values are of the form `projects/<project>`. |
397 * Value must have pattern "^projects/[^/]+$". | 397 * Value must have pattern "^projects/[^/]+$". |
398 * | 398 * |
399 * [pageToken] - If non-empty, `page_token` should contain a | |
400 * next_page_token from a | |
401 * previous ListInstancesResponse. | |
402 * | |
403 * [pageSize] - Number of instances to be returned in the response. If 0 or | |
404 * less, defaults | |
405 * to the server's maximum allowed page size. | |
406 * | |
407 * [filter] - An expression for filtering the results of the request. Filter | 399 * [filter] - An expression for filtering the results of the request. Filter |
408 * rules are | 400 * rules are |
409 * case insensitive. The fields eligible for filtering are: | 401 * case insensitive. The fields eligible for filtering are: |
410 * | 402 * |
411 * * name | 403 * * name |
412 * * display_name | 404 * * display_name |
413 * * labels.key where key is the name of a label | 405 * * labels.key where key is the name of a label |
414 * | 406 * |
415 * Some examples of using filters are: | 407 * Some examples of using filters are: |
416 * | 408 * |
417 * * name:* --> The instance has a name. | 409 * * name:* --> The instance has a name. |
418 * * name:Howl --> The instance's name contains the string "howl". | 410 * * name:Howl --> The instance's name contains the string "howl". |
419 * * name:HOWL --> Equivalent to above. | 411 * * name:HOWL --> Equivalent to above. |
420 * * NAME:howl --> Equivalent to above. | 412 * * NAME:howl --> Equivalent to above. |
421 * * labels.env:* --> The instance has the label "env". | 413 * * labels.env:* --> The instance has the label "env". |
422 * * labels.env:dev --> The instance has the label "env" and the value of | 414 * * labels.env:dev --> The instance has the label "env" and the value of |
423 * the label contains the string "dev". | 415 * the label contains the string "dev". |
424 * * name:howl labels.env:dev --> The instance's name contains "howl" and | 416 * * name:howl labels.env:dev --> The instance's name contains "howl" and |
425 * it has the label "env" with its value | 417 * it has the label "env" with its value |
426 * containing "dev". | 418 * containing "dev". |
427 * | 419 * |
| 420 * [pageToken] - If non-empty, `page_token` should contain a |
| 421 * next_page_token from a |
| 422 * previous ListInstancesResponse. |
| 423 * |
| 424 * [pageSize] - Number of instances to be returned in the response. If 0 or |
| 425 * less, defaults |
| 426 * to the server's maximum allowed page size. |
| 427 * |
428 * Completes with a [ListInstancesResponse]. | 428 * Completes with a [ListInstancesResponse]. |
429 * | 429 * |
430 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 430 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
431 * error. | 431 * error. |
432 * | 432 * |
433 * If the used [http.Client] completes with an error when making a REST call, | 433 * If the used [http.Client] completes with an error when making a REST call, |
434 * this method will complete with the same error. | 434 * this method will complete with the same error. |
435 */ | 435 */ |
436 async.Future<ListInstancesResponse> list(core.String parent, {core.String page
Token, core.int pageSize, core.String filter}) { | 436 async.Future<ListInstancesResponse> list(core.String parent, {core.String filt
er, core.String pageToken, core.int pageSize}) { |
437 var _url = null; | 437 var _url = null; |
438 var _queryParams = new core.Map(); | 438 var _queryParams = new core.Map(); |
439 var _uploadMedia = null; | 439 var _uploadMedia = null; |
440 var _uploadOptions = null; | 440 var _uploadOptions = null; |
441 var _downloadOptions = commons.DownloadOptions.Metadata; | 441 var _downloadOptions = commons.DownloadOptions.Metadata; |
442 var _body = null; | 442 var _body = null; |
443 | 443 |
444 if (parent == null) { | 444 if (parent == null) { |
445 throw new core.ArgumentError("Parameter parent is required."); | 445 throw new core.ArgumentError("Parameter parent is required."); |
446 } | 446 } |
| 447 if (filter != null) { |
| 448 _queryParams["filter"] = [filter]; |
| 449 } |
447 if (pageToken != null) { | 450 if (pageToken != null) { |
448 _queryParams["pageToken"] = [pageToken]; | 451 _queryParams["pageToken"] = [pageToken]; |
449 } | 452 } |
450 if (pageSize != null) { | 453 if (pageSize != null) { |
451 _queryParams["pageSize"] = ["${pageSize}"]; | 454 _queryParams["pageSize"] = ["${pageSize}"]; |
452 } | 455 } |
453 if (filter != null) { | |
454 _queryParams["filter"] = [filter]; | |
455 } | |
456 | 456 |
457 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/instance
s'; | 457 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/instance
s'; |
458 | 458 |
459 var _response = _requester.request(_url, | 459 var _response = _requester.request(_url, |
460 "GET", | 460 "GET", |
461 body: _body, | 461 body: _body, |
462 queryParams: _queryParams, | 462 queryParams: _queryParams, |
463 uploadOptions: _uploadOptions, | 463 uploadOptions: _uploadOptions, |
464 uploadMedia: _uploadMedia, | 464 uploadMedia: _uploadMedia, |
465 downloadOptions: _downloadOptions); | 465 downloadOptions: _downloadOptions); |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 * |
1274 * [pageToken] - The standard list page token. | 1276 * [pageToken] - The standard list page token. |
1275 * | 1277 * |
1276 * [pageSize] - The standard list page size. | 1278 * [pageSize] - The standard list page size. |
1277 * | 1279 * |
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 pageT
oken, core.int pageSize, core.String filter}) { | 1288 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
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 } |
1299 if (pageToken != null) { | 1302 if (pageToken != null) { |
1300 _queryParams["pageToken"] = [pageToken]; | 1303 _queryParams["pageToken"] = [pageToken]; |
1301 } | 1304 } |
1302 if (pageSize != null) { | 1305 if (pageSize != null) { |
1303 _queryParams["pageSize"] = ["${pageSize}"]; | 1306 _queryParams["pageSize"] = ["${pageSize}"]; |
1304 } | 1307 } |
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1993 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 1993 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
1994 * | 1994 * |
1995 * NOTE: the `name` binding below allows API services to override the binding | 1995 * NOTE: the `name` binding below allows API services to override the binding |
1996 * to use different resource name schemes, such as `users / * /operations`. | 1996 * to use different resource name schemes, such as `users / * /operations`. |
1997 * | 1997 * |
1998 * Request parameters: | 1998 * Request parameters: |
1999 * | 1999 * |
2000 * [name] - The name of the operation collection. | 2000 * [name] - The name of the operation collection. |
2001 * Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$". | 2001 * Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$". |
2002 * | 2002 * |
| 2003 * [pageSize] - The standard list page size. |
| 2004 * |
2003 * [filter] - The standard list filter. | 2005 * [filter] - The standard list filter. |
2004 * | 2006 * |
2005 * [pageToken] - The standard list page token. | 2007 * [pageToken] - The standard list page token. |
2006 * | 2008 * |
2007 * [pageSize] - The standard list page size. | |
2008 * | |
2009 * Completes with a [ListOperationsResponse]. | 2009 * Completes with a [ListOperationsResponse]. |
2010 * | 2010 * |
2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2012 * error. | 2012 * error. |
2013 * | 2013 * |
2014 * If the used [http.Client] completes with an error when making a REST call, | 2014 * If the used [http.Client] completes with an error when making a REST call, |
2015 * this method will complete with the same error. | 2015 * this method will complete with the same error. |
2016 */ | 2016 */ |
2017 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { | 2017 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { |
2018 var _url = null; | 2018 var _url = null; |
2019 var _queryParams = new core.Map(); | 2019 var _queryParams = new core.Map(); |
2020 var _uploadMedia = null; | 2020 var _uploadMedia = null; |
2021 var _uploadOptions = null; | 2021 var _uploadOptions = null; |
2022 var _downloadOptions = commons.DownloadOptions.Metadata; | 2022 var _downloadOptions = commons.DownloadOptions.Metadata; |
2023 var _body = null; | 2023 var _body = null; |
2024 | 2024 |
2025 if (name == null) { | 2025 if (name == null) { |
2026 throw new core.ArgumentError("Parameter name is required."); | 2026 throw new core.ArgumentError("Parameter name is required."); |
2027 } | 2027 } |
| 2028 if (pageSize != null) { |
| 2029 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2030 } |
2028 if (filter != null) { | 2031 if (filter != null) { |
2029 _queryParams["filter"] = [filter]; | 2032 _queryParams["filter"] = [filter]; |
2030 } | 2033 } |
2031 if (pageToken != null) { | 2034 if (pageToken != null) { |
2032 _queryParams["pageToken"] = [pageToken]; | 2035 _queryParams["pageToken"] = [pageToken]; |
2033 } | 2036 } |
2034 if (pageSize != null) { | |
2035 _queryParams["pageSize"] = ["${pageSize}"]; | |
2036 } | |
2037 | 2037 |
2038 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 2038 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
2039 | 2039 |
2040 var _response = _requester.request(_url, | 2040 var _response = _requester.request(_url, |
2041 "GET", | 2041 "GET", |
2042 body: _body, | 2042 body: _body, |
2043 queryParams: _queryParams, | 2043 queryParams: _queryParams, |
2044 uploadOptions: _uploadOptions, | 2044 uploadOptions: _uploadOptions, |
2045 uploadMedia: _uploadMedia, | 2045 uploadMedia: _uploadMedia, |
2046 downloadOptions: _downloadOptions); | 2046 downloadOptions: _downloadOptions); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2125 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); | 2125 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); |
2126 } | 2126 } |
2127 if (_json.containsKey("exemptedMembers")) { | 2127 if (_json.containsKey("exemptedMembers")) { |
2128 exemptedMembers = _json["exemptedMembers"]; | 2128 exemptedMembers = _json["exemptedMembers"]; |
2129 } | 2129 } |
2130 if (_json.containsKey("service")) { | 2130 if (_json.containsKey("service")) { |
2131 service = _json["service"]; | 2131 service = _json["service"]; |
2132 } | 2132 } |
2133 } | 2133 } |
2134 | 2134 |
2135 core.Map toJson() { | 2135 core.Map<core.String, core.Object> toJson() { |
2136 var _json = new core.Map(); | 2136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2137 if (auditLogConfigs != null) { | 2137 if (auditLogConfigs != null) { |
2138 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); | 2138 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); |
2139 } | 2139 } |
2140 if (exemptedMembers != null) { | 2140 if (exemptedMembers != null) { |
2141 _json["exemptedMembers"] = exemptedMembers; | 2141 _json["exemptedMembers"] = exemptedMembers; |
2142 } | 2142 } |
2143 if (service != null) { | 2143 if (service != null) { |
2144 _json["service"] = service; | 2144 _json["service"] = service; |
2145 } | 2145 } |
2146 return _json; | 2146 return _json; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2189 | 2189 |
2190 AuditLogConfig.fromJson(core.Map _json) { | 2190 AuditLogConfig.fromJson(core.Map _json) { |
2191 if (_json.containsKey("exemptedMembers")) { | 2191 if (_json.containsKey("exemptedMembers")) { |
2192 exemptedMembers = _json["exemptedMembers"]; | 2192 exemptedMembers = _json["exemptedMembers"]; |
2193 } | 2193 } |
2194 if (_json.containsKey("logType")) { | 2194 if (_json.containsKey("logType")) { |
2195 logType = _json["logType"]; | 2195 logType = _json["logType"]; |
2196 } | 2196 } |
2197 } | 2197 } |
2198 | 2198 |
2199 core.Map toJson() { | 2199 core.Map<core.String, core.Object> toJson() { |
2200 var _json = new core.Map(); | 2200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2201 if (exemptedMembers != null) { | 2201 if (exemptedMembers != null) { |
2202 _json["exemptedMembers"] = exemptedMembers; | 2202 _json["exemptedMembers"] = exemptedMembers; |
2203 } | 2203 } |
2204 if (logType != null) { | 2204 if (logType != null) { |
2205 _json["logType"] = logType; | 2205 _json["logType"] = logType; |
2206 } | 2206 } |
2207 return _json; | 2207 return _json; |
2208 } | 2208 } |
2209 } | 2209 } |
2210 | 2210 |
2211 /** The request for BeginTransaction. */ | 2211 /** The request for BeginTransaction. */ |
2212 class BeginTransactionRequest { | 2212 class BeginTransactionRequest { |
2213 /** Required. Options for the new transaction. */ | 2213 /** Required. Options for the new transaction. */ |
2214 TransactionOptions options; | 2214 TransactionOptions options; |
2215 | 2215 |
2216 BeginTransactionRequest(); | 2216 BeginTransactionRequest(); |
2217 | 2217 |
2218 BeginTransactionRequest.fromJson(core.Map _json) { | 2218 BeginTransactionRequest.fromJson(core.Map _json) { |
2219 if (_json.containsKey("options")) { | 2219 if (_json.containsKey("options")) { |
2220 options = new TransactionOptions.fromJson(_json["options"]); | 2220 options = new TransactionOptions.fromJson(_json["options"]); |
2221 } | 2221 } |
2222 } | 2222 } |
2223 | 2223 |
2224 core.Map toJson() { | 2224 core.Map<core.String, core.Object> toJson() { |
2225 var _json = new core.Map(); | 2225 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2226 if (options != null) { | 2226 if (options != null) { |
2227 _json["options"] = (options).toJson(); | 2227 _json["options"] = (options).toJson(); |
2228 } | 2228 } |
2229 return _json; | 2229 return _json; |
2230 } | 2230 } |
2231 } | 2231 } |
2232 | 2232 |
2233 /** Associates `members` with a `role`. */ | 2233 /** Associates `members` with a `role`. */ |
2234 class Binding { | 2234 class Binding { |
2235 /** | 2235 /** |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 | 2267 |
2268 Binding.fromJson(core.Map _json) { | 2268 Binding.fromJson(core.Map _json) { |
2269 if (_json.containsKey("members")) { | 2269 if (_json.containsKey("members")) { |
2270 members = _json["members"]; | 2270 members = _json["members"]; |
2271 } | 2271 } |
2272 if (_json.containsKey("role")) { | 2272 if (_json.containsKey("role")) { |
2273 role = _json["role"]; | 2273 role = _json["role"]; |
2274 } | 2274 } |
2275 } | 2275 } |
2276 | 2276 |
2277 core.Map toJson() { | 2277 core.Map<core.String, core.Object> toJson() { |
2278 var _json = new core.Map(); | 2278 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2279 if (members != null) { | 2279 if (members != null) { |
2280 _json["members"] = members; | 2280 _json["members"] = members; |
2281 } | 2281 } |
2282 if (role != null) { | 2282 if (role != null) { |
2283 _json["role"] = role; | 2283 _json["role"] = role; |
2284 } | 2284 } |
2285 return _json; | 2285 return _json; |
2286 } | 2286 } |
2287 } | 2287 } |
2288 | 2288 |
(...skipping 30 matching lines...) Expand all Loading... |
2319 childIndex = _json["childIndex"]; | 2319 childIndex = _json["childIndex"]; |
2320 } | 2320 } |
2321 if (_json.containsKey("type")) { | 2321 if (_json.containsKey("type")) { |
2322 type = _json["type"]; | 2322 type = _json["type"]; |
2323 } | 2323 } |
2324 if (_json.containsKey("variable")) { | 2324 if (_json.containsKey("variable")) { |
2325 variable = _json["variable"]; | 2325 variable = _json["variable"]; |
2326 } | 2326 } |
2327 } | 2327 } |
2328 | 2328 |
2329 core.Map toJson() { | 2329 core.Map<core.String, core.Object> toJson() { |
2330 var _json = new core.Map(); | 2330 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2331 if (childIndex != null) { | 2331 if (childIndex != null) { |
2332 _json["childIndex"] = childIndex; | 2332 _json["childIndex"] = childIndex; |
2333 } | 2333 } |
2334 if (type != null) { | 2334 if (type != null) { |
2335 _json["type"] = type; | 2335 _json["type"] = type; |
2336 } | 2336 } |
2337 if (variable != null) { | 2337 if (variable != null) { |
2338 _json["variable"] = variable; | 2338 _json["variable"] = variable; |
2339 } | 2339 } |
2340 return _json; | 2340 return _json; |
2341 } | 2341 } |
2342 } | 2342 } |
2343 | 2343 |
2344 /** Write a Cloud Audit log */ | 2344 /** Write a Cloud Audit log */ |
2345 class CloudAuditOptions { | 2345 class CloudAuditOptions { |
2346 | 2346 |
2347 CloudAuditOptions(); | 2347 CloudAuditOptions(); |
2348 | 2348 |
2349 CloudAuditOptions.fromJson(core.Map _json) { | 2349 CloudAuditOptions.fromJson(core.Map _json) { |
2350 } | 2350 } |
2351 | 2351 |
2352 core.Map toJson() { | 2352 core.Map<core.String, core.Object> toJson() { |
2353 var _json = new core.Map(); | 2353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2354 return _json; | 2354 return _json; |
2355 } | 2355 } |
2356 } | 2356 } |
2357 | 2357 |
2358 /** The request for Commit. */ | 2358 /** The request for Commit. */ |
2359 class CommitRequest { | 2359 class CommitRequest { |
2360 /** | 2360 /** |
2361 * The mutations to be executed when this transaction commits. All | 2361 * The mutations to be executed when this transaction commits. All |
2362 * mutations are applied atomically, in the order they appear in | 2362 * mutations are applied atomically, in the order they appear in |
2363 * this list. | 2363 * this list. |
(...skipping 28 matching lines...) Expand all Loading... |
2392 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value)
).toList(); | 2392 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value)
).toList(); |
2393 } | 2393 } |
2394 if (_json.containsKey("singleUseTransaction")) { | 2394 if (_json.containsKey("singleUseTransaction")) { |
2395 singleUseTransaction = new TransactionOptions.fromJson(_json["singleUseTra
nsaction"]); | 2395 singleUseTransaction = new TransactionOptions.fromJson(_json["singleUseTra
nsaction"]); |
2396 } | 2396 } |
2397 if (_json.containsKey("transactionId")) { | 2397 if (_json.containsKey("transactionId")) { |
2398 transactionId = _json["transactionId"]; | 2398 transactionId = _json["transactionId"]; |
2399 } | 2399 } |
2400 } | 2400 } |
2401 | 2401 |
2402 core.Map toJson() { | 2402 core.Map<core.String, core.Object> toJson() { |
2403 var _json = new core.Map(); | 2403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2404 if (mutations != null) { | 2404 if (mutations != null) { |
2405 _json["mutations"] = mutations.map((value) => (value).toJson()).toList(); | 2405 _json["mutations"] = mutations.map((value) => (value).toJson()).toList(); |
2406 } | 2406 } |
2407 if (singleUseTransaction != null) { | 2407 if (singleUseTransaction != null) { |
2408 _json["singleUseTransaction"] = (singleUseTransaction).toJson(); | 2408 _json["singleUseTransaction"] = (singleUseTransaction).toJson(); |
2409 } | 2409 } |
2410 if (transactionId != null) { | 2410 if (transactionId != null) { |
2411 _json["transactionId"] = transactionId; | 2411 _json["transactionId"] = transactionId; |
2412 } | 2412 } |
2413 return _json; | 2413 return _json; |
2414 } | 2414 } |
2415 } | 2415 } |
2416 | 2416 |
2417 /** The response for Commit. */ | 2417 /** The response for Commit. */ |
2418 class CommitResponse { | 2418 class CommitResponse { |
2419 /** The Cloud Spanner timestamp at which the transaction committed. */ | 2419 /** The Cloud Spanner timestamp at which the transaction committed. */ |
2420 core.String commitTimestamp; | 2420 core.String commitTimestamp; |
2421 | 2421 |
2422 CommitResponse(); | 2422 CommitResponse(); |
2423 | 2423 |
2424 CommitResponse.fromJson(core.Map _json) { | 2424 CommitResponse.fromJson(core.Map _json) { |
2425 if (_json.containsKey("commitTimestamp")) { | 2425 if (_json.containsKey("commitTimestamp")) { |
2426 commitTimestamp = _json["commitTimestamp"]; | 2426 commitTimestamp = _json["commitTimestamp"]; |
2427 } | 2427 } |
2428 } | 2428 } |
2429 | 2429 |
2430 core.Map toJson() { | 2430 core.Map<core.String, core.Object> toJson() { |
2431 var _json = new core.Map(); | 2431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2432 if (commitTimestamp != null) { | 2432 if (commitTimestamp != null) { |
2433 _json["commitTimestamp"] = commitTimestamp; | 2433 _json["commitTimestamp"] = commitTimestamp; |
2434 } | 2434 } |
2435 return _json; | 2435 return _json; |
2436 } | 2436 } |
2437 } | 2437 } |
2438 | 2438 |
2439 /** A condition to be met. */ | 2439 /** A condition to be met. */ |
2440 class Condition { | 2440 class Condition { |
2441 /** | 2441 /** |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2522 sys = _json["sys"]; | 2522 sys = _json["sys"]; |
2523 } | 2523 } |
2524 if (_json.containsKey("value")) { | 2524 if (_json.containsKey("value")) { |
2525 value = _json["value"]; | 2525 value = _json["value"]; |
2526 } | 2526 } |
2527 if (_json.containsKey("values")) { | 2527 if (_json.containsKey("values")) { |
2528 values = _json["values"]; | 2528 values = _json["values"]; |
2529 } | 2529 } |
2530 } | 2530 } |
2531 | 2531 |
2532 core.Map toJson() { | 2532 core.Map<core.String, core.Object> toJson() { |
2533 var _json = new core.Map(); | 2533 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2534 if (iam != null) { | 2534 if (iam != null) { |
2535 _json["iam"] = iam; | 2535 _json["iam"] = iam; |
2536 } | 2536 } |
2537 if (op != null) { | 2537 if (op != null) { |
2538 _json["op"] = op; | 2538 _json["op"] = op; |
2539 } | 2539 } |
2540 if (svc != null) { | 2540 if (svc != null) { |
2541 _json["svc"] = svc; | 2541 _json["svc"] = svc; |
2542 } | 2542 } |
2543 if (sys != null) { | 2543 if (sys != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
2564 | 2564 |
2565 CounterOptions.fromJson(core.Map _json) { | 2565 CounterOptions.fromJson(core.Map _json) { |
2566 if (_json.containsKey("field")) { | 2566 if (_json.containsKey("field")) { |
2567 field = _json["field"]; | 2567 field = _json["field"]; |
2568 } | 2568 } |
2569 if (_json.containsKey("metric")) { | 2569 if (_json.containsKey("metric")) { |
2570 metric = _json["metric"]; | 2570 metric = _json["metric"]; |
2571 } | 2571 } |
2572 } | 2572 } |
2573 | 2573 |
2574 core.Map toJson() { | 2574 core.Map<core.String, core.Object> toJson() { |
2575 var _json = new core.Map(); | 2575 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2576 if (field != null) { | 2576 if (field != null) { |
2577 _json["field"] = field; | 2577 _json["field"] = field; |
2578 } | 2578 } |
2579 if (metric != null) { | 2579 if (metric != null) { |
2580 _json["metric"] = metric; | 2580 _json["metric"] = metric; |
2581 } | 2581 } |
2582 return _json; | 2582 return _json; |
2583 } | 2583 } |
2584 } | 2584 } |
2585 | 2585 |
2586 /** | 2586 /** |
2587 * Metadata type for the operation returned by | 2587 * Metadata type for the operation returned by |
2588 * CreateDatabase. | 2588 * CreateDatabase. |
2589 */ | 2589 */ |
2590 class CreateDatabaseMetadata { | 2590 class CreateDatabaseMetadata { |
2591 /** The database being created. */ | 2591 /** The database being created. */ |
2592 core.String database; | 2592 core.String database; |
2593 | 2593 |
2594 CreateDatabaseMetadata(); | 2594 CreateDatabaseMetadata(); |
2595 | 2595 |
2596 CreateDatabaseMetadata.fromJson(core.Map _json) { | 2596 CreateDatabaseMetadata.fromJson(core.Map _json) { |
2597 if (_json.containsKey("database")) { | 2597 if (_json.containsKey("database")) { |
2598 database = _json["database"]; | 2598 database = _json["database"]; |
2599 } | 2599 } |
2600 } | 2600 } |
2601 | 2601 |
2602 core.Map toJson() { | 2602 core.Map<core.String, core.Object> toJson() { |
2603 var _json = new core.Map(); | 2603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2604 if (database != null) { | 2604 if (database != null) { |
2605 _json["database"] = database; | 2605 _json["database"] = database; |
2606 } | 2606 } |
2607 return _json; | 2607 return _json; |
2608 } | 2608 } |
2609 } | 2609 } |
2610 | 2610 |
2611 /** The request for CreateDatabase. */ | 2611 /** The request for CreateDatabase. */ |
2612 class CreateDatabaseRequest { | 2612 class CreateDatabaseRequest { |
2613 /** | 2613 /** |
(...skipping 16 matching lines...) Expand all Loading... |
2630 | 2630 |
2631 CreateDatabaseRequest.fromJson(core.Map _json) { | 2631 CreateDatabaseRequest.fromJson(core.Map _json) { |
2632 if (_json.containsKey("createStatement")) { | 2632 if (_json.containsKey("createStatement")) { |
2633 createStatement = _json["createStatement"]; | 2633 createStatement = _json["createStatement"]; |
2634 } | 2634 } |
2635 if (_json.containsKey("extraStatements")) { | 2635 if (_json.containsKey("extraStatements")) { |
2636 extraStatements = _json["extraStatements"]; | 2636 extraStatements = _json["extraStatements"]; |
2637 } | 2637 } |
2638 } | 2638 } |
2639 | 2639 |
2640 core.Map toJson() { | 2640 core.Map<core.String, core.Object> toJson() { |
2641 var _json = new core.Map(); | 2641 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2642 if (createStatement != null) { | 2642 if (createStatement != null) { |
2643 _json["createStatement"] = createStatement; | 2643 _json["createStatement"] = createStatement; |
2644 } | 2644 } |
2645 if (extraStatements != null) { | 2645 if (extraStatements != null) { |
2646 _json["extraStatements"] = extraStatements; | 2646 _json["extraStatements"] = extraStatements; |
2647 } | 2647 } |
2648 return _json; | 2648 return _json; |
2649 } | 2649 } |
2650 } | 2650 } |
2651 | 2651 |
(...skipping 29 matching lines...) Expand all Loading... |
2681 endTime = _json["endTime"]; | 2681 endTime = _json["endTime"]; |
2682 } | 2682 } |
2683 if (_json.containsKey("instance")) { | 2683 if (_json.containsKey("instance")) { |
2684 instance = new Instance.fromJson(_json["instance"]); | 2684 instance = new Instance.fromJson(_json["instance"]); |
2685 } | 2685 } |
2686 if (_json.containsKey("startTime")) { | 2686 if (_json.containsKey("startTime")) { |
2687 startTime = _json["startTime"]; | 2687 startTime = _json["startTime"]; |
2688 } | 2688 } |
2689 } | 2689 } |
2690 | 2690 |
2691 core.Map toJson() { | 2691 core.Map<core.String, core.Object> toJson() { |
2692 var _json = new core.Map(); | 2692 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2693 if (cancelTime != null) { | 2693 if (cancelTime != null) { |
2694 _json["cancelTime"] = cancelTime; | 2694 _json["cancelTime"] = cancelTime; |
2695 } | 2695 } |
2696 if (endTime != null) { | 2696 if (endTime != null) { |
2697 _json["endTime"] = endTime; | 2697 _json["endTime"] = endTime; |
2698 } | 2698 } |
2699 if (instance != null) { | 2699 if (instance != null) { |
2700 _json["instance"] = (instance).toJson(); | 2700 _json["instance"] = (instance).toJson(); |
2701 } | 2701 } |
2702 if (startTime != null) { | 2702 if (startTime != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
2724 | 2724 |
2725 CreateInstanceRequest.fromJson(core.Map _json) { | 2725 CreateInstanceRequest.fromJson(core.Map _json) { |
2726 if (_json.containsKey("instance")) { | 2726 if (_json.containsKey("instance")) { |
2727 instance = new Instance.fromJson(_json["instance"]); | 2727 instance = new Instance.fromJson(_json["instance"]); |
2728 } | 2728 } |
2729 if (_json.containsKey("instanceId")) { | 2729 if (_json.containsKey("instanceId")) { |
2730 instanceId = _json["instanceId"]; | 2730 instanceId = _json["instanceId"]; |
2731 } | 2731 } |
2732 } | 2732 } |
2733 | 2733 |
2734 core.Map toJson() { | 2734 core.Map<core.String, core.Object> toJson() { |
2735 var _json = new core.Map(); | 2735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2736 if (instance != null) { | 2736 if (instance != null) { |
2737 _json["instance"] = (instance).toJson(); | 2737 _json["instance"] = (instance).toJson(); |
2738 } | 2738 } |
2739 if (instanceId != null) { | 2739 if (instanceId != null) { |
2740 _json["instanceId"] = instanceId; | 2740 _json["instanceId"] = instanceId; |
2741 } | 2741 } |
2742 return _json; | 2742 return _json; |
2743 } | 2743 } |
2744 } | 2744 } |
2745 | 2745 |
2746 /** Write a Data Access (Gin) log */ | 2746 /** Write a Data Access (Gin) log */ |
2747 class DataAccessOptions { | 2747 class DataAccessOptions { |
2748 | 2748 |
2749 DataAccessOptions(); | 2749 DataAccessOptions(); |
2750 | 2750 |
2751 DataAccessOptions.fromJson(core.Map _json) { | 2751 DataAccessOptions.fromJson(core.Map _json) { |
2752 } | 2752 } |
2753 | 2753 |
2754 core.Map toJson() { | 2754 core.Map<core.String, core.Object> toJson() { |
2755 var _json = new core.Map(); | 2755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2756 return _json; | 2756 return _json; |
2757 } | 2757 } |
2758 } | 2758 } |
2759 | 2759 |
2760 /** A Cloud Spanner database. */ | 2760 /** A Cloud Spanner database. */ |
2761 class Database { | 2761 class Database { |
2762 /** | 2762 /** |
2763 * Required. The name of the database. Values are of the form | 2763 * Required. The name of the database. Values are of the form |
2764 * `projects/<project>/instances/<instance>/databases/<database>`, | 2764 * `projects/<project>/instances/<instance>/databases/<database>`, |
2765 * where `<database>` is as specified in the `CREATE DATABASE` | 2765 * where `<database>` is as specified in the `CREATE DATABASE` |
(...skipping 16 matching lines...) Expand all Loading... |
2782 | 2782 |
2783 Database.fromJson(core.Map _json) { | 2783 Database.fromJson(core.Map _json) { |
2784 if (_json.containsKey("name")) { | 2784 if (_json.containsKey("name")) { |
2785 name = _json["name"]; | 2785 name = _json["name"]; |
2786 } | 2786 } |
2787 if (_json.containsKey("state")) { | 2787 if (_json.containsKey("state")) { |
2788 state = _json["state"]; | 2788 state = _json["state"]; |
2789 } | 2789 } |
2790 } | 2790 } |
2791 | 2791 |
2792 core.Map toJson() { | 2792 core.Map<core.String, core.Object> toJson() { |
2793 var _json = new core.Map(); | 2793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2794 if (name != null) { | 2794 if (name != null) { |
2795 _json["name"] = name; | 2795 _json["name"] = name; |
2796 } | 2796 } |
2797 if (state != null) { | 2797 if (state != null) { |
2798 _json["state"] = state; | 2798 _json["state"] = state; |
2799 } | 2799 } |
2800 return _json; | 2800 return _json; |
2801 } | 2801 } |
2802 } | 2802 } |
2803 | 2803 |
2804 /** Arguments to delete operations. */ | 2804 /** Arguments to delete operations. */ |
2805 class Delete { | 2805 class Delete { |
2806 /** Required. The primary keys of the rows within table to delete. */ | 2806 /** Required. The primary keys of the rows within table to delete. */ |
2807 KeySet keySet; | 2807 KeySet keySet; |
2808 /** Required. The table whose rows will be deleted. */ | 2808 /** Required. The table whose rows will be deleted. */ |
2809 core.String table; | 2809 core.String table; |
2810 | 2810 |
2811 Delete(); | 2811 Delete(); |
2812 | 2812 |
2813 Delete.fromJson(core.Map _json) { | 2813 Delete.fromJson(core.Map _json) { |
2814 if (_json.containsKey("keySet")) { | 2814 if (_json.containsKey("keySet")) { |
2815 keySet = new KeySet.fromJson(_json["keySet"]); | 2815 keySet = new KeySet.fromJson(_json["keySet"]); |
2816 } | 2816 } |
2817 if (_json.containsKey("table")) { | 2817 if (_json.containsKey("table")) { |
2818 table = _json["table"]; | 2818 table = _json["table"]; |
2819 } | 2819 } |
2820 } | 2820 } |
2821 | 2821 |
2822 core.Map toJson() { | 2822 core.Map<core.String, core.Object> toJson() { |
2823 var _json = new core.Map(); | 2823 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2824 if (keySet != null) { | 2824 if (keySet != null) { |
2825 _json["keySet"] = (keySet).toJson(); | 2825 _json["keySet"] = (keySet).toJson(); |
2826 } | 2826 } |
2827 if (table != null) { | 2827 if (table != null) { |
2828 _json["table"] = table; | 2828 _json["table"] = table; |
2829 } | 2829 } |
2830 return _json; | 2830 return _json; |
2831 } | 2831 } |
2832 } | 2832 } |
2833 | 2833 |
2834 /** | 2834 /** |
2835 * A generic empty message that you can re-use to avoid defining duplicated | 2835 * A generic empty message that you can re-use to avoid defining duplicated |
2836 * empty messages in your APIs. A typical example is to use it as the request | 2836 * empty messages in your APIs. A typical example is to use it as the request |
2837 * or the response type of an API method. For instance: | 2837 * or the response type of an API method. For instance: |
2838 * | 2838 * |
2839 * service Foo { | 2839 * service Foo { |
2840 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 2840 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
2841 * } | 2841 * } |
2842 * | 2842 * |
2843 * The JSON representation for `Empty` is empty JSON object `{}`. | 2843 * The JSON representation for `Empty` is empty JSON object `{}`. |
2844 */ | 2844 */ |
2845 class Empty { | 2845 class Empty { |
2846 | 2846 |
2847 Empty(); | 2847 Empty(); |
2848 | 2848 |
2849 Empty.fromJson(core.Map _json) { | 2849 Empty.fromJson(core.Map _json) { |
2850 } | 2850 } |
2851 | 2851 |
2852 core.Map toJson() { | 2852 core.Map<core.String, core.Object> toJson() { |
2853 var _json = new core.Map(); | 2853 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2854 return _json; | 2854 return _json; |
2855 } | 2855 } |
2856 } | 2856 } |
2857 | 2857 |
2858 /** | 2858 /** |
2859 * The request for ExecuteSql and | 2859 * The request for ExecuteSql and |
2860 * ExecuteStreamingSql. | 2860 * ExecuteStreamingSql. |
2861 */ | 2861 */ |
2862 class ExecuteSqlRequest { | 2862 class ExecuteSqlRequest { |
2863 /** | 2863 /** |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2927 /** | 2927 /** |
2928 * The transaction to use. If none is provided, the default is a | 2928 * The transaction to use. If none is provided, the default is a |
2929 * temporary read-only transaction with strong concurrency. | 2929 * temporary read-only transaction with strong concurrency. |
2930 */ | 2930 */ |
2931 TransactionSelector transaction; | 2931 TransactionSelector transaction; |
2932 | 2932 |
2933 ExecuteSqlRequest(); | 2933 ExecuteSqlRequest(); |
2934 | 2934 |
2935 ExecuteSqlRequest.fromJson(core.Map _json) { | 2935 ExecuteSqlRequest.fromJson(core.Map _json) { |
2936 if (_json.containsKey("paramTypes")) { | 2936 if (_json.containsKey("paramTypes")) { |
2937 paramTypes = commons.mapMap(_json["paramTypes"], (item) => new Type.fromJs
on(item)); | 2937 paramTypes = commons.mapMap<core.Map<core.String, core.Object>, Type>(_jso
n["paramTypes"], (core.Map<core.String, core.Object> item) => new Type.fromJson(
item)); |
2938 } | 2938 } |
2939 if (_json.containsKey("params")) { | 2939 if (_json.containsKey("params")) { |
2940 params = _json["params"]; | 2940 params = _json["params"]; |
2941 } | 2941 } |
2942 if (_json.containsKey("queryMode")) { | 2942 if (_json.containsKey("queryMode")) { |
2943 queryMode = _json["queryMode"]; | 2943 queryMode = _json["queryMode"]; |
2944 } | 2944 } |
2945 if (_json.containsKey("resumeToken")) { | 2945 if (_json.containsKey("resumeToken")) { |
2946 resumeToken = _json["resumeToken"]; | 2946 resumeToken = _json["resumeToken"]; |
2947 } | 2947 } |
2948 if (_json.containsKey("sql")) { | 2948 if (_json.containsKey("sql")) { |
2949 sql = _json["sql"]; | 2949 sql = _json["sql"]; |
2950 } | 2950 } |
2951 if (_json.containsKey("transaction")) { | 2951 if (_json.containsKey("transaction")) { |
2952 transaction = new TransactionSelector.fromJson(_json["transaction"]); | 2952 transaction = new TransactionSelector.fromJson(_json["transaction"]); |
2953 } | 2953 } |
2954 } | 2954 } |
2955 | 2955 |
2956 core.Map toJson() { | 2956 core.Map<core.String, core.Object> toJson() { |
2957 var _json = new core.Map(); | 2957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2958 if (paramTypes != null) { | 2958 if (paramTypes != null) { |
2959 _json["paramTypes"] = commons.mapMap(paramTypes, (item) => (item).toJson()
); | 2959 _json["paramTypes"] = commons.mapMap<Type, core.Map<core.String, core.Obje
ct>>(paramTypes, (Type item) => (item).toJson()); |
2960 } | 2960 } |
2961 if (params != null) { | 2961 if (params != null) { |
2962 _json["params"] = params; | 2962 _json["params"] = params; |
2963 } | 2963 } |
2964 if (queryMode != null) { | 2964 if (queryMode != null) { |
2965 _json["queryMode"] = queryMode; | 2965 _json["queryMode"] = queryMode; |
2966 } | 2966 } |
2967 if (resumeToken != null) { | 2967 if (resumeToken != null) { |
2968 _json["resumeToken"] = resumeToken; | 2968 _json["resumeToken"] = resumeToken; |
2969 } | 2969 } |
(...skipping 26 matching lines...) Expand all Loading... |
2996 | 2996 |
2997 Field.fromJson(core.Map _json) { | 2997 Field.fromJson(core.Map _json) { |
2998 if (_json.containsKey("name")) { | 2998 if (_json.containsKey("name")) { |
2999 name = _json["name"]; | 2999 name = _json["name"]; |
3000 } | 3000 } |
3001 if (_json.containsKey("type")) { | 3001 if (_json.containsKey("type")) { |
3002 type = new Type.fromJson(_json["type"]); | 3002 type = new Type.fromJson(_json["type"]); |
3003 } | 3003 } |
3004 } | 3004 } |
3005 | 3005 |
3006 core.Map toJson() { | 3006 core.Map<core.String, core.Object> toJson() { |
3007 var _json = new core.Map(); | 3007 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3008 if (name != null) { | 3008 if (name != null) { |
3009 _json["name"] = name; | 3009 _json["name"] = name; |
3010 } | 3010 } |
3011 if (type != null) { | 3011 if (type != null) { |
3012 _json["type"] = (type).toJson(); | 3012 _json["type"] = (type).toJson(); |
3013 } | 3013 } |
3014 return _json; | 3014 return _json; |
3015 } | 3015 } |
3016 } | 3016 } |
3017 | 3017 |
3018 /** The response for GetDatabaseDdl. */ | 3018 /** The response for GetDatabaseDdl. */ |
3019 class GetDatabaseDdlResponse { | 3019 class GetDatabaseDdlResponse { |
3020 /** | 3020 /** |
3021 * A list of formatted DDL statements defining the schema of the database | 3021 * A list of formatted DDL statements defining the schema of the database |
3022 * specified in the request. | 3022 * specified in the request. |
3023 */ | 3023 */ |
3024 core.List<core.String> statements; | 3024 core.List<core.String> statements; |
3025 | 3025 |
3026 GetDatabaseDdlResponse(); | 3026 GetDatabaseDdlResponse(); |
3027 | 3027 |
3028 GetDatabaseDdlResponse.fromJson(core.Map _json) { | 3028 GetDatabaseDdlResponse.fromJson(core.Map _json) { |
3029 if (_json.containsKey("statements")) { | 3029 if (_json.containsKey("statements")) { |
3030 statements = _json["statements"]; | 3030 statements = _json["statements"]; |
3031 } | 3031 } |
3032 } | 3032 } |
3033 | 3033 |
3034 core.Map toJson() { | 3034 core.Map<core.String, core.Object> toJson() { |
3035 var _json = new core.Map(); | 3035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3036 if (statements != null) { | 3036 if (statements != null) { |
3037 _json["statements"] = statements; | 3037 _json["statements"] = statements; |
3038 } | 3038 } |
3039 return _json; | 3039 return _json; |
3040 } | 3040 } |
3041 } | 3041 } |
3042 | 3042 |
3043 /** Request message for `GetIamPolicy` method. */ | 3043 /** Request message for `GetIamPolicy` method. */ |
3044 class GetIamPolicyRequest { | 3044 class GetIamPolicyRequest { |
3045 | 3045 |
3046 GetIamPolicyRequest(); | 3046 GetIamPolicyRequest(); |
3047 | 3047 |
3048 GetIamPolicyRequest.fromJson(core.Map _json) { | 3048 GetIamPolicyRequest.fromJson(core.Map _json) { |
3049 } | 3049 } |
3050 | 3050 |
3051 core.Map toJson() { | 3051 core.Map<core.String, core.Object> toJson() { |
3052 var _json = new core.Map(); | 3052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3053 return _json; | 3053 return _json; |
3054 } | 3054 } |
3055 } | 3055 } |
3056 | 3056 |
3057 /** | 3057 /** |
3058 * An isolated set of Cloud Spanner resources on which databases can be hosted. | 3058 * An isolated set of Cloud Spanner resources on which databases can be hosted. |
3059 */ | 3059 */ |
3060 class Instance { | 3060 class Instance { |
3061 /** | 3061 /** |
3062 * Required. The name of the instance's configuration. Values are of the form | 3062 * Required. The name of the instance's configuration. Values are of the form |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 name = _json["name"]; | 3138 name = _json["name"]; |
3139 } | 3139 } |
3140 if (_json.containsKey("nodeCount")) { | 3140 if (_json.containsKey("nodeCount")) { |
3141 nodeCount = _json["nodeCount"]; | 3141 nodeCount = _json["nodeCount"]; |
3142 } | 3142 } |
3143 if (_json.containsKey("state")) { | 3143 if (_json.containsKey("state")) { |
3144 state = _json["state"]; | 3144 state = _json["state"]; |
3145 } | 3145 } |
3146 } | 3146 } |
3147 | 3147 |
3148 core.Map toJson() { | 3148 core.Map<core.String, core.Object> toJson() { |
3149 var _json = new core.Map(); | 3149 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3150 if (config != null) { | 3150 if (config != null) { |
3151 _json["config"] = config; | 3151 _json["config"] = config; |
3152 } | 3152 } |
3153 if (displayName != null) { | 3153 if (displayName != null) { |
3154 _json["displayName"] = displayName; | 3154 _json["displayName"] = displayName; |
3155 } | 3155 } |
3156 if (labels != null) { | 3156 if (labels != null) { |
3157 _json["labels"] = labels; | 3157 _json["labels"] = labels; |
3158 } | 3158 } |
3159 if (name != null) { | 3159 if (name != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
3187 | 3187 |
3188 InstanceConfig.fromJson(core.Map _json) { | 3188 InstanceConfig.fromJson(core.Map _json) { |
3189 if (_json.containsKey("displayName")) { | 3189 if (_json.containsKey("displayName")) { |
3190 displayName = _json["displayName"]; | 3190 displayName = _json["displayName"]; |
3191 } | 3191 } |
3192 if (_json.containsKey("name")) { | 3192 if (_json.containsKey("name")) { |
3193 name = _json["name"]; | 3193 name = _json["name"]; |
3194 } | 3194 } |
3195 } | 3195 } |
3196 | 3196 |
3197 core.Map toJson() { | 3197 core.Map<core.String, core.Object> toJson() { |
3198 var _json = new core.Map(); | 3198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3199 if (displayName != null) { | 3199 if (displayName != null) { |
3200 _json["displayName"] = displayName; | 3200 _json["displayName"] = displayName; |
3201 } | 3201 } |
3202 if (name != null) { | 3202 if (name != null) { |
3203 _json["name"] = name; | 3203 _json["name"] = name; |
3204 } | 3204 } |
3205 return _json; | 3205 return _json; |
3206 } | 3206 } |
3207 } | 3207 } |
3208 | 3208 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3338 endOpen = _json["endOpen"]; | 3338 endOpen = _json["endOpen"]; |
3339 } | 3339 } |
3340 if (_json.containsKey("startClosed")) { | 3340 if (_json.containsKey("startClosed")) { |
3341 startClosed = _json["startClosed"]; | 3341 startClosed = _json["startClosed"]; |
3342 } | 3342 } |
3343 if (_json.containsKey("startOpen")) { | 3343 if (_json.containsKey("startOpen")) { |
3344 startOpen = _json["startOpen"]; | 3344 startOpen = _json["startOpen"]; |
3345 } | 3345 } |
3346 } | 3346 } |
3347 | 3347 |
3348 core.Map toJson() { | 3348 core.Map<core.String, core.Object> toJson() { |
3349 var _json = new core.Map(); | 3349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3350 if (endClosed != null) { | 3350 if (endClosed != null) { |
3351 _json["endClosed"] = endClosed; | 3351 _json["endClosed"] = endClosed; |
3352 } | 3352 } |
3353 if (endOpen != null) { | 3353 if (endOpen != null) { |
3354 _json["endOpen"] = endOpen; | 3354 _json["endOpen"] = endOpen; |
3355 } | 3355 } |
3356 if (startClosed != null) { | 3356 if (startClosed != null) { |
3357 _json["startClosed"] = startClosed; | 3357 _json["startClosed"] = startClosed; |
3358 } | 3358 } |
3359 if (startOpen != null) { | 3359 if (startOpen != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3402 all = _json["all"]; | 3402 all = _json["all"]; |
3403 } | 3403 } |
3404 if (_json.containsKey("keys")) { | 3404 if (_json.containsKey("keys")) { |
3405 keys = _json["keys"]; | 3405 keys = _json["keys"]; |
3406 } | 3406 } |
3407 if (_json.containsKey("ranges")) { | 3407 if (_json.containsKey("ranges")) { |
3408 ranges = _json["ranges"].map((value) => new KeyRange.fromJson(value)).toLi
st(); | 3408 ranges = _json["ranges"].map((value) => new KeyRange.fromJson(value)).toLi
st(); |
3409 } | 3409 } |
3410 } | 3410 } |
3411 | 3411 |
3412 core.Map toJson() { | 3412 core.Map<core.String, core.Object> toJson() { |
3413 var _json = new core.Map(); | 3413 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3414 if (all != null) { | 3414 if (all != null) { |
3415 _json["all"] = all; | 3415 _json["all"] = all; |
3416 } | 3416 } |
3417 if (keys != null) { | 3417 if (keys != null) { |
3418 _json["keys"] = keys; | 3418 _json["keys"] = keys; |
3419 } | 3419 } |
3420 if (ranges != null) { | 3420 if (ranges != null) { |
3421 _json["ranges"] = ranges.map((value) => (value).toJson()).toList(); | 3421 _json["ranges"] = ranges.map((value) => (value).toJson()).toList(); |
3422 } | 3422 } |
3423 return _json; | 3423 return _json; |
(...skipping 15 matching lines...) Expand all Loading... |
3439 | 3439 |
3440 ListDatabasesResponse.fromJson(core.Map _json) { | 3440 ListDatabasesResponse.fromJson(core.Map _json) { |
3441 if (_json.containsKey("databases")) { | 3441 if (_json.containsKey("databases")) { |
3442 databases = _json["databases"].map((value) => new Database.fromJson(value)
).toList(); | 3442 databases = _json["databases"].map((value) => new Database.fromJson(value)
).toList(); |
3443 } | 3443 } |
3444 if (_json.containsKey("nextPageToken")) { | 3444 if (_json.containsKey("nextPageToken")) { |
3445 nextPageToken = _json["nextPageToken"]; | 3445 nextPageToken = _json["nextPageToken"]; |
3446 } | 3446 } |
3447 } | 3447 } |
3448 | 3448 |
3449 core.Map toJson() { | 3449 core.Map<core.String, core.Object> toJson() { |
3450 var _json = new core.Map(); | 3450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3451 if (databases != null) { | 3451 if (databases != null) { |
3452 _json["databases"] = databases.map((value) => (value).toJson()).toList(); | 3452 _json["databases"] = databases.map((value) => (value).toJson()).toList(); |
3453 } | 3453 } |
3454 if (nextPageToken != null) { | 3454 if (nextPageToken != null) { |
3455 _json["nextPageToken"] = nextPageToken; | 3455 _json["nextPageToken"] = nextPageToken; |
3456 } | 3456 } |
3457 return _json; | 3457 return _json; |
3458 } | 3458 } |
3459 } | 3459 } |
3460 | 3460 |
(...skipping 12 matching lines...) Expand all Loading... |
3473 | 3473 |
3474 ListInstanceConfigsResponse.fromJson(core.Map _json) { | 3474 ListInstanceConfigsResponse.fromJson(core.Map _json) { |
3475 if (_json.containsKey("instanceConfigs")) { | 3475 if (_json.containsKey("instanceConfigs")) { |
3476 instanceConfigs = _json["instanceConfigs"].map((value) => new InstanceConf
ig.fromJson(value)).toList(); | 3476 instanceConfigs = _json["instanceConfigs"].map((value) => new InstanceConf
ig.fromJson(value)).toList(); |
3477 } | 3477 } |
3478 if (_json.containsKey("nextPageToken")) { | 3478 if (_json.containsKey("nextPageToken")) { |
3479 nextPageToken = _json["nextPageToken"]; | 3479 nextPageToken = _json["nextPageToken"]; |
3480 } | 3480 } |
3481 } | 3481 } |
3482 | 3482 |
3483 core.Map toJson() { | 3483 core.Map<core.String, core.Object> toJson() { |
3484 var _json = new core.Map(); | 3484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3485 if (instanceConfigs != null) { | 3485 if (instanceConfigs != null) { |
3486 _json["instanceConfigs"] = instanceConfigs.map((value) => (value).toJson()
).toList(); | 3486 _json["instanceConfigs"] = instanceConfigs.map((value) => (value).toJson()
).toList(); |
3487 } | 3487 } |
3488 if (nextPageToken != null) { | 3488 if (nextPageToken != null) { |
3489 _json["nextPageToken"] = nextPageToken; | 3489 _json["nextPageToken"] = nextPageToken; |
3490 } | 3490 } |
3491 return _json; | 3491 return _json; |
3492 } | 3492 } |
3493 } | 3493 } |
3494 | 3494 |
(...skipping 12 matching lines...) Expand all Loading... |
3507 | 3507 |
3508 ListInstancesResponse.fromJson(core.Map _json) { | 3508 ListInstancesResponse.fromJson(core.Map _json) { |
3509 if (_json.containsKey("instances")) { | 3509 if (_json.containsKey("instances")) { |
3510 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); | 3510 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); |
3511 } | 3511 } |
3512 if (_json.containsKey("nextPageToken")) { | 3512 if (_json.containsKey("nextPageToken")) { |
3513 nextPageToken = _json["nextPageToken"]; | 3513 nextPageToken = _json["nextPageToken"]; |
3514 } | 3514 } |
3515 } | 3515 } |
3516 | 3516 |
3517 core.Map toJson() { | 3517 core.Map<core.String, core.Object> toJson() { |
3518 var _json = new core.Map(); | 3518 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3519 if (instances != null) { | 3519 if (instances != null) { |
3520 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 3520 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
3521 } | 3521 } |
3522 if (nextPageToken != null) { | 3522 if (nextPageToken != null) { |
3523 _json["nextPageToken"] = nextPageToken; | 3523 _json["nextPageToken"] = nextPageToken; |
3524 } | 3524 } |
3525 return _json; | 3525 return _json; |
3526 } | 3526 } |
3527 } | 3527 } |
3528 | 3528 |
3529 /** The response message for Operations.ListOperations. */ | 3529 /** The response message for Operations.ListOperations. */ |
3530 class ListOperationsResponse { | 3530 class ListOperationsResponse { |
3531 /** The standard List next-page token. */ | 3531 /** The standard List next-page token. */ |
3532 core.String nextPageToken; | 3532 core.String nextPageToken; |
3533 /** A list of operations that matches the specified filter in the request. */ | 3533 /** A list of operations that matches the specified filter in the request. */ |
3534 core.List<Operation> operations; | 3534 core.List<Operation> operations; |
3535 | 3535 |
3536 ListOperationsResponse(); | 3536 ListOperationsResponse(); |
3537 | 3537 |
3538 ListOperationsResponse.fromJson(core.Map _json) { | 3538 ListOperationsResponse.fromJson(core.Map _json) { |
3539 if (_json.containsKey("nextPageToken")) { | 3539 if (_json.containsKey("nextPageToken")) { |
3540 nextPageToken = _json["nextPageToken"]; | 3540 nextPageToken = _json["nextPageToken"]; |
3541 } | 3541 } |
3542 if (_json.containsKey("operations")) { | 3542 if (_json.containsKey("operations")) { |
3543 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 3543 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
3544 } | 3544 } |
3545 } | 3545 } |
3546 | 3546 |
3547 core.Map toJson() { | 3547 core.Map<core.String, core.Object> toJson() { |
3548 var _json = new core.Map(); | 3548 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3549 if (nextPageToken != null) { | 3549 if (nextPageToken != null) { |
3550 _json["nextPageToken"] = nextPageToken; | 3550 _json["nextPageToken"] = nextPageToken; |
3551 } | 3551 } |
3552 if (operations != null) { | 3552 if (operations != null) { |
3553 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 3553 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
3554 } | 3554 } |
3555 return _json; | 3555 return _json; |
3556 } | 3556 } |
3557 } | 3557 } |
3558 | 3558 |
(...skipping 13 matching lines...) Expand all Loading... |
3572 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); | 3572 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); |
3573 } | 3573 } |
3574 if (_json.containsKey("counter")) { | 3574 if (_json.containsKey("counter")) { |
3575 counter = new CounterOptions.fromJson(_json["counter"]); | 3575 counter = new CounterOptions.fromJson(_json["counter"]); |
3576 } | 3576 } |
3577 if (_json.containsKey("dataAccess")) { | 3577 if (_json.containsKey("dataAccess")) { |
3578 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); | 3578 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); |
3579 } | 3579 } |
3580 } | 3580 } |
3581 | 3581 |
3582 core.Map toJson() { | 3582 core.Map<core.String, core.Object> toJson() { |
3583 var _json = new core.Map(); | 3583 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3584 if (cloudAudit != null) { | 3584 if (cloudAudit != null) { |
3585 _json["cloudAudit"] = (cloudAudit).toJson(); | 3585 _json["cloudAudit"] = (cloudAudit).toJson(); |
3586 } | 3586 } |
3587 if (counter != null) { | 3587 if (counter != null) { |
3588 _json["counter"] = (counter).toJson(); | 3588 _json["counter"] = (counter).toJson(); |
3589 } | 3589 } |
3590 if (dataAccess != null) { | 3590 if (dataAccess != null) { |
3591 _json["dataAccess"] = (dataAccess).toJson(); | 3591 _json["dataAccess"] = (dataAccess).toJson(); |
3592 } | 3592 } |
3593 return _json; | 3593 return _json; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3642 insertOrUpdate = new Write.fromJson(_json["insertOrUpdate"]); | 3642 insertOrUpdate = new Write.fromJson(_json["insertOrUpdate"]); |
3643 } | 3643 } |
3644 if (_json.containsKey("replace")) { | 3644 if (_json.containsKey("replace")) { |
3645 replace = new Write.fromJson(_json["replace"]); | 3645 replace = new Write.fromJson(_json["replace"]); |
3646 } | 3646 } |
3647 if (_json.containsKey("update")) { | 3647 if (_json.containsKey("update")) { |
3648 update = new Write.fromJson(_json["update"]); | 3648 update = new Write.fromJson(_json["update"]); |
3649 } | 3649 } |
3650 } | 3650 } |
3651 | 3651 |
3652 core.Map toJson() { | 3652 core.Map<core.String, core.Object> toJson() { |
3653 var _json = new core.Map(); | 3653 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3654 if (delete != null) { | 3654 if (delete != null) { |
3655 _json["delete"] = (delete).toJson(); | 3655 _json["delete"] = (delete).toJson(); |
3656 } | 3656 } |
3657 if (insert != null) { | 3657 if (insert != null) { |
3658 _json["insert"] = (insert).toJson(); | 3658 _json["insert"] = (insert).toJson(); |
3659 } | 3659 } |
3660 if (insertOrUpdate != null) { | 3660 if (insertOrUpdate != null) { |
3661 _json["insertOrUpdate"] = (insertOrUpdate).toJson(); | 3661 _json["insertOrUpdate"] = (insertOrUpdate).toJson(); |
3662 } | 3662 } |
3663 if (replace != null) { | 3663 if (replace != null) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 metadata = _json["metadata"]; | 3727 metadata = _json["metadata"]; |
3728 } | 3728 } |
3729 if (_json.containsKey("name")) { | 3729 if (_json.containsKey("name")) { |
3730 name = _json["name"]; | 3730 name = _json["name"]; |
3731 } | 3731 } |
3732 if (_json.containsKey("response")) { | 3732 if (_json.containsKey("response")) { |
3733 response = _json["response"]; | 3733 response = _json["response"]; |
3734 } | 3734 } |
3735 } | 3735 } |
3736 | 3736 |
3737 core.Map toJson() { | 3737 core.Map<core.String, core.Object> toJson() { |
3738 var _json = new core.Map(); | 3738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3739 if (done != null) { | 3739 if (done != null) { |
3740 _json["done"] = done; | 3740 _json["done"] = done; |
3741 } | 3741 } |
3742 if (error != null) { | 3742 if (error != null) { |
3743 _json["error"] = (error).toJson(); | 3743 _json["error"] = (error).toJson(); |
3744 } | 3744 } |
3745 if (metadata != null) { | 3745 if (metadata != null) { |
3746 _json["metadata"] = metadata; | 3746 _json["metadata"] = metadata; |
3747 } | 3747 } |
3748 if (name != null) { | 3748 if (name != null) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3887 resumeToken = _json["resumeToken"]; | 3887 resumeToken = _json["resumeToken"]; |
3888 } | 3888 } |
3889 if (_json.containsKey("stats")) { | 3889 if (_json.containsKey("stats")) { |
3890 stats = new ResultSetStats.fromJson(_json["stats"]); | 3890 stats = new ResultSetStats.fromJson(_json["stats"]); |
3891 } | 3891 } |
3892 if (_json.containsKey("values")) { | 3892 if (_json.containsKey("values")) { |
3893 values = _json["values"]; | 3893 values = _json["values"]; |
3894 } | 3894 } |
3895 } | 3895 } |
3896 | 3896 |
3897 core.Map toJson() { | 3897 core.Map<core.String, core.Object> toJson() { |
3898 var _json = new core.Map(); | 3898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3899 if (chunkedValue != null) { | 3899 if (chunkedValue != null) { |
3900 _json["chunkedValue"] = chunkedValue; | 3900 _json["chunkedValue"] = chunkedValue; |
3901 } | 3901 } |
3902 if (metadata != null) { | 3902 if (metadata != null) { |
3903 _json["metadata"] = (metadata).toJson(); | 3903 _json["metadata"] = (metadata).toJson(); |
3904 } | 3904 } |
3905 if (resumeToken != null) { | 3905 if (resumeToken != null) { |
3906 _json["resumeToken"] = resumeToken; | 3906 _json["resumeToken"] = resumeToken; |
3907 } | 3907 } |
3908 if (stats != null) { | 3908 if (stats != null) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3988 kind = _json["kind"]; | 3988 kind = _json["kind"]; |
3989 } | 3989 } |
3990 if (_json.containsKey("metadata")) { | 3990 if (_json.containsKey("metadata")) { |
3991 metadata = _json["metadata"]; | 3991 metadata = _json["metadata"]; |
3992 } | 3992 } |
3993 if (_json.containsKey("shortRepresentation")) { | 3993 if (_json.containsKey("shortRepresentation")) { |
3994 shortRepresentation = new ShortRepresentation.fromJson(_json["shortReprese
ntation"]); | 3994 shortRepresentation = new ShortRepresentation.fromJson(_json["shortReprese
ntation"]); |
3995 } | 3995 } |
3996 } | 3996 } |
3997 | 3997 |
3998 core.Map toJson() { | 3998 core.Map<core.String, core.Object> toJson() { |
3999 var _json = new core.Map(); | 3999 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4000 if (childLinks != null) { | 4000 if (childLinks != null) { |
4001 _json["childLinks"] = childLinks.map((value) => (value).toJson()).toList()
; | 4001 _json["childLinks"] = childLinks.map((value) => (value).toJson()).toList()
; |
4002 } | 4002 } |
4003 if (displayName != null) { | 4003 if (displayName != null) { |
4004 _json["displayName"] = displayName; | 4004 _json["displayName"] = displayName; |
4005 } | 4005 } |
4006 if (executionStats != null) { | 4006 if (executionStats != null) { |
4007 _json["executionStats"] = executionStats; | 4007 _json["executionStats"] = executionStats; |
4008 } | 4008 } |
4009 if (index != null) { | 4009 if (index != null) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4116 iamOwned = _json["iamOwned"]; | 4116 iamOwned = _json["iamOwned"]; |
4117 } | 4117 } |
4118 if (_json.containsKey("rules")) { | 4118 if (_json.containsKey("rules")) { |
4119 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); | 4119 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); |
4120 } | 4120 } |
4121 if (_json.containsKey("version")) { | 4121 if (_json.containsKey("version")) { |
4122 version = _json["version"]; | 4122 version = _json["version"]; |
4123 } | 4123 } |
4124 } | 4124 } |
4125 | 4125 |
4126 core.Map toJson() { | 4126 core.Map<core.String, core.Object> toJson() { |
4127 var _json = new core.Map(); | 4127 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4128 if (auditConfigs != null) { | 4128 if (auditConfigs != null) { |
4129 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); | 4129 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); |
4130 } | 4130 } |
4131 if (bindings != null) { | 4131 if (bindings != null) { |
4132 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); | 4132 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
4133 } | 4133 } |
4134 if (etag != null) { | 4134 if (etag != null) { |
4135 _json["etag"] = etag; | 4135 _json["etag"] = etag; |
4136 } | 4136 } |
4137 if (iamOwned != null) { | 4137 if (iamOwned != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
4157 core.List<PlanNode> planNodes; | 4157 core.List<PlanNode> planNodes; |
4158 | 4158 |
4159 QueryPlan(); | 4159 QueryPlan(); |
4160 | 4160 |
4161 QueryPlan.fromJson(core.Map _json) { | 4161 QueryPlan.fromJson(core.Map _json) { |
4162 if (_json.containsKey("planNodes")) { | 4162 if (_json.containsKey("planNodes")) { |
4163 planNodes = _json["planNodes"].map((value) => new PlanNode.fromJson(value)
).toList(); | 4163 planNodes = _json["planNodes"].map((value) => new PlanNode.fromJson(value)
).toList(); |
4164 } | 4164 } |
4165 } | 4165 } |
4166 | 4166 |
4167 core.Map toJson() { | 4167 core.Map<core.String, core.Object> toJson() { |
4168 var _json = new core.Map(); | 4168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4169 if (planNodes != null) { | 4169 if (planNodes != null) { |
4170 _json["planNodes"] = planNodes.map((value) => (value).toJson()).toList(); | 4170 _json["planNodes"] = planNodes.map((value) => (value).toJson()).toList(); |
4171 } | 4171 } |
4172 return _json; | 4172 return _json; |
4173 } | 4173 } |
4174 } | 4174 } |
4175 | 4175 |
4176 /** Options for read-only transactions. */ | 4176 /** Options for read-only transactions. */ |
4177 class ReadOnly { | 4177 class ReadOnly { |
4178 /** | 4178 /** |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4254 readTimestamp = _json["readTimestamp"]; | 4254 readTimestamp = _json["readTimestamp"]; |
4255 } | 4255 } |
4256 if (_json.containsKey("returnReadTimestamp")) { | 4256 if (_json.containsKey("returnReadTimestamp")) { |
4257 returnReadTimestamp = _json["returnReadTimestamp"]; | 4257 returnReadTimestamp = _json["returnReadTimestamp"]; |
4258 } | 4258 } |
4259 if (_json.containsKey("strong")) { | 4259 if (_json.containsKey("strong")) { |
4260 strong = _json["strong"]; | 4260 strong = _json["strong"]; |
4261 } | 4261 } |
4262 } | 4262 } |
4263 | 4263 |
4264 core.Map toJson() { | 4264 core.Map<core.String, core.Object> toJson() { |
4265 var _json = new core.Map(); | 4265 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4266 if (exactStaleness != null) { | 4266 if (exactStaleness != null) { |
4267 _json["exactStaleness"] = exactStaleness; | 4267 _json["exactStaleness"] = exactStaleness; |
4268 } | 4268 } |
4269 if (maxStaleness != null) { | 4269 if (maxStaleness != null) { |
4270 _json["maxStaleness"] = maxStaleness; | 4270 _json["maxStaleness"] = maxStaleness; |
4271 } | 4271 } |
4272 if (minReadTimestamp != null) { | 4272 if (minReadTimestamp != null) { |
4273 _json["minReadTimestamp"] = minReadTimestamp; | 4273 _json["minReadTimestamp"] = minReadTimestamp; |
4274 } | 4274 } |
4275 if (readTimestamp != null) { | 4275 if (readTimestamp != null) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4362 resumeToken = _json["resumeToken"]; | 4362 resumeToken = _json["resumeToken"]; |
4363 } | 4363 } |
4364 if (_json.containsKey("table")) { | 4364 if (_json.containsKey("table")) { |
4365 table = _json["table"]; | 4365 table = _json["table"]; |
4366 } | 4366 } |
4367 if (_json.containsKey("transaction")) { | 4367 if (_json.containsKey("transaction")) { |
4368 transaction = new TransactionSelector.fromJson(_json["transaction"]); | 4368 transaction = new TransactionSelector.fromJson(_json["transaction"]); |
4369 } | 4369 } |
4370 } | 4370 } |
4371 | 4371 |
4372 core.Map toJson() { | 4372 core.Map<core.String, core.Object> toJson() { |
4373 var _json = new core.Map(); | 4373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4374 if (columns != null) { | 4374 if (columns != null) { |
4375 _json["columns"] = columns; | 4375 _json["columns"] = columns; |
4376 } | 4376 } |
4377 if (index != null) { | 4377 if (index != null) { |
4378 _json["index"] = index; | 4378 _json["index"] = index; |
4379 } | 4379 } |
4380 if (keySet != null) { | 4380 if (keySet != null) { |
4381 _json["keySet"] = (keySet).toJson(); | 4381 _json["keySet"] = (keySet).toJson(); |
4382 } | 4382 } |
4383 if (limit != null) { | 4383 if (limit != null) { |
(...skipping 13 matching lines...) Expand all Loading... |
4397 } | 4397 } |
4398 | 4398 |
4399 /** Options for read-write transactions. */ | 4399 /** Options for read-write transactions. */ |
4400 class ReadWrite { | 4400 class ReadWrite { |
4401 | 4401 |
4402 ReadWrite(); | 4402 ReadWrite(); |
4403 | 4403 |
4404 ReadWrite.fromJson(core.Map _json) { | 4404 ReadWrite.fromJson(core.Map _json) { |
4405 } | 4405 } |
4406 | 4406 |
4407 core.Map toJson() { | 4407 core.Map<core.String, core.Object> toJson() { |
4408 var _json = new core.Map(); | 4408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4409 return _json; | 4409 return _json; |
4410 } | 4410 } |
4411 } | 4411 } |
4412 | 4412 |
4413 /** | 4413 /** |
4414 * Results from Read or | 4414 * Results from Read or |
4415 * ExecuteSql. | 4415 * ExecuteSql. |
4416 */ | 4416 */ |
4417 class ResultSet { | 4417 class ResultSet { |
4418 /** Metadata about the result set, such as row type information. */ | 4418 /** Metadata about the result set, such as row type information. */ |
(...skipping 24 matching lines...) Expand all Loading... |
4443 metadata = new ResultSetMetadata.fromJson(_json["metadata"]); | 4443 metadata = new ResultSetMetadata.fromJson(_json["metadata"]); |
4444 } | 4444 } |
4445 if (_json.containsKey("rows")) { | 4445 if (_json.containsKey("rows")) { |
4446 rows = _json["rows"]; | 4446 rows = _json["rows"]; |
4447 } | 4447 } |
4448 if (_json.containsKey("stats")) { | 4448 if (_json.containsKey("stats")) { |
4449 stats = new ResultSetStats.fromJson(_json["stats"]); | 4449 stats = new ResultSetStats.fromJson(_json["stats"]); |
4450 } | 4450 } |
4451 } | 4451 } |
4452 | 4452 |
4453 core.Map toJson() { | 4453 core.Map<core.String, core.Object> toJson() { |
4454 var _json = new core.Map(); | 4454 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4455 if (metadata != null) { | 4455 if (metadata != null) { |
4456 _json["metadata"] = (metadata).toJson(); | 4456 _json["metadata"] = (metadata).toJson(); |
4457 } | 4457 } |
4458 if (rows != null) { | 4458 if (rows != null) { |
4459 _json["rows"] = rows; | 4459 _json["rows"] = rows; |
4460 } | 4460 } |
4461 if (stats != null) { | 4461 if (stats != null) { |
4462 _json["stats"] = (stats).toJson(); | 4462 _json["stats"] = (stats).toJson(); |
4463 } | 4463 } |
4464 return _json; | 4464 return _json; |
(...skipping 23 matching lines...) Expand all Loading... |
4488 | 4488 |
4489 ResultSetMetadata.fromJson(core.Map _json) { | 4489 ResultSetMetadata.fromJson(core.Map _json) { |
4490 if (_json.containsKey("rowType")) { | 4490 if (_json.containsKey("rowType")) { |
4491 rowType = new StructType.fromJson(_json["rowType"]); | 4491 rowType = new StructType.fromJson(_json["rowType"]); |
4492 } | 4492 } |
4493 if (_json.containsKey("transaction")) { | 4493 if (_json.containsKey("transaction")) { |
4494 transaction = new Transaction.fromJson(_json["transaction"]); | 4494 transaction = new Transaction.fromJson(_json["transaction"]); |
4495 } | 4495 } |
4496 } | 4496 } |
4497 | 4497 |
4498 core.Map toJson() { | 4498 core.Map<core.String, core.Object> toJson() { |
4499 var _json = new core.Map(); | 4499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4500 if (rowType != null) { | 4500 if (rowType != null) { |
4501 _json["rowType"] = (rowType).toJson(); | 4501 _json["rowType"] = (rowType).toJson(); |
4502 } | 4502 } |
4503 if (transaction != null) { | 4503 if (transaction != null) { |
4504 _json["transaction"] = (transaction).toJson(); | 4504 _json["transaction"] = (transaction).toJson(); |
4505 } | 4505 } |
4506 return _json; | 4506 return _json; |
4507 } | 4507 } |
4508 } | 4508 } |
4509 | 4509 |
(...skipping 21 matching lines...) Expand all Loading... |
4531 | 4531 |
4532 ResultSetStats.fromJson(core.Map _json) { | 4532 ResultSetStats.fromJson(core.Map _json) { |
4533 if (_json.containsKey("queryPlan")) { | 4533 if (_json.containsKey("queryPlan")) { |
4534 queryPlan = new QueryPlan.fromJson(_json["queryPlan"]); | 4534 queryPlan = new QueryPlan.fromJson(_json["queryPlan"]); |
4535 } | 4535 } |
4536 if (_json.containsKey("queryStats")) { | 4536 if (_json.containsKey("queryStats")) { |
4537 queryStats = _json["queryStats"]; | 4537 queryStats = _json["queryStats"]; |
4538 } | 4538 } |
4539 } | 4539 } |
4540 | 4540 |
4541 core.Map toJson() { | 4541 core.Map<core.String, core.Object> toJson() { |
4542 var _json = new core.Map(); | 4542 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4543 if (queryPlan != null) { | 4543 if (queryPlan != null) { |
4544 _json["queryPlan"] = (queryPlan).toJson(); | 4544 _json["queryPlan"] = (queryPlan).toJson(); |
4545 } | 4545 } |
4546 if (queryStats != null) { | 4546 if (queryStats != null) { |
4547 _json["queryStats"] = queryStats; | 4547 _json["queryStats"] = queryStats; |
4548 } | 4548 } |
4549 return _json; | 4549 return _json; |
4550 } | 4550 } |
4551 } | 4551 } |
4552 | 4552 |
(...skipping 10 matching lines...) Expand all Loading... |
4563 } | 4563 } |
4564 | 4564 |
4565 RollbackRequest(); | 4565 RollbackRequest(); |
4566 | 4566 |
4567 RollbackRequest.fromJson(core.Map _json) { | 4567 RollbackRequest.fromJson(core.Map _json) { |
4568 if (_json.containsKey("transactionId")) { | 4568 if (_json.containsKey("transactionId")) { |
4569 transactionId = _json["transactionId"]; | 4569 transactionId = _json["transactionId"]; |
4570 } | 4570 } |
4571 } | 4571 } |
4572 | 4572 |
4573 core.Map toJson() { | 4573 core.Map<core.String, core.Object> toJson() { |
4574 var _json = new core.Map(); | 4574 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4575 if (transactionId != null) { | 4575 if (transactionId != null) { |
4576 _json["transactionId"] = transactionId; | 4576 _json["transactionId"] = transactionId; |
4577 } | 4577 } |
4578 return _json; | 4578 return _json; |
4579 } | 4579 } |
4580 } | 4580 } |
4581 | 4581 |
4582 /** A rule to be applied in a Policy. */ | 4582 /** A rule to be applied in a Policy. */ |
4583 class Rule { | 4583 class Rule { |
4584 /** | 4584 /** |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4643 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value
)).toList(); | 4643 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value
)).toList(); |
4644 } | 4644 } |
4645 if (_json.containsKey("notIn")) { | 4645 if (_json.containsKey("notIn")) { |
4646 notIn = _json["notIn"]; | 4646 notIn = _json["notIn"]; |
4647 } | 4647 } |
4648 if (_json.containsKey("permissions")) { | 4648 if (_json.containsKey("permissions")) { |
4649 permissions = _json["permissions"]; | 4649 permissions = _json["permissions"]; |
4650 } | 4650 } |
4651 } | 4651 } |
4652 | 4652 |
4653 core.Map toJson() { | 4653 core.Map<core.String, core.Object> toJson() { |
4654 var _json = new core.Map(); | 4654 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4655 if (action != null) { | 4655 if (action != null) { |
4656 _json["action"] = action; | 4656 _json["action"] = action; |
4657 } | 4657 } |
4658 if (conditions != null) { | 4658 if (conditions != null) { |
4659 _json["conditions"] = conditions.map((value) => (value).toJson()).toList()
; | 4659 _json["conditions"] = conditions.map((value) => (value).toJson()).toList()
; |
4660 } | 4660 } |
4661 if (description != null) { | 4661 if (description != null) { |
4662 _json["description"] = description; | 4662 _json["description"] = description; |
4663 } | 4663 } |
4664 if (in_ != null) { | 4664 if (in_ != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
4683 core.String name; | 4683 core.String name; |
4684 | 4684 |
4685 Session(); | 4685 Session(); |
4686 | 4686 |
4687 Session.fromJson(core.Map _json) { | 4687 Session.fromJson(core.Map _json) { |
4688 if (_json.containsKey("name")) { | 4688 if (_json.containsKey("name")) { |
4689 name = _json["name"]; | 4689 name = _json["name"]; |
4690 } | 4690 } |
4691 } | 4691 } |
4692 | 4692 |
4693 core.Map toJson() { | 4693 core.Map<core.String, core.Object> toJson() { |
4694 var _json = new core.Map(); | 4694 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4695 if (name != null) { | 4695 if (name != null) { |
4696 _json["name"] = name; | 4696 _json["name"] = name; |
4697 } | 4697 } |
4698 return _json; | 4698 return _json; |
4699 } | 4699 } |
4700 } | 4700 } |
4701 | 4701 |
4702 /** Request message for `SetIamPolicy` method. */ | 4702 /** Request message for `SetIamPolicy` method. */ |
4703 class SetIamPolicyRequest { | 4703 class SetIamPolicyRequest { |
4704 /** | 4704 /** |
(...skipping 16 matching lines...) Expand all Loading... |
4721 | 4721 |
4722 SetIamPolicyRequest.fromJson(core.Map _json) { | 4722 SetIamPolicyRequest.fromJson(core.Map _json) { |
4723 if (_json.containsKey("policy")) { | 4723 if (_json.containsKey("policy")) { |
4724 policy = new Policy.fromJson(_json["policy"]); | 4724 policy = new Policy.fromJson(_json["policy"]); |
4725 } | 4725 } |
4726 if (_json.containsKey("updateMask")) { | 4726 if (_json.containsKey("updateMask")) { |
4727 updateMask = _json["updateMask"]; | 4727 updateMask = _json["updateMask"]; |
4728 } | 4728 } |
4729 } | 4729 } |
4730 | 4730 |
4731 core.Map toJson() { | 4731 core.Map<core.String, core.Object> toJson() { |
4732 var _json = new core.Map(); | 4732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4733 if (policy != null) { | 4733 if (policy != null) { |
4734 _json["policy"] = (policy).toJson(); | 4734 _json["policy"] = (policy).toJson(); |
4735 } | 4735 } |
4736 if (updateMask != null) { | 4736 if (updateMask != null) { |
4737 _json["updateMask"] = updateMask; | 4737 _json["updateMask"] = updateMask; |
4738 } | 4738 } |
4739 return _json; | 4739 return _json; |
4740 } | 4740 } |
4741 } | 4741 } |
4742 | 4742 |
(...skipping 17 matching lines...) Expand all Loading... |
4760 | 4760 |
4761 ShortRepresentation.fromJson(core.Map _json) { | 4761 ShortRepresentation.fromJson(core.Map _json) { |
4762 if (_json.containsKey("description")) { | 4762 if (_json.containsKey("description")) { |
4763 description = _json["description"]; | 4763 description = _json["description"]; |
4764 } | 4764 } |
4765 if (_json.containsKey("subqueries")) { | 4765 if (_json.containsKey("subqueries")) { |
4766 subqueries = _json["subqueries"]; | 4766 subqueries = _json["subqueries"]; |
4767 } | 4767 } |
4768 } | 4768 } |
4769 | 4769 |
4770 core.Map toJson() { | 4770 core.Map<core.String, core.Object> toJson() { |
4771 var _json = new core.Map(); | 4771 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4772 if (description != null) { | 4772 if (description != null) { |
4773 _json["description"] = description; | 4773 _json["description"] = description; |
4774 } | 4774 } |
4775 if (subqueries != null) { | 4775 if (subqueries != null) { |
4776 _json["subqueries"] = subqueries; | 4776 _json["subqueries"] = subqueries; |
4777 } | 4777 } |
4778 return _json; | 4778 return _json; |
4779 } | 4779 } |
4780 } | 4780 } |
4781 | 4781 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4860 code = _json["code"]; | 4860 code = _json["code"]; |
4861 } | 4861 } |
4862 if (_json.containsKey("details")) { | 4862 if (_json.containsKey("details")) { |
4863 details = _json["details"]; | 4863 details = _json["details"]; |
4864 } | 4864 } |
4865 if (_json.containsKey("message")) { | 4865 if (_json.containsKey("message")) { |
4866 message = _json["message"]; | 4866 message = _json["message"]; |
4867 } | 4867 } |
4868 } | 4868 } |
4869 | 4869 |
4870 core.Map toJson() { | 4870 core.Map<core.String, core.Object> toJson() { |
4871 var _json = new core.Map(); | 4871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4872 if (code != null) { | 4872 if (code != null) { |
4873 _json["code"] = code; | 4873 _json["code"] = code; |
4874 } | 4874 } |
4875 if (details != null) { | 4875 if (details != null) { |
4876 _json["details"] = details; | 4876 _json["details"] = details; |
4877 } | 4877 } |
4878 if (message != null) { | 4878 if (message != null) { |
4879 _json["message"] = message; | 4879 _json["message"] = message; |
4880 } | 4880 } |
4881 return _json; | 4881 return _json; |
(...skipping 13 matching lines...) Expand all Loading... |
4895 core.List<Field> fields; | 4895 core.List<Field> fields; |
4896 | 4896 |
4897 StructType(); | 4897 StructType(); |
4898 | 4898 |
4899 StructType.fromJson(core.Map _json) { | 4899 StructType.fromJson(core.Map _json) { |
4900 if (_json.containsKey("fields")) { | 4900 if (_json.containsKey("fields")) { |
4901 fields = _json["fields"].map((value) => new Field.fromJson(value)).toList(
); | 4901 fields = _json["fields"].map((value) => new Field.fromJson(value)).toList(
); |
4902 } | 4902 } |
4903 } | 4903 } |
4904 | 4904 |
4905 core.Map toJson() { | 4905 core.Map<core.String, core.Object> toJson() { |
4906 var _json = new core.Map(); | 4906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4907 if (fields != null) { | 4907 if (fields != null) { |
4908 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 4908 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
4909 } | 4909 } |
4910 return _json; | 4910 return _json; |
4911 } | 4911 } |
4912 } | 4912 } |
4913 | 4913 |
4914 /** Request message for `TestIamPermissions` method. */ | 4914 /** Request message for `TestIamPermissions` method. */ |
4915 class TestIamPermissionsRequest { | 4915 class TestIamPermissionsRequest { |
4916 /** | 4916 /** |
4917 * REQUIRED: The set of permissions to check for 'resource'. | 4917 * REQUIRED: The set of permissions to check for 'resource'. |
4918 * Permissions with wildcards (such as '*', 'spanner.*', | 4918 * Permissions with wildcards (such as '*', 'spanner.*', |
4919 * 'spanner.instances.*') are not allowed. | 4919 * 'spanner.instances.*') are not allowed. |
4920 */ | 4920 */ |
4921 core.List<core.String> permissions; | 4921 core.List<core.String> permissions; |
4922 | 4922 |
4923 TestIamPermissionsRequest(); | 4923 TestIamPermissionsRequest(); |
4924 | 4924 |
4925 TestIamPermissionsRequest.fromJson(core.Map _json) { | 4925 TestIamPermissionsRequest.fromJson(core.Map _json) { |
4926 if (_json.containsKey("permissions")) { | 4926 if (_json.containsKey("permissions")) { |
4927 permissions = _json["permissions"]; | 4927 permissions = _json["permissions"]; |
4928 } | 4928 } |
4929 } | 4929 } |
4930 | 4930 |
4931 core.Map toJson() { | 4931 core.Map<core.String, core.Object> toJson() { |
4932 var _json = new core.Map(); | 4932 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4933 if (permissions != null) { | 4933 if (permissions != null) { |
4934 _json["permissions"] = permissions; | 4934 _json["permissions"] = permissions; |
4935 } | 4935 } |
4936 return _json; | 4936 return _json; |
4937 } | 4937 } |
4938 } | 4938 } |
4939 | 4939 |
4940 /** Response message for `TestIamPermissions` method. */ | 4940 /** Response message for `TestIamPermissions` method. */ |
4941 class TestIamPermissionsResponse { | 4941 class TestIamPermissionsResponse { |
4942 /** | 4942 /** |
4943 * A subset of `TestPermissionsRequest.permissions` that the caller is | 4943 * A subset of `TestPermissionsRequest.permissions` that the caller is |
4944 * allowed. | 4944 * allowed. |
4945 */ | 4945 */ |
4946 core.List<core.String> permissions; | 4946 core.List<core.String> permissions; |
4947 | 4947 |
4948 TestIamPermissionsResponse(); | 4948 TestIamPermissionsResponse(); |
4949 | 4949 |
4950 TestIamPermissionsResponse.fromJson(core.Map _json) { | 4950 TestIamPermissionsResponse.fromJson(core.Map _json) { |
4951 if (_json.containsKey("permissions")) { | 4951 if (_json.containsKey("permissions")) { |
4952 permissions = _json["permissions"]; | 4952 permissions = _json["permissions"]; |
4953 } | 4953 } |
4954 } | 4954 } |
4955 | 4955 |
4956 core.Map toJson() { | 4956 core.Map<core.String, core.Object> toJson() { |
4957 var _json = new core.Map(); | 4957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4958 if (permissions != null) { | 4958 if (permissions != null) { |
4959 _json["permissions"] = permissions; | 4959 _json["permissions"] = permissions; |
4960 } | 4960 } |
4961 return _json; | 4961 return _json; |
4962 } | 4962 } |
4963 } | 4963 } |
4964 | 4964 |
4965 /** A transaction. */ | 4965 /** A transaction. */ |
4966 class Transaction { | 4966 class Transaction { |
4967 /** | 4967 /** |
(...skipping 25 matching lines...) Expand all Loading... |
4993 | 4993 |
4994 Transaction.fromJson(core.Map _json) { | 4994 Transaction.fromJson(core.Map _json) { |
4995 if (_json.containsKey("id")) { | 4995 if (_json.containsKey("id")) { |
4996 id = _json["id"]; | 4996 id = _json["id"]; |
4997 } | 4997 } |
4998 if (_json.containsKey("readTimestamp")) { | 4998 if (_json.containsKey("readTimestamp")) { |
4999 readTimestamp = _json["readTimestamp"]; | 4999 readTimestamp = _json["readTimestamp"]; |
5000 } | 5000 } |
5001 } | 5001 } |
5002 | 5002 |
5003 core.Map toJson() { | 5003 core.Map<core.String, core.Object> toJson() { |
5004 var _json = new core.Map(); | 5004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5005 if (id != null) { | 5005 if (id != null) { |
5006 _json["id"] = id; | 5006 _json["id"] = id; |
5007 } | 5007 } |
5008 if (readTimestamp != null) { | 5008 if (readTimestamp != null) { |
5009 _json["readTimestamp"] = readTimestamp; | 5009 _json["readTimestamp"] = readTimestamp; |
5010 } | 5010 } |
5011 return _json; | 5011 return _json; |
5012 } | 5012 } |
5013 } | 5013 } |
5014 | 5014 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5253 | 5253 |
5254 TransactionOptions.fromJson(core.Map _json) { | 5254 TransactionOptions.fromJson(core.Map _json) { |
5255 if (_json.containsKey("readOnly")) { | 5255 if (_json.containsKey("readOnly")) { |
5256 readOnly = new ReadOnly.fromJson(_json["readOnly"]); | 5256 readOnly = new ReadOnly.fromJson(_json["readOnly"]); |
5257 } | 5257 } |
5258 if (_json.containsKey("readWrite")) { | 5258 if (_json.containsKey("readWrite")) { |
5259 readWrite = new ReadWrite.fromJson(_json["readWrite"]); | 5259 readWrite = new ReadWrite.fromJson(_json["readWrite"]); |
5260 } | 5260 } |
5261 } | 5261 } |
5262 | 5262 |
5263 core.Map toJson() { | 5263 core.Map<core.String, core.Object> toJson() { |
5264 var _json = new core.Map(); | 5264 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5265 if (readOnly != null) { | 5265 if (readOnly != null) { |
5266 _json["readOnly"] = (readOnly).toJson(); | 5266 _json["readOnly"] = (readOnly).toJson(); |
5267 } | 5267 } |
5268 if (readWrite != null) { | 5268 if (readWrite != null) { |
5269 _json["readWrite"] = (readWrite).toJson(); | 5269 _json["readWrite"] = (readWrite).toJson(); |
5270 } | 5270 } |
5271 return _json; | 5271 return _json; |
5272 } | 5272 } |
5273 } | 5273 } |
5274 | 5274 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5309 begin = new TransactionOptions.fromJson(_json["begin"]); | 5309 begin = new TransactionOptions.fromJson(_json["begin"]); |
5310 } | 5310 } |
5311 if (_json.containsKey("id")) { | 5311 if (_json.containsKey("id")) { |
5312 id = _json["id"]; | 5312 id = _json["id"]; |
5313 } | 5313 } |
5314 if (_json.containsKey("singleUse")) { | 5314 if (_json.containsKey("singleUse")) { |
5315 singleUse = new TransactionOptions.fromJson(_json["singleUse"]); | 5315 singleUse = new TransactionOptions.fromJson(_json["singleUse"]); |
5316 } | 5316 } |
5317 } | 5317 } |
5318 | 5318 |
5319 core.Map toJson() { | 5319 core.Map<core.String, core.Object> toJson() { |
5320 var _json = new core.Map(); | 5320 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5321 if (begin != null) { | 5321 if (begin != null) { |
5322 _json["begin"] = (begin).toJson(); | 5322 _json["begin"] = (begin).toJson(); |
5323 } | 5323 } |
5324 if (id != null) { | 5324 if (id != null) { |
5325 _json["id"] = id; | 5325 _json["id"] = id; |
5326 } | 5326 } |
5327 if (singleUse != null) { | 5327 if (singleUse != null) { |
5328 _json["singleUse"] = (singleUse).toJson(); | 5328 _json["singleUse"] = (singleUse).toJson(); |
5329 } | 5329 } |
5330 return _json; | 5330 return _json; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5376 arrayElementType = new Type.fromJson(_json["arrayElementType"]); | 5376 arrayElementType = new Type.fromJson(_json["arrayElementType"]); |
5377 } | 5377 } |
5378 if (_json.containsKey("code")) { | 5378 if (_json.containsKey("code")) { |
5379 code = _json["code"]; | 5379 code = _json["code"]; |
5380 } | 5380 } |
5381 if (_json.containsKey("structType")) { | 5381 if (_json.containsKey("structType")) { |
5382 structType = new StructType.fromJson(_json["structType"]); | 5382 structType = new StructType.fromJson(_json["structType"]); |
5383 } | 5383 } |
5384 } | 5384 } |
5385 | 5385 |
5386 core.Map toJson() { | 5386 core.Map<core.String, core.Object> toJson() { |
5387 var _json = new core.Map(); | 5387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5388 if (arrayElementType != null) { | 5388 if (arrayElementType != null) { |
5389 _json["arrayElementType"] = (arrayElementType).toJson(); | 5389 _json["arrayElementType"] = (arrayElementType).toJson(); |
5390 } | 5390 } |
5391 if (code != null) { | 5391 if (code != null) { |
5392 _json["code"] = code; | 5392 _json["code"] = code; |
5393 } | 5393 } |
5394 if (structType != null) { | 5394 if (structType != null) { |
5395 _json["structType"] = (structType).toJson(); | 5395 _json["structType"] = (structType).toJson(); |
5396 } | 5396 } |
5397 return _json; | 5397 return _json; |
(...skipping 26 matching lines...) Expand all Loading... |
5424 commitTimestamps = _json["commitTimestamps"]; | 5424 commitTimestamps = _json["commitTimestamps"]; |
5425 } | 5425 } |
5426 if (_json.containsKey("database")) { | 5426 if (_json.containsKey("database")) { |
5427 database = _json["database"]; | 5427 database = _json["database"]; |
5428 } | 5428 } |
5429 if (_json.containsKey("statements")) { | 5429 if (_json.containsKey("statements")) { |
5430 statements = _json["statements"]; | 5430 statements = _json["statements"]; |
5431 } | 5431 } |
5432 } | 5432 } |
5433 | 5433 |
5434 core.Map toJson() { | 5434 core.Map<core.String, core.Object> toJson() { |
5435 var _json = new core.Map(); | 5435 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5436 if (commitTimestamps != null) { | 5436 if (commitTimestamps != null) { |
5437 _json["commitTimestamps"] = commitTimestamps; | 5437 _json["commitTimestamps"] = commitTimestamps; |
5438 } | 5438 } |
5439 if (database != null) { | 5439 if (database != null) { |
5440 _json["database"] = database; | 5440 _json["database"] = database; |
5441 } | 5441 } |
5442 if (statements != null) { | 5442 if (statements != null) { |
5443 _json["statements"] = statements; | 5443 _json["statements"] = statements; |
5444 } | 5444 } |
5445 return _json; | 5445 return _json; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5494 | 5494 |
5495 UpdateDatabaseDdlRequest.fromJson(core.Map _json) { | 5495 UpdateDatabaseDdlRequest.fromJson(core.Map _json) { |
5496 if (_json.containsKey("operationId")) { | 5496 if (_json.containsKey("operationId")) { |
5497 operationId = _json["operationId"]; | 5497 operationId = _json["operationId"]; |
5498 } | 5498 } |
5499 if (_json.containsKey("statements")) { | 5499 if (_json.containsKey("statements")) { |
5500 statements = _json["statements"]; | 5500 statements = _json["statements"]; |
5501 } | 5501 } |
5502 } | 5502 } |
5503 | 5503 |
5504 core.Map toJson() { | 5504 core.Map<core.String, core.Object> toJson() { |
5505 var _json = new core.Map(); | 5505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5506 if (operationId != null) { | 5506 if (operationId != null) { |
5507 _json["operationId"] = operationId; | 5507 _json["operationId"] = operationId; |
5508 } | 5508 } |
5509 if (statements != null) { | 5509 if (statements != null) { |
5510 _json["statements"] = statements; | 5510 _json["statements"] = statements; |
5511 } | 5511 } |
5512 return _json; | 5512 return _json; |
5513 } | 5513 } |
5514 } | 5514 } |
5515 | 5515 |
(...skipping 28 matching lines...) Expand all Loading... |
5544 endTime = _json["endTime"]; | 5544 endTime = _json["endTime"]; |
5545 } | 5545 } |
5546 if (_json.containsKey("instance")) { | 5546 if (_json.containsKey("instance")) { |
5547 instance = new Instance.fromJson(_json["instance"]); | 5547 instance = new Instance.fromJson(_json["instance"]); |
5548 } | 5548 } |
5549 if (_json.containsKey("startTime")) { | 5549 if (_json.containsKey("startTime")) { |
5550 startTime = _json["startTime"]; | 5550 startTime = _json["startTime"]; |
5551 } | 5551 } |
5552 } | 5552 } |
5553 | 5553 |
5554 core.Map toJson() { | 5554 core.Map<core.String, core.Object> toJson() { |
5555 var _json = new core.Map(); | 5555 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5556 if (cancelTime != null) { | 5556 if (cancelTime != null) { |
5557 _json["cancelTime"] = cancelTime; | 5557 _json["cancelTime"] = cancelTime; |
5558 } | 5558 } |
5559 if (endTime != null) { | 5559 if (endTime != null) { |
5560 _json["endTime"] = endTime; | 5560 _json["endTime"] = endTime; |
5561 } | 5561 } |
5562 if (instance != null) { | 5562 if (instance != null) { |
5563 _json["instance"] = (instance).toJson(); | 5563 _json["instance"] = (instance).toJson(); |
5564 } | 5564 } |
5565 if (startTime != null) { | 5565 if (startTime != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
5593 | 5593 |
5594 UpdateInstanceRequest.fromJson(core.Map _json) { | 5594 UpdateInstanceRequest.fromJson(core.Map _json) { |
5595 if (_json.containsKey("fieldMask")) { | 5595 if (_json.containsKey("fieldMask")) { |
5596 fieldMask = _json["fieldMask"]; | 5596 fieldMask = _json["fieldMask"]; |
5597 } | 5597 } |
5598 if (_json.containsKey("instance")) { | 5598 if (_json.containsKey("instance")) { |
5599 instance = new Instance.fromJson(_json["instance"]); | 5599 instance = new Instance.fromJson(_json["instance"]); |
5600 } | 5600 } |
5601 } | 5601 } |
5602 | 5602 |
5603 core.Map toJson() { | 5603 core.Map<core.String, core.Object> toJson() { |
5604 var _json = new core.Map(); | 5604 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5605 if (fieldMask != null) { | 5605 if (fieldMask != null) { |
5606 _json["fieldMask"] = fieldMask; | 5606 _json["fieldMask"] = fieldMask; |
5607 } | 5607 } |
5608 if (instance != null) { | 5608 if (instance != null) { |
5609 _json["instance"] = (instance).toJson(); | 5609 _json["instance"] = (instance).toJson(); |
5610 } | 5610 } |
5611 return _json; | 5611 return _json; |
5612 } | 5612 } |
5613 } | 5613 } |
5614 | 5614 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5649 columns = _json["columns"]; | 5649 columns = _json["columns"]; |
5650 } | 5650 } |
5651 if (_json.containsKey("table")) { | 5651 if (_json.containsKey("table")) { |
5652 table = _json["table"]; | 5652 table = _json["table"]; |
5653 } | 5653 } |
5654 if (_json.containsKey("values")) { | 5654 if (_json.containsKey("values")) { |
5655 values = _json["values"]; | 5655 values = _json["values"]; |
5656 } | 5656 } |
5657 } | 5657 } |
5658 | 5658 |
5659 core.Map toJson() { | 5659 core.Map<core.String, core.Object> toJson() { |
5660 var _json = new core.Map(); | 5660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
5661 if (columns != null) { | 5661 if (columns != null) { |
5662 _json["columns"] = columns; | 5662 _json["columns"] = columns; |
5663 } | 5663 } |
5664 if (table != null) { | 5664 if (table != null) { |
5665 _json["table"] = table; | 5665 _json["table"] = table; |
5666 } | 5666 } |
5667 if (values != null) { | 5667 if (values != null) { |
5668 _json["values"] = values; | 5668 _json["values"] = values; |
5669 } | 5669 } |
5670 return _json; | 5670 return _json; |
5671 } | 5671 } |
5672 } | 5672 } |
OLD | NEW |