| 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: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' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client replicapool/v1beta2'; | 15 const core.String USER_AGENT = 'dart-api-client replicapool/v1beta2'; |
| 16 | 16 |
| 17 /** | 17 /// [Deprecated. Please use Instance Group Manager in Compute API] Provides |
| 18 * [Deprecated. Please use Instance Group Manager in Compute API] Provides | 18 /// groups of homogenous Compute Engine instances. |
| 19 * groups of homogenous Compute Engine instances. | |
| 20 */ | |
| 21 class ReplicapoolApi { | 19 class ReplicapoolApi { |
| 22 /** View and manage your data across Google Cloud Platform services */ | 20 /// View and manage your data across Google Cloud Platform services |
| 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 21 static const CloudPlatformScope = |
| 22 "https://www.googleapis.com/auth/cloud-platform"; |
| 24 | 23 |
| 25 /** View your data across Google Cloud Platform services */ | 24 /// View your data across Google Cloud Platform services |
| 26 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 25 static const CloudPlatformReadOnlyScope = |
| 26 "https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 27 | 27 |
| 28 /** View and manage your Google Compute Engine resources */ | 28 /// View and manage your Google Compute Engine resources |
| 29 static const ComputeScope = "https://www.googleapis.com/auth/compute"; | 29 static const ComputeScope = "https://www.googleapis.com/auth/compute"; |
| 30 | 30 |
| 31 /** View your Google Compute Engine resources */ | 31 /// View your Google Compute Engine resources |
| 32 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; | 32 static const ComputeReadonlyScope = |
| 33 | 33 "https://www.googleapis.com/auth/compute.readonly"; |
| 34 | 34 |
| 35 final commons.ApiRequester _requester; | 35 final commons.ApiRequester _requester; |
| 36 | 36 |
| 37 InstanceGroupManagersResourceApi get instanceGroupManagers => new InstanceGrou
pManagersResourceApi(_requester); | 37 InstanceGroupManagersResourceApi get instanceGroupManagers => |
| 38 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 38 new InstanceGroupManagersResourceApi(_requester); |
| 39 ZoneOperationsResourceApi get zoneOperations => |
| 40 new ZoneOperationsResourceApi(_requester); |
| 39 | 41 |
| 40 ReplicapoolApi(http.Client client, {core.String rootUrl: "https://www.googleap
is.com/", core.String servicePath: "replicapool/v1beta2/projects/"}) : | 42 ReplicapoolApi(http.Client client, |
| 41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 43 {core.String rootUrl: "https://www.googleapis.com/", |
| 44 core.String servicePath: "replicapool/v1beta2/projects/"}) |
| 45 : _requester = |
| 46 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 42 } | 47 } |
| 43 | 48 |
| 44 | |
| 45 class InstanceGroupManagersResourceApi { | 49 class InstanceGroupManagersResourceApi { |
| 46 final commons.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
| 47 | 51 |
| 48 InstanceGroupManagersResourceApi(commons.ApiRequester client) : | 52 InstanceGroupManagersResourceApi(commons.ApiRequester client) |
| 49 _requester = client; | 53 : _requester = client; |
| 50 | 54 |
| 51 /** | 55 /// Removes the specified instances from the managed instance group, and from |
| 52 * Removes the specified instances from the managed instance group, and from | 56 /// any target pools of which they were members, without deleting the |
| 53 * any target pools of which they were members, without deleting the | 57 /// instances. |
| 54 * instances. | 58 /// |
| 55 * | 59 /// [request] - The metadata request object. |
| 56 * [request] - The metadata request object. | 60 /// |
| 57 * | 61 /// Request parameters: |
| 58 * Request parameters: | 62 /// |
| 59 * | 63 /// [project] - The Google Developers Console project name. |
| 60 * [project] - The Google Developers Console project name. | 64 /// Value must have pattern |
| 61 * Value must have pattern | 65 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 62 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 66 /// |
| 63 * | 67 /// [zone] - The name of the zone in which the instance group manager |
| 64 * [zone] - The name of the zone in which the instance group manager resides. | 68 /// resides. |
| 65 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 69 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 66 * | 70 /// |
| 67 * [instanceGroupManager] - The name of the instance group manager. | 71 /// [instanceGroupManager] - The name of the instance group manager. |
| 68 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 72 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 69 * | 73 /// |
| 70 * Completes with a [Operation]. | 74 /// Completes with a [Operation]. |
| 71 * | 75 /// |
| 72 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 76 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 73 * error. | 77 /// an error. |
| 74 * | 78 /// |
| 75 * If the used [http.Client] completes with an error when making a REST call, | 79 /// If the used [http.Client] completes with an error when making a REST |
| 76 * this method will complete with the same error. | 80 /// call, this method will complete with the same error. |
| 77 */ | 81 async.Future<Operation> abandonInstances( |
| 78 async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstances
Request request, core.String project, core.String zone, core.String instanceGrou
pManager) { | 82 InstanceGroupManagersAbandonInstancesRequest request, |
| 83 core.String project, |
| 84 core.String zone, |
| 85 core.String instanceGroupManager) { |
| 79 var _url = null; | 86 var _url = null; |
| 80 var _queryParams = new core.Map(); | 87 var _queryParams = new core.Map(); |
| 81 var _uploadMedia = null; | 88 var _uploadMedia = null; |
| 82 var _uploadOptions = null; | 89 var _uploadOptions = null; |
| 83 var _downloadOptions = commons.DownloadOptions.Metadata; | 90 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 84 var _body = null; | 91 var _body = null; |
| 85 | 92 |
| 86 if (request != null) { | 93 if (request != null) { |
| 87 _body = convert.JSON.encode((request).toJson()); | 94 _body = convert.JSON.encode((request).toJson()); |
| 88 } | 95 } |
| 89 if (project == null) { | 96 if (project == null) { |
| 90 throw new core.ArgumentError("Parameter project is required."); | 97 throw new core.ArgumentError("Parameter project is required."); |
| 91 } | 98 } |
| 92 if (zone == null) { | 99 if (zone == null) { |
| 93 throw new core.ArgumentError("Parameter zone is required."); | 100 throw new core.ArgumentError("Parameter zone is required."); |
| 94 } | 101 } |
| 95 if (instanceGroupManager == null) { | 102 if (instanceGroupManager == null) { |
| 96 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 103 throw new core.ArgumentError( |
| 104 "Parameter instanceGroupManager is required."); |
| 97 } | 105 } |
| 98 | 106 |
| 99 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/abandonInstances'; | 107 _url = commons.Escaper.ecapeVariable('$project') + |
| 108 '/zones/' + |
| 109 commons.Escaper.ecapeVariable('$zone') + |
| 110 '/instanceGroupManagers/' + |
| 111 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 112 '/abandonInstances'; |
| 100 | 113 |
| 101 var _response = _requester.request(_url, | 114 var _response = _requester.request(_url, "POST", |
| 102 "POST", | 115 body: _body, |
| 103 body: _body, | 116 queryParams: _queryParams, |
| 104 queryParams: _queryParams, | 117 uploadOptions: _uploadOptions, |
| 105 uploadOptions: _uploadOptions, | 118 uploadMedia: _uploadMedia, |
| 106 uploadMedia: _uploadMedia, | 119 downloadOptions: _downloadOptions); |
| 107 downloadOptions: _downloadOptions); | |
| 108 return _response.then((data) => new Operation.fromJson(data)); | 120 return _response.then((data) => new Operation.fromJson(data)); |
| 109 } | 121 } |
| 110 | 122 |
| 111 /** | 123 /// Deletes the instance group manager and all instances contained within. If |
| 112 * Deletes the instance group manager and all instances contained within. If | 124 /// you'd like to delete the manager without deleting the instances, you must |
| 113 * you'd like to delete the manager without deleting the instances, you must | 125 /// first abandon the instances to remove them from the group. |
| 114 * first abandon the instances to remove them from the group. | 126 /// |
| 115 * | 127 /// Request parameters: |
| 116 * Request parameters: | 128 /// |
| 117 * | 129 /// [project] - The Google Developers Console project name. |
| 118 * [project] - The Google Developers Console project name. | 130 /// Value must have pattern |
| 119 * Value must have pattern | 131 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 120 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 132 /// |
| 121 * | 133 /// [zone] - The name of the zone in which the instance group manager |
| 122 * [zone] - The name of the zone in which the instance group manager resides. | 134 /// resides. |
| 123 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 135 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 124 * | 136 /// |
| 125 * [instanceGroupManager] - Name of the Instance Group Manager resource to | 137 /// [instanceGroupManager] - Name of the Instance Group Manager resource to |
| 126 * delete. | 138 /// delete. |
| 127 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 139 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 128 * | 140 /// |
| 129 * Completes with a [Operation]. | 141 /// Completes with a [Operation]. |
| 130 * | 142 /// |
| 131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 143 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 132 * error. | 144 /// an error. |
| 133 * | 145 /// |
| 134 * If the used [http.Client] completes with an error when making a REST call, | 146 /// If the used [http.Client] completes with an error when making a REST |
| 135 * this method will complete with the same error. | 147 /// call, this method will complete with the same error. |
| 136 */ | 148 async.Future<Operation> delete( |
| 137 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing instanceGroupManager) { | 149 core.String project, core.String zone, core.String instanceGroupManager) { |
| 138 var _url = null; | 150 var _url = null; |
| 139 var _queryParams = new core.Map(); | 151 var _queryParams = new core.Map(); |
| 140 var _uploadMedia = null; | 152 var _uploadMedia = null; |
| 141 var _uploadOptions = null; | 153 var _uploadOptions = null; |
| 142 var _downloadOptions = commons.DownloadOptions.Metadata; | 154 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 143 var _body = null; | 155 var _body = null; |
| 144 | 156 |
| 145 if (project == null) { | 157 if (project == null) { |
| 146 throw new core.ArgumentError("Parameter project is required."); | 158 throw new core.ArgumentError("Parameter project is required."); |
| 147 } | 159 } |
| 148 if (zone == null) { | 160 if (zone == null) { |
| 149 throw new core.ArgumentError("Parameter zone is required."); | 161 throw new core.ArgumentError("Parameter zone is required."); |
| 150 } | 162 } |
| 151 if (instanceGroupManager == null) { | 163 if (instanceGroupManager == null) { |
| 152 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 164 throw new core.ArgumentError( |
| 165 "Parameter instanceGroupManager is required."); |
| 153 } | 166 } |
| 154 | 167 |
| 155 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager'); | 168 _url = commons.Escaper.ecapeVariable('$project') + |
| 169 '/zones/' + |
| 170 commons.Escaper.ecapeVariable('$zone') + |
| 171 '/instanceGroupManagers/' + |
| 172 commons.Escaper.ecapeVariable('$instanceGroupManager'); |
| 156 | 173 |
| 157 var _response = _requester.request(_url, | 174 var _response = _requester.request(_url, "DELETE", |
| 158 "DELETE", | 175 body: _body, |
| 159 body: _body, | 176 queryParams: _queryParams, |
| 160 queryParams: _queryParams, | 177 uploadOptions: _uploadOptions, |
| 161 uploadOptions: _uploadOptions, | 178 uploadMedia: _uploadMedia, |
| 162 uploadMedia: _uploadMedia, | 179 downloadOptions: _downloadOptions); |
| 163 downloadOptions: _downloadOptions); | |
| 164 return _response.then((data) => new Operation.fromJson(data)); | 180 return _response.then((data) => new Operation.fromJson(data)); |
| 165 } | 181 } |
| 166 | 182 |
| 167 /** | 183 /// Deletes the specified instances. The instances are deleted, then removed |
| 168 * Deletes the specified instances. The instances are deleted, then removed | 184 /// from the instance group and any target pools of which they were a member. |
| 169 * from the instance group and any target pools of which they were a member. | 185 /// The targetSize of the instance group manager is reduced by the number of |
| 170 * The targetSize of the instance group manager is reduced by the number of | 186 /// instances deleted. |
| 171 * instances deleted. | 187 /// |
| 172 * | 188 /// [request] - The metadata request object. |
| 173 * [request] - The metadata request object. | 189 /// |
| 174 * | 190 /// Request parameters: |
| 175 * Request parameters: | 191 /// |
| 176 * | 192 /// [project] - The Google Developers Console project name. |
| 177 * [project] - The Google Developers Console project name. | 193 /// Value must have pattern |
| 178 * Value must have pattern | 194 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 179 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 195 /// |
| 180 * | 196 /// [zone] - The name of the zone in which the instance group manager |
| 181 * [zone] - The name of the zone in which the instance group manager resides. | 197 /// resides. |
| 182 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 198 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 183 * | 199 /// |
| 184 * [instanceGroupManager] - The name of the instance group manager. | 200 /// [instanceGroupManager] - The name of the instance group manager. |
| 185 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 201 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 186 * | 202 /// |
| 187 * Completes with a [Operation]. | 203 /// Completes with a [Operation]. |
| 188 * | 204 /// |
| 189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 205 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 190 * error. | 206 /// an error. |
| 191 * | 207 /// |
| 192 * If the used [http.Client] completes with an error when making a REST call, | 208 /// If the used [http.Client] completes with an error when making a REST |
| 193 * this method will complete with the same error. | 209 /// call, this method will complete with the same error. |
| 194 */ | 210 async.Future<Operation> deleteInstances( |
| 195 async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRe
quest request, core.String project, core.String zone, core.String instanceGroupM
anager) { | 211 InstanceGroupManagersDeleteInstancesRequest request, |
| 212 core.String project, |
| 213 core.String zone, |
| 214 core.String instanceGroupManager) { |
| 196 var _url = null; | 215 var _url = null; |
| 197 var _queryParams = new core.Map(); | 216 var _queryParams = new core.Map(); |
| 198 var _uploadMedia = null; | 217 var _uploadMedia = null; |
| 199 var _uploadOptions = null; | 218 var _uploadOptions = null; |
| 200 var _downloadOptions = commons.DownloadOptions.Metadata; | 219 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 201 var _body = null; | 220 var _body = null; |
| 202 | 221 |
| 203 if (request != null) { | 222 if (request != null) { |
| 204 _body = convert.JSON.encode((request).toJson()); | 223 _body = convert.JSON.encode((request).toJson()); |
| 205 } | 224 } |
| 206 if (project == null) { | 225 if (project == null) { |
| 207 throw new core.ArgumentError("Parameter project is required."); | 226 throw new core.ArgumentError("Parameter project is required."); |
| 208 } | 227 } |
| 209 if (zone == null) { | 228 if (zone == null) { |
| 210 throw new core.ArgumentError("Parameter zone is required."); | 229 throw new core.ArgumentError("Parameter zone is required."); |
| 211 } | 230 } |
| 212 if (instanceGroupManager == null) { | 231 if (instanceGroupManager == null) { |
| 213 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 232 throw new core.ArgumentError( |
| 233 "Parameter instanceGroupManager is required."); |
| 214 } | 234 } |
| 215 | 235 |
| 216 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/deleteInstances'; | 236 _url = commons.Escaper.ecapeVariable('$project') + |
| 237 '/zones/' + |
| 238 commons.Escaper.ecapeVariable('$zone') + |
| 239 '/instanceGroupManagers/' + |
| 240 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 241 '/deleteInstances'; |
| 217 | 242 |
| 218 var _response = _requester.request(_url, | 243 var _response = _requester.request(_url, "POST", |
| 219 "POST", | 244 body: _body, |
| 220 body: _body, | 245 queryParams: _queryParams, |
| 221 queryParams: _queryParams, | 246 uploadOptions: _uploadOptions, |
| 222 uploadOptions: _uploadOptions, | 247 uploadMedia: _uploadMedia, |
| 223 uploadMedia: _uploadMedia, | 248 downloadOptions: _downloadOptions); |
| 224 downloadOptions: _downloadOptions); | |
| 225 return _response.then((data) => new Operation.fromJson(data)); | 249 return _response.then((data) => new Operation.fromJson(data)); |
| 226 } | 250 } |
| 227 | 251 |
| 228 /** | 252 /// Returns the specified Instance Group Manager resource. |
| 229 * Returns the specified Instance Group Manager resource. | 253 /// |
| 230 * | 254 /// Request parameters: |
| 231 * Request parameters: | 255 /// |
| 232 * | 256 /// [project] - The Google Developers Console project name. |
| 233 * [project] - The Google Developers Console project name. | 257 /// Value must have pattern |
| 234 * Value must have pattern | 258 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 235 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 259 /// |
| 236 * | 260 /// [zone] - The name of the zone in which the instance group manager |
| 237 * [zone] - The name of the zone in which the instance group manager resides. | 261 /// resides. |
| 238 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 262 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 239 * | 263 /// |
| 240 * [instanceGroupManager] - Name of the instance resource to return. | 264 /// [instanceGroupManager] - Name of the instance resource to return. |
| 241 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 265 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 242 * | 266 /// |
| 243 * Completes with a [InstanceGroupManager]. | 267 /// Completes with a [InstanceGroupManager]. |
| 244 * | 268 /// |
| 245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 269 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 246 * error. | 270 /// an error. |
| 247 * | 271 /// |
| 248 * If the used [http.Client] completes with an error when making a REST call, | 272 /// If the used [http.Client] completes with an error when making a REST |
| 249 * this method will complete with the same error. | 273 /// call, this method will complete with the same error. |
| 250 */ | 274 async.Future<InstanceGroupManager> get( |
| 251 async.Future<InstanceGroupManager> get(core.String project, core.String zone,
core.String instanceGroupManager) { | 275 core.String project, core.String zone, core.String instanceGroupManager) { |
| 252 var _url = null; | 276 var _url = null; |
| 253 var _queryParams = new core.Map(); | 277 var _queryParams = new core.Map(); |
| 254 var _uploadMedia = null; | 278 var _uploadMedia = null; |
| 255 var _uploadOptions = null; | 279 var _uploadOptions = null; |
| 256 var _downloadOptions = commons.DownloadOptions.Metadata; | 280 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 257 var _body = null; | 281 var _body = null; |
| 258 | 282 |
| 259 if (project == null) { | 283 if (project == null) { |
| 260 throw new core.ArgumentError("Parameter project is required."); | 284 throw new core.ArgumentError("Parameter project is required."); |
| 261 } | 285 } |
| 262 if (zone == null) { | 286 if (zone == null) { |
| 263 throw new core.ArgumentError("Parameter zone is required."); | 287 throw new core.ArgumentError("Parameter zone is required."); |
| 264 } | 288 } |
| 265 if (instanceGroupManager == null) { | 289 if (instanceGroupManager == null) { |
| 266 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 290 throw new core.ArgumentError( |
| 291 "Parameter instanceGroupManager is required."); |
| 267 } | 292 } |
| 268 | 293 |
| 269 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager'); | 294 _url = commons.Escaper.ecapeVariable('$project') + |
| 295 '/zones/' + |
| 296 commons.Escaper.ecapeVariable('$zone') + |
| 297 '/instanceGroupManagers/' + |
| 298 commons.Escaper.ecapeVariable('$instanceGroupManager'); |
| 270 | 299 |
| 271 var _response = _requester.request(_url, | 300 var _response = _requester.request(_url, "GET", |
| 272 "GET", | 301 body: _body, |
| 273 body: _body, | 302 queryParams: _queryParams, |
| 274 queryParams: _queryParams, | 303 uploadOptions: _uploadOptions, |
| 275 uploadOptions: _uploadOptions, | 304 uploadMedia: _uploadMedia, |
| 276 uploadMedia: _uploadMedia, | 305 downloadOptions: _downloadOptions); |
| 277 downloadOptions: _downloadOptions); | |
| 278 return _response.then((data) => new InstanceGroupManager.fromJson(data)); | 306 return _response.then((data) => new InstanceGroupManager.fromJson(data)); |
| 279 } | 307 } |
| 280 | 308 |
| 281 /** | 309 /// Creates an instance group manager, as well as the instance group and the |
| 282 * Creates an instance group manager, as well as the instance group and the | 310 /// specified number of instances. |
| 283 * specified number of instances. | 311 /// |
| 284 * | 312 /// [request] - The metadata request object. |
| 285 * [request] - The metadata request object. | 313 /// |
| 286 * | 314 /// Request parameters: |
| 287 * Request parameters: | 315 /// |
| 288 * | 316 /// [project] - The Google Developers Console project name. |
| 289 * [project] - The Google Developers Console project name. | 317 /// Value must have pattern |
| 290 * Value must have pattern | 318 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 291 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 319 /// |
| 292 * | 320 /// [zone] - The name of the zone in which the instance group manager |
| 293 * [zone] - The name of the zone in which the instance group manager resides. | 321 /// resides. |
| 294 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 322 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 295 * | 323 /// |
| 296 * [size] - Number of instances that should exist. | 324 /// [size] - Number of instances that should exist. |
| 297 * | 325 /// |
| 298 * Completes with a [Operation]. | 326 /// Completes with a [Operation]. |
| 299 * | 327 /// |
| 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 328 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 301 * error. | 329 /// an error. |
| 302 * | 330 /// |
| 303 * If the used [http.Client] completes with an error when making a REST call, | 331 /// If the used [http.Client] completes with an error when making a REST |
| 304 * this method will complete with the same error. | 332 /// call, this method will complete with the same error. |
| 305 */ | 333 async.Future<Operation> insert(InstanceGroupManager request, |
| 306 async.Future<Operation> insert(InstanceGroupManager request, core.String proje
ct, core.String zone, core.int size) { | 334 core.String project, core.String zone, core.int size) { |
| 307 var _url = null; | 335 var _url = null; |
| 308 var _queryParams = new core.Map(); | 336 var _queryParams = new core.Map(); |
| 309 var _uploadMedia = null; | 337 var _uploadMedia = null; |
| 310 var _uploadOptions = null; | 338 var _uploadOptions = null; |
| 311 var _downloadOptions = commons.DownloadOptions.Metadata; | 339 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 312 var _body = null; | 340 var _body = null; |
| 313 | 341 |
| 314 if (request != null) { | 342 if (request != null) { |
| 315 _body = convert.JSON.encode((request).toJson()); | 343 _body = convert.JSON.encode((request).toJson()); |
| 316 } | 344 } |
| 317 if (project == null) { | 345 if (project == null) { |
| 318 throw new core.ArgumentError("Parameter project is required."); | 346 throw new core.ArgumentError("Parameter project is required."); |
| 319 } | 347 } |
| 320 if (zone == null) { | 348 if (zone == null) { |
| 321 throw new core.ArgumentError("Parameter zone is required."); | 349 throw new core.ArgumentError("Parameter zone is required."); |
| 322 } | 350 } |
| 323 if (size == null) { | 351 if (size == null) { |
| 324 throw new core.ArgumentError("Parameter size is required."); | 352 throw new core.ArgumentError("Parameter size is required."); |
| 325 } | 353 } |
| 326 _queryParams["size"] = ["${size}"]; | 354 _queryParams["size"] = ["${size}"]; |
| 327 | 355 |
| 328 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers'; | 356 _url = commons.Escaper.ecapeVariable('$project') + |
| 357 '/zones/' + |
| 358 commons.Escaper.ecapeVariable('$zone') + |
| 359 '/instanceGroupManagers'; |
| 329 | 360 |
| 330 var _response = _requester.request(_url, | 361 var _response = _requester.request(_url, "POST", |
| 331 "POST", | 362 body: _body, |
| 332 body: _body, | 363 queryParams: _queryParams, |
| 333 queryParams: _queryParams, | 364 uploadOptions: _uploadOptions, |
| 334 uploadOptions: _uploadOptions, | 365 uploadMedia: _uploadMedia, |
| 335 uploadMedia: _uploadMedia, | 366 downloadOptions: _downloadOptions); |
| 336 downloadOptions: _downloadOptions); | |
| 337 return _response.then((data) => new Operation.fromJson(data)); | 367 return _response.then((data) => new Operation.fromJson(data)); |
| 338 } | 368 } |
| 339 | 369 |
| 340 /** | 370 /// Retrieves the list of Instance Group Manager resources contained within |
| 341 * Retrieves the list of Instance Group Manager resources contained within the | 371 /// the specified zone. |
| 342 * specified zone. | 372 /// |
| 343 * | 373 /// Request parameters: |
| 344 * Request parameters: | 374 /// |
| 345 * | 375 /// [project] - The Google Developers Console project name. |
| 346 * [project] - The Google Developers Console project name. | 376 /// Value must have pattern |
| 347 * Value must have pattern | 377 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 348 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 378 /// |
| 349 * | 379 /// [zone] - The name of the zone in which the instance group manager |
| 350 * [zone] - The name of the zone in which the instance group manager resides. | 380 /// resides. |
| 351 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 381 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 352 * | 382 /// |
| 353 * [filter] - Optional. Filter expression for filtering listed resources. | 383 /// [filter] - Optional. Filter expression for filtering listed resources. |
| 354 * | 384 /// |
| 355 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 385 /// [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 356 * value is 500 and default value is 500. | 386 /// value is 500 and default value is 500. |
| 357 * Value must be between "0" and "500". | 387 /// Value must be between "0" and "500". |
| 358 * | 388 /// |
| 359 * [pageToken] - Optional. Tag returned by a previous list request truncated | 389 /// [pageToken] - Optional. Tag returned by a previous list request truncated |
| 360 * by maxResults. Used to continue a previous list request. | 390 /// by maxResults. Used to continue a previous list request. |
| 361 * | 391 /// |
| 362 * Completes with a [InstanceGroupManagerList]. | 392 /// Completes with a [InstanceGroupManagerList]. |
| 363 * | 393 /// |
| 364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 394 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 365 * error. | 395 /// an error. |
| 366 * | 396 /// |
| 367 * If the used [http.Client] completes with an error when making a REST call, | 397 /// If the used [http.Client] completes with an error when making a REST |
| 368 * this method will complete with the same error. | 398 /// call, this method will complete with the same error. |
| 369 */ | 399 async.Future<InstanceGroupManagerList> list( |
| 370 async.Future<InstanceGroupManagerList> list(core.String project, core.String z
one, {core.String filter, core.int maxResults, core.String pageToken}) { | 400 core.String project, core.String zone, |
| 401 {core.String filter, core.int maxResults, core.String pageToken}) { |
| 371 var _url = null; | 402 var _url = null; |
| 372 var _queryParams = new core.Map(); | 403 var _queryParams = new core.Map(); |
| 373 var _uploadMedia = null; | 404 var _uploadMedia = null; |
| 374 var _uploadOptions = null; | 405 var _uploadOptions = null; |
| 375 var _downloadOptions = commons.DownloadOptions.Metadata; | 406 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 376 var _body = null; | 407 var _body = null; |
| 377 | 408 |
| 378 if (project == null) { | 409 if (project == null) { |
| 379 throw new core.ArgumentError("Parameter project is required."); | 410 throw new core.ArgumentError("Parameter project is required."); |
| 380 } | 411 } |
| 381 if (zone == null) { | 412 if (zone == null) { |
| 382 throw new core.ArgumentError("Parameter zone is required."); | 413 throw new core.ArgumentError("Parameter zone is required."); |
| 383 } | 414 } |
| 384 if (filter != null) { | 415 if (filter != null) { |
| 385 _queryParams["filter"] = [filter]; | 416 _queryParams["filter"] = [filter]; |
| 386 } | 417 } |
| 387 if (maxResults != null) { | 418 if (maxResults != null) { |
| 388 _queryParams["maxResults"] = ["${maxResults}"]; | 419 _queryParams["maxResults"] = ["${maxResults}"]; |
| 389 } | 420 } |
| 390 if (pageToken != null) { | 421 if (pageToken != null) { |
| 391 _queryParams["pageToken"] = [pageToken]; | 422 _queryParams["pageToken"] = [pageToken]; |
| 392 } | 423 } |
| 393 | 424 |
| 394 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers'; | 425 _url = commons.Escaper.ecapeVariable('$project') + |
| 426 '/zones/' + |
| 427 commons.Escaper.ecapeVariable('$zone') + |
| 428 '/instanceGroupManagers'; |
| 395 | 429 |
| 396 var _response = _requester.request(_url, | 430 var _response = _requester.request(_url, "GET", |
| 397 "GET", | 431 body: _body, |
| 398 body: _body, | 432 queryParams: _queryParams, |
| 399 queryParams: _queryParams, | 433 uploadOptions: _uploadOptions, |
| 400 uploadOptions: _uploadOptions, | 434 uploadMedia: _uploadMedia, |
| 401 uploadMedia: _uploadMedia, | 435 downloadOptions: _downloadOptions); |
| 402 downloadOptions: _downloadOptions); | 436 return _response |
| 403 return _response.then((data) => new InstanceGroupManagerList.fromJson(data))
; | 437 .then((data) => new InstanceGroupManagerList.fromJson(data)); |
| 404 } | 438 } |
| 405 | 439 |
| 406 /** | 440 /// Recreates the specified instances. The instances are deleted, then |
| 407 * Recreates the specified instances. The instances are deleted, then | 441 /// recreated using the instance group manager's current instance template. |
| 408 * recreated using the instance group manager's current instance template. | 442 /// |
| 409 * | 443 /// [request] - The metadata request object. |
| 410 * [request] - The metadata request object. | 444 /// |
| 411 * | 445 /// Request parameters: |
| 412 * Request parameters: | 446 /// |
| 413 * | 447 /// [project] - The Google Developers Console project name. |
| 414 * [project] - The Google Developers Console project name. | 448 /// Value must have pattern |
| 415 * Value must have pattern | 449 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 416 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 450 /// |
| 417 * | 451 /// [zone] - The name of the zone in which the instance group manager |
| 418 * [zone] - The name of the zone in which the instance group manager resides. | 452 /// resides. |
| 419 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 453 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 420 * | 454 /// |
| 421 * [instanceGroupManager] - The name of the instance group manager. | 455 /// [instanceGroupManager] - The name of the instance group manager. |
| 422 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 456 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 423 * | 457 /// |
| 424 * Completes with a [Operation]. | 458 /// Completes with a [Operation]. |
| 425 * | 459 /// |
| 426 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 460 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 427 * error. | 461 /// an error. |
| 428 * | 462 /// |
| 429 * If the used [http.Client] completes with an error when making a REST call, | 463 /// If the used [http.Client] completes with an error when making a REST |
| 430 * this method will complete with the same error. | 464 /// call, this method will complete with the same error. |
| 431 */ | 465 async.Future<Operation> recreateInstances( |
| 432 async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstanc
esRequest request, core.String project, core.String zone, core.String instanceGr
oupManager) { | 466 InstanceGroupManagersRecreateInstancesRequest request, |
| 467 core.String project, |
| 468 core.String zone, |
| 469 core.String instanceGroupManager) { |
| 433 var _url = null; | 470 var _url = null; |
| 434 var _queryParams = new core.Map(); | 471 var _queryParams = new core.Map(); |
| 435 var _uploadMedia = null; | 472 var _uploadMedia = null; |
| 436 var _uploadOptions = null; | 473 var _uploadOptions = null; |
| 437 var _downloadOptions = commons.DownloadOptions.Metadata; | 474 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 438 var _body = null; | 475 var _body = null; |
| 439 | 476 |
| 440 if (request != null) { | 477 if (request != null) { |
| 441 _body = convert.JSON.encode((request).toJson()); | 478 _body = convert.JSON.encode((request).toJson()); |
| 442 } | 479 } |
| 443 if (project == null) { | 480 if (project == null) { |
| 444 throw new core.ArgumentError("Parameter project is required."); | 481 throw new core.ArgumentError("Parameter project is required."); |
| 445 } | 482 } |
| 446 if (zone == null) { | 483 if (zone == null) { |
| 447 throw new core.ArgumentError("Parameter zone is required."); | 484 throw new core.ArgumentError("Parameter zone is required."); |
| 448 } | 485 } |
| 449 if (instanceGroupManager == null) { | 486 if (instanceGroupManager == null) { |
| 450 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 487 throw new core.ArgumentError( |
| 488 "Parameter instanceGroupManager is required."); |
| 451 } | 489 } |
| 452 | 490 |
| 453 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/recreateInstances'; | 491 _url = commons.Escaper.ecapeVariable('$project') + |
| 492 '/zones/' + |
| 493 commons.Escaper.ecapeVariable('$zone') + |
| 494 '/instanceGroupManagers/' + |
| 495 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 496 '/recreateInstances'; |
| 454 | 497 |
| 455 var _response = _requester.request(_url, | 498 var _response = _requester.request(_url, "POST", |
| 456 "POST", | 499 body: _body, |
| 457 body: _body, | 500 queryParams: _queryParams, |
| 458 queryParams: _queryParams, | 501 uploadOptions: _uploadOptions, |
| 459 uploadOptions: _uploadOptions, | 502 uploadMedia: _uploadMedia, |
| 460 uploadMedia: _uploadMedia, | 503 downloadOptions: _downloadOptions); |
| 461 downloadOptions: _downloadOptions); | |
| 462 return _response.then((data) => new Operation.fromJson(data)); | 504 return _response.then((data) => new Operation.fromJson(data)); |
| 463 } | 505 } |
| 464 | 506 |
| 465 /** | 507 /// Resizes the managed instance group up or down. If resized up, new |
| 466 * Resizes the managed instance group up or down. If resized up, new instances | 508 /// instances are created using the current instance template. If resized |
| 467 * are created using the current instance template. If resized down, instances | 509 /// down, instances are removed in the order outlined in Resizing a managed |
| 468 * are removed in the order outlined in Resizing a managed instance group. | 510 /// instance group. |
| 469 * | 511 /// |
| 470 * Request parameters: | 512 /// Request parameters: |
| 471 * | 513 /// |
| 472 * [project] - The Google Developers Console project name. | 514 /// [project] - The Google Developers Console project name. |
| 473 * Value must have pattern | 515 /// Value must have pattern |
| 474 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 516 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 475 * | 517 /// |
| 476 * [zone] - The name of the zone in which the instance group manager resides. | 518 /// [zone] - The name of the zone in which the instance group manager |
| 477 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 519 /// resides. |
| 478 * | 520 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 479 * [instanceGroupManager] - The name of the instance group manager. | 521 /// |
| 480 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 522 /// [instanceGroupManager] - The name of the instance group manager. |
| 481 * | 523 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 482 * [size] - Number of instances that should exist in this Instance Group | 524 /// |
| 483 * Manager. | 525 /// [size] - Number of instances that should exist in this Instance Group |
| 484 * | 526 /// Manager. |
| 485 * Completes with a [Operation]. | 527 /// |
| 486 * | 528 /// Completes with a [Operation]. |
| 487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 529 /// |
| 488 * error. | 530 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 489 * | 531 /// an error. |
| 490 * If the used [http.Client] completes with an error when making a REST call, | 532 /// |
| 491 * this method will complete with the same error. | 533 /// If the used [http.Client] completes with an error when making a REST |
| 492 */ | 534 /// call, this method will complete with the same error. |
| 493 async.Future<Operation> resize(core.String project, core.String zone, core.Str
ing instanceGroupManager, core.int size) { | 535 async.Future<Operation> resize(core.String project, core.String zone, |
| 536 core.String instanceGroupManager, core.int size) { |
| 494 var _url = null; | 537 var _url = null; |
| 495 var _queryParams = new core.Map(); | 538 var _queryParams = new core.Map(); |
| 496 var _uploadMedia = null; | 539 var _uploadMedia = null; |
| 497 var _uploadOptions = null; | 540 var _uploadOptions = null; |
| 498 var _downloadOptions = commons.DownloadOptions.Metadata; | 541 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 499 var _body = null; | 542 var _body = null; |
| 500 | 543 |
| 501 if (project == null) { | 544 if (project == null) { |
| 502 throw new core.ArgumentError("Parameter project is required."); | 545 throw new core.ArgumentError("Parameter project is required."); |
| 503 } | 546 } |
| 504 if (zone == null) { | 547 if (zone == null) { |
| 505 throw new core.ArgumentError("Parameter zone is required."); | 548 throw new core.ArgumentError("Parameter zone is required."); |
| 506 } | 549 } |
| 507 if (instanceGroupManager == null) { | 550 if (instanceGroupManager == null) { |
| 508 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 551 throw new core.ArgumentError( |
| 552 "Parameter instanceGroupManager is required."); |
| 509 } | 553 } |
| 510 if (size == null) { | 554 if (size == null) { |
| 511 throw new core.ArgumentError("Parameter size is required."); | 555 throw new core.ArgumentError("Parameter size is required."); |
| 512 } | 556 } |
| 513 _queryParams["size"] = ["${size}"]; | 557 _queryParams["size"] = ["${size}"]; |
| 514 | 558 |
| 515 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/resize'; | 559 _url = commons.Escaper.ecapeVariable('$project') + |
| 560 '/zones/' + |
| 561 commons.Escaper.ecapeVariable('$zone') + |
| 562 '/instanceGroupManagers/' + |
| 563 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 564 '/resize'; |
| 516 | 565 |
| 517 var _response = _requester.request(_url, | 566 var _response = _requester.request(_url, "POST", |
| 518 "POST", | 567 body: _body, |
| 519 body: _body, | 568 queryParams: _queryParams, |
| 520 queryParams: _queryParams, | 569 uploadOptions: _uploadOptions, |
| 521 uploadOptions: _uploadOptions, | 570 uploadMedia: _uploadMedia, |
| 522 uploadMedia: _uploadMedia, | 571 downloadOptions: _downloadOptions); |
| 523 downloadOptions: _downloadOptions); | |
| 524 return _response.then((data) => new Operation.fromJson(data)); | 572 return _response.then((data) => new Operation.fromJson(data)); |
| 525 } | 573 } |
| 526 | 574 |
| 527 /** | 575 /// Sets the instance template to use when creating new instances in this |
| 528 * Sets the instance template to use when creating new instances in this | 576 /// group. Existing instances are not affected. |
| 529 * group. Existing instances are not affected. | 577 /// |
| 530 * | 578 /// [request] - The metadata request object. |
| 531 * [request] - The metadata request object. | 579 /// |
| 532 * | 580 /// Request parameters: |
| 533 * Request parameters: | 581 /// |
| 534 * | 582 /// [project] - The Google Developers Console project name. |
| 535 * [project] - The Google Developers Console project name. | 583 /// Value must have pattern |
| 536 * Value must have pattern | 584 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 537 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 585 /// |
| 538 * | 586 /// [zone] - The name of the zone in which the instance group manager |
| 539 * [zone] - The name of the zone in which the instance group manager resides. | 587 /// resides. |
| 540 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 588 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 541 * | 589 /// |
| 542 * [instanceGroupManager] - The name of the instance group manager. | 590 /// [instanceGroupManager] - The name of the instance group manager. |
| 543 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 591 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 544 * | 592 /// |
| 545 * Completes with a [Operation]. | 593 /// Completes with a [Operation]. |
| 546 * | 594 /// |
| 547 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 595 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 548 * error. | 596 /// an error. |
| 549 * | 597 /// |
| 550 * If the used [http.Client] completes with an error when making a REST call, | 598 /// If the used [http.Client] completes with an error when making a REST |
| 551 * this method will complete with the same error. | 599 /// call, this method will complete with the same error. |
| 552 */ | 600 async.Future<Operation> setInstanceTemplate( |
| 553 async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTe
mplateRequest request, core.String project, core.String zone, core.String instan
ceGroupManager) { | 601 InstanceGroupManagersSetInstanceTemplateRequest request, |
| 602 core.String project, |
| 603 core.String zone, |
| 604 core.String instanceGroupManager) { |
| 554 var _url = null; | 605 var _url = null; |
| 555 var _queryParams = new core.Map(); | 606 var _queryParams = new core.Map(); |
| 556 var _uploadMedia = null; | 607 var _uploadMedia = null; |
| 557 var _uploadOptions = null; | 608 var _uploadOptions = null; |
| 558 var _downloadOptions = commons.DownloadOptions.Metadata; | 609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 559 var _body = null; | 610 var _body = null; |
| 560 | 611 |
| 561 if (request != null) { | 612 if (request != null) { |
| 562 _body = convert.JSON.encode((request).toJson()); | 613 _body = convert.JSON.encode((request).toJson()); |
| 563 } | 614 } |
| 564 if (project == null) { | 615 if (project == null) { |
| 565 throw new core.ArgumentError("Parameter project is required."); | 616 throw new core.ArgumentError("Parameter project is required."); |
| 566 } | 617 } |
| 567 if (zone == null) { | 618 if (zone == null) { |
| 568 throw new core.ArgumentError("Parameter zone is required."); | 619 throw new core.ArgumentError("Parameter zone is required."); |
| 569 } | 620 } |
| 570 if (instanceGroupManager == null) { | 621 if (instanceGroupManager == null) { |
| 571 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 622 throw new core.ArgumentError( |
| 623 "Parameter instanceGroupManager is required."); |
| 572 } | 624 } |
| 573 | 625 |
| 574 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/setInstanceTemplate'; | 626 _url = commons.Escaper.ecapeVariable('$project') + |
| 627 '/zones/' + |
| 628 commons.Escaper.ecapeVariable('$zone') + |
| 629 '/instanceGroupManagers/' + |
| 630 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 631 '/setInstanceTemplate'; |
| 575 | 632 |
| 576 var _response = _requester.request(_url, | 633 var _response = _requester.request(_url, "POST", |
| 577 "POST", | 634 body: _body, |
| 578 body: _body, | 635 queryParams: _queryParams, |
| 579 queryParams: _queryParams, | 636 uploadOptions: _uploadOptions, |
| 580 uploadOptions: _uploadOptions, | 637 uploadMedia: _uploadMedia, |
| 581 uploadMedia: _uploadMedia, | 638 downloadOptions: _downloadOptions); |
| 582 downloadOptions: _downloadOptions); | |
| 583 return _response.then((data) => new Operation.fromJson(data)); | 639 return _response.then((data) => new Operation.fromJson(data)); |
| 584 } | 640 } |
| 585 | 641 |
| 586 /** | 642 /// Modifies the target pools to which all new instances in this group are |
| 587 * Modifies the target pools to which all new instances in this group are | 643 /// assigned. Existing instances in the group are not affected. |
| 588 * assigned. Existing instances in the group are not affected. | 644 /// |
| 589 * | 645 /// [request] - The metadata request object. |
| 590 * [request] - The metadata request object. | 646 /// |
| 591 * | 647 /// Request parameters: |
| 592 * Request parameters: | 648 /// |
| 593 * | 649 /// [project] - The Google Developers Console project name. |
| 594 * [project] - The Google Developers Console project name. | 650 /// Value must have pattern |
| 595 * Value must have pattern | 651 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 596 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 652 /// |
| 597 * | 653 /// [zone] - The name of the zone in which the instance group manager |
| 598 * [zone] - The name of the zone in which the instance group manager resides. | 654 /// resides. |
| 599 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 655 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 600 * | 656 /// |
| 601 * [instanceGroupManager] - The name of the instance group manager. | 657 /// [instanceGroupManager] - The name of the instance group manager. |
| 602 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 658 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 603 * | 659 /// |
| 604 * Completes with a [Operation]. | 660 /// Completes with a [Operation]. |
| 605 * | 661 /// |
| 606 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 662 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 607 * error. | 663 /// an error. |
| 608 * | 664 /// |
| 609 * If the used [http.Client] completes with an error when making a REST call, | 665 /// If the used [http.Client] completes with an error when making a REST |
| 610 * this method will complete with the same error. | 666 /// call, this method will complete with the same error. |
| 611 */ | 667 async.Future<Operation> setTargetPools( |
| 612 async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequ
est request, core.String project, core.String zone, core.String instanceGroupMan
ager) { | 668 InstanceGroupManagersSetTargetPoolsRequest request, |
| 669 core.String project, |
| 670 core.String zone, |
| 671 core.String instanceGroupManager) { |
| 613 var _url = null; | 672 var _url = null; |
| 614 var _queryParams = new core.Map(); | 673 var _queryParams = new core.Map(); |
| 615 var _uploadMedia = null; | 674 var _uploadMedia = null; |
| 616 var _uploadOptions = null; | 675 var _uploadOptions = null; |
| 617 var _downloadOptions = commons.DownloadOptions.Metadata; | 676 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 618 var _body = null; | 677 var _body = null; |
| 619 | 678 |
| 620 if (request != null) { | 679 if (request != null) { |
| 621 _body = convert.JSON.encode((request).toJson()); | 680 _body = convert.JSON.encode((request).toJson()); |
| 622 } | 681 } |
| 623 if (project == null) { | 682 if (project == null) { |
| 624 throw new core.ArgumentError("Parameter project is required."); | 683 throw new core.ArgumentError("Parameter project is required."); |
| 625 } | 684 } |
| 626 if (zone == null) { | 685 if (zone == null) { |
| 627 throw new core.ArgumentError("Parameter zone is required."); | 686 throw new core.ArgumentError("Parameter zone is required."); |
| 628 } | 687 } |
| 629 if (instanceGroupManager == null) { | 688 if (instanceGroupManager == null) { |
| 630 throw new core.ArgumentError("Parameter instanceGroupManager is required."
); | 689 throw new core.ArgumentError( |
| 690 "Parameter instanceGroupManager is required."); |
| 631 } | 691 } |
| 632 | 692 |
| 633 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar
iable('$instanceGroupManager') + '/setTargetPools'; | 693 _url = commons.Escaper.ecapeVariable('$project') + |
| 694 '/zones/' + |
| 695 commons.Escaper.ecapeVariable('$zone') + |
| 696 '/instanceGroupManagers/' + |
| 697 commons.Escaper.ecapeVariable('$instanceGroupManager') + |
| 698 '/setTargetPools'; |
| 634 | 699 |
| 635 var _response = _requester.request(_url, | 700 var _response = _requester.request(_url, "POST", |
| 636 "POST", | 701 body: _body, |
| 637 body: _body, | 702 queryParams: _queryParams, |
| 638 queryParams: _queryParams, | 703 uploadOptions: _uploadOptions, |
| 639 uploadOptions: _uploadOptions, | 704 uploadMedia: _uploadMedia, |
| 640 uploadMedia: _uploadMedia, | 705 downloadOptions: _downloadOptions); |
| 641 downloadOptions: _downloadOptions); | |
| 642 return _response.then((data) => new Operation.fromJson(data)); | 706 return _response.then((data) => new Operation.fromJson(data)); |
| 643 } | 707 } |
| 644 | |
| 645 } | 708 } |
| 646 | 709 |
| 647 | |
| 648 class ZoneOperationsResourceApi { | 710 class ZoneOperationsResourceApi { |
| 649 final commons.ApiRequester _requester; | 711 final commons.ApiRequester _requester; |
| 650 | 712 |
| 651 ZoneOperationsResourceApi(commons.ApiRequester client) : | 713 ZoneOperationsResourceApi(commons.ApiRequester client) : _requester = client; |
| 652 _requester = client; | |
| 653 | 714 |
| 654 /** | 715 /// Retrieves the specified zone-specific operation resource. |
| 655 * Retrieves the specified zone-specific operation resource. | 716 /// |
| 656 * | 717 /// Request parameters: |
| 657 * Request parameters: | 718 /// |
| 658 * | 719 /// [project] - Name of the project scoping this request. |
| 659 * [project] - Name of the project scoping this request. | 720 /// Value must have pattern |
| 660 * Value must have pattern | 721 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 661 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 722 /// |
| 662 * | 723 /// [zone] - Name of the zone scoping this request. |
| 663 * [zone] - Name of the zone scoping this request. | 724 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 664 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 725 /// |
| 665 * | 726 /// [operation] - Name of the operation resource to return. |
| 666 * [operation] - Name of the operation resource to return. | 727 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 667 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 728 /// |
| 668 * | 729 /// Completes with a [Operation]. |
| 669 * Completes with a [Operation]. | 730 /// |
| 670 * | 731 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 732 /// an error. |
| 672 * error. | 733 /// |
| 673 * | 734 /// If the used [http.Client] completes with an error when making a REST |
| 674 * If the used [http.Client] completes with an error when making a REST call, | 735 /// call, this method will complete with the same error. |
| 675 * this method will complete with the same error. | 736 async.Future<Operation> get( |
| 676 */ | 737 core.String project, core.String zone, core.String operation) { |
| 677 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { | |
| 678 var _url = null; | 738 var _url = null; |
| 679 var _queryParams = new core.Map(); | 739 var _queryParams = new core.Map(); |
| 680 var _uploadMedia = null; | 740 var _uploadMedia = null; |
| 681 var _uploadOptions = null; | 741 var _uploadOptions = null; |
| 682 var _downloadOptions = commons.DownloadOptions.Metadata; | 742 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 683 var _body = null; | 743 var _body = null; |
| 684 | 744 |
| 685 if (project == null) { | 745 if (project == null) { |
| 686 throw new core.ArgumentError("Parameter project is required."); | 746 throw new core.ArgumentError("Parameter project is required."); |
| 687 } | 747 } |
| 688 if (zone == null) { | 748 if (zone == null) { |
| 689 throw new core.ArgumentError("Parameter zone is required."); | 749 throw new core.ArgumentError("Parameter zone is required."); |
| 690 } | 750 } |
| 691 if (operation == null) { | 751 if (operation == null) { |
| 692 throw new core.ArgumentError("Parameter operation is required."); | 752 throw new core.ArgumentError("Parameter operation is required."); |
| 693 } | 753 } |
| 694 | 754 |
| 695 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); | 755 _url = commons.Escaper.ecapeVariable('$project') + |
| 756 '/zones/' + |
| 757 commons.Escaper.ecapeVariable('$zone') + |
| 758 '/operations/' + |
| 759 commons.Escaper.ecapeVariable('$operation'); |
| 696 | 760 |
| 697 var _response = _requester.request(_url, | 761 var _response = _requester.request(_url, "GET", |
| 698 "GET", | 762 body: _body, |
| 699 body: _body, | 763 queryParams: _queryParams, |
| 700 queryParams: _queryParams, | 764 uploadOptions: _uploadOptions, |
| 701 uploadOptions: _uploadOptions, | 765 uploadMedia: _uploadMedia, |
| 702 uploadMedia: _uploadMedia, | 766 downloadOptions: _downloadOptions); |
| 703 downloadOptions: _downloadOptions); | |
| 704 return _response.then((data) => new Operation.fromJson(data)); | 767 return _response.then((data) => new Operation.fromJson(data)); |
| 705 } | 768 } |
| 706 | 769 |
| 707 /** | 770 /// Retrieves the list of operation resources contained within the specified |
| 708 * Retrieves the list of operation resources contained within the specified | 771 /// zone. |
| 709 * zone. | 772 /// |
| 710 * | 773 /// Request parameters: |
| 711 * Request parameters: | 774 /// |
| 712 * | 775 /// [project] - Name of the project scoping this request. |
| 713 * [project] - Name of the project scoping this request. | 776 /// Value must have pattern |
| 714 * Value must have pattern | 777 /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]
{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 715 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 778 /// |
| 716 * | 779 /// [zone] - Name of the zone scoping this request. |
| 717 * [zone] - Name of the zone scoping this request. | 780 /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 718 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 781 /// |
| 719 * | 782 /// [filter] - Optional. Filter expression for filtering listed resources. |
| 720 * [filter] - Optional. Filter expression for filtering listed resources. | 783 /// |
| 721 * | 784 /// [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 722 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 785 /// value is 500 and default value is 500. |
| 723 * value is 500 and default value is 500. | 786 /// Value must be between "0" and "500". |
| 724 * Value must be between "0" and "500". | 787 /// |
| 725 * | 788 /// [pageToken] - Optional. Tag returned by a previous list request truncated |
| 726 * [pageToken] - Optional. Tag returned by a previous list request truncated | 789 /// by maxResults. Used to continue a previous list request. |
| 727 * by maxResults. Used to continue a previous list request. | 790 /// |
| 728 * | 791 /// Completes with a [OperationList]. |
| 729 * Completes with a [OperationList]. | 792 /// |
| 730 * | 793 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 794 /// an error. |
| 732 * error. | 795 /// |
| 733 * | 796 /// If the used [http.Client] completes with an error when making a REST |
| 734 * If the used [http.Client] completes with an error when making a REST call, | 797 /// call, this method will complete with the same error. |
| 735 * this method will complete with the same error. | 798 async.Future<OperationList> list(core.String project, core.String zone, |
| 736 */ | 799 {core.String filter, core.int maxResults, core.String pageToken}) { |
| 737 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { | |
| 738 var _url = null; | 800 var _url = null; |
| 739 var _queryParams = new core.Map(); | 801 var _queryParams = new core.Map(); |
| 740 var _uploadMedia = null; | 802 var _uploadMedia = null; |
| 741 var _uploadOptions = null; | 803 var _uploadOptions = null; |
| 742 var _downloadOptions = commons.DownloadOptions.Metadata; | 804 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 743 var _body = null; | 805 var _body = null; |
| 744 | 806 |
| 745 if (project == null) { | 807 if (project == null) { |
| 746 throw new core.ArgumentError("Parameter project is required."); | 808 throw new core.ArgumentError("Parameter project is required."); |
| 747 } | 809 } |
| 748 if (zone == null) { | 810 if (zone == null) { |
| 749 throw new core.ArgumentError("Parameter zone is required."); | 811 throw new core.ArgumentError("Parameter zone is required."); |
| 750 } | 812 } |
| 751 if (filter != null) { | 813 if (filter != null) { |
| 752 _queryParams["filter"] = [filter]; | 814 _queryParams["filter"] = [filter]; |
| 753 } | 815 } |
| 754 if (maxResults != null) { | 816 if (maxResults != null) { |
| 755 _queryParams["maxResults"] = ["${maxResults}"]; | 817 _queryParams["maxResults"] = ["${maxResults}"]; |
| 756 } | 818 } |
| 757 if (pageToken != null) { | 819 if (pageToken != null) { |
| 758 _queryParams["pageToken"] = [pageToken]; | 820 _queryParams["pageToken"] = [pageToken]; |
| 759 } | 821 } |
| 760 | 822 |
| 761 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations'; | 823 _url = commons.Escaper.ecapeVariable('$project') + |
| 824 '/zones/' + |
| 825 commons.Escaper.ecapeVariable('$zone') + |
| 826 '/operations'; |
| 762 | 827 |
| 763 var _response = _requester.request(_url, | 828 var _response = _requester.request(_url, "GET", |
| 764 "GET", | 829 body: _body, |
| 765 body: _body, | 830 queryParams: _queryParams, |
| 766 queryParams: _queryParams, | 831 uploadOptions: _uploadOptions, |
| 767 uploadOptions: _uploadOptions, | 832 uploadMedia: _uploadMedia, |
| 768 uploadMedia: _uploadMedia, | 833 downloadOptions: _downloadOptions); |
| 769 downloadOptions: _downloadOptions); | |
| 770 return _response.then((data) => new OperationList.fromJson(data)); | 834 return _response.then((data) => new OperationList.fromJson(data)); |
| 771 } | 835 } |
| 772 | |
| 773 } | 836 } |
| 774 | 837 |
| 838 /// An Instance Group Manager resource. |
| 839 class InstanceGroupManager { |
| 840 /// The autohealing policy for this managed instance group. You can specify |
| 841 /// only one value. |
| 842 core.List<ReplicaPoolAutoHealingPolicy> autoHealingPolicies; |
| 775 | 843 |
| 844 /// The base instance name to use for instances in this group. The value must |
| 845 /// be a valid RFC1035 name. Supported characters are lowercase letters, |
| 846 /// numbers, and hyphens (-). Instances are named by appending a hyphen and a |
| 847 /// random four-character string to the base instance name. |
| 848 core.String baseInstanceName; |
| 776 | 849 |
| 777 /** An Instance Group Manager resource. */ | 850 /// [Output only] The time the instance group manager was created, in RFC3339 |
| 778 class InstanceGroupManager { | 851 /// text format. |
| 779 /** | |
| 780 * The autohealing policy for this managed instance group. You can specify | |
| 781 * only one value. | |
| 782 */ | |
| 783 core.List<ReplicaPoolAutoHealingPolicy> autoHealingPolicies; | |
| 784 /** | |
| 785 * The base instance name to use for instances in this group. The value must | |
| 786 * be a valid RFC1035 name. Supported characters are lowercase letters, | |
| 787 * numbers, and hyphens (-). Instances are named by appending a hyphen and a | |
| 788 * random four-character string to the base instance name. | |
| 789 */ | |
| 790 core.String baseInstanceName; | |
| 791 /** | |
| 792 * [Output only] The time the instance group manager was created, in RFC3339 | |
| 793 * text format. | |
| 794 */ | |
| 795 core.String creationTimestamp; | 852 core.String creationTimestamp; |
| 796 /** | 853 |
| 797 * [Output only] The number of instances that currently exist and are a part | 854 /// [Output only] The number of instances that currently exist and are a part |
| 798 * of this group. This includes instances that are starting but are not yet | 855 /// of this group. This includes instances that are starting but are not yet |
| 799 * RUNNING, and instances that are in the process of being deleted or | 856 /// RUNNING, and instances that are in the process of being deleted or |
| 800 * abandoned. | 857 /// abandoned. |
| 801 */ | |
| 802 core.int currentSize; | 858 core.int currentSize; |
| 803 /** An optional textual description of the instance group manager. */ | 859 |
| 860 /// An optional textual description of the instance group manager. |
| 804 core.String description; | 861 core.String description; |
| 805 /** | 862 |
| 806 * [Output only] Fingerprint of the instance group manager. This field is used | 863 /// [Output only] Fingerprint of the instance group manager. This field is |
| 807 * for optimistic locking. An up-to-date fingerprint must be provided in order | 864 /// used for optimistic locking. An up-to-date fingerprint must be provided |
| 808 * to modify the Instance Group Manager resource. | 865 /// in order to modify the Instance Group Manager resource. |
| 809 */ | |
| 810 core.String fingerprint; | 866 core.String fingerprint; |
| 811 core.List<core.int> get fingerprintAsBytes { | 867 core.List<core.int> get fingerprintAsBytes { |
| 812 return convert.BASE64.decode(fingerprint); | 868 return convert.BASE64.decode(fingerprint); |
| 813 } | 869 } |
| 814 | 870 |
| 815 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 871 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 816 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll(
"+", "-"); | 872 fingerprint = |
| 873 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
| 817 } | 874 } |
| 818 /** | 875 |
| 819 * [Output only] The full URL of the instance group created by the manager. | 876 /// [Output only] The full URL of the instance group created by the manager. |
| 820 * This group contains all of the instances being managed, and cannot contain | 877 /// This group contains all of the instances being managed, and cannot |
| 821 * non-managed instances. | 878 /// contain non-managed instances. |
| 822 */ | |
| 823 core.String group; | 879 core.String group; |
| 824 /** [Output only] A server-assigned unique identifier for the resource. */ | 880 |
| 881 /// [Output only] A server-assigned unique identifier for the resource. |
| 825 core.String id; | 882 core.String id; |
| 826 /** | 883 |
| 827 * The full URL to an instance template from which all new instances will be | 884 /// The full URL to an instance template from which all new instances will be |
| 828 * created. | 885 /// created. |
| 829 */ | |
| 830 core.String instanceTemplate; | 886 core.String instanceTemplate; |
| 831 /** | 887 |
| 832 * [Output only] The resource type. Always replicapool#instanceGroupManager. | 888 /// [Output only] The resource type. Always replicapool#instanceGroupManager. |
| 833 */ | |
| 834 core.String kind; | 889 core.String kind; |
| 835 /** | 890 |
| 836 * The name of the instance group manager. Must be 1-63 characters long and | 891 /// The name of the instance group manager. Must be 1-63 characters long and |
| 837 * comply with RFC1035. Supported characters include lowercase letters, | 892 /// comply with RFC1035. Supported characters include lowercase letters, |
| 838 * numbers, and hyphens. | 893 /// numbers, and hyphens. |
| 839 */ | |
| 840 core.String name; | 894 core.String name; |
| 841 /** [Output only] The fully qualified URL for this resource. */ | 895 |
| 896 /// [Output only] The fully qualified URL for this resource. |
| 842 core.String selfLink; | 897 core.String selfLink; |
| 843 /** | 898 |
| 844 * The full URL of all target pools to which new instances in the group are | 899 /// The full URL of all target pools to which new instances in the group are |
| 845 * added. Updating the target pool values does not affect existing instances. | 900 /// added. Updating the target pool values does not affect existing |
| 846 */ | 901 /// instances. |
| 847 core.List<core.String> targetPools; | 902 core.List<core.String> targetPools; |
| 848 /** | 903 |
| 849 * [Output only] The number of instances that the manager is attempting to | 904 /// [Output only] The number of instances that the manager is attempting to |
| 850 * maintain. Deleting or abandoning instances affects this number, as does | 905 /// maintain. Deleting or abandoning instances affects this number, as does |
| 851 * resizing the group. | 906 /// resizing the group. |
| 852 */ | |
| 853 core.int targetSize; | 907 core.int targetSize; |
| 854 | 908 |
| 855 InstanceGroupManager(); | 909 InstanceGroupManager(); |
| 856 | 910 |
| 857 InstanceGroupManager.fromJson(core.Map _json) { | 911 InstanceGroupManager.fromJson(core.Map _json) { |
| 858 if (_json.containsKey("autoHealingPolicies")) { | 912 if (_json.containsKey("autoHealingPolicies")) { |
| 859 autoHealingPolicies = _json["autoHealingPolicies"].map((value) => new Repl
icaPoolAutoHealingPolicy.fromJson(value)).toList(); | 913 autoHealingPolicies = _json["autoHealingPolicies"] |
| 914 .map((value) => new ReplicaPoolAutoHealingPolicy.fromJson(value)) |
| 915 .toList(); |
| 860 } | 916 } |
| 861 if (_json.containsKey("baseInstanceName")) { | 917 if (_json.containsKey("baseInstanceName")) { |
| 862 baseInstanceName = _json["baseInstanceName"]; | 918 baseInstanceName = _json["baseInstanceName"]; |
| 863 } | 919 } |
| 864 if (_json.containsKey("creationTimestamp")) { | 920 if (_json.containsKey("creationTimestamp")) { |
| 865 creationTimestamp = _json["creationTimestamp"]; | 921 creationTimestamp = _json["creationTimestamp"]; |
| 866 } | 922 } |
| 867 if (_json.containsKey("currentSize")) { | 923 if (_json.containsKey("currentSize")) { |
| 868 currentSize = _json["currentSize"]; | 924 currentSize = _json["currentSize"]; |
| 869 } | 925 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 893 } | 949 } |
| 894 if (_json.containsKey("targetPools")) { | 950 if (_json.containsKey("targetPools")) { |
| 895 targetPools = _json["targetPools"]; | 951 targetPools = _json["targetPools"]; |
| 896 } | 952 } |
| 897 if (_json.containsKey("targetSize")) { | 953 if (_json.containsKey("targetSize")) { |
| 898 targetSize = _json["targetSize"]; | 954 targetSize = _json["targetSize"]; |
| 899 } | 955 } |
| 900 } | 956 } |
| 901 | 957 |
| 902 core.Map<core.String, core.Object> toJson() { | 958 core.Map<core.String, core.Object> toJson() { |
| 903 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 959 final core.Map<core.String, core.Object> _json = |
| 960 new core.Map<core.String, core.Object>(); |
| 904 if (autoHealingPolicies != null) { | 961 if (autoHealingPolicies != null) { |
| 905 _json["autoHealingPolicies"] = autoHealingPolicies.map((value) => (value).
toJson()).toList(); | 962 _json["autoHealingPolicies"] = |
| 963 autoHealingPolicies.map((value) => (value).toJson()).toList(); |
| 906 } | 964 } |
| 907 if (baseInstanceName != null) { | 965 if (baseInstanceName != null) { |
| 908 _json["baseInstanceName"] = baseInstanceName; | 966 _json["baseInstanceName"] = baseInstanceName; |
| 909 } | 967 } |
| 910 if (creationTimestamp != null) { | 968 if (creationTimestamp != null) { |
| 911 _json["creationTimestamp"] = creationTimestamp; | 969 _json["creationTimestamp"] = creationTimestamp; |
| 912 } | 970 } |
| 913 if (currentSize != null) { | 971 if (currentSize != null) { |
| 914 _json["currentSize"] = currentSize; | 972 _json["currentSize"] = currentSize; |
| 915 } | 973 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 941 _json["targetPools"] = targetPools; | 999 _json["targetPools"] = targetPools; |
| 942 } | 1000 } |
| 943 if (targetSize != null) { | 1001 if (targetSize != null) { |
| 944 _json["targetSize"] = targetSize; | 1002 _json["targetSize"] = targetSize; |
| 945 } | 1003 } |
| 946 return _json; | 1004 return _json; |
| 947 } | 1005 } |
| 948 } | 1006 } |
| 949 | 1007 |
| 950 class InstanceGroupManagerList { | 1008 class InstanceGroupManagerList { |
| 951 /** | 1009 /// Unique identifier for the resource; defined by the server (output only). |
| 952 * Unique identifier for the resource; defined by the server (output only). | |
| 953 */ | |
| 954 core.String id; | 1010 core.String id; |
| 955 /** A list of instance resources. */ | 1011 |
| 1012 /// A list of instance resources. |
| 956 core.List<InstanceGroupManager> items; | 1013 core.List<InstanceGroupManager> items; |
| 957 /** Type of resource. */ | 1014 |
| 1015 /// Type of resource. |
| 958 core.String kind; | 1016 core.String kind; |
| 959 /** A token used to continue a truncated list request (output only). */ | 1017 |
| 1018 /// A token used to continue a truncated list request (output only). |
| 960 core.String nextPageToken; | 1019 core.String nextPageToken; |
| 961 /** Server defined URL for this resource (output only). */ | 1020 |
| 1021 /// Server defined URL for this resource (output only). |
| 962 core.String selfLink; | 1022 core.String selfLink; |
| 963 | 1023 |
| 964 InstanceGroupManagerList(); | 1024 InstanceGroupManagerList(); |
| 965 | 1025 |
| 966 InstanceGroupManagerList.fromJson(core.Map _json) { | 1026 InstanceGroupManagerList.fromJson(core.Map _json) { |
| 967 if (_json.containsKey("id")) { | 1027 if (_json.containsKey("id")) { |
| 968 id = _json["id"]; | 1028 id = _json["id"]; |
| 969 } | 1029 } |
| 970 if (_json.containsKey("items")) { | 1030 if (_json.containsKey("items")) { |
| 971 items = _json["items"].map((value) => new InstanceGroupManager.fromJson(va
lue)).toList(); | 1031 items = _json["items"] |
| 1032 .map((value) => new InstanceGroupManager.fromJson(value)) |
| 1033 .toList(); |
| 972 } | 1034 } |
| 973 if (_json.containsKey("kind")) { | 1035 if (_json.containsKey("kind")) { |
| 974 kind = _json["kind"]; | 1036 kind = _json["kind"]; |
| 975 } | 1037 } |
| 976 if (_json.containsKey("nextPageToken")) { | 1038 if (_json.containsKey("nextPageToken")) { |
| 977 nextPageToken = _json["nextPageToken"]; | 1039 nextPageToken = _json["nextPageToken"]; |
| 978 } | 1040 } |
| 979 if (_json.containsKey("selfLink")) { | 1041 if (_json.containsKey("selfLink")) { |
| 980 selfLink = _json["selfLink"]; | 1042 selfLink = _json["selfLink"]; |
| 981 } | 1043 } |
| 982 } | 1044 } |
| 983 | 1045 |
| 984 core.Map<core.String, core.Object> toJson() { | 1046 core.Map<core.String, core.Object> toJson() { |
| 985 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1047 final core.Map<core.String, core.Object> _json = |
| 1048 new core.Map<core.String, core.Object>(); |
| 986 if (id != null) { | 1049 if (id != null) { |
| 987 _json["id"] = id; | 1050 _json["id"] = id; |
| 988 } | 1051 } |
| 989 if (items != null) { | 1052 if (items != null) { |
| 990 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1053 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 991 } | 1054 } |
| 992 if (kind != null) { | 1055 if (kind != null) { |
| 993 _json["kind"] = kind; | 1056 _json["kind"] = kind; |
| 994 } | 1057 } |
| 995 if (nextPageToken != null) { | 1058 if (nextPageToken != null) { |
| 996 _json["nextPageToken"] = nextPageToken; | 1059 _json["nextPageToken"] = nextPageToken; |
| 997 } | 1060 } |
| 998 if (selfLink != null) { | 1061 if (selfLink != null) { |
| 999 _json["selfLink"] = selfLink; | 1062 _json["selfLink"] = selfLink; |
| 1000 } | 1063 } |
| 1001 return _json; | 1064 return _json; |
| 1002 } | 1065 } |
| 1003 } | 1066 } |
| 1004 | 1067 |
| 1005 class InstanceGroupManagersAbandonInstancesRequest { | 1068 class InstanceGroupManagersAbandonInstancesRequest { |
| 1006 /** | 1069 /// The names of one or more instances to abandon. For example: |
| 1007 * The names of one or more instances to abandon. For example: | 1070 /// { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } |
| 1008 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } | |
| 1009 */ | |
| 1010 core.List<core.String> instances; | 1071 core.List<core.String> instances; |
| 1011 | 1072 |
| 1012 InstanceGroupManagersAbandonInstancesRequest(); | 1073 InstanceGroupManagersAbandonInstancesRequest(); |
| 1013 | 1074 |
| 1014 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { | 1075 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { |
| 1015 if (_json.containsKey("instances")) { | 1076 if (_json.containsKey("instances")) { |
| 1016 instances = _json["instances"]; | 1077 instances = _json["instances"]; |
| 1017 } | 1078 } |
| 1018 } | 1079 } |
| 1019 | 1080 |
| 1020 core.Map<core.String, core.Object> toJson() { | 1081 core.Map<core.String, core.Object> toJson() { |
| 1021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1082 final core.Map<core.String, core.Object> _json = |
| 1083 new core.Map<core.String, core.Object>(); |
| 1022 if (instances != null) { | 1084 if (instances != null) { |
| 1023 _json["instances"] = instances; | 1085 _json["instances"] = instances; |
| 1024 } | 1086 } |
| 1025 return _json; | 1087 return _json; |
| 1026 } | 1088 } |
| 1027 } | 1089 } |
| 1028 | 1090 |
| 1029 class InstanceGroupManagersDeleteInstancesRequest { | 1091 class InstanceGroupManagersDeleteInstancesRequest { |
| 1030 /** | 1092 /// Names of instances to delete. |
| 1031 * Names of instances to delete. | 1093 /// |
| 1032 * | 1094 /// Example: 'instance-foo', 'instance-bar' |
| 1033 * Example: 'instance-foo', 'instance-bar' | |
| 1034 */ | |
| 1035 core.List<core.String> instances; | 1095 core.List<core.String> instances; |
| 1036 | 1096 |
| 1037 InstanceGroupManagersDeleteInstancesRequest(); | 1097 InstanceGroupManagersDeleteInstancesRequest(); |
| 1038 | 1098 |
| 1039 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { | 1099 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { |
| 1040 if (_json.containsKey("instances")) { | 1100 if (_json.containsKey("instances")) { |
| 1041 instances = _json["instances"]; | 1101 instances = _json["instances"]; |
| 1042 } | 1102 } |
| 1043 } | 1103 } |
| 1044 | 1104 |
| 1045 core.Map<core.String, core.Object> toJson() { | 1105 core.Map<core.String, core.Object> toJson() { |
| 1046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1106 final core.Map<core.String, core.Object> _json = |
| 1107 new core.Map<core.String, core.Object>(); |
| 1047 if (instances != null) { | 1108 if (instances != null) { |
| 1048 _json["instances"] = instances; | 1109 _json["instances"] = instances; |
| 1049 } | 1110 } |
| 1050 return _json; | 1111 return _json; |
| 1051 } | 1112 } |
| 1052 } | 1113 } |
| 1053 | 1114 |
| 1054 class InstanceGroupManagersRecreateInstancesRequest { | 1115 class InstanceGroupManagersRecreateInstancesRequest { |
| 1055 /** | 1116 /// The names of one or more instances to recreate. For example: |
| 1056 * The names of one or more instances to recreate. For example: | 1117 /// { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } |
| 1057 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } | |
| 1058 */ | |
| 1059 core.List<core.String> instances; | 1118 core.List<core.String> instances; |
| 1060 | 1119 |
| 1061 InstanceGroupManagersRecreateInstancesRequest(); | 1120 InstanceGroupManagersRecreateInstancesRequest(); |
| 1062 | 1121 |
| 1063 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) { | 1122 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) { |
| 1064 if (_json.containsKey("instances")) { | 1123 if (_json.containsKey("instances")) { |
| 1065 instances = _json["instances"]; | 1124 instances = _json["instances"]; |
| 1066 } | 1125 } |
| 1067 } | 1126 } |
| 1068 | 1127 |
| 1069 core.Map<core.String, core.Object> toJson() { | 1128 core.Map<core.String, core.Object> toJson() { |
| 1070 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1129 final core.Map<core.String, core.Object> _json = |
| 1130 new core.Map<core.String, core.Object>(); |
| 1071 if (instances != null) { | 1131 if (instances != null) { |
| 1072 _json["instances"] = instances; | 1132 _json["instances"] = instances; |
| 1073 } | 1133 } |
| 1074 return _json; | 1134 return _json; |
| 1075 } | 1135 } |
| 1076 } | 1136 } |
| 1077 | 1137 |
| 1078 class InstanceGroupManagersSetInstanceTemplateRequest { | 1138 class InstanceGroupManagersSetInstanceTemplateRequest { |
| 1079 /** | 1139 /// The full URL to an Instance Template from which all new instances will be |
| 1080 * The full URL to an Instance Template from which all new instances will be | 1140 /// created. |
| 1081 * created. | |
| 1082 */ | |
| 1083 core.String instanceTemplate; | 1141 core.String instanceTemplate; |
| 1084 | 1142 |
| 1085 InstanceGroupManagersSetInstanceTemplateRequest(); | 1143 InstanceGroupManagersSetInstanceTemplateRequest(); |
| 1086 | 1144 |
| 1087 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) { | 1145 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) { |
| 1088 if (_json.containsKey("instanceTemplate")) { | 1146 if (_json.containsKey("instanceTemplate")) { |
| 1089 instanceTemplate = _json["instanceTemplate"]; | 1147 instanceTemplate = _json["instanceTemplate"]; |
| 1090 } | 1148 } |
| 1091 } | 1149 } |
| 1092 | 1150 |
| 1093 core.Map<core.String, core.Object> toJson() { | 1151 core.Map<core.String, core.Object> toJson() { |
| 1094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1152 final core.Map<core.String, core.Object> _json = |
| 1153 new core.Map<core.String, core.Object>(); |
| 1095 if (instanceTemplate != null) { | 1154 if (instanceTemplate != null) { |
| 1096 _json["instanceTemplate"] = instanceTemplate; | 1155 _json["instanceTemplate"] = instanceTemplate; |
| 1097 } | 1156 } |
| 1098 return _json; | 1157 return _json; |
| 1099 } | 1158 } |
| 1100 } | 1159 } |
| 1101 | 1160 |
| 1102 class InstanceGroupManagersSetTargetPoolsRequest { | 1161 class InstanceGroupManagersSetTargetPoolsRequest { |
| 1103 /** | 1162 /// The current fingerprint of the Instance Group Manager resource. If this |
| 1104 * The current fingerprint of the Instance Group Manager resource. If this | 1163 /// 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 | 1164 /// request will be rejected. |
| 1106 * request will be rejected. | |
| 1107 */ | |
| 1108 core.String fingerprint; | 1165 core.String fingerprint; |
| 1109 core.List<core.int> get fingerprintAsBytes { | 1166 core.List<core.int> get fingerprintAsBytes { |
| 1110 return convert.BASE64.decode(fingerprint); | 1167 return convert.BASE64.decode(fingerprint); |
| 1111 } | 1168 } |
| 1112 | 1169 |
| 1113 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 1170 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 1114 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll(
"+", "-"); | 1171 fingerprint = |
| 1172 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
| 1115 } | 1173 } |
| 1116 /** | 1174 |
| 1117 * A list of fully-qualified URLs to existing Target Pool resources. New | 1175 /// A list of fully-qualified URLs to existing Target Pool resources. New |
| 1118 * instances in the Instance Group Manager will be added to the specified | 1176 /// instances in the Instance Group Manager will be added to the specified |
| 1119 * target pools; existing instances are not affected. | 1177 /// target pools; existing instances are not affected. |
| 1120 */ | |
| 1121 core.List<core.String> targetPools; | 1178 core.List<core.String> targetPools; |
| 1122 | 1179 |
| 1123 InstanceGroupManagersSetTargetPoolsRequest(); | 1180 InstanceGroupManagersSetTargetPoolsRequest(); |
| 1124 | 1181 |
| 1125 InstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) { | 1182 InstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) { |
| 1126 if (_json.containsKey("fingerprint")) { | 1183 if (_json.containsKey("fingerprint")) { |
| 1127 fingerprint = _json["fingerprint"]; | 1184 fingerprint = _json["fingerprint"]; |
| 1128 } | 1185 } |
| 1129 if (_json.containsKey("targetPools")) { | 1186 if (_json.containsKey("targetPools")) { |
| 1130 targetPools = _json["targetPools"]; | 1187 targetPools = _json["targetPools"]; |
| 1131 } | 1188 } |
| 1132 } | 1189 } |
| 1133 | 1190 |
| 1134 core.Map<core.String, core.Object> toJson() { | 1191 core.Map<core.String, core.Object> toJson() { |
| 1135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1192 final core.Map<core.String, core.Object> _json = |
| 1193 new core.Map<core.String, core.Object>(); |
| 1136 if (fingerprint != null) { | 1194 if (fingerprint != null) { |
| 1137 _json["fingerprint"] = fingerprint; | 1195 _json["fingerprint"] = fingerprint; |
| 1138 } | 1196 } |
| 1139 if (targetPools != null) { | 1197 if (targetPools != null) { |
| 1140 _json["targetPools"] = targetPools; | 1198 _json["targetPools"] = targetPools; |
| 1141 } | 1199 } |
| 1142 return _json; | 1200 return _json; |
| 1143 } | 1201 } |
| 1144 } | 1202 } |
| 1145 | 1203 |
| 1146 class OperationErrorErrors { | 1204 class OperationErrorErrors { |
| 1147 /** [Output Only] The error type identifier for this error. */ | 1205 /// [Output Only] The error type identifier for this error. |
| 1148 core.String code; | 1206 core.String code; |
| 1149 /** | 1207 |
| 1150 * [Output Only] Indicates the field in the request which caused the error. | 1208 /// [Output Only] Indicates the field in the request which caused the error. |
| 1151 * This property is optional. | 1209 /// This property is optional. |
| 1152 */ | |
| 1153 core.String location; | 1210 core.String location; |
| 1154 /** [Output Only] An optional, human-readable error message. */ | 1211 |
| 1212 /// [Output Only] An optional, human-readable error message. |
| 1155 core.String message; | 1213 core.String message; |
| 1156 | 1214 |
| 1157 OperationErrorErrors(); | 1215 OperationErrorErrors(); |
| 1158 | 1216 |
| 1159 OperationErrorErrors.fromJson(core.Map _json) { | 1217 OperationErrorErrors.fromJson(core.Map _json) { |
| 1160 if (_json.containsKey("code")) { | 1218 if (_json.containsKey("code")) { |
| 1161 code = _json["code"]; | 1219 code = _json["code"]; |
| 1162 } | 1220 } |
| 1163 if (_json.containsKey("location")) { | 1221 if (_json.containsKey("location")) { |
| 1164 location = _json["location"]; | 1222 location = _json["location"]; |
| 1165 } | 1223 } |
| 1166 if (_json.containsKey("message")) { | 1224 if (_json.containsKey("message")) { |
| 1167 message = _json["message"]; | 1225 message = _json["message"]; |
| 1168 } | 1226 } |
| 1169 } | 1227 } |
| 1170 | 1228 |
| 1171 core.Map<core.String, core.Object> toJson() { | 1229 core.Map<core.String, core.Object> toJson() { |
| 1172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1230 final core.Map<core.String, core.Object> _json = |
| 1231 new core.Map<core.String, core.Object>(); |
| 1173 if (code != null) { | 1232 if (code != null) { |
| 1174 _json["code"] = code; | 1233 _json["code"] = code; |
| 1175 } | 1234 } |
| 1176 if (location != null) { | 1235 if (location != null) { |
| 1177 _json["location"] = location; | 1236 _json["location"] = location; |
| 1178 } | 1237 } |
| 1179 if (message != null) { | 1238 if (message != null) { |
| 1180 _json["message"] = message; | 1239 _json["message"] = message; |
| 1181 } | 1240 } |
| 1182 return _json; | 1241 return _json; |
| 1183 } | 1242 } |
| 1184 } | 1243 } |
| 1185 | 1244 |
| 1186 /** | 1245 /// [Output Only] If errors occurred during processing of this operation, this |
| 1187 * [Output Only] If errors occurred during processing of this operation, this | 1246 /// field will be populated. |
| 1188 * field will be populated. | |
| 1189 */ | |
| 1190 class OperationError { | 1247 class OperationError { |
| 1191 /** | 1248 /// [Output Only] The array of errors encountered while processing this |
| 1192 * [Output Only] The array of errors encountered while processing this | 1249 /// operation. |
| 1193 * operation. | |
| 1194 */ | |
| 1195 core.List<OperationErrorErrors> errors; | 1250 core.List<OperationErrorErrors> errors; |
| 1196 | 1251 |
| 1197 OperationError(); | 1252 OperationError(); |
| 1198 | 1253 |
| 1199 OperationError.fromJson(core.Map _json) { | 1254 OperationError.fromJson(core.Map _json) { |
| 1200 if (_json.containsKey("errors")) { | 1255 if (_json.containsKey("errors")) { |
| 1201 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 1256 errors = _json["errors"] |
| 1257 .map((value) => new OperationErrorErrors.fromJson(value)) |
| 1258 .toList(); |
| 1202 } | 1259 } |
| 1203 } | 1260 } |
| 1204 | 1261 |
| 1205 core.Map<core.String, core.Object> toJson() { | 1262 core.Map<core.String, core.Object> toJson() { |
| 1206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1263 final core.Map<core.String, core.Object> _json = |
| 1264 new core.Map<core.String, core.Object>(); |
| 1207 if (errors != null) { | 1265 if (errors != null) { |
| 1208 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1266 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 1209 } | 1267 } |
| 1210 return _json; | 1268 return _json; |
| 1211 } | 1269 } |
| 1212 } | 1270 } |
| 1213 | 1271 |
| 1214 class OperationWarningsData { | 1272 class OperationWarningsData { |
| 1215 /** [Output Only] Metadata key for this warning. */ | 1273 /// [Output Only] Metadata key for this warning. |
| 1216 core.String key; | 1274 core.String key; |
| 1217 /** [Output Only] Metadata value for this warning. */ | 1275 |
| 1276 /// [Output Only] Metadata value for this warning. |
| 1218 core.String value; | 1277 core.String value; |
| 1219 | 1278 |
| 1220 OperationWarningsData(); | 1279 OperationWarningsData(); |
| 1221 | 1280 |
| 1222 OperationWarningsData.fromJson(core.Map _json) { | 1281 OperationWarningsData.fromJson(core.Map _json) { |
| 1223 if (_json.containsKey("key")) { | 1282 if (_json.containsKey("key")) { |
| 1224 key = _json["key"]; | 1283 key = _json["key"]; |
| 1225 } | 1284 } |
| 1226 if (_json.containsKey("value")) { | 1285 if (_json.containsKey("value")) { |
| 1227 value = _json["value"]; | 1286 value = _json["value"]; |
| 1228 } | 1287 } |
| 1229 } | 1288 } |
| 1230 | 1289 |
| 1231 core.Map<core.String, core.Object> toJson() { | 1290 core.Map<core.String, core.Object> toJson() { |
| 1232 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1291 final core.Map<core.String, core.Object> _json = |
| 1292 new core.Map<core.String, core.Object>(); |
| 1233 if (key != null) { | 1293 if (key != null) { |
| 1234 _json["key"] = key; | 1294 _json["key"] = key; |
| 1235 } | 1295 } |
| 1236 if (value != null) { | 1296 if (value != null) { |
| 1237 _json["value"] = value; | 1297 _json["value"] = value; |
| 1238 } | 1298 } |
| 1239 return _json; | 1299 return _json; |
| 1240 } | 1300 } |
| 1241 } | 1301 } |
| 1242 | 1302 |
| 1243 class OperationWarnings { | 1303 class OperationWarnings { |
| 1244 /** | 1304 /// [Output only] The warning type identifier for this warning. |
| 1245 * [Output only] The warning type identifier for this warning. | 1305 /// Possible string values are: |
| 1246 * Possible string values are: | 1306 /// - "DEPRECATED_RESOURCE_USED" |
| 1247 * - "DEPRECATED_RESOURCE_USED" | 1307 /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 1248 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 1308 /// - "INJECTED_KERNELS_DEPRECATED" |
| 1249 * - "INJECTED_KERNELS_DEPRECATED" | 1309 /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 1250 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 1310 /// - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 1251 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 1311 /// - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 1252 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 1312 /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 1253 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 1313 /// - "NEXT_HOP_NOT_RUNNING" |
| 1254 * - "NEXT_HOP_NOT_RUNNING" | 1314 /// - "NO_RESULTS_ON_PAGE" |
| 1255 * - "NO_RESULTS_ON_PAGE" | 1315 /// - "REQUIRED_TOS_AGREEMENT" |
| 1256 * - "REQUIRED_TOS_AGREEMENT" | 1316 /// - "RESOURCE_NOT_DELETED" |
| 1257 * - "RESOURCE_NOT_DELETED" | 1317 /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 1258 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" | 1318 /// - "UNREACHABLE" |
| 1259 * - "UNREACHABLE" | |
| 1260 */ | |
| 1261 core.String code; | 1319 core.String code; |
| 1262 /** [Output only] Metadata for this warning in key:value format. */ | 1320 |
| 1321 /// [Output only] Metadata for this warning in key:value format. |
| 1263 core.List<OperationWarningsData> data; | 1322 core.List<OperationWarningsData> data; |
| 1264 /** [Output only] Optional human-readable details for this warning. */ | 1323 |
| 1324 /// [Output only] Optional human-readable details for this warning. |
| 1265 core.String message; | 1325 core.String message; |
| 1266 | 1326 |
| 1267 OperationWarnings(); | 1327 OperationWarnings(); |
| 1268 | 1328 |
| 1269 OperationWarnings.fromJson(core.Map _json) { | 1329 OperationWarnings.fromJson(core.Map _json) { |
| 1270 if (_json.containsKey("code")) { | 1330 if (_json.containsKey("code")) { |
| 1271 code = _json["code"]; | 1331 code = _json["code"]; |
| 1272 } | 1332 } |
| 1273 if (_json.containsKey("data")) { | 1333 if (_json.containsKey("data")) { |
| 1274 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 1334 data = _json["data"] |
| 1335 .map((value) => new OperationWarningsData.fromJson(value)) |
| 1336 .toList(); |
| 1275 } | 1337 } |
| 1276 if (_json.containsKey("message")) { | 1338 if (_json.containsKey("message")) { |
| 1277 message = _json["message"]; | 1339 message = _json["message"]; |
| 1278 } | 1340 } |
| 1279 } | 1341 } |
| 1280 | 1342 |
| 1281 core.Map<core.String, core.Object> toJson() { | 1343 core.Map<core.String, core.Object> toJson() { |
| 1282 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1344 final core.Map<core.String, core.Object> _json = |
| 1345 new core.Map<core.String, core.Object>(); |
| 1283 if (code != null) { | 1346 if (code != null) { |
| 1284 _json["code"] = code; | 1347 _json["code"] = code; |
| 1285 } | 1348 } |
| 1286 if (data != null) { | 1349 if (data != null) { |
| 1287 _json["data"] = data.map((value) => (value).toJson()).toList(); | 1350 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 1288 } | 1351 } |
| 1289 if (message != null) { | 1352 if (message != null) { |
| 1290 _json["message"] = message; | 1353 _json["message"] = message; |
| 1291 } | 1354 } |
| 1292 return _json; | 1355 return _json; |
| 1293 } | 1356 } |
| 1294 } | 1357 } |
| 1295 | 1358 |
| 1296 /** An operation resource, used to manage asynchronous API requests. */ | 1359 /// An operation resource, used to manage asynchronous API requests. |
| 1297 class Operation { | 1360 class Operation { |
| 1298 /** | 1361 /// [Output only] An optional identifier specified by the client when the |
| 1299 * [Output only] An optional identifier specified by the client when the | 1362 /// mutation was initiated. Must be unique for all operation resources in the |
| 1300 * mutation was initiated. Must be unique for all operation resources in the | 1363 /// project. |
| 1301 * project. | |
| 1302 */ | |
| 1303 core.String clientOperationId; | 1364 core.String clientOperationId; |
| 1304 /** | 1365 |
| 1305 * [Output Only] The time that this operation was requested, in RFC3339 text | 1366 /// [Output Only] The time that this operation was requested, in RFC3339 text |
| 1306 * format. | 1367 /// format. |
| 1307 */ | |
| 1308 core.String creationTimestamp; | 1368 core.String creationTimestamp; |
| 1309 /** | 1369 |
| 1310 * [Output Only] The time that this operation was completed, in RFC3339 text | 1370 /// [Output Only] The time that this operation was completed, in RFC3339 text |
| 1311 * format. | 1371 /// format. |
| 1312 */ | |
| 1313 core.String endTime; | 1372 core.String endTime; |
| 1314 /** | 1373 |
| 1315 * [Output Only] If errors occurred during processing of this operation, this | 1374 /// [Output Only] If errors occurred during processing of this operation, |
| 1316 * field will be populated. | 1375 /// this field will be populated. |
| 1317 */ | |
| 1318 OperationError error; | 1376 OperationError error; |
| 1319 /** [Output only] If operation fails, the HTTP error message returned. */ | 1377 |
| 1378 /// [Output only] If operation fails, the HTTP error message returned. |
| 1320 core.String httpErrorMessage; | 1379 core.String httpErrorMessage; |
| 1321 /** [Output only] If operation fails, the HTTP error status code returned. */ | 1380 |
| 1381 /// [Output only] If operation fails, the HTTP error status code returned. |
| 1322 core.int httpErrorStatusCode; | 1382 core.int httpErrorStatusCode; |
| 1323 /** | 1383 |
| 1324 * [Output Only] Unique identifier for the resource, generated by the server. | 1384 /// [Output Only] Unique identifier for the resource, generated by the |
| 1325 */ | 1385 /// server. |
| 1326 core.String id; | 1386 core.String id; |
| 1327 /** | 1387 |
| 1328 * [Output Only] The time that this operation was requested, in RFC3339 text | 1388 /// [Output Only] The time that this operation was requested, in RFC3339 text |
| 1329 * format. | 1389 /// format. |
| 1330 */ | |
| 1331 core.String insertTime; | 1390 core.String insertTime; |
| 1332 /** [Output only] Type of the resource. */ | 1391 |
| 1392 /// [Output only] Type of the resource. |
| 1333 core.String kind; | 1393 core.String kind; |
| 1334 /** [Output Only] Name of the resource. */ | 1394 |
| 1395 /// [Output Only] Name of the resource. |
| 1335 core.String name; | 1396 core.String name; |
| 1336 /** | 1397 |
| 1337 * [Output only] Type of the operation. Operations include insert, update, and | 1398 /// [Output only] Type of the operation. Operations include insert, update, |
| 1338 * delete. | 1399 /// and delete. |
| 1339 */ | |
| 1340 core.String operationType; | 1400 core.String operationType; |
| 1341 /** | 1401 |
| 1342 * [Output only] An optional progress indicator that ranges from 0 to 100. | 1402 /// [Output only] An optional progress indicator that ranges from 0 to 100. |
| 1343 * There is no requirement that this be linear or support any granularity of | 1403 /// There is no requirement that this be linear or support any granularity of |
| 1344 * operations. This should not be used to guess at when the operation will be | 1404 /// operations. This should not be used to guess at when the operation will |
| 1345 * complete. This number should be monotonically increasing as the operation | 1405 /// be complete. This number should be monotonically increasing as the |
| 1346 * progresses. | 1406 /// operation progresses. |
| 1347 */ | |
| 1348 core.int progress; | 1407 core.int progress; |
| 1349 /** | 1408 |
| 1350 * [Output Only] URL of the region where the operation resides. Only available | 1409 /// [Output Only] URL of the region where the operation resides. Only |
| 1351 * when performing regional operations. | 1410 /// available when performing regional operations. |
| 1352 */ | |
| 1353 core.String region; | 1411 core.String region; |
| 1354 /** [Output Only] Server-defined fully-qualified URL for this resource. */ | 1412 |
| 1413 /// [Output Only] Server-defined fully-qualified URL for this resource. |
| 1355 core.String selfLink; | 1414 core.String selfLink; |
| 1356 /** | 1415 |
| 1357 * [Output Only] The time that this operation was started by the server, in | 1416 /// [Output Only] The time that this operation was started by the server, in |
| 1358 * RFC3339 text format. | 1417 /// RFC3339 text format. |
| 1359 */ | |
| 1360 core.String startTime; | 1418 core.String startTime; |
| 1361 /** | 1419 |
| 1362 * [Output Only] Status of the operation. | 1420 /// [Output Only] Status of the operation. |
| 1363 * Possible string values are: | 1421 /// Possible string values are: |
| 1364 * - "DONE" | 1422 /// - "DONE" |
| 1365 * - "PENDING" | 1423 /// - "PENDING" |
| 1366 * - "RUNNING" | 1424 /// - "RUNNING" |
| 1367 */ | |
| 1368 core.String status; | 1425 core.String status; |
| 1369 /** | 1426 |
| 1370 * [Output Only] An optional textual description of the current status of the | 1427 /// [Output Only] An optional textual description of the current status of |
| 1371 * operation. | 1428 /// the operation. |
| 1372 */ | |
| 1373 core.String statusMessage; | 1429 core.String statusMessage; |
| 1374 /** | 1430 |
| 1375 * [Output Only] Unique target ID which identifies a particular incarnation of | 1431 /// [Output Only] Unique target ID which identifies a particular incarnation |
| 1376 * the target. | 1432 /// of the target. |
| 1377 */ | |
| 1378 core.String targetId; | 1433 core.String targetId; |
| 1379 /** [Output only] URL of the resource the operation is mutating. */ | 1434 |
| 1435 /// [Output only] URL of the resource the operation is mutating. |
| 1380 core.String targetLink; | 1436 core.String targetLink; |
| 1381 /** | 1437 |
| 1382 * [Output Only] User who requested the operation, for example: | 1438 /// [Output Only] User who requested the operation, for example: |
| 1383 * user@example.com. | 1439 /// user@example.com. |
| 1384 */ | |
| 1385 core.String user; | 1440 core.String user; |
| 1386 /** | 1441 |
| 1387 * [Output Only] If there are issues with this operation, a warning is | 1442 /// [Output Only] If there are issues with this operation, a warning is |
| 1388 * returned. | 1443 /// returned. |
| 1389 */ | |
| 1390 core.List<OperationWarnings> warnings; | 1444 core.List<OperationWarnings> warnings; |
| 1391 /** | 1445 |
| 1392 * [Output Only] URL of the zone where the operation resides. Only available | 1446 /// [Output Only] URL of the zone where the operation resides. Only available |
| 1393 * when performing per-zone operations. | 1447 /// when performing per-zone operations. |
| 1394 */ | |
| 1395 core.String zone; | 1448 core.String zone; |
| 1396 | 1449 |
| 1397 Operation(); | 1450 Operation(); |
| 1398 | 1451 |
| 1399 Operation.fromJson(core.Map _json) { | 1452 Operation.fromJson(core.Map _json) { |
| 1400 if (_json.containsKey("clientOperationId")) { | 1453 if (_json.containsKey("clientOperationId")) { |
| 1401 clientOperationId = _json["clientOperationId"]; | 1454 clientOperationId = _json["clientOperationId"]; |
| 1402 } | 1455 } |
| 1403 if (_json.containsKey("creationTimestamp")) { | 1456 if (_json.containsKey("creationTimestamp")) { |
| 1404 creationTimestamp = _json["creationTimestamp"]; | 1457 creationTimestamp = _json["creationTimestamp"]; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 if (_json.containsKey("targetId")) { | 1504 if (_json.containsKey("targetId")) { |
| 1452 targetId = _json["targetId"]; | 1505 targetId = _json["targetId"]; |
| 1453 } | 1506 } |
| 1454 if (_json.containsKey("targetLink")) { | 1507 if (_json.containsKey("targetLink")) { |
| 1455 targetLink = _json["targetLink"]; | 1508 targetLink = _json["targetLink"]; |
| 1456 } | 1509 } |
| 1457 if (_json.containsKey("user")) { | 1510 if (_json.containsKey("user")) { |
| 1458 user = _json["user"]; | 1511 user = _json["user"]; |
| 1459 } | 1512 } |
| 1460 if (_json.containsKey("warnings")) { | 1513 if (_json.containsKey("warnings")) { |
| 1461 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 1514 warnings = _json["warnings"] |
| 1515 .map((value) => new OperationWarnings.fromJson(value)) |
| 1516 .toList(); |
| 1462 } | 1517 } |
| 1463 if (_json.containsKey("zone")) { | 1518 if (_json.containsKey("zone")) { |
| 1464 zone = _json["zone"]; | 1519 zone = _json["zone"]; |
| 1465 } | 1520 } |
| 1466 } | 1521 } |
| 1467 | 1522 |
| 1468 core.Map<core.String, core.Object> toJson() { | 1523 core.Map<core.String, core.Object> toJson() { |
| 1469 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1524 final core.Map<core.String, core.Object> _json = |
| 1525 new core.Map<core.String, core.Object>(); |
| 1470 if (clientOperationId != null) { | 1526 if (clientOperationId != null) { |
| 1471 _json["clientOperationId"] = clientOperationId; | 1527 _json["clientOperationId"] = clientOperationId; |
| 1472 } | 1528 } |
| 1473 if (creationTimestamp != null) { | 1529 if (creationTimestamp != null) { |
| 1474 _json["creationTimestamp"] = creationTimestamp; | 1530 _json["creationTimestamp"] = creationTimestamp; |
| 1475 } | 1531 } |
| 1476 if (endTime != null) { | 1532 if (endTime != null) { |
| 1477 _json["endTime"] = endTime; | 1533 _json["endTime"] = endTime; |
| 1478 } | 1534 } |
| 1479 if (error != null) { | 1535 if (error != null) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1587 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
| 1532 } | 1588 } |
| 1533 if (zone != null) { | 1589 if (zone != null) { |
| 1534 _json["zone"] = zone; | 1590 _json["zone"] = zone; |
| 1535 } | 1591 } |
| 1536 return _json; | 1592 return _json; |
| 1537 } | 1593 } |
| 1538 } | 1594 } |
| 1539 | 1595 |
| 1540 class OperationList { | 1596 class OperationList { |
| 1541 /** | 1597 /// Unique identifier for the resource; defined by the server (output only). |
| 1542 * Unique identifier for the resource; defined by the server (output only). | |
| 1543 */ | |
| 1544 core.String id; | 1598 core.String id; |
| 1545 /** The operation resources. */ | 1599 |
| 1600 /// The operation resources. |
| 1546 core.List<Operation> items; | 1601 core.List<Operation> items; |
| 1547 /** Type of resource. */ | 1602 |
| 1603 /// Type of resource. |
| 1548 core.String kind; | 1604 core.String kind; |
| 1549 /** A token used to continue a truncated list request (output only). */ | 1605 |
| 1606 /// A token used to continue a truncated list request (output only). |
| 1550 core.String nextPageToken; | 1607 core.String nextPageToken; |
| 1551 /** Server defined URL for this resource (output only). */ | 1608 |
| 1609 /// Server defined URL for this resource (output only). |
| 1552 core.String selfLink; | 1610 core.String selfLink; |
| 1553 | 1611 |
| 1554 OperationList(); | 1612 OperationList(); |
| 1555 | 1613 |
| 1556 OperationList.fromJson(core.Map _json) { | 1614 OperationList.fromJson(core.Map _json) { |
| 1557 if (_json.containsKey("id")) { | 1615 if (_json.containsKey("id")) { |
| 1558 id = _json["id"]; | 1616 id = _json["id"]; |
| 1559 } | 1617 } |
| 1560 if (_json.containsKey("items")) { | 1618 if (_json.containsKey("items")) { |
| 1561 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); | 1619 items = |
| 1620 _json["items"].map((value) => new Operation.fromJson(value)).toList(); |
| 1562 } | 1621 } |
| 1563 if (_json.containsKey("kind")) { | 1622 if (_json.containsKey("kind")) { |
| 1564 kind = _json["kind"]; | 1623 kind = _json["kind"]; |
| 1565 } | 1624 } |
| 1566 if (_json.containsKey("nextPageToken")) { | 1625 if (_json.containsKey("nextPageToken")) { |
| 1567 nextPageToken = _json["nextPageToken"]; | 1626 nextPageToken = _json["nextPageToken"]; |
| 1568 } | 1627 } |
| 1569 if (_json.containsKey("selfLink")) { | 1628 if (_json.containsKey("selfLink")) { |
| 1570 selfLink = _json["selfLink"]; | 1629 selfLink = _json["selfLink"]; |
| 1571 } | 1630 } |
| 1572 } | 1631 } |
| 1573 | 1632 |
| 1574 core.Map<core.String, core.Object> toJson() { | 1633 core.Map<core.String, core.Object> toJson() { |
| 1575 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1634 final core.Map<core.String, core.Object> _json = |
| 1635 new core.Map<core.String, core.Object>(); |
| 1576 if (id != null) { | 1636 if (id != null) { |
| 1577 _json["id"] = id; | 1637 _json["id"] = id; |
| 1578 } | 1638 } |
| 1579 if (items != null) { | 1639 if (items != null) { |
| 1580 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1640 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1581 } | 1641 } |
| 1582 if (kind != null) { | 1642 if (kind != null) { |
| 1583 _json["kind"] = kind; | 1643 _json["kind"] = kind; |
| 1584 } | 1644 } |
| 1585 if (nextPageToken != null) { | 1645 if (nextPageToken != null) { |
| 1586 _json["nextPageToken"] = nextPageToken; | 1646 _json["nextPageToken"] = nextPageToken; |
| 1587 } | 1647 } |
| 1588 if (selfLink != null) { | 1648 if (selfLink != null) { |
| 1589 _json["selfLink"] = selfLink; | 1649 _json["selfLink"] = selfLink; |
| 1590 } | 1650 } |
| 1591 return _json; | 1651 return _json; |
| 1592 } | 1652 } |
| 1593 } | 1653 } |
| 1594 | 1654 |
| 1595 class ReplicaPoolAutoHealingPolicy { | 1655 class ReplicaPoolAutoHealingPolicy { |
| 1596 /** | 1656 /// The action to perform when an instance becomes unhealthy. Possible values |
| 1597 * The action to perform when an instance becomes unhealthy. Possible values | 1657 /// are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a |
| 1598 * are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new | 1658 /// new instance that is based on the instance template for this managed |
| 1599 * instance that is based on the instance template for this managed instance | 1659 /// instance group. REBOOT performs a soft reboot on an instance. If the |
| 1600 * group. REBOOT performs a soft reboot on an instance. If the instance cannot | 1660 /// instance cannot reboot, the instance performs a hard restart. |
| 1601 * reboot, the instance performs a hard restart. | 1661 /// Possible string values are: |
| 1602 * Possible string values are: | 1662 /// - "REBOOT" |
| 1603 * - "REBOOT" | 1663 /// - "RECREATE" |
| 1604 * - "RECREATE" | |
| 1605 */ | |
| 1606 core.String actionType; | 1664 core.String actionType; |
| 1607 /** The URL for the HealthCheck that signals autohealing. */ | 1665 |
| 1666 /// The URL for the HealthCheck that signals autohealing. |
| 1608 core.String healthCheck; | 1667 core.String healthCheck; |
| 1609 | 1668 |
| 1610 ReplicaPoolAutoHealingPolicy(); | 1669 ReplicaPoolAutoHealingPolicy(); |
| 1611 | 1670 |
| 1612 ReplicaPoolAutoHealingPolicy.fromJson(core.Map _json) { | 1671 ReplicaPoolAutoHealingPolicy.fromJson(core.Map _json) { |
| 1613 if (_json.containsKey("actionType")) { | 1672 if (_json.containsKey("actionType")) { |
| 1614 actionType = _json["actionType"]; | 1673 actionType = _json["actionType"]; |
| 1615 } | 1674 } |
| 1616 if (_json.containsKey("healthCheck")) { | 1675 if (_json.containsKey("healthCheck")) { |
| 1617 healthCheck = _json["healthCheck"]; | 1676 healthCheck = _json["healthCheck"]; |
| 1618 } | 1677 } |
| 1619 } | 1678 } |
| 1620 | 1679 |
| 1621 core.Map<core.String, core.Object> toJson() { | 1680 core.Map<core.String, core.Object> toJson() { |
| 1622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1681 final core.Map<core.String, core.Object> _json = |
| 1682 new core.Map<core.String, core.Object>(); |
| 1623 if (actionType != null) { | 1683 if (actionType != null) { |
| 1624 _json["actionType"] = actionType; | 1684 _json["actionType"] = actionType; |
| 1625 } | 1685 } |
| 1626 if (healthCheck != null) { | 1686 if (healthCheck != null) { |
| 1627 _json["healthCheck"] = healthCheck; | 1687 _json["healthCheck"] = healthCheck; |
| 1628 } | 1688 } |
| 1629 return _json; | 1689 return _json; |
| 1630 } | 1690 } |
| 1631 } | 1691 } |
| OLD | NEW |