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.cloudkms.v1; | 3 library googleapis.cloudkms.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client cloudkms/v1'; | 15 const core.String USER_AGENT = 'dart-api-client cloudkms/v1'; |
16 | 16 |
17 /** | 17 /** |
18 * Manages encryption for your cloud services the same way you do on-premise. | 18 * Manages encryption for your cloud services the same way you do on-premises. |
19 * You can generate, use, rotate, and destroy AES256 encryption keys. | 19 * You can generate, use, rotate, and destroy AES256 encryption keys. |
20 */ | 20 */ |
21 class CloudkmsApi { | 21 class CloudkmsApi { |
22 /** View and manage your data across Google Cloud Platform services */ | 22 /** View and manage your data across Google Cloud Platform services */ |
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
24 | 24 |
25 | 25 |
26 final commons.ApiRequester _requester; | 26 final commons.ApiRequester _requester; |
27 | 27 |
28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 /** | 93 /** |
94 * Lists information about the supported locations for this service. | 94 * Lists information about the supported locations for this service. |
95 * | 95 * |
96 * Request parameters: | 96 * Request parameters: |
97 * | 97 * |
98 * [name] - The resource that owns the locations collection, if applicable. | 98 * [name] - The resource that owns the locations collection, if applicable. |
99 * Value must have pattern "^projects/[^/]+$". | 99 * Value must have pattern "^projects/[^/]+$". |
100 * | 100 * |
101 * [pageToken] - The standard list page token. | |
102 * | |
103 * [pageSize] - The standard list page size. | 101 * [pageSize] - The standard list page size. |
104 * | 102 * |
105 * [filter] - The standard list filter. | 103 * [filter] - The standard list filter. |
106 * | 104 * |
| 105 * [pageToken] - The standard list page token. |
| 106 * |
107 * Completes with a [ListLocationsResponse]. | 107 * Completes with a [ListLocationsResponse]. |
108 * | 108 * |
109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
110 * error. | 110 * error. |
111 * | 111 * |
112 * If the used [http.Client] completes with an error when making a REST call, | 112 * If the used [http.Client] completes with an error when making a REST call, |
113 * this method will complete with the same error. | 113 * this method will complete with the same error. |
114 */ | 114 */ |
115 async.Future<ListLocationsResponse> list(core.String name, {core.String pageTo
ken, core.int pageSize, core.String filter}) { | 115 async.Future<ListLocationsResponse> list(core.String name, {core.int pageSize,
core.String filter, core.String pageToken}) { |
116 var _url = null; | 116 var _url = null; |
117 var _queryParams = new core.Map(); | 117 var _queryParams = new core.Map(); |
118 var _uploadMedia = null; | 118 var _uploadMedia = null; |
119 var _uploadOptions = null; | 119 var _uploadOptions = null; |
120 var _downloadOptions = commons.DownloadOptions.Metadata; | 120 var _downloadOptions = commons.DownloadOptions.Metadata; |
121 var _body = null; | 121 var _body = null; |
122 | 122 |
123 if (name == null) { | 123 if (name == null) { |
124 throw new core.ArgumentError("Parameter name is required."); | 124 throw new core.ArgumentError("Parameter name is required."); |
125 } | 125 } |
126 if (pageToken != null) { | |
127 _queryParams["pageToken"] = [pageToken]; | |
128 } | |
129 if (pageSize != null) { | 126 if (pageSize != null) { |
130 _queryParams["pageSize"] = ["${pageSize}"]; | 127 _queryParams["pageSize"] = ["${pageSize}"]; |
131 } | 128 } |
132 if (filter != null) { | 129 if (filter != null) { |
133 _queryParams["filter"] = [filter]; | 130 _queryParams["filter"] = [filter]; |
134 } | 131 } |
| 132 if (pageToken != null) { |
| 133 _queryParams["pageToken"] = [pageToken]; |
| 134 } |
135 | 135 |
136 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'
; | 136 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'
; |
137 | 137 |
138 var _response = _requester.request(_url, | 138 var _response = _requester.request(_url, |
139 "GET", | 139 "GET", |
140 body: _body, | 140 body: _body, |
141 queryParams: _queryParams, | 141 queryParams: _queryParams, |
142 uploadOptions: _uploadOptions, | 142 uploadOptions: _uploadOptions, |
143 uploadMedia: _uploadMedia, | 143 uploadMedia: _uploadMedia, |
144 downloadOptions: _downloadOptions); | 144 downloadOptions: _downloadOptions); |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 "POST", | 509 "POST", |
510 body: _body, | 510 body: _body, |
511 queryParams: _queryParams, | 511 queryParams: _queryParams, |
512 uploadOptions: _uploadOptions, | 512 uploadOptions: _uploadOptions, |
513 uploadMedia: _uploadMedia, | 513 uploadMedia: _uploadMedia, |
514 downloadOptions: _downloadOptions); | 514 downloadOptions: _downloadOptions); |
515 return _response.then((data) => new CryptoKey.fromJson(data)); | 515 return _response.then((data) => new CryptoKey.fromJson(data)); |
516 } | 516 } |
517 | 517 |
518 /** | 518 /** |
519 * Decrypt data that was protected by Encrypt. | 519 * Decrypts data that was protected by Encrypt. |
520 * | 520 * |
521 * [request] - The metadata request object. | 521 * [request] - The metadata request object. |
522 * | 522 * |
523 * Request parameters: | 523 * Request parameters: |
524 * | 524 * |
525 * [name] - Required. The resource name of the CryptoKey to use for | 525 * [name] - Required. The resource name of the CryptoKey to use for |
526 * decryption. | 526 * decryption. |
527 * The server will choose the appropriate version. | 527 * The server will choose the appropriate version. |
528 * Value must have pattern | 528 * Value must have pattern |
529 * "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$". | 529 * "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$". |
(...skipping 27 matching lines...) Expand all Loading... |
557 "POST", | 557 "POST", |
558 body: _body, | 558 body: _body, |
559 queryParams: _queryParams, | 559 queryParams: _queryParams, |
560 uploadOptions: _uploadOptions, | 560 uploadOptions: _uploadOptions, |
561 uploadMedia: _uploadMedia, | 561 uploadMedia: _uploadMedia, |
562 downloadOptions: _downloadOptions); | 562 downloadOptions: _downloadOptions); |
563 return _response.then((data) => new DecryptResponse.fromJson(data)); | 563 return _response.then((data) => new DecryptResponse.fromJson(data)); |
564 } | 564 } |
565 | 565 |
566 /** | 566 /** |
567 * Encrypt data, so that it can only be recovered by a call to Decrypt. | 567 * Encrypts data, so that it can only be recovered by a call to Decrypt. |
568 * | 568 * |
569 * [request] - The metadata request object. | 569 * [request] - The metadata request object. |
570 * | 570 * |
571 * Request parameters: | 571 * Request parameters: |
572 * | 572 * |
573 * [name] - Required. The resource name of the CryptoKey or CryptoKeyVersion | 573 * [name] - Required. The resource name of the CryptoKey or CryptoKeyVersion |
574 * to use for encryption. | 574 * to use for encryption. |
575 * | 575 * |
576 * If a CryptoKey is specified, the server will use its | 576 * If a CryptoKey is specified, the server will use its |
577 * primary version. | 577 * primary version. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 /** | 703 /** |
704 * Lists CryptoKeys. | 704 * Lists CryptoKeys. |
705 * | 705 * |
706 * Request parameters: | 706 * Request parameters: |
707 * | 707 * |
708 * [parent] - Required. The resource name of the KeyRing to list, in the | 708 * [parent] - Required. The resource name of the KeyRing to list, in the |
709 * format | 709 * format |
710 * `projects / * /locations / * /keyRings / * `. | 710 * `projects / * /locations / * /keyRings / * `. |
711 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". | 711 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". |
712 * | 712 * |
713 * [pageToken] - Optional pagination token, returned earlier via | |
714 * ListCryptoKeysResponse.next_page_token. | |
715 * | |
716 * [pageSize] - Optional limit on the number of CryptoKeys to include in the | 713 * [pageSize] - Optional limit on the number of CryptoKeys to include in the |
717 * response. Further CryptoKeys can subsequently be obtained by | 714 * response. Further CryptoKeys can subsequently be obtained by |
718 * including the ListCryptoKeysResponse.next_page_token in a subsequent | 715 * including the ListCryptoKeysResponse.next_page_token in a subsequent |
719 * request. If unspecified, the server will pick an appropriate default. | 716 * request. If unspecified, the server will pick an appropriate default. |
720 * | 717 * |
| 718 * [pageToken] - Optional pagination token, returned earlier via |
| 719 * ListCryptoKeysResponse.next_page_token. |
| 720 * |
721 * Completes with a [ListCryptoKeysResponse]. | 721 * Completes with a [ListCryptoKeysResponse]. |
722 * | 722 * |
723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
724 * error. | 724 * error. |
725 * | 725 * |
726 * If the used [http.Client] completes with an error when making a REST call, | 726 * If the used [http.Client] completes with an error when making a REST call, |
727 * this method will complete with the same error. | 727 * this method will complete with the same error. |
728 */ | 728 */ |
729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pag
eToken, core.int pageSize}) { | 729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.int pageSi
ze, core.String pageToken}) { |
730 var _url = null; | 730 var _url = null; |
731 var _queryParams = new core.Map(); | 731 var _queryParams = new core.Map(); |
732 var _uploadMedia = null; | 732 var _uploadMedia = null; |
733 var _uploadOptions = null; | 733 var _uploadOptions = null; |
734 var _downloadOptions = commons.DownloadOptions.Metadata; | 734 var _downloadOptions = commons.DownloadOptions.Metadata; |
735 var _body = null; | 735 var _body = null; |
736 | 736 |
737 if (parent == null) { | 737 if (parent == null) { |
738 throw new core.ArgumentError("Parameter parent is required."); | 738 throw new core.ArgumentError("Parameter parent is required."); |
739 } | 739 } |
| 740 if (pageSize != null) { |
| 741 _queryParams["pageSize"] = ["${pageSize}"]; |
| 742 } |
740 if (pageToken != null) { | 743 if (pageToken != null) { |
741 _queryParams["pageToken"] = [pageToken]; | 744 _queryParams["pageToken"] = [pageToken]; |
742 } | 745 } |
743 if (pageSize != null) { | |
744 _queryParams["pageSize"] = ["${pageSize}"]; | |
745 } | |
746 | 746 |
747 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKe
ys'; | 747 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKe
ys'; |
748 | 748 |
749 var _response = _requester.request(_url, | 749 var _response = _requester.request(_url, |
750 "GET", | 750 "GET", |
751 body: _body, | 751 body: _body, |
752 queryParams: _queryParams, | 752 queryParams: _queryParams, |
753 uploadOptions: _uploadOptions, | 753 uploadOptions: _uploadOptions, |
754 uploadMedia: _uploadMedia, | 754 uploadMedia: _uploadMedia, |
755 downloadOptions: _downloadOptions); | 755 downloadOptions: _downloadOptions); |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); | 1363 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf
ig.fromJson(value)).toList(); |
1364 } | 1364 } |
1365 if (_json.containsKey("exemptedMembers")) { | 1365 if (_json.containsKey("exemptedMembers")) { |
1366 exemptedMembers = _json["exemptedMembers"]; | 1366 exemptedMembers = _json["exemptedMembers"]; |
1367 } | 1367 } |
1368 if (_json.containsKey("service")) { | 1368 if (_json.containsKey("service")) { |
1369 service = _json["service"]; | 1369 service = _json["service"]; |
1370 } | 1370 } |
1371 } | 1371 } |
1372 | 1372 |
1373 core.Map toJson() { | 1373 core.Map<core.String, core.Object> toJson() { |
1374 var _json = new core.Map(); | 1374 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1375 if (auditLogConfigs != null) { | 1375 if (auditLogConfigs != null) { |
1376 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); | 1376 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()
).toList(); |
1377 } | 1377 } |
1378 if (exemptedMembers != null) { | 1378 if (exemptedMembers != null) { |
1379 _json["exemptedMembers"] = exemptedMembers; | 1379 _json["exemptedMembers"] = exemptedMembers; |
1380 } | 1380 } |
1381 if (service != null) { | 1381 if (service != null) { |
1382 _json["service"] = service; | 1382 _json["service"] = service; |
1383 } | 1383 } |
1384 return _json; | 1384 return _json; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 | 1427 |
1428 AuditLogConfig.fromJson(core.Map _json) { | 1428 AuditLogConfig.fromJson(core.Map _json) { |
1429 if (_json.containsKey("exemptedMembers")) { | 1429 if (_json.containsKey("exemptedMembers")) { |
1430 exemptedMembers = _json["exemptedMembers"]; | 1430 exemptedMembers = _json["exemptedMembers"]; |
1431 } | 1431 } |
1432 if (_json.containsKey("logType")) { | 1432 if (_json.containsKey("logType")) { |
1433 logType = _json["logType"]; | 1433 logType = _json["logType"]; |
1434 } | 1434 } |
1435 } | 1435 } |
1436 | 1436 |
1437 core.Map toJson() { | 1437 core.Map<core.String, core.Object> toJson() { |
1438 var _json = new core.Map(); | 1438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1439 if (exemptedMembers != null) { | 1439 if (exemptedMembers != null) { |
1440 _json["exemptedMembers"] = exemptedMembers; | 1440 _json["exemptedMembers"] = exemptedMembers; |
1441 } | 1441 } |
1442 if (logType != null) { | 1442 if (logType != null) { |
1443 _json["logType"] = logType; | 1443 _json["logType"] = logType; |
1444 } | 1444 } |
1445 return _json; | 1445 return _json; |
1446 } | 1446 } |
1447 } | 1447 } |
1448 | 1448 |
1449 /** Associates `members` with a `role`. */ | 1449 /** Associates `members` with a `role`. */ |
1450 class Binding { | 1450 class Binding { |
1451 /** | 1451 /** |
| 1452 * The condition that is associated with this binding. |
| 1453 * NOTE: an unsatisfied condition will not allow user access via current |
| 1454 * binding. Different bindings, including their conditions, are examined |
| 1455 * independently. |
| 1456 * This field is GOOGLE_INTERNAL. |
| 1457 */ |
| 1458 Expr condition; |
| 1459 /** |
1452 * Specifies the identities requesting access for a Cloud Platform resource. | 1460 * Specifies the identities requesting access for a Cloud Platform resource. |
1453 * `members` can have the following values: | 1461 * `members` can have the following values: |
1454 * | 1462 * |
1455 * * `allUsers`: A special identifier that represents anyone who is | 1463 * * `allUsers`: A special identifier that represents anyone who is |
1456 * on the internet; with or without a Google account. | 1464 * on the internet; with or without a Google account. |
1457 * | 1465 * |
1458 * * `allAuthenticatedUsers`: A special identifier that represents anyone | 1466 * * `allAuthenticatedUsers`: A special identifier that represents anyone |
1459 * who is authenticated with a Google account or a service account. | 1467 * who is authenticated with a Google account or a service account. |
1460 * | 1468 * |
1461 * * `user:{emailid}`: An email address that represents a specific Google | 1469 * * `user:{emailid}`: An email address that represents a specific Google |
(...skipping 14 matching lines...) Expand all Loading... |
1476 /** | 1484 /** |
1477 * Role that is assigned to `members`. | 1485 * Role that is assigned to `members`. |
1478 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. | 1486 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
1479 * Required | 1487 * Required |
1480 */ | 1488 */ |
1481 core.String role; | 1489 core.String role; |
1482 | 1490 |
1483 Binding(); | 1491 Binding(); |
1484 | 1492 |
1485 Binding.fromJson(core.Map _json) { | 1493 Binding.fromJson(core.Map _json) { |
| 1494 if (_json.containsKey("condition")) { |
| 1495 condition = new Expr.fromJson(_json["condition"]); |
| 1496 } |
1486 if (_json.containsKey("members")) { | 1497 if (_json.containsKey("members")) { |
1487 members = _json["members"]; | 1498 members = _json["members"]; |
1488 } | 1499 } |
1489 if (_json.containsKey("role")) { | 1500 if (_json.containsKey("role")) { |
1490 role = _json["role"]; | 1501 role = _json["role"]; |
1491 } | 1502 } |
1492 } | 1503 } |
1493 | 1504 |
1494 core.Map toJson() { | 1505 core.Map<core.String, core.Object> toJson() { |
1495 var _json = new core.Map(); | 1506 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1507 if (condition != null) { |
| 1508 _json["condition"] = (condition).toJson(); |
| 1509 } |
1496 if (members != null) { | 1510 if (members != null) { |
1497 _json["members"] = members; | 1511 _json["members"] = members; |
1498 } | 1512 } |
1499 if (role != null) { | 1513 if (role != null) { |
1500 _json["role"] = role; | 1514 _json["role"] = role; |
1501 } | 1515 } |
1502 return _json; | 1516 return _json; |
1503 } | 1517 } |
1504 } | 1518 } |
1505 | 1519 |
1506 /** Write a Cloud Audit log */ | 1520 /** Write a Cloud Audit log */ |
1507 class CloudAuditOptions { | 1521 class CloudAuditOptions { |
1508 /** | 1522 /** |
1509 * The log_name to populate in the Cloud Audit Record. | 1523 * The log_name to populate in the Cloud Audit Record. |
1510 * Possible string values are: | 1524 * Possible string values are: |
1511 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. | 1525 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. |
1512 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" | 1526 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" |
1513 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" | 1527 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" |
1514 */ | 1528 */ |
1515 core.String logName; | 1529 core.String logName; |
1516 | 1530 |
1517 CloudAuditOptions(); | 1531 CloudAuditOptions(); |
1518 | 1532 |
1519 CloudAuditOptions.fromJson(core.Map _json) { | 1533 CloudAuditOptions.fromJson(core.Map _json) { |
1520 if (_json.containsKey("logName")) { | 1534 if (_json.containsKey("logName")) { |
1521 logName = _json["logName"]; | 1535 logName = _json["logName"]; |
1522 } | 1536 } |
1523 } | 1537 } |
1524 | 1538 |
1525 core.Map toJson() { | 1539 core.Map<core.String, core.Object> toJson() { |
1526 var _json = new core.Map(); | 1540 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1527 if (logName != null) { | 1541 if (logName != null) { |
1528 _json["logName"] = logName; | 1542 _json["logName"] = logName; |
1529 } | 1543 } |
1530 return _json; | 1544 return _json; |
1531 } | 1545 } |
1532 } | 1546 } |
1533 | 1547 |
1534 /** A condition to be met. */ | 1548 /** A condition to be met. */ |
1535 class Condition { | 1549 class Condition { |
1536 /** | 1550 /** |
1537 * Trusted attributes supplied by the IAM system. | 1551 * Trusted attributes supplied by the IAM system. |
1538 * Possible string values are: | 1552 * Possible string values are: |
1539 * - "NO_ATTR" : Default non-attribute. | 1553 * - "NO_ATTR" : Default non-attribute. |
1540 * - "AUTHORITY" : Either principal or (if present) authority selector. | 1554 * - "AUTHORITY" : Either principal or (if present) authority selector. |
1541 * - "ATTRIBUTION" : The principal (even if an authority selector is present), | 1555 * - "ATTRIBUTION" : The principal (even if an authority selector is present), |
1542 * which | 1556 * which |
1543 * must only be used for attribution, not authorization. | 1557 * must only be used for attribution, not authorization. |
1544 * - "APPROVER" : An approver (distinct from the requester) that has | 1558 * - "APPROVER" : An approver (distinct from the requester) that has |
1545 * authorized this | 1559 * authorized this |
1546 * request. | 1560 * request. |
1547 * When used with IN, the condition indicates that one of the approvers | 1561 * When used with IN, the condition indicates that one of the approvers |
1548 * associated with the request matches the specified principal, or is a | 1562 * associated with the request matches the specified principal, or is a |
1549 * member of the specified group. Approvers can only grant additional | 1563 * member of the specified group. Approvers can only grant additional |
1550 * access, and are thus only used in a strictly positive context | 1564 * access, and are thus only used in a strictly positive context |
1551 * (e.g. ALLOW/IN or DENY/NOT_IN). | 1565 * (e.g. ALLOW/IN or DENY/NOT_IN). |
1552 * See: go/rpc-security-policy-dynamicauth. | |
1553 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied | 1566 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied |
1554 * with this request. | 1567 * with this request. |
1555 * String values should match enum names from tech.iam.JustificationType, | 1568 * String values should match enum names from tech.iam.JustificationType, |
1556 * e.g. "MANUAL_STRING". It is not permitted to grant access based on | 1569 * e.g. "MANUAL_STRING". It is not permitted to grant access based on |
1557 * the *absence* of a justification, so justification conditions can only | 1570 * the *absence* of a justification, so justification conditions can only |
1558 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). | 1571 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). |
1559 * | 1572 * |
1560 * Multiple justifications, e.g., a Buganizer ID and a manually-entered | 1573 * Multiple justifications, e.g., a Buganizer ID and a manually-entered |
1561 * reason, are normal and supported. | 1574 * reason, are normal and supported. |
1562 */ | 1575 */ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 sys = _json["sys"]; | 1623 sys = _json["sys"]; |
1611 } | 1624 } |
1612 if (_json.containsKey("value")) { | 1625 if (_json.containsKey("value")) { |
1613 value = _json["value"]; | 1626 value = _json["value"]; |
1614 } | 1627 } |
1615 if (_json.containsKey("values")) { | 1628 if (_json.containsKey("values")) { |
1616 values = _json["values"]; | 1629 values = _json["values"]; |
1617 } | 1630 } |
1618 } | 1631 } |
1619 | 1632 |
1620 core.Map toJson() { | 1633 core.Map<core.String, core.Object> toJson() { |
1621 var _json = new core.Map(); | 1634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1622 if (iam != null) { | 1635 if (iam != null) { |
1623 _json["iam"] = iam; | 1636 _json["iam"] = iam; |
1624 } | 1637 } |
1625 if (op != null) { | 1638 if (op != null) { |
1626 _json["op"] = op; | 1639 _json["op"] = op; |
1627 } | 1640 } |
1628 if (svc != null) { | 1641 if (svc != null) { |
1629 _json["svc"] = svc; | 1642 _json["svc"] = svc; |
1630 } | 1643 } |
1631 if (sys != null) { | 1644 if (sys != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
1652 | 1665 |
1653 CounterOptions.fromJson(core.Map _json) { | 1666 CounterOptions.fromJson(core.Map _json) { |
1654 if (_json.containsKey("field")) { | 1667 if (_json.containsKey("field")) { |
1655 field = _json["field"]; | 1668 field = _json["field"]; |
1656 } | 1669 } |
1657 if (_json.containsKey("metric")) { | 1670 if (_json.containsKey("metric")) { |
1658 metric = _json["metric"]; | 1671 metric = _json["metric"]; |
1659 } | 1672 } |
1660 } | 1673 } |
1661 | 1674 |
1662 core.Map toJson() { | 1675 core.Map<core.String, core.Object> toJson() { |
1663 var _json = new core.Map(); | 1676 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1664 if (field != null) { | 1677 if (field != null) { |
1665 _json["field"] = field; | 1678 _json["field"] = field; |
1666 } | 1679 } |
1667 if (metric != null) { | 1680 if (metric != null) { |
1668 _json["metric"] = metric; | 1681 _json["metric"] = metric; |
1669 } | 1682 } |
1670 return _json; | 1683 return _json; |
1671 } | 1684 } |
1672 } | 1685 } |
1673 | 1686 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 primary = new CryptoKeyVersion.fromJson(_json["primary"]); | 1754 primary = new CryptoKeyVersion.fromJson(_json["primary"]); |
1742 } | 1755 } |
1743 if (_json.containsKey("purpose")) { | 1756 if (_json.containsKey("purpose")) { |
1744 purpose = _json["purpose"]; | 1757 purpose = _json["purpose"]; |
1745 } | 1758 } |
1746 if (_json.containsKey("rotationPeriod")) { | 1759 if (_json.containsKey("rotationPeriod")) { |
1747 rotationPeriod = _json["rotationPeriod"]; | 1760 rotationPeriod = _json["rotationPeriod"]; |
1748 } | 1761 } |
1749 } | 1762 } |
1750 | 1763 |
1751 core.Map toJson() { | 1764 core.Map<core.String, core.Object> toJson() { |
1752 var _json = new core.Map(); | 1765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1753 if (createTime != null) { | 1766 if (createTime != null) { |
1754 _json["createTime"] = createTime; | 1767 _json["createTime"] = createTime; |
1755 } | 1768 } |
1756 if (name != null) { | 1769 if (name != null) { |
1757 _json["name"] = name; | 1770 _json["name"] = name; |
1758 } | 1771 } |
1759 if (nextRotationTime != null) { | 1772 if (nextRotationTime != null) { |
1760 _json["nextRotationTime"] = nextRotationTime; | 1773 _json["nextRotationTime"] = nextRotationTime; |
1761 } | 1774 } |
1762 if (primary != null) { | 1775 if (primary != null) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1834 destroyTime = _json["destroyTime"]; | 1847 destroyTime = _json["destroyTime"]; |
1835 } | 1848 } |
1836 if (_json.containsKey("name")) { | 1849 if (_json.containsKey("name")) { |
1837 name = _json["name"]; | 1850 name = _json["name"]; |
1838 } | 1851 } |
1839 if (_json.containsKey("state")) { | 1852 if (_json.containsKey("state")) { |
1840 state = _json["state"]; | 1853 state = _json["state"]; |
1841 } | 1854 } |
1842 } | 1855 } |
1843 | 1856 |
1844 core.Map toJson() { | 1857 core.Map<core.String, core.Object> toJson() { |
1845 var _json = new core.Map(); | 1858 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1846 if (createTime != null) { | 1859 if (createTime != null) { |
1847 _json["createTime"] = createTime; | 1860 _json["createTime"] = createTime; |
1848 } | 1861 } |
1849 if (destroyEventTime != null) { | 1862 if (destroyEventTime != null) { |
1850 _json["destroyEventTime"] = destroyEventTime; | 1863 _json["destroyEventTime"] = destroyEventTime; |
1851 } | 1864 } |
1852 if (destroyTime != null) { | 1865 if (destroyTime != null) { |
1853 _json["destroyTime"] = destroyTime; | 1866 _json["destroyTime"] = destroyTime; |
1854 } | 1867 } |
1855 if (name != null) { | 1868 if (name != null) { |
1856 _json["name"] = name; | 1869 _json["name"] = name; |
1857 } | 1870 } |
1858 if (state != null) { | 1871 if (state != null) { |
1859 _json["state"] = state; | 1872 _json["state"] = state; |
1860 } | 1873 } |
1861 return _json; | 1874 return _json; |
1862 } | 1875 } |
1863 } | 1876 } |
1864 | 1877 |
1865 /** Write a Data Access (Gin) log */ | 1878 /** Write a Data Access (Gin) log */ |
1866 class DataAccessOptions { | 1879 class DataAccessOptions { |
1867 | 1880 |
1868 DataAccessOptions(); | 1881 DataAccessOptions(); |
1869 | 1882 |
1870 DataAccessOptions.fromJson(core.Map _json) { | 1883 DataAccessOptions.fromJson(core.Map _json) { |
1871 } | 1884 } |
1872 | 1885 |
1873 core.Map toJson() { | 1886 core.Map<core.String, core.Object> toJson() { |
1874 var _json = new core.Map(); | 1887 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1875 return _json; | 1888 return _json; |
1876 } | 1889 } |
1877 } | 1890 } |
1878 | 1891 |
1879 /** Request message for KeyManagementService.Decrypt. */ | 1892 /** Request message for KeyManagementService.Decrypt. */ |
1880 class DecryptRequest { | 1893 class DecryptRequest { |
1881 /** | 1894 /** |
1882 * Optional data that must match the data originally supplied in | 1895 * Optional data that must match the data originally supplied in |
1883 * EncryptRequest.additional_authenticated_data. | 1896 * EncryptRequest.additional_authenticated_data. |
1884 */ | 1897 */ |
(...skipping 22 matching lines...) Expand all Loading... |
1907 | 1920 |
1908 DecryptRequest.fromJson(core.Map _json) { | 1921 DecryptRequest.fromJson(core.Map _json) { |
1909 if (_json.containsKey("additionalAuthenticatedData")) { | 1922 if (_json.containsKey("additionalAuthenticatedData")) { |
1910 additionalAuthenticatedData = _json["additionalAuthenticatedData"]; | 1923 additionalAuthenticatedData = _json["additionalAuthenticatedData"]; |
1911 } | 1924 } |
1912 if (_json.containsKey("ciphertext")) { | 1925 if (_json.containsKey("ciphertext")) { |
1913 ciphertext = _json["ciphertext"]; | 1926 ciphertext = _json["ciphertext"]; |
1914 } | 1927 } |
1915 } | 1928 } |
1916 | 1929 |
1917 core.Map toJson() { | 1930 core.Map<core.String, core.Object> toJson() { |
1918 var _json = new core.Map(); | 1931 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1919 if (additionalAuthenticatedData != null) { | 1932 if (additionalAuthenticatedData != null) { |
1920 _json["additionalAuthenticatedData"] = additionalAuthenticatedData; | 1933 _json["additionalAuthenticatedData"] = additionalAuthenticatedData; |
1921 } | 1934 } |
1922 if (ciphertext != null) { | 1935 if (ciphertext != null) { |
1923 _json["ciphertext"] = ciphertext; | 1936 _json["ciphertext"] = ciphertext; |
1924 } | 1937 } |
1925 return _json; | 1938 return _json; |
1926 } | 1939 } |
1927 } | 1940 } |
1928 | 1941 |
(...skipping 10 matching lines...) Expand all Loading... |
1939 } | 1952 } |
1940 | 1953 |
1941 DecryptResponse(); | 1954 DecryptResponse(); |
1942 | 1955 |
1943 DecryptResponse.fromJson(core.Map _json) { | 1956 DecryptResponse.fromJson(core.Map _json) { |
1944 if (_json.containsKey("plaintext")) { | 1957 if (_json.containsKey("plaintext")) { |
1945 plaintext = _json["plaintext"]; | 1958 plaintext = _json["plaintext"]; |
1946 } | 1959 } |
1947 } | 1960 } |
1948 | 1961 |
1949 core.Map toJson() { | 1962 core.Map<core.String, core.Object> toJson() { |
1950 var _json = new core.Map(); | 1963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1951 if (plaintext != null) { | 1964 if (plaintext != null) { |
1952 _json["plaintext"] = plaintext; | 1965 _json["plaintext"] = plaintext; |
1953 } | 1966 } |
1954 return _json; | 1967 return _json; |
1955 } | 1968 } |
1956 } | 1969 } |
1957 | 1970 |
1958 /** Request message for KeyManagementService.DestroyCryptoKeyVersion. */ | 1971 /** Request message for KeyManagementService.DestroyCryptoKeyVersion. */ |
1959 class DestroyCryptoKeyVersionRequest { | 1972 class DestroyCryptoKeyVersionRequest { |
1960 | 1973 |
1961 DestroyCryptoKeyVersionRequest(); | 1974 DestroyCryptoKeyVersionRequest(); |
1962 | 1975 |
1963 DestroyCryptoKeyVersionRequest.fromJson(core.Map _json) { | 1976 DestroyCryptoKeyVersionRequest.fromJson(core.Map _json) { |
1964 } | 1977 } |
1965 | 1978 |
1966 core.Map toJson() { | 1979 core.Map<core.String, core.Object> toJson() { |
1967 var _json = new core.Map(); | 1980 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1968 return _json; | 1981 return _json; |
1969 } | 1982 } |
1970 } | 1983 } |
1971 | 1984 |
1972 /** Request message for KeyManagementService.Encrypt. */ | 1985 /** Request message for KeyManagementService.Encrypt. */ |
1973 class EncryptRequest { | 1986 class EncryptRequest { |
1974 /** | 1987 /** |
1975 * Optional data that, if specified, must also be provided during decryption | 1988 * Optional data that, if specified, must also be provided during decryption |
1976 * through DecryptRequest.additional_authenticated_data. Must be no | 1989 * through DecryptRequest.additional_authenticated_data. Must be no |
1977 * larger than 64KiB. | 1990 * larger than 64KiB. |
(...skipping 20 matching lines...) Expand all Loading... |
1998 | 2011 |
1999 EncryptRequest.fromJson(core.Map _json) { | 2012 EncryptRequest.fromJson(core.Map _json) { |
2000 if (_json.containsKey("additionalAuthenticatedData")) { | 2013 if (_json.containsKey("additionalAuthenticatedData")) { |
2001 additionalAuthenticatedData = _json["additionalAuthenticatedData"]; | 2014 additionalAuthenticatedData = _json["additionalAuthenticatedData"]; |
2002 } | 2015 } |
2003 if (_json.containsKey("plaintext")) { | 2016 if (_json.containsKey("plaintext")) { |
2004 plaintext = _json["plaintext"]; | 2017 plaintext = _json["plaintext"]; |
2005 } | 2018 } |
2006 } | 2019 } |
2007 | 2020 |
2008 core.Map toJson() { | 2021 core.Map<core.String, core.Object> toJson() { |
2009 var _json = new core.Map(); | 2022 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2010 if (additionalAuthenticatedData != null) { | 2023 if (additionalAuthenticatedData != null) { |
2011 _json["additionalAuthenticatedData"] = additionalAuthenticatedData; | 2024 _json["additionalAuthenticatedData"] = additionalAuthenticatedData; |
2012 } | 2025 } |
2013 if (plaintext != null) { | 2026 if (plaintext != null) { |
2014 _json["plaintext"] = plaintext; | 2027 _json["plaintext"] = plaintext; |
2015 } | 2028 } |
2016 return _json; | 2029 return _json; |
2017 } | 2030 } |
2018 } | 2031 } |
2019 | 2032 |
(...skipping 15 matching lines...) Expand all Loading... |
2035 | 2048 |
2036 EncryptResponse.fromJson(core.Map _json) { | 2049 EncryptResponse.fromJson(core.Map _json) { |
2037 if (_json.containsKey("ciphertext")) { | 2050 if (_json.containsKey("ciphertext")) { |
2038 ciphertext = _json["ciphertext"]; | 2051 ciphertext = _json["ciphertext"]; |
2039 } | 2052 } |
2040 if (_json.containsKey("name")) { | 2053 if (_json.containsKey("name")) { |
2041 name = _json["name"]; | 2054 name = _json["name"]; |
2042 } | 2055 } |
2043 } | 2056 } |
2044 | 2057 |
2045 core.Map toJson() { | 2058 core.Map<core.String, core.Object> toJson() { |
2046 var _json = new core.Map(); | 2059 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2047 if (ciphertext != null) { | 2060 if (ciphertext != null) { |
2048 _json["ciphertext"] = ciphertext; | 2061 _json["ciphertext"] = ciphertext; |
2049 } | 2062 } |
2050 if (name != null) { | 2063 if (name != null) { |
2051 _json["name"] = name; | 2064 _json["name"] = name; |
2052 } | 2065 } |
2053 return _json; | 2066 return _json; |
2054 } | 2067 } |
2055 } | 2068 } |
2056 | 2069 |
| 2070 /** |
| 2071 * Represents an expression text. Example: |
| 2072 * |
| 2073 * title: "User account presence" |
| 2074 * description: "Determines whether the request has a user account" |
| 2075 * expression: "size(request.user) > 0" |
| 2076 */ |
| 2077 class Expr { |
| 2078 /** |
| 2079 * An optional description of the expression. This is a longer text which |
| 2080 * describes the expression, e.g. when hovered over it in a UI. |
| 2081 */ |
| 2082 core.String description; |
| 2083 /** |
| 2084 * Textual representation of an expression in |
| 2085 * [Common Expression Language](http://go/api-expr) syntax. |
| 2086 * |
| 2087 * The application context of the containing message determines which |
| 2088 * well-known feature set of CEL is supported. |
| 2089 */ |
| 2090 core.String expression; |
| 2091 /** |
| 2092 * An optional string indicating the location of the expression for error |
| 2093 * reporting, e.g. a file name and a position in the file. |
| 2094 */ |
| 2095 core.String location; |
| 2096 /** |
| 2097 * An optional title for the expression, i.e. a short string describing |
| 2098 * its purpose. This can be used e.g. in UIs which allow to enter the |
| 2099 * expression. |
| 2100 */ |
| 2101 core.String title; |
| 2102 |
| 2103 Expr(); |
| 2104 |
| 2105 Expr.fromJson(core.Map _json) { |
| 2106 if (_json.containsKey("description")) { |
| 2107 description = _json["description"]; |
| 2108 } |
| 2109 if (_json.containsKey("expression")) { |
| 2110 expression = _json["expression"]; |
| 2111 } |
| 2112 if (_json.containsKey("location")) { |
| 2113 location = _json["location"]; |
| 2114 } |
| 2115 if (_json.containsKey("title")) { |
| 2116 title = _json["title"]; |
| 2117 } |
| 2118 } |
| 2119 |
| 2120 core.Map<core.String, core.Object> toJson() { |
| 2121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2122 if (description != null) { |
| 2123 _json["description"] = description; |
| 2124 } |
| 2125 if (expression != null) { |
| 2126 _json["expression"] = expression; |
| 2127 } |
| 2128 if (location != null) { |
| 2129 _json["location"] = location; |
| 2130 } |
| 2131 if (title != null) { |
| 2132 _json["title"] = title; |
| 2133 } |
| 2134 return _json; |
| 2135 } |
| 2136 } |
| 2137 |
2057 /** A KeyRing is a toplevel logical grouping of CryptoKeys. */ | 2138 /** A KeyRing is a toplevel logical grouping of CryptoKeys. */ |
2058 class KeyRing { | 2139 class KeyRing { |
2059 /** Output only. The time at which this KeyRing was created. */ | 2140 /** Output only. The time at which this KeyRing was created. */ |
2060 core.String createTime; | 2141 core.String createTime; |
2061 /** | 2142 /** |
2062 * Output only. The resource name for the KeyRing in the format | 2143 * Output only. The resource name for the KeyRing in the format |
2063 * `projects / * /locations / * /keyRings / * `. | 2144 * `projects / * /locations / * /keyRings / * `. |
2064 */ | 2145 */ |
2065 core.String name; | 2146 core.String name; |
2066 | 2147 |
2067 KeyRing(); | 2148 KeyRing(); |
2068 | 2149 |
2069 KeyRing.fromJson(core.Map _json) { | 2150 KeyRing.fromJson(core.Map _json) { |
2070 if (_json.containsKey("createTime")) { | 2151 if (_json.containsKey("createTime")) { |
2071 createTime = _json["createTime"]; | 2152 createTime = _json["createTime"]; |
2072 } | 2153 } |
2073 if (_json.containsKey("name")) { | 2154 if (_json.containsKey("name")) { |
2074 name = _json["name"]; | 2155 name = _json["name"]; |
2075 } | 2156 } |
2076 } | 2157 } |
2077 | 2158 |
2078 core.Map toJson() { | 2159 core.Map<core.String, core.Object> toJson() { |
2079 var _json = new core.Map(); | 2160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2080 if (createTime != null) { | 2161 if (createTime != null) { |
2081 _json["createTime"] = createTime; | 2162 _json["createTime"] = createTime; |
2082 } | 2163 } |
2083 if (name != null) { | 2164 if (name != null) { |
2084 _json["name"] = name; | 2165 _json["name"] = name; |
2085 } | 2166 } |
2086 return _json; | 2167 return _json; |
2087 } | 2168 } |
2088 } | 2169 } |
2089 | 2170 |
(...skipping 20 matching lines...) Expand all Loading... |
2110 cryptoKeyVersions = _json["cryptoKeyVersions"].map((value) => new CryptoKe
yVersion.fromJson(value)).toList(); | 2191 cryptoKeyVersions = _json["cryptoKeyVersions"].map((value) => new CryptoKe
yVersion.fromJson(value)).toList(); |
2111 } | 2192 } |
2112 if (_json.containsKey("nextPageToken")) { | 2193 if (_json.containsKey("nextPageToken")) { |
2113 nextPageToken = _json["nextPageToken"]; | 2194 nextPageToken = _json["nextPageToken"]; |
2114 } | 2195 } |
2115 if (_json.containsKey("totalSize")) { | 2196 if (_json.containsKey("totalSize")) { |
2116 totalSize = _json["totalSize"]; | 2197 totalSize = _json["totalSize"]; |
2117 } | 2198 } |
2118 } | 2199 } |
2119 | 2200 |
2120 core.Map toJson() { | 2201 core.Map<core.String, core.Object> toJson() { |
2121 var _json = new core.Map(); | 2202 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2122 if (cryptoKeyVersions != null) { | 2203 if (cryptoKeyVersions != null) { |
2123 _json["cryptoKeyVersions"] = cryptoKeyVersions.map((value) => (value).toJs
on()).toList(); | 2204 _json["cryptoKeyVersions"] = cryptoKeyVersions.map((value) => (value).toJs
on()).toList(); |
2124 } | 2205 } |
2125 if (nextPageToken != null) { | 2206 if (nextPageToken != null) { |
2126 _json["nextPageToken"] = nextPageToken; | 2207 _json["nextPageToken"] = nextPageToken; |
2127 } | 2208 } |
2128 if (totalSize != null) { | 2209 if (totalSize != null) { |
2129 _json["totalSize"] = totalSize; | 2210 _json["totalSize"] = totalSize; |
2130 } | 2211 } |
2131 return _json; | 2212 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
2151 cryptoKeys = _json["cryptoKeys"].map((value) => new CryptoKey.fromJson(val
ue)).toList(); | 2232 cryptoKeys = _json["cryptoKeys"].map((value) => new CryptoKey.fromJson(val
ue)).toList(); |
2152 } | 2233 } |
2153 if (_json.containsKey("nextPageToken")) { | 2234 if (_json.containsKey("nextPageToken")) { |
2154 nextPageToken = _json["nextPageToken"]; | 2235 nextPageToken = _json["nextPageToken"]; |
2155 } | 2236 } |
2156 if (_json.containsKey("totalSize")) { | 2237 if (_json.containsKey("totalSize")) { |
2157 totalSize = _json["totalSize"]; | 2238 totalSize = _json["totalSize"]; |
2158 } | 2239 } |
2159 } | 2240 } |
2160 | 2241 |
2161 core.Map toJson() { | 2242 core.Map<core.String, core.Object> toJson() { |
2162 var _json = new core.Map(); | 2243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2163 if (cryptoKeys != null) { | 2244 if (cryptoKeys != null) { |
2164 _json["cryptoKeys"] = cryptoKeys.map((value) => (value).toJson()).toList()
; | 2245 _json["cryptoKeys"] = cryptoKeys.map((value) => (value).toJson()).toList()
; |
2165 } | 2246 } |
2166 if (nextPageToken != null) { | 2247 if (nextPageToken != null) { |
2167 _json["nextPageToken"] = nextPageToken; | 2248 _json["nextPageToken"] = nextPageToken; |
2168 } | 2249 } |
2169 if (totalSize != null) { | 2250 if (totalSize != null) { |
2170 _json["totalSize"] = totalSize; | 2251 _json["totalSize"] = totalSize; |
2171 } | 2252 } |
2172 return _json; | 2253 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
2192 keyRings = _json["keyRings"].map((value) => new KeyRing.fromJson(value)).t
oList(); | 2273 keyRings = _json["keyRings"].map((value) => new KeyRing.fromJson(value)).t
oList(); |
2193 } | 2274 } |
2194 if (_json.containsKey("nextPageToken")) { | 2275 if (_json.containsKey("nextPageToken")) { |
2195 nextPageToken = _json["nextPageToken"]; | 2276 nextPageToken = _json["nextPageToken"]; |
2196 } | 2277 } |
2197 if (_json.containsKey("totalSize")) { | 2278 if (_json.containsKey("totalSize")) { |
2198 totalSize = _json["totalSize"]; | 2279 totalSize = _json["totalSize"]; |
2199 } | 2280 } |
2200 } | 2281 } |
2201 | 2282 |
2202 core.Map toJson() { | 2283 core.Map<core.String, core.Object> toJson() { |
2203 var _json = new core.Map(); | 2284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2204 if (keyRings != null) { | 2285 if (keyRings != null) { |
2205 _json["keyRings"] = keyRings.map((value) => (value).toJson()).toList(); | 2286 _json["keyRings"] = keyRings.map((value) => (value).toJson()).toList(); |
2206 } | 2287 } |
2207 if (nextPageToken != null) { | 2288 if (nextPageToken != null) { |
2208 _json["nextPageToken"] = nextPageToken; | 2289 _json["nextPageToken"] = nextPageToken; |
2209 } | 2290 } |
2210 if (totalSize != null) { | 2291 if (totalSize != null) { |
2211 _json["totalSize"] = totalSize; | 2292 _json["totalSize"] = totalSize; |
2212 } | 2293 } |
2213 return _json; | 2294 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
2225 | 2306 |
2226 ListLocationsResponse.fromJson(core.Map _json) { | 2307 ListLocationsResponse.fromJson(core.Map _json) { |
2227 if (_json.containsKey("locations")) { | 2308 if (_json.containsKey("locations")) { |
2228 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); | 2309 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); |
2229 } | 2310 } |
2230 if (_json.containsKey("nextPageToken")) { | 2311 if (_json.containsKey("nextPageToken")) { |
2231 nextPageToken = _json["nextPageToken"]; | 2312 nextPageToken = _json["nextPageToken"]; |
2232 } | 2313 } |
2233 } | 2314 } |
2234 | 2315 |
2235 core.Map toJson() { | 2316 core.Map<core.String, core.Object> toJson() { |
2236 var _json = new core.Map(); | 2317 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2237 if (locations != null) { | 2318 if (locations != null) { |
2238 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 2319 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
2239 } | 2320 } |
2240 if (nextPageToken != null) { | 2321 if (nextPageToken != null) { |
2241 _json["nextPageToken"] = nextPageToken; | 2322 _json["nextPageToken"] = nextPageToken; |
2242 } | 2323 } |
2243 return _json; | 2324 return _json; |
2244 } | 2325 } |
2245 } | 2326 } |
2246 | 2327 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2278 locationId = _json["locationId"]; | 2359 locationId = _json["locationId"]; |
2279 } | 2360 } |
2280 if (_json.containsKey("metadata")) { | 2361 if (_json.containsKey("metadata")) { |
2281 metadata = _json["metadata"]; | 2362 metadata = _json["metadata"]; |
2282 } | 2363 } |
2283 if (_json.containsKey("name")) { | 2364 if (_json.containsKey("name")) { |
2284 name = _json["name"]; | 2365 name = _json["name"]; |
2285 } | 2366 } |
2286 } | 2367 } |
2287 | 2368 |
2288 core.Map toJson() { | 2369 core.Map<core.String, core.Object> toJson() { |
2289 var _json = new core.Map(); | 2370 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2290 if (labels != null) { | 2371 if (labels != null) { |
2291 _json["labels"] = labels; | 2372 _json["labels"] = labels; |
2292 } | 2373 } |
2293 if (locationId != null) { | 2374 if (locationId != null) { |
2294 _json["locationId"] = locationId; | 2375 _json["locationId"] = locationId; |
2295 } | 2376 } |
2296 if (metadata != null) { | 2377 if (metadata != null) { |
2297 _json["metadata"] = metadata; | 2378 _json["metadata"] = metadata; |
2298 } | 2379 } |
2299 if (name != null) { | 2380 if (name != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
2319 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); | 2400 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); |
2320 } | 2401 } |
2321 if (_json.containsKey("counter")) { | 2402 if (_json.containsKey("counter")) { |
2322 counter = new CounterOptions.fromJson(_json["counter"]); | 2403 counter = new CounterOptions.fromJson(_json["counter"]); |
2323 } | 2404 } |
2324 if (_json.containsKey("dataAccess")) { | 2405 if (_json.containsKey("dataAccess")) { |
2325 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); | 2406 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); |
2326 } | 2407 } |
2327 } | 2408 } |
2328 | 2409 |
2329 core.Map toJson() { | 2410 core.Map<core.String, core.Object> toJson() { |
2330 var _json = new core.Map(); | 2411 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2331 if (cloudAudit != null) { | 2412 if (cloudAudit != null) { |
2332 _json["cloudAudit"] = (cloudAudit).toJson(); | 2413 _json["cloudAudit"] = (cloudAudit).toJson(); |
2333 } | 2414 } |
2334 if (counter != null) { | 2415 if (counter != null) { |
2335 _json["counter"] = (counter).toJson(); | 2416 _json["counter"] = (counter).toJson(); |
2336 } | 2417 } |
2337 if (dataAccess != null) { | 2418 if (dataAccess != null) { |
2338 _json["dataAccess"] = (dataAccess).toJson(); | 2419 _json["dataAccess"] = (dataAccess).toJson(); |
2339 } | 2420 } |
2340 return _json; | 2421 return _json; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 * } | 2453 * } |
2373 * | 2454 * |
2374 * For a description of IAM and its features, see the | 2455 * For a description of IAM and its features, see the |
2375 * [IAM developer's guide](https://cloud.google.com/iam). | 2456 * [IAM developer's guide](https://cloud.google.com/iam). |
2376 */ | 2457 */ |
2377 class Policy { | 2458 class Policy { |
2378 /** Specifies cloud audit logging configuration for this policy. */ | 2459 /** Specifies cloud audit logging configuration for this policy. */ |
2379 core.List<AuditConfig> auditConfigs; | 2460 core.List<AuditConfig> auditConfigs; |
2380 /** | 2461 /** |
2381 * Associates a list of `members` to a `role`. | 2462 * Associates a list of `members` to a `role`. |
2382 * Multiple `bindings` must not be specified for the same `role`. | |
2383 * `bindings` with no members will result in an error. | 2463 * `bindings` with no members will result in an error. |
2384 */ | 2464 */ |
2385 core.List<Binding> bindings; | 2465 core.List<Binding> bindings; |
2386 /** | 2466 /** |
2387 * `etag` is used for optimistic concurrency control as a way to help | 2467 * `etag` is used for optimistic concurrency control as a way to help |
2388 * prevent simultaneous updates of a policy from overwriting each other. | 2468 * prevent simultaneous updates of a policy from overwriting each other. |
2389 * It is strongly suggested that systems make use of the `etag` in the | 2469 * It is strongly suggested that systems make use of the `etag` in the |
2390 * read-modify-write cycle to perform policy updates in order to avoid race | 2470 * read-modify-write cycle to perform policy updates in order to avoid race |
2391 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 2471 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
2392 * systems are expected to put that etag in the request to `setIamPolicy` to | 2472 * systems are expected to put that etag in the request to `setIamPolicy` to |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2435 iamOwned = _json["iamOwned"]; | 2515 iamOwned = _json["iamOwned"]; |
2436 } | 2516 } |
2437 if (_json.containsKey("rules")) { | 2517 if (_json.containsKey("rules")) { |
2438 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); | 2518 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); |
2439 } | 2519 } |
2440 if (_json.containsKey("version")) { | 2520 if (_json.containsKey("version")) { |
2441 version = _json["version"]; | 2521 version = _json["version"]; |
2442 } | 2522 } |
2443 } | 2523 } |
2444 | 2524 |
2445 core.Map toJson() { | 2525 core.Map<core.String, core.Object> toJson() { |
2446 var _json = new core.Map(); | 2526 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2447 if (auditConfigs != null) { | 2527 if (auditConfigs != null) { |
2448 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); | 2528 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi
st(); |
2449 } | 2529 } |
2450 if (bindings != null) { | 2530 if (bindings != null) { |
2451 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); | 2531 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
2452 } | 2532 } |
2453 if (etag != null) { | 2533 if (etag != null) { |
2454 _json["etag"] = etag; | 2534 _json["etag"] = etag; |
2455 } | 2535 } |
2456 if (iamOwned != null) { | 2536 if (iamOwned != null) { |
(...skipping 10 matching lines...) Expand all Loading... |
2467 } | 2547 } |
2468 | 2548 |
2469 /** Request message for KeyManagementService.RestoreCryptoKeyVersion. */ | 2549 /** Request message for KeyManagementService.RestoreCryptoKeyVersion. */ |
2470 class RestoreCryptoKeyVersionRequest { | 2550 class RestoreCryptoKeyVersionRequest { |
2471 | 2551 |
2472 RestoreCryptoKeyVersionRequest(); | 2552 RestoreCryptoKeyVersionRequest(); |
2473 | 2553 |
2474 RestoreCryptoKeyVersionRequest.fromJson(core.Map _json) { | 2554 RestoreCryptoKeyVersionRequest.fromJson(core.Map _json) { |
2475 } | 2555 } |
2476 | 2556 |
2477 core.Map toJson() { | 2557 core.Map<core.String, core.Object> toJson() { |
2478 var _json = new core.Map(); | 2558 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2479 return _json; | 2559 return _json; |
2480 } | 2560 } |
2481 } | 2561 } |
2482 | 2562 |
2483 /** A rule to be applied in a Policy. */ | 2563 /** A rule to be applied in a Policy. */ |
2484 class Rule { | 2564 class Rule { |
2485 /** | 2565 /** |
2486 * Required | 2566 * Required |
2487 * Possible string values are: | 2567 * Possible string values are: |
2488 * - "NO_ACTION" : Default no action. | 2568 * - "NO_ACTION" : Default no action. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2544 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value
)).toList(); | 2624 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value
)).toList(); |
2545 } | 2625 } |
2546 if (_json.containsKey("notIn")) { | 2626 if (_json.containsKey("notIn")) { |
2547 notIn = _json["notIn"]; | 2627 notIn = _json["notIn"]; |
2548 } | 2628 } |
2549 if (_json.containsKey("permissions")) { | 2629 if (_json.containsKey("permissions")) { |
2550 permissions = _json["permissions"]; | 2630 permissions = _json["permissions"]; |
2551 } | 2631 } |
2552 } | 2632 } |
2553 | 2633 |
2554 core.Map toJson() { | 2634 core.Map<core.String, core.Object> toJson() { |
2555 var _json = new core.Map(); | 2635 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2556 if (action != null) { | 2636 if (action != null) { |
2557 _json["action"] = action; | 2637 _json["action"] = action; |
2558 } | 2638 } |
2559 if (conditions != null) { | 2639 if (conditions != null) { |
2560 _json["conditions"] = conditions.map((value) => (value).toJson()).toList()
; | 2640 _json["conditions"] = conditions.map((value) => (value).toJson()).toList()
; |
2561 } | 2641 } |
2562 if (description != null) { | 2642 if (description != null) { |
2563 _json["description"] = description; | 2643 _json["description"] = description; |
2564 } | 2644 } |
2565 if (in_ != null) { | 2645 if (in_ != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 | 2680 |
2601 SetIamPolicyRequest.fromJson(core.Map _json) { | 2681 SetIamPolicyRequest.fromJson(core.Map _json) { |
2602 if (_json.containsKey("policy")) { | 2682 if (_json.containsKey("policy")) { |
2603 policy = new Policy.fromJson(_json["policy"]); | 2683 policy = new Policy.fromJson(_json["policy"]); |
2604 } | 2684 } |
2605 if (_json.containsKey("updateMask")) { | 2685 if (_json.containsKey("updateMask")) { |
2606 updateMask = _json["updateMask"]; | 2686 updateMask = _json["updateMask"]; |
2607 } | 2687 } |
2608 } | 2688 } |
2609 | 2689 |
2610 core.Map toJson() { | 2690 core.Map<core.String, core.Object> toJson() { |
2611 var _json = new core.Map(); | 2691 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2612 if (policy != null) { | 2692 if (policy != null) { |
2613 _json["policy"] = (policy).toJson(); | 2693 _json["policy"] = (policy).toJson(); |
2614 } | 2694 } |
2615 if (updateMask != null) { | 2695 if (updateMask != null) { |
2616 _json["updateMask"] = updateMask; | 2696 _json["updateMask"] = updateMask; |
2617 } | 2697 } |
2618 return _json; | 2698 return _json; |
2619 } | 2699 } |
2620 } | 2700 } |
2621 | 2701 |
2622 /** Request message for `TestIamPermissions` method. */ | 2702 /** Request message for `TestIamPermissions` method. */ |
2623 class TestIamPermissionsRequest { | 2703 class TestIamPermissionsRequest { |
2624 /** | 2704 /** |
2625 * The set of permissions to check for the `resource`. Permissions with | 2705 * The set of permissions to check for the `resource`. Permissions with |
2626 * wildcards (such as '*' or 'storage.*') are not allowed. For more | 2706 * wildcards (such as '*' or 'storage.*') are not allowed. For more |
2627 * information see | 2707 * information see |
2628 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). | 2708 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
2629 */ | 2709 */ |
2630 core.List<core.String> permissions; | 2710 core.List<core.String> permissions; |
2631 | 2711 |
2632 TestIamPermissionsRequest(); | 2712 TestIamPermissionsRequest(); |
2633 | 2713 |
2634 TestIamPermissionsRequest.fromJson(core.Map _json) { | 2714 TestIamPermissionsRequest.fromJson(core.Map _json) { |
2635 if (_json.containsKey("permissions")) { | 2715 if (_json.containsKey("permissions")) { |
2636 permissions = _json["permissions"]; | 2716 permissions = _json["permissions"]; |
2637 } | 2717 } |
2638 } | 2718 } |
2639 | 2719 |
2640 core.Map toJson() { | 2720 core.Map<core.String, core.Object> toJson() { |
2641 var _json = new core.Map(); | 2721 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2642 if (permissions != null) { | 2722 if (permissions != null) { |
2643 _json["permissions"] = permissions; | 2723 _json["permissions"] = permissions; |
2644 } | 2724 } |
2645 return _json; | 2725 return _json; |
2646 } | 2726 } |
2647 } | 2727 } |
2648 | 2728 |
2649 /** Response message for `TestIamPermissions` method. */ | 2729 /** Response message for `TestIamPermissions` method. */ |
2650 class TestIamPermissionsResponse { | 2730 class TestIamPermissionsResponse { |
2651 /** | 2731 /** |
2652 * A subset of `TestPermissionsRequest.permissions` that the caller is | 2732 * A subset of `TestPermissionsRequest.permissions` that the caller is |
2653 * allowed. | 2733 * allowed. |
2654 */ | 2734 */ |
2655 core.List<core.String> permissions; | 2735 core.List<core.String> permissions; |
2656 | 2736 |
2657 TestIamPermissionsResponse(); | 2737 TestIamPermissionsResponse(); |
2658 | 2738 |
2659 TestIamPermissionsResponse.fromJson(core.Map _json) { | 2739 TestIamPermissionsResponse.fromJson(core.Map _json) { |
2660 if (_json.containsKey("permissions")) { | 2740 if (_json.containsKey("permissions")) { |
2661 permissions = _json["permissions"]; | 2741 permissions = _json["permissions"]; |
2662 } | 2742 } |
2663 } | 2743 } |
2664 | 2744 |
2665 core.Map toJson() { | 2745 core.Map<core.String, core.Object> toJson() { |
2666 var _json = new core.Map(); | 2746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2667 if (permissions != null) { | 2747 if (permissions != null) { |
2668 _json["permissions"] = permissions; | 2748 _json["permissions"] = permissions; |
2669 } | 2749 } |
2670 return _json; | 2750 return _json; |
2671 } | 2751 } |
2672 } | 2752 } |
2673 | 2753 |
2674 /** Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion. */ | 2754 /** Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion. */ |
2675 class UpdateCryptoKeyPrimaryVersionRequest { | 2755 class UpdateCryptoKeyPrimaryVersionRequest { |
2676 /** The id of the child CryptoKeyVersion to use as primary. */ | 2756 /** The id of the child CryptoKeyVersion to use as primary. */ |
2677 core.String cryptoKeyVersionId; | 2757 core.String cryptoKeyVersionId; |
2678 | 2758 |
2679 UpdateCryptoKeyPrimaryVersionRequest(); | 2759 UpdateCryptoKeyPrimaryVersionRequest(); |
2680 | 2760 |
2681 UpdateCryptoKeyPrimaryVersionRequest.fromJson(core.Map _json) { | 2761 UpdateCryptoKeyPrimaryVersionRequest.fromJson(core.Map _json) { |
2682 if (_json.containsKey("cryptoKeyVersionId")) { | 2762 if (_json.containsKey("cryptoKeyVersionId")) { |
2683 cryptoKeyVersionId = _json["cryptoKeyVersionId"]; | 2763 cryptoKeyVersionId = _json["cryptoKeyVersionId"]; |
2684 } | 2764 } |
2685 } | 2765 } |
2686 | 2766 |
2687 core.Map toJson() { | 2767 core.Map<core.String, core.Object> toJson() { |
2688 var _json = new core.Map(); | 2768 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2689 if (cryptoKeyVersionId != null) { | 2769 if (cryptoKeyVersionId != null) { |
2690 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; | 2770 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; |
2691 } | 2771 } |
2692 return _json; | 2772 return _json; |
2693 } | 2773 } |
2694 } | 2774 } |
OLD | NEW |