| 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.replicapool.v1beta2; | 3 library googleapis_beta.replicapool.v1beta2; |
| 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 replicapool/v1beta2'; | 15 const core.String USER_AGENT = 'dart-api-client replicapool/v1beta2'; |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * [Deprecated. Please use Instance Group Manager in Compute API] Provides | 18 * [Deprecated. Please use Instance Group Manager in Compute API] Provides |
| 20 * groups of homogenous Compute Engine instances. | 19 * groups of homogenous Compute Engine instances. |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 core.int currentSize; | 802 core.int currentSize; |
| 804 /** An optional textual description of the instance group manager. */ | 803 /** An optional textual description of the instance group manager. */ |
| 805 core.String description; | 804 core.String description; |
| 806 /** | 805 /** |
| 807 * [Output only] Fingerprint of the instance group manager. This field is used | 806 * [Output only] Fingerprint of the instance group manager. This field is used |
| 808 * for optimistic locking. An up-to-date fingerprint must be provided in order | 807 * for optimistic locking. An up-to-date fingerprint must be provided in order |
| 809 * to modify the Instance Group Manager resource. | 808 * to modify the Instance Group Manager resource. |
| 810 */ | 809 */ |
| 811 core.String fingerprint; | 810 core.String fingerprint; |
| 812 core.List<core.int> get fingerprintAsBytes { | 811 core.List<core.int> get fingerprintAsBytes { |
| 813 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | 812 return convert.BASE64.decode(fingerprint); |
| 814 } | 813 } |
| 815 | 814 |
| 816 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 815 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 817 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 816 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll(
"+", "-"); |
| 818 } | 817 } |
| 819 /** | 818 /** |
| 820 * [Output only] The full URL of the instance group created by the manager. | 819 * [Output only] The full URL of the instance group created by the manager. |
| 821 * This group contains all of the instances being managed, and cannot contain | 820 * This group contains all of the instances being managed, and cannot contain |
| 822 * non-managed instances. | 821 * non-managed instances. |
| 823 */ | 822 */ |
| 824 core.String group; | 823 core.String group; |
| 825 /** [Output only] A server-assigned unique identifier for the resource. */ | 824 /** [Output only] A server-assigned unique identifier for the resource. */ |
| 826 core.String id; | 825 core.String id; |
| 827 /** | 826 /** |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 } | 1100 } |
| 1102 | 1101 |
| 1103 class InstanceGroupManagersSetTargetPoolsRequest { | 1102 class InstanceGroupManagersSetTargetPoolsRequest { |
| 1104 /** | 1103 /** |
| 1105 * The current fingerprint of the Instance Group Manager resource. If this | 1104 * The current fingerprint of the Instance Group Manager resource. If this |
| 1106 * does not match the server-side fingerprint of the resource, then the | 1105 * does not match the server-side fingerprint of the resource, then the |
| 1107 * request will be rejected. | 1106 * request will be rejected. |
| 1108 */ | 1107 */ |
| 1109 core.String fingerprint; | 1108 core.String fingerprint; |
| 1110 core.List<core.int> get fingerprintAsBytes { | 1109 core.List<core.int> get fingerprintAsBytes { |
| 1111 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | 1110 return convert.BASE64.decode(fingerprint); |
| 1112 } | 1111 } |
| 1113 | 1112 |
| 1114 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 1113 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 1115 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 1114 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll(
"+", "-"); |
| 1116 } | 1115 } |
| 1117 /** | 1116 /** |
| 1118 * A list of fully-qualified URLs to existing Target Pool resources. New | 1117 * A list of fully-qualified URLs to existing Target Pool resources. New |
| 1119 * instances in the Instance Group Manager will be added to the specified | 1118 * instances in the Instance Group Manager will be added to the specified |
| 1120 * target pools; existing instances are not affected. | 1119 * target pools; existing instances are not affected. |
| 1121 */ | 1120 */ |
| 1122 core.List<core.String> targetPools; | 1121 core.List<core.String> targetPools; |
| 1123 | 1122 |
| 1124 InstanceGroupManagersSetTargetPoolsRequest(); | 1123 InstanceGroupManagersSetTargetPoolsRequest(); |
| 1125 | 1124 |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 var _json = new core.Map(); | 1622 var _json = new core.Map(); |
| 1624 if (actionType != null) { | 1623 if (actionType != null) { |
| 1625 _json["actionType"] = actionType; | 1624 _json["actionType"] = actionType; |
| 1626 } | 1625 } |
| 1627 if (healthCheck != null) { | 1626 if (healthCheck != null) { |
| 1628 _json["healthCheck"] = healthCheck; | 1627 _json["healthCheck"] = healthCheck; |
| 1629 } | 1628 } |
| 1630 return _json; | 1629 return _json; |
| 1631 } | 1630 } |
| 1632 } | 1631 } |
| OLD | NEW |