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.iam.v1; | 3 library googleapis.iam.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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 * } | 1155 * } |
1156 * ] | 1156 * ] |
1157 * } | 1157 * } |
1158 * | 1158 * |
1159 * For a description of IAM and its features, see the | 1159 * For a description of IAM and its features, see the |
1160 * [IAM developer's guide](https://cloud.google.com/iam). | 1160 * [IAM developer's guide](https://cloud.google.com/iam). |
1161 */ | 1161 */ |
1162 class Policy { | 1162 class Policy { |
1163 /** | 1163 /** |
1164 * Associates a list of `members` to a `role`. | 1164 * Associates a list of `members` to a `role`. |
1165 * Multiple `bindings` must not be specified for the same `role`. | |
1166 * `bindings` with no members will result in an error. | 1165 * `bindings` with no members will result in an error. |
1167 */ | 1166 */ |
1168 core.List<Binding> bindings; | 1167 core.List<Binding> bindings; |
1169 /** | 1168 /** |
1170 * `etag` is used for optimistic concurrency control as a way to help | 1169 * `etag` is used for optimistic concurrency control as a way to help |
1171 * prevent simultaneous updates of a policy from overwriting each other. | 1170 * prevent simultaneous updates of a policy from overwriting each other. |
1172 * It is strongly suggested that systems make use of the `etag` in the | 1171 * It is strongly suggested that systems make use of the `etag` in the |
1173 * read-modify-write cycle to perform policy updates in order to avoid race | 1172 * read-modify-write cycle to perform policy updates in order to avoid race |
1174 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 1173 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
1175 * systems are expected to put that etag in the request to `setIamPolicy` to | 1174 * systems are expected to put that etag in the request to `setIamPolicy` to |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1508 * - "KEY_ALG_RSA_2048" : 2k RSA Key. | 1507 * - "KEY_ALG_RSA_2048" : 2k RSA Key. |
1509 */ | 1508 */ |
1510 core.String keyAlgorithm; | 1509 core.String keyAlgorithm; |
1511 /** | 1510 /** |
1512 * The resource name of the service account key in the following format | 1511 * The resource name of the service account key in the following format |
1513 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`. | 1512 * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`. |
1514 */ | 1513 */ |
1515 core.String name; | 1514 core.String name; |
1516 /** | 1515 /** |
1517 * The private key data. Only provided in `CreateServiceAccountKey` | 1516 * The private key data. Only provided in `CreateServiceAccountKey` |
1518 * responses. | 1517 * responses. Make sure to keep the private key data secure because it |
| 1518 * allows for the assertion of the service account identity. |
1519 */ | 1519 */ |
1520 core.String privateKeyData; | 1520 core.String privateKeyData; |
1521 core.List<core.int> get privateKeyDataAsBytes { | 1521 core.List<core.int> get privateKeyDataAsBytes { |
1522 return convert.BASE64.decode(privateKeyData); | 1522 return convert.BASE64.decode(privateKeyData); |
1523 } | 1523 } |
1524 | 1524 |
1525 void set privateKeyDataAsBytes(core.List<core.int> _bytes) { | 1525 void set privateKeyDataAsBytes(core.List<core.int> _bytes) { |
1526 privateKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceA
ll("+", "-"); | 1526 privateKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceA
ll("+", "-"); |
1527 } | 1527 } |
1528 /** | 1528 /** |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 } | 1799 } |
1800 | 1800 |
1801 core.Map<core.String, core.Object> toJson() { | 1801 core.Map<core.String, core.Object> toJson() { |
1802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1803 if (permissions != null) { | 1803 if (permissions != null) { |
1804 _json["permissions"] = permissions; | 1804 _json["permissions"] = permissions; |
1805 } | 1805 } |
1806 return _json; | 1806 return _json; |
1807 } | 1807 } |
1808 } | 1808 } |
OLD | NEW |