| 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_beta.cloudresourcemanager.v1beta1; | 3 library googleapis_beta.cloudresourcemanager.v1beta1; |
| 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:crypto/crypto.dart' as crypto; | |
| 11 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 12 | 11 |
| 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 15 | 14 |
| 16 const core.String USER_AGENT = 'dart-api-client cloudresourcemanager/v1beta1'; | 15 const core.String USER_AGENT = 'dart-api-client cloudresourcemanager/v1beta1'; |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * The Google Cloud Resource Manager API provides methods for creating, reading, | 18 * The Google Cloud Resource Manager API provides methods for creating, reading, |
| 20 * and updating project metadata. | 19 * and updating project metadata. |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 * strongly suggested that systems make use of the `etag` in the | 1183 * strongly suggested that systems make use of the `etag` in the |
| 1185 * read-modify-write cycle to perform policy updates in order to avoid race | 1184 * read-modify-write cycle to perform policy updates in order to avoid race |
| 1186 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 1185 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 1187 * systems are expected to put that etag in the request to `setIamPolicy` to | 1186 * systems are expected to put that etag in the request to `setIamPolicy` to |
| 1188 * ensure that their change will be applied to the same version of the policy. | 1187 * ensure that their change will be applied to the same version of the policy. |
| 1189 * If no `etag` is provided in the call to `setIamPolicy`, then the existing | 1188 * If no `etag` is provided in the call to `setIamPolicy`, then the existing |
| 1190 * policy is overwritten blindly. | 1189 * policy is overwritten blindly. |
| 1191 */ | 1190 */ |
| 1192 core.String etag; | 1191 core.String etag; |
| 1193 core.List<core.int> get etagAsBytes { | 1192 core.List<core.int> get etagAsBytes { |
| 1194 return crypto.CryptoUtils.base64StringToBytes(etag); | 1193 return convert.BASE64.decode(etag); |
| 1195 } | 1194 } |
| 1196 | 1195 |
| 1197 void set etagAsBytes(core.List<core.int> _bytes) { | 1196 void set etagAsBytes(core.List<core.int> _bytes) { |
| 1198 etag = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 1197 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
| 1199 } | 1198 } |
| 1200 /** Version of the `Policy`. The default version is 0. */ | 1199 /** Version of the `Policy`. The default version is 0. */ |
| 1201 core.int version; | 1200 core.int version; |
| 1202 | 1201 |
| 1203 Policy(); | 1202 Policy(); |
| 1204 | 1203 |
| 1205 Policy.fromJson(core.Map _json) { | 1204 Policy.fromJson(core.Map _json) { |
| 1206 if (_json.containsKey("bindings")) { | 1205 if (_json.containsKey("bindings")) { |
| 1207 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); | 1206 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); |
| 1208 } | 1207 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 UndeleteProjectRequest(); | 1456 UndeleteProjectRequest(); |
| 1458 | 1457 |
| 1459 UndeleteProjectRequest.fromJson(core.Map _json) { | 1458 UndeleteProjectRequest.fromJson(core.Map _json) { |
| 1460 } | 1459 } |
| 1461 | 1460 |
| 1462 core.Map toJson() { | 1461 core.Map toJson() { |
| 1463 var _json = new core.Map(); | 1462 var _json = new core.Map(); |
| 1464 return _json; | 1463 return _json; |
| 1465 } | 1464 } |
| 1466 } | 1465 } |
| OLD | NEW |