Index: generated/googleapis/lib/compute/v1.dart |
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart |
index 92e8728ca82f5ceead814195c036aecbd75daac9..c90ba9d367e29cc752c6c3040c1e319f7ee8f1a0 100644 |
--- a/generated/googleapis/lib/compute/v1.dart |
+++ b/generated/googleapis/lib/compute/v1.dart |
@@ -39,6 +39,7 @@ class ComputeApi { |
final commons.ApiRequester _requester; |
AddressesResourceApi get addresses => new AddressesResourceApi(_requester); |
+ AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requester); |
BackendServicesResourceApi get backendServices => new BackendServicesResourceApi(_requester); |
DiskTypesResourceApi get diskTypes => new DiskTypesResourceApi(_requester); |
DisksResourceApi get disks => new DisksResourceApi(_requester); |
@@ -91,24 +92,18 @@ class AddressesResourceApi { |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -331,24 +326,18 @@ class AddressesResourceApi { |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -404,14 +393,14 @@ class AddressesResourceApi { |
} |
-class BackendServicesResourceApi { |
+class AutoscalersResourceApi { |
final commons.ApiRequester _requester; |
- BackendServicesResourceApi(commons.ApiRequester client) : |
+ AutoscalersResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified BackendService resource. |
+ * Retrieves the list of autoscalers grouped by scope. |
* |
* Request parameters: |
* |
@@ -419,10 +408,28 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [backendService] - Name of the BackendService resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Operation]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [AutoscalerAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -430,7 +437,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String backendService) { |
+ async.Future<AutoscalerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -441,24 +448,30 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (backendService == null) { |
- throw new core.ArgumentError("Parameter backendService is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/autoscalers'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new AutoscalerAggregatedList.fromJson(data)); |
} |
/** |
- * Returns the specified BackendService resource. |
+ * Deletes the specified autoscaler resource. |
* |
* Request parameters: |
* |
@@ -466,10 +479,13 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [backendService] - Name of the BackendService resource to return. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [BackendService]. |
+ * [autoscaler] - Name of the persistent autoscaler resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -477,7 +493,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<BackendService> get(core.String project, core.String backendService) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String autoscaler) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -488,38 +504,41 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (backendService == null) { |
- throw new core.ArgumentError("Parameter backendService is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (autoscaler == null) { |
+ throw new core.ArgumentError("Parameter autoscaler is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecapeVariable('$autoscaler'); |
var _response = _requester.request(_url, |
- "GET", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new BackendService.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Gets the most recent health check results for this BackendService. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified autoscaler resource. |
* |
* Request parameters: |
* |
- * [project] - null |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [backendService] - Name of the BackendService resource to which the queried |
- * instance belongs. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [BackendServiceGroupHealth]. |
+ * [autoscaler] - Name of the persistent autoscaler resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Autoscaler]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -527,7 +546,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<BackendServiceGroupHealth> getHealth(ResourceGroupReference request, core.String project, core.String backendService) { |
+ async.Future<Autoscaler> get(core.String project, core.String zone, core.String autoscaler) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -535,30 +554,30 @@ class BackendServicesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (backendService == null) { |
- throw new core.ArgumentError("Parameter backendService is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (autoscaler == null) { |
+ throw new core.ArgumentError("Parameter autoscaler is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService') + '/getHealth'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecapeVariable('$autoscaler'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new BackendServiceGroupHealth.fromJson(data)); |
+ return _response.then((data) => new Autoscaler.fromJson(data)); |
} |
/** |
- * Creates a BackendService resource in the specified project using the data |
+ * Creates an autoscaler resource in the specified project using the data |
* included in the request. |
* |
* [request] - The metadata request object. |
@@ -569,6 +588,9 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -577,7 +599,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(BackendService request, core.String project) { |
+ async.Future<Operation> insert(Autoscaler request, core.String project, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -591,8 +613,11 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
var _response = _requester.request(_url, |
"POST", |
@@ -605,8 +630,8 @@ class BackendServicesResourceApi { |
} |
/** |
- * Retrieves the list of BackendService resources available to the specified |
- * project. |
+ * Retrieves the list of autoscaler resources contained within the specified |
+ * zone. |
* |
* Request parameters: |
* |
@@ -614,25 +639,22 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -641,7 +663,7 @@ class BackendServicesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [BackendServiceList]. |
+ * Completes with a [AutoscalerList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -649,7 +671,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<BackendServiceList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<AutoscalerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -660,6 +682,9 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -670,7 +695,7 @@ class BackendServicesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
var _response = _requester.request(_url, |
"GET", |
@@ -679,12 +704,12 @@ class BackendServicesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new BackendServiceList.fromJson(data)); |
+ return _response.then((data) => new AutoscalerList.fromJson(data)); |
} |
/** |
- * Update the entire content of the BackendService resource. This method |
- * supports patch semantics. |
+ * Updates an autoscaler resource in the specified project using the data |
+ * included in the request. This method supports patch semantics. |
* |
* [request] - The metadata request object. |
* |
@@ -694,7 +719,10 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [backendService] - Name of the BackendService resource to update. |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [autoscaler] - Name of the autoscaler resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -705,7 +733,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> patch(BackendService request, core.String project, core.String backendService) { |
+ async.Future<Operation> patch(Autoscaler request, core.String project, core.String zone, core.String autoscaler) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -719,11 +747,15 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (backendService == null) { |
- throw new core.ArgumentError("Parameter backendService is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (autoscaler == null) { |
+ throw new core.ArgumentError("Parameter autoscaler is required."); |
} |
+ _queryParams["autoscaler"] = [autoscaler]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
var _response = _requester.request(_url, |
"PATCH", |
@@ -736,7 +768,8 @@ class BackendServicesResourceApi { |
} |
/** |
- * Update the entire content of the BackendService resource. |
+ * Updates an autoscaler resource in the specified project using the data |
+ * included in the request. |
* |
* [request] - The metadata request object. |
* |
@@ -746,7 +779,10 @@ class BackendServicesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [backendService] - Name of the BackendService resource to update. |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [autoscaler] - Name of the autoscaler resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -757,7 +793,7 @@ class BackendServicesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> update(BackendService request, core.String project, core.String backendService) { |
+ async.Future<Operation> update(Autoscaler request, core.String project, core.String zone, {core.String autoscaler}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -771,11 +807,14 @@ class BackendServicesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (backendService == null) { |
- throw new core.ArgumentError("Parameter backendService is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (autoscaler != null) { |
+ _queryParams["autoscaler"] = [autoscaler]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
var _response = _requester.request(_url, |
"PUT", |
@@ -790,49 +829,25 @@ class BackendServicesResourceApi { |
} |
-class DiskTypesResourceApi { |
+class BackendServicesResourceApi { |
final commons.ApiRequester _requester; |
- DiskTypesResourceApi(commons.ApiRequester client) : |
+ BackendServicesResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Retrieves the list of disk type resources grouped by scope. |
+ * Deletes the specified BackendService resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [backendService] - Name of the BackendService resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [DiskTypeAggregatedList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -840,7 +855,7 @@ class DiskTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> delete(core.String project, core.String backendService) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -851,44 +866,35 @@ class DiskTypesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (backendService == null) { |
+ throw new core.ArgumentError("Parameter backendService is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/diskTypes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
var _response = _requester.request(_url, |
- "GET", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new DiskTypeAggregatedList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Returns the specified disk type resource. |
+ * Returns the specified BackendService resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [diskType] - Name of the disk type resource to return. |
+ * [backendService] - Name of the BackendService resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [DiskType]. |
+ * Completes with a [BackendService]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -896,7 +902,7 @@ class DiskTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<DiskType> get(core.String project, core.String zone, core.String diskType) { |
+ async.Future<BackendService> get(core.String project, core.String backendService) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -907,14 +913,11 @@ class DiskTypesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (diskType == null) { |
- throw new core.ArgumentError("Parameter diskType is required."); |
+ if (backendService == null) { |
+ throw new core.ArgumentError("Parameter backendService is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes/' + commons.Escaper.ecapeVariable('$diskType'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
var _response = _requester.request(_url, |
"GET", |
@@ -923,50 +926,25 @@ class DiskTypesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new DiskType.fromJson(data)); |
+ return _response.then((data) => new BackendService.fromJson(data)); |
} |
/** |
- * Retrieves the list of disk type resources available to the specified |
- * project. |
+ * Gets the most recent health check results for this BackendService. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - null |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
+ * [backendService] - Name of the BackendService resource to which the queried |
+ * instance belongs. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [DiskTypeList]. |
+ * Completes with a [BackendServiceGroupHealth]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -974,7 +952,7 @@ class DiskTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<BackendServiceGroupHealth> getHealth(ResourceGroupReference request, core.String project, core.String backendService) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -982,80 +960,107 @@ class DiskTypesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (backendService == null) { |
+ throw new core.ArgumentError("Parameter backendService is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService') + '/getHealth'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new DiskTypeList.fromJson(data)); |
+ return _response.then((data) => new BackendServiceGroupHealth.fromJson(data)); |
} |
-} |
- |
- |
-class DisksResourceApi { |
- final commons.ApiRequester _requester; |
- |
- DisksResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Retrieves the list of disks grouped by scope. |
+ * Creates a BackendService resource in the specified project using the data |
+ * included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * Completes with a [Operation]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Operation> insert(BackendService request, core.String project) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'; |
+ |
+ var _response = _requester.request(_url, |
+ "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Operation.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Retrieves the list of BackendService resources available to the specified |
+ * project. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Name of the project scoping this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
* |
* [pageToken] - Specifies a page token to use. Use this parameter if you want |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [DiskAggregatedList]. |
+ * Completes with a [BackendServiceList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1063,7 +1068,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<BackendServiceList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1084,7 +1089,7 @@ class DisksResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/disks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'; |
var _response = _requester.request(_url, |
"GET", |
@@ -1093,24 +1098,22 @@ class DisksResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new DiskAggregatedList.fromJson(data)); |
+ return _response.then((data) => new BackendServiceList.fromJson(data)); |
} |
/** |
- * Creates a snapshot of this disk. |
+ * Update the entire content of the BackendService resource. This method |
+ * supports patch semantics. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [disk] - Name of the persistent disk to snapshot. |
+ * [backendService] - Name of the BackendService resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -1121,7 +1124,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> createSnapshot(Snapshot request, core.String project, core.String zone, core.String disk) { |
+ async.Future<Operation> patch(BackendService request, core.String project, core.String backendService) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1135,17 +1138,14 @@ class DisksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (disk == null) { |
- throw new core.ArgumentError("Parameter disk is required."); |
+ if (backendService == null) { |
+ throw new core.ArgumentError("Parameter backendService is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk') + '/createSnapshot'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
var _response = _requester.request(_url, |
- "POST", |
+ "PATCH", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -1155,18 +1155,17 @@ class DisksResourceApi { |
} |
/** |
- * Deletes the specified persistent disk. |
+ * Update the entire content of the BackendService resource. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [disk] - Name of the persistent disk to delete. |
+ * [backendService] - Name of the BackendService resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -1177,7 +1176,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String zone, core.String disk) { |
+ async.Future<Operation> update(BackendService request, core.String project, core.String backendService) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1185,20 +1184,20 @@ class DisksResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (disk == null) { |
- throw new core.ArgumentError("Parameter disk is required."); |
+ if (backendService == null) { |
+ throw new core.ArgumentError("Parameter backendService is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "PUT", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -1207,8 +1206,17 @@ class DisksResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class DiskTypesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ DiskTypesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Returns a specified persistent disk. |
+ * Retrieves the list of disk type resources grouped by scope. |
* |
* Request parameters: |
* |
@@ -1216,13 +1224,28 @@ class DisksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [disk] - Name of the persistent disk to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * Completes with a [Disk]. |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [DiskTypeAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1230,7 +1253,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Disk> get(core.String project, core.String zone, core.String disk) { |
+ async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1241,14 +1264,17 @@ class DisksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- if (disk == null) { |
- throw new core.ArgumentError("Parameter disk is required."); |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/diskTypes'; |
var _response = _requester.request(_url, |
"GET", |
@@ -1257,14 +1283,11 @@ class DisksResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Disk.fromJson(data)); |
+ return _response.then((data) => new DiskTypeAggregatedList.fromJson(data)); |
} |
/** |
- * Creates a persistent disk in the specified project using the data included |
- * in the request. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified disk type resource. |
* |
* Request parameters: |
* |
@@ -1275,9 +1298,10 @@ class DisksResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [sourceImage] - Optional. Source image to restore onto a disk. |
+ * [diskType] - Name of the disk type resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * Completes with a [DiskType]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1285,7 +1309,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Disk request, core.String project, core.String zone, {core.String sourceImage}) { |
+ async.Future<DiskType> get(core.String project, core.String zone, core.String diskType) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1293,33 +1317,31 @@ class DisksResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (sourceImage != null) { |
- _queryParams["sourceImage"] = [sourceImage]; |
+ if (diskType == null) { |
+ throw new core.ArgumentError("Parameter diskType is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes/' + commons.Escaper.ecapeVariable('$diskType'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new DiskType.fromJson(data)); |
} |
/** |
- * Retrieves the list of persistent disks contained within the specified zone. |
+ * Retrieves the list of disk type resources available to the specified |
+ * project. |
* |
* Request parameters: |
* |
@@ -1331,24 +1353,18 @@ class DisksResourceApi { |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -1357,7 +1373,7 @@ class DisksResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [DiskList]. |
+ * Completes with a [DiskTypeList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1365,7 +1381,7 @@ class DisksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1389,7 +1405,7 @@ class DisksResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes'; |
var _response = _requester.request(_url, |
"GET", |
@@ -1398,20 +1414,20 @@ class DisksResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new DiskList.fromJson(data)); |
+ return _response.then((data) => new DiskTypeList.fromJson(data)); |
} |
} |
-class FirewallsResourceApi { |
+class DisksResourceApi { |
final commons.ApiRequester _requester; |
- FirewallsResourceApi(commons.ApiRequester client) : |
+ DisksResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified firewall resource. |
+ * Retrieves the list of disks grouped by scope. |
* |
* Request parameters: |
* |
@@ -1419,10 +1435,28 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [firewall] - Name of the firewall resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Operation]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [DiskAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1430,7 +1464,7 @@ class FirewallsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String firewall) { |
+ async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1441,24 +1475,32 @@ class FirewallsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (firewall == null) { |
- throw new core.ArgumentError("Parameter firewall is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/disks'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new DiskAggregatedList.fromJson(data)); |
} |
/** |
- * Returns the specified firewall resource. |
+ * Creates a snapshot of this disk. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -1466,10 +1508,13 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [firewall] - Name of the firewall resource to return. |
+ * [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Firewall]. |
+ * [disk] - Name of the persistent disk to snapshot. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1477,7 +1522,7 @@ class FirewallsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Firewall> get(core.String project, core.String firewall) { |
+ async.Future<Operation> createSnapshot(Snapshot request, core.String project, core.String zone, core.String disk) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1485,30 +1530,36 @@ class FirewallsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (firewall == null) { |
- throw new core.ArgumentError("Parameter firewall is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (disk == null) { |
+ throw new core.ArgumentError("Parameter disk is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk') + '/createSnapshot'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Firewall.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a firewall resource in the specified project using the data |
- * included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified persistent disk. Deleting a disk removes its data |
+ * permanently and is irreversible. However, deleting a disk does not delete |
+ * any snapshots previously made from the disk. You must separately delete |
+ * snapshots. |
* |
* Request parameters: |
* |
@@ -1516,6 +1567,12 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [disk] - Name of the persistent disk to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -1524,7 +1581,7 @@ class FirewallsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Firewall request, core.String project) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String disk) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1532,17 +1589,20 @@ class FirewallsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (disk == null) { |
+ throw new core.ArgumentError("Parameter disk is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -1552,8 +1612,7 @@ class FirewallsResourceApi { |
} |
/** |
- * Retrieves the list of firewall resources available to the specified |
- * project. |
+ * Returns a specified persistent disk. |
* |
* Request parameters: |
* |
@@ -1561,34 +1620,13 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [disk] - Name of the persistent disk to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [FirewallList]. |
+ * Completes with a [Disk]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1596,7 +1634,7 @@ class FirewallsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<FirewallList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Disk> get(core.String project, core.String zone, core.String disk) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1607,17 +1645,14 @@ class FirewallsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (disk == null) { |
+ throw new core.ArgumentError("Parameter disk is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
var _response = _requester.request(_url, |
"GET", |
@@ -1626,12 +1661,12 @@ class FirewallsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new FirewallList.fromJson(data)); |
+ return _response.then((data) => new Disk.fromJson(data)); |
} |
/** |
- * Updates the specified firewall resource with the data included in the |
- * request. This method supports patch semantics. |
+ * Creates a persistent disk in the specified project using the data included |
+ * in the request. |
* |
* [request] - The metadata request object. |
* |
@@ -1641,9 +1676,11 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [firewall] - Name of the firewall resource to update. |
+ * [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
+ * [sourceImage] - Optional. Source image to restore onto a disk. |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -1652,7 +1689,7 @@ class FirewallsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> patch(Firewall request, core.String project, core.String firewall) { |
+ async.Future<Operation> insert(Disk request, core.String project, core.String zone, {core.String sourceImage}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1666,14 +1703,17 @@ class FirewallsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (firewall == null) { |
- throw new core.ArgumentError("Parameter firewall is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (sourceImage != null) { |
+ _queryParams["sourceImage"] = [sourceImage]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks'; |
var _response = _requester.request(_url, |
- "PATCH", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -1683,10 +1723,7 @@ class FirewallsResourceApi { |
} |
/** |
- * Updates the specified firewall resource with the data included in the |
- * request. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of persistent disks contained within the specified zone. |
* |
* Request parameters: |
* |
@@ -1694,84 +1731,22 @@ class FirewallsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [firewall] - Name of the firewall resource to update. |
+ * [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Operation> update(Firewall request, core.String project, core.String firewall) { |
- var _url = null; |
- var _queryParams = new core.Map(); |
- var _uploadMedia = null; |
- var _uploadOptions = null; |
- var _downloadOptions = commons.DownloadOptions.Metadata; |
- var _body = null; |
- |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
- if (project == null) { |
- throw new core.ArgumentError("Parameter project is required."); |
- } |
- if (firewall == null) { |
- throw new core.ArgumentError("Parameter firewall is required."); |
- } |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
- |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
- } |
- |
-} |
- |
- |
-class ForwardingRulesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ForwardingRulesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves the list of forwarding rules grouped by scope. |
- * |
- * Request parameters: |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [project] - Name of the project scoping this request. |
- * Value must have pattern |
- * "(?:(?:[-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])?))". |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -1780,7 +1755,7 @@ class ForwardingRulesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [ForwardingRuleAggregatedList]. |
+ * Completes with a [DiskList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1788,7 +1763,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1799,6 +1774,9 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -1809,7 +1787,7 @@ class ForwardingRulesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/forwardingRules'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks'; |
var _response = _requester.request(_url, |
"GET", |
@@ -1818,22 +1796,28 @@ class ForwardingRulesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ForwardingRuleAggregatedList.fromJson(data)); |
+ return _response.then((data) => new DiskList.fromJson(data)); |
} |
+} |
+ |
+ |
+class FirewallsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ FirewallsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Deletes the specified ForwardingRule resource. |
+ * Deletes the specified firewall resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [forwardingRule] - Name of the ForwardingRule resource to delete. |
+ * [firewall] - Name of the firewall resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -1844,7 +1828,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String region, core.String forwardingRule) { |
+ async.Future<Operation> delete(core.String project, core.String firewall) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1855,14 +1839,11 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (forwardingRule == null) { |
- throw new core.ArgumentError("Parameter forwardingRule is required."); |
+ if (firewall == null) { |
+ throw new core.ArgumentError("Parameter firewall is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -1875,21 +1856,18 @@ class ForwardingRulesResourceApi { |
} |
/** |
- * Returns the specified ForwardingRule resource. |
+ * Returns the specified firewall resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [forwardingRule] - Name of the ForwardingRule resource to return. |
+ * [firewall] - Name of the firewall resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [ForwardingRule]. |
+ * Completes with a [Firewall]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -1897,7 +1875,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ForwardingRule> get(core.String project, core.String region, core.String forwardingRule) { |
+ async.Future<Firewall> get(core.String project, core.String firewall) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1908,14 +1886,11 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (forwardingRule == null) { |
- throw new core.ArgumentError("Parameter forwardingRule is required."); |
+ if (firewall == null) { |
+ throw new core.ArgumentError("Parameter firewall is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
var _response = _requester.request(_url, |
"GET", |
@@ -1924,24 +1899,21 @@ class ForwardingRulesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ForwardingRule.fromJson(data)); |
+ return _response.then((data) => new Firewall.fromJson(data)); |
} |
/** |
- * Creates a ForwardingRule resource in the specified project and region using |
- * the data included in the request. |
+ * Creates a firewall resource in the specified project using the data |
+ * included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -1950,7 +1922,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(ForwardingRule request, core.String project, core.String region) { |
+ async.Future<Operation> insert(Firewall request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1964,11 +1936,8 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
var _response = _requester.request(_url, |
"POST", |
@@ -1981,37 +1950,28 @@ class ForwardingRulesResourceApi { |
} |
/** |
- * Retrieves the list of ForwardingRule resources available to the specified |
- * project and region. |
+ * Retrieves the list of firewall resources available to the specified |
+ * project. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -2020,7 +1980,7 @@ class ForwardingRulesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [ForwardingRuleList]. |
+ * Completes with a [FirewallList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2028,7 +1988,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ForwardingRuleList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<FirewallList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2039,9 +1999,6 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -2052,7 +2009,7 @@ class ForwardingRulesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
var _response = _requester.request(_url, |
"GET", |
@@ -2061,25 +2018,22 @@ class ForwardingRulesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ForwardingRuleList.fromJson(data)); |
+ return _response.then((data) => new FirewallList.fromJson(data)); |
} |
/** |
- * Changes target url for forwarding rule. |
+ * Updates the specified firewall resource with the data included in the |
+ * request. This method supports patch semantics. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [forwardingRule] - Name of the ForwardingRule resource in which target is |
- * to be set. |
+ * [firewall] - Name of the firewall resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -2090,7 +2044,7 @@ class ForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setTarget(TargetReference request, core.String project, core.String region, core.String forwardingRule) { |
+ async.Future<Operation> patch(Firewall request, core.String project, core.String firewall) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2104,17 +2058,14 @@ class ForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (forwardingRule == null) { |
- throw new core.ArgumentError("Parameter forwardingRule is required."); |
+ if (firewall == null) { |
+ throw new core.ArgumentError("Parameter firewall is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
var _response = _requester.request(_url, |
- "POST", |
+ "PATCH", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -2123,17 +2074,11 @@ class ForwardingRulesResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class GlobalAddressesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- GlobalAddressesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Deletes the specified address resource. |
+ * Updates the specified firewall resource with the data included in the |
+ * request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -2141,7 +2086,7 @@ class GlobalAddressesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [address] - Name of the address resource to delete. |
+ * [firewall] - Name of the firewall resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -2152,7 +2097,7 @@ class GlobalAddressesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String address) { |
+ async.Future<Operation> update(Firewall request, core.String project, core.String firewall) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2160,17 +2105,20 @@ class GlobalAddressesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (address == null) { |
- throw new core.ArgumentError("Parameter address is required."); |
+ if (firewall == null) { |
+ throw new core.ArgumentError("Parameter firewall is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "PUT", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -2179,128 +2127,37 @@ class GlobalAddressesResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Returns the specified address resource. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID for this request. |
- * Value must have pattern |
- * "(?:(?:[-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])?))". |
- * |
- * [address] - Name of the address resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * Completes with a [Address]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Address> get(core.String project, core.String address) { |
- var _url = null; |
- var _queryParams = new core.Map(); |
- var _uploadMedia = null; |
- var _uploadOptions = null; |
- var _downloadOptions = commons.DownloadOptions.Metadata; |
- var _body = null; |
+} |
- if (project == null) { |
- throw new core.ArgumentError("Parameter project is required."); |
- } |
- if (address == null) { |
- throw new core.ArgumentError("Parameter address is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address'); |
+class ForwardingRulesResourceApi { |
+ final commons.ApiRequester _requester; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new Address.fromJson(data)); |
- } |
+ ForwardingRulesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
/** |
- * Creates an address resource in the specified project using the data |
- * included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of forwarding rules grouped by scope. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Operation]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Operation> insert(Address request, core.String project) { |
- var _url = null; |
- var _queryParams = new core.Map(); |
- var _uploadMedia = null; |
- var _uploadOptions = null; |
- var _downloadOptions = commons.DownloadOptions.Metadata; |
- var _body = null; |
- |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
- if (project == null) { |
- throw new core.ArgumentError("Parameter project is required."); |
- } |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
- } |
- |
- /** |
- * Retrieves the list of global address resources. |
- * |
- * Request parameters: |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [project] - Project ID for this request. |
- * Value must have pattern |
- * "(?:(?:[-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])?))". |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -2309,7 +2166,7 @@ class GlobalAddressesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [AddressList]. |
+ * Completes with a [ForwardingRuleAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2317,7 +2174,7 @@ class GlobalAddressesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<AddressList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2338,7 +2195,7 @@ class GlobalAddressesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/forwardingRules'; |
var _response = _requester.request(_url, |
"GET", |
@@ -2347,18 +2204,9 @@ class GlobalAddressesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new AddressList.fromJson(data)); |
+ return _response.then((data) => new ForwardingRuleAggregatedList.fromJson(data)); |
} |
-} |
- |
- |
-class GlobalForwardingRulesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- GlobalForwardingRulesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
* Deletes the specified ForwardingRule resource. |
* |
@@ -2368,6 +2216,9 @@ class GlobalForwardingRulesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [forwardingRule] - Name of the ForwardingRule resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
@@ -2379,7 +2230,7 @@ class GlobalForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String forwardingRule) { |
+ async.Future<Operation> delete(core.String project, core.String region, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2390,11 +2241,14 @@ class GlobalForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (forwardingRule == null) { |
throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -2415,6 +2269,9 @@ class GlobalForwardingRulesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [forwardingRule] - Name of the ForwardingRule resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
@@ -2426,7 +2283,7 @@ class GlobalForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ForwardingRule> get(core.String project, core.String forwardingRule) { |
+ async.Future<ForwardingRule> get(core.String project, core.String region, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2437,11 +2294,14 @@ class GlobalForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (forwardingRule == null) { |
throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
var _response = _requester.request(_url, |
"GET", |
@@ -2465,6 +2325,9 @@ class GlobalForwardingRulesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -2473,7 +2336,7 @@ class GlobalForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(ForwardingRule request, core.String project) { |
+ async.Future<Operation> insert(ForwardingRule request, core.String project, core.String region) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2487,8 +2350,11 @@ class GlobalForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules'; |
var _response = _requester.request(_url, |
"POST", |
@@ -2502,7 +2368,7 @@ class GlobalForwardingRulesResourceApi { |
/** |
* Retrieves the list of ForwardingRule resources available to the specified |
- * project. |
+ * project and region. |
* |
* Request parameters: |
* |
@@ -2510,25 +2376,22 @@ class GlobalForwardingRulesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -2545,7 +2408,7 @@ class GlobalForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ForwardingRuleList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<ForwardingRuleList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2556,6 +2419,9 @@ class GlobalForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -2566,7 +2432,7 @@ class GlobalForwardingRulesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules'; |
var _response = _requester.request(_url, |
"GET", |
@@ -2589,6 +2455,9 @@ class GlobalForwardingRulesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [forwardingRule] - Name of the ForwardingRule resource in which target is |
* to be set. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
@@ -2601,7 +2470,7 @@ class GlobalForwardingRulesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setTarget(TargetReference request, core.String project, core.String forwardingRule) { |
+ async.Future<Operation> setTarget(TargetReference request, core.String project, core.String region, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2615,11 +2484,14 @@ class GlobalForwardingRulesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (forwardingRule == null) { |
throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; |
var _response = _requester.request(_url, |
"POST", |
@@ -2634,14 +2506,14 @@ class GlobalForwardingRulesResourceApi { |
} |
-class GlobalOperationsResourceApi { |
+class GlobalAddressesResourceApi { |
final commons.ApiRequester _requester; |
- GlobalOperationsResourceApi(commons.ApiRequester client) : |
+ GlobalAddressesResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Retrieves the list of all operations grouped by scope. |
+ * Deletes the specified address resource. |
* |
* Request parameters: |
* |
@@ -2649,34 +2521,10 @@ class GlobalOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [address] - Name of the address resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [OperationAggregatedList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2684,7 +2532,7 @@ class GlobalOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<OperationAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> delete(core.String project, core.String address) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2695,30 +2543,24 @@ class GlobalOperationsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (address == null) { |
+ throw new core.ArgumentError("Parameter address is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/operations'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address'); |
var _response = _requester.request(_url, |
- "GET", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new OperationAggregatedList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Deletes the specified Operations resource. |
+ * Returns the specified address resource. |
* |
* Request parameters: |
* |
@@ -2726,16 +2568,18 @@ class GlobalOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [operation] - Name of the Operations resource to delete. |
+ * [address] - Name of the address resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
+ * Completes with a [Address]. |
+ * |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
* |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future delete(core.String project, core.String operation) { |
+ async.Future<Address> get(core.String project, core.String address) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2746,26 +2590,27 @@ class GlobalOperationsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
+ if (address == null) { |
+ throw new core.ArgumentError("Parameter address is required."); |
} |
- _downloadOptions = null; |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => null); |
+ return _response.then((data) => new Address.fromJson(data)); |
} |
/** |
- * Retrieves the specified Operations resource. |
+ * Creates an address resource in the specified project using the data |
+ * included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -2773,9 +2618,6 @@ class GlobalOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [operation] - Name of the Operations resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -2784,7 +2626,7 @@ class GlobalOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> get(core.String project, core.String operation) { |
+ async.Future<Operation> insert(Address request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2792,17 +2634,17 @@ class GlobalOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -2812,8 +2654,7 @@ class GlobalOperationsResourceApi { |
} |
/** |
- * Retrieves the list of Operation resources contained within the specified |
- * project. |
+ * Retrieves the list of global address resources. |
* |
* Request parameters: |
* |
@@ -2822,24 +2663,18 @@ class GlobalOperationsResourceApi { |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -2848,7 +2683,7 @@ class GlobalOperationsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [OperationList]. |
+ * Completes with a [AddressList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2856,7 +2691,7 @@ class GlobalOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<OperationList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<AddressList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2877,7 +2712,7 @@ class GlobalOperationsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
var _response = _requester.request(_url, |
"GET", |
@@ -2886,20 +2721,20 @@ class GlobalOperationsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new OperationList.fromJson(data)); |
+ return _response.then((data) => new AddressList.fromJson(data)); |
} |
} |
-class HttpHealthChecksResourceApi { |
+class GlobalForwardingRulesResourceApi { |
final commons.ApiRequester _requester; |
- HttpHealthChecksResourceApi(commons.ApiRequester client) : |
+ GlobalForwardingRulesResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified HttpHealthCheck resource. |
+ * Deletes the specified ForwardingRule resource. |
* |
* Request parameters: |
* |
@@ -2907,7 +2742,7 @@ class HttpHealthChecksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete. |
+ * [forwardingRule] - Name of the ForwardingRule resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -2918,7 +2753,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String httpHealthCheck) { |
+ async.Future<Operation> delete(core.String project, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2929,11 +2764,11 @@ class HttpHealthChecksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (httpHealthCheck == null) { |
- throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
+ if (forwardingRule == null) { |
+ throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -2946,7 +2781,7 @@ class HttpHealthChecksResourceApi { |
} |
/** |
- * Returns the specified HttpHealthCheck resource. |
+ * Returns the specified ForwardingRule resource. |
* |
* Request parameters: |
* |
@@ -2954,10 +2789,10 @@ class HttpHealthChecksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [httpHealthCheck] - Name of the HttpHealthCheck resource to return. |
+ * [forwardingRule] - Name of the ForwardingRule resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [HttpHealthCheck]. |
+ * Completes with a [ForwardingRule]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -2965,7 +2800,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthCheck) { |
+ async.Future<ForwardingRule> get(core.String project, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2976,11 +2811,11 @@ class HttpHealthChecksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (httpHealthCheck == null) { |
- throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
+ if (forwardingRule == null) { |
+ throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule'); |
var _response = _requester.request(_url, |
"GET", |
@@ -2989,12 +2824,12 @@ class HttpHealthChecksResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new HttpHealthCheck.fromJson(data)); |
+ return _response.then((data) => new ForwardingRule.fromJson(data)); |
} |
/** |
- * Creates a HttpHealthCheck resource in the specified project using the data |
- * included in the request. |
+ * Creates a ForwardingRule resource in the specified project and region using |
+ * the data included in the request. |
* |
* [request] - The metadata request object. |
* |
@@ -3012,7 +2847,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(HttpHealthCheck request, core.String project) { |
+ async.Future<Operation> insert(ForwardingRule request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3027,7 +2862,7 @@ class HttpHealthChecksResourceApi { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'; |
var _response = _requester.request(_url, |
"POST", |
@@ -3040,7 +2875,7 @@ class HttpHealthChecksResourceApi { |
} |
/** |
- * Retrieves the list of HttpHealthCheck resources available to the specified |
+ * Retrieves the list of ForwardingRule resources available to the specified |
* project. |
* |
* Request parameters: |
@@ -3050,24 +2885,18 @@ class HttpHealthChecksResourceApi { |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -3076,7 +2905,7 @@ class HttpHealthChecksResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [HttpHealthCheckList]. |
+ * Completes with a [ForwardingRuleList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3084,7 +2913,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<HttpHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<ForwardingRuleList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3105,7 +2934,7 @@ class HttpHealthChecksResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'; |
var _response = _requester.request(_url, |
"GET", |
@@ -3114,12 +2943,11 @@ class HttpHealthChecksResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new HttpHealthCheckList.fromJson(data)); |
+ return _response.then((data) => new ForwardingRuleList.fromJson(data)); |
} |
/** |
- * Updates a HttpHealthCheck resource in the specified project using the data |
- * included in the request. This method supports patch semantics. |
+ * Changes target url for forwarding rule. |
* |
* [request] - The metadata request object. |
* |
@@ -3129,7 +2957,8 @@ class HttpHealthChecksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
+ * [forwardingRule] - Name of the ForwardingRule resource in which target is |
+ * to be set. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -3140,7 +2969,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> patch(HttpHealthCheck request, core.String project, core.String httpHealthCheck) { |
+ async.Future<Operation> setTarget(TargetReference request, core.String project, core.String forwardingRule) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3154,14 +2983,14 @@ class HttpHealthChecksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (httpHealthCheck == null) { |
- throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
+ if (forwardingRule == null) { |
+ throw new core.ArgumentError("Parameter forwardingRule is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; |
var _response = _requester.request(_url, |
- "PATCH", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -3170,22 +2999,46 @@ class HttpHealthChecksResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class GlobalOperationsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ GlobalOperationsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Updates a HttpHealthCheck resource in the specified project using the data |
- * included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of all operations grouped by scope. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Operation]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [OperationAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3193,7 +3046,7 @@ class HttpHealthChecksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> update(HttpHealthCheck request, core.String project, core.String httpHealthCheck) { |
+ async.Future<OperationAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3201,39 +3054,33 @@ class HttpHealthChecksResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (httpHealthCheck == null) { |
- throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/operations'; |
var _response = _requester.request(_url, |
- "PUT", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new OperationAggregatedList.fromJson(data)); |
} |
-} |
- |
- |
-class ImagesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ImagesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Deletes the specified image resource. |
+ * Deletes the specified Operations resource. |
* |
* Request parameters: |
* |
@@ -3241,18 +3088,16 @@ class ImagesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [image] - Name of the image resource to delete. |
+ * [operation] - Name of the Operations resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
- * |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
* |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String image) { |
+ async.Future delete(core.String project, core.String operation) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3263,11 +3108,13 @@ class ImagesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (image == null) { |
- throw new core.ArgumentError("Parameter image is required."); |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image'); |
+ _downloadOptions = null; |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -3276,15 +3123,11 @@ class ImagesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => null); |
} |
/** |
- * Sets the deprecation status of an image. |
- * |
- * If an empty request body is given, clears the deprecation status instead. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the specified Operations resource. |
* |
* Request parameters: |
* |
@@ -3292,7 +3135,7 @@ class ImagesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [image] - Image name. |
+ * [operation] - Name of the Operations resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -3303,7 +3146,7 @@ class ImagesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> deprecate(DeprecationStatus request, core.String project, core.String image) { |
+ async.Future<Operation> get(core.String project, core.String operation) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3311,20 +3154,17 @@ class ImagesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (image == null) { |
- throw new core.ArgumentError("Parameter image is required."); |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image') + '/deprecate'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -3334,7 +3174,8 @@ class ImagesResourceApi { |
} |
/** |
- * Returns the specified image resource. |
+ * Retrieves the list of Operation resources contained within the specified |
+ * project. |
* |
* Request parameters: |
* |
@@ -3342,10 +3183,28 @@ class ImagesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [image] - Name of the image resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Image]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [OperationList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3353,7 +3212,7 @@ class ImagesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Image> get(core.String project, core.String image) { |
+ async.Future<OperationList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3364,11 +3223,17 @@ class ImagesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (image == null) { |
- throw new core.ArgumentError("Parameter image is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; |
var _response = _requester.request(_url, |
"GET", |
@@ -3377,21 +3242,30 @@ class ImagesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Image.fromJson(data)); |
+ return _response.then((data) => new OperationList.fromJson(data)); |
} |
+} |
+ |
+ |
+class HttpHealthChecksResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ HttpHealthChecksResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Creates an image resource in the specified project using the data included |
- * in the request. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified HttpHealthCheck resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -3400,7 +3274,7 @@ class ImagesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Image request, core.String project) { |
+ async.Future<Operation> delete(core.String project, core.String httpHealthCheck) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3408,17 +3282,17 @@ class ImagesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (httpHealthCheck == null) { |
+ throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -3428,42 +3302,18 @@ class ImagesResourceApi { |
} |
/** |
- * Retrieves the list of image resources available to the specified project. |
+ * Returns the specified HttpHealthCheck resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [httpHealthCheck] - Name of the HttpHealthCheck resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [ImageList]. |
+ * Completes with a [HttpHealthCheck]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3471,7 +3321,7 @@ class ImagesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ImageList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthCheck) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3482,17 +3332,11 @@ class ImagesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (httpHealthCheck == null) { |
+ throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
var _response = _requester.request(_url, |
"GET", |
@@ -3501,36 +3345,21 @@ class ImagesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ImageList.fromJson(data)); |
+ return _response.then((data) => new HttpHealthCheck.fromJson(data)); |
} |
-} |
- |
- |
-class InstanceGroupManagersResourceApi { |
- final commons.ApiRequester _requester; |
- |
- InstanceGroupManagersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Removes the specified instances from the managed instance group, and from |
- * any target pools where they are a member. The instances are not deleted. |
- * The managed instance group automatically reduces its targetSize value by |
- * the number of instances that you abandon from the group. |
+ * Creates a HttpHealthCheck resource in the specified project using the data |
+ * included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [instanceGroupManager] - The name of the instance group manager. |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -3539,7 +3368,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> insert(HttpHealthCheck request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3553,14 +3382,8 @@ class InstanceGroupManagersResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks'; |
var _response = _requester.request(_url, |
"POST", |
@@ -3573,34 +3396,28 @@ class InstanceGroupManagersResourceApi { |
} |
/** |
- * Retrieves the list of managed instance groups, and groups them by project |
- * and zone. |
+ * Retrieves the list of HttpHealthCheck resources available to the specified |
+ * project. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -3609,7 +3426,7 @@ class InstanceGroupManagersResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [InstanceGroupManagerAggregatedList]. |
+ * Completes with a [HttpHealthCheckList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3617,7 +3434,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupManagerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<HttpHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3638,7 +3455,7 @@ class InstanceGroupManagersResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroupManagers'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks'; |
var _response = _requester.request(_url, |
"GET", |
@@ -3647,21 +3464,23 @@ class InstanceGroupManagersResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupManagerAggregatedList.fromJson(data)); |
+ return _response.then((data) => new HttpHealthCheckList.fromJson(data)); |
} |
/** |
- * Deletes the specified managed instance group resource. |
+ * Updates a HttpHealthCheck resource in the specified project using the data |
+ * included in the request. This method supports patch semantics. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [instanceGroupManager] - The name of the instance group manager to delete. |
+ * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
* |
@@ -3671,7 +3490,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> patch(HttpHealthCheck request, core.String project, core.String httpHealthCheck) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3679,20 +3498,20 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ if (httpHealthCheck == null) { |
+ throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "PATCH", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -3702,22 +3521,19 @@ class InstanceGroupManagersResourceApi { |
} |
/** |
- * Deletes the specified instances. The instances are deleted and removed from |
- * the instance group and any target pools where they are a member. The |
- * managed instance group automatically reduces its targetSize value by the |
- * number of instances that you delete. |
+ * Updates a HttpHealthCheck resource in the specified project using the data |
+ * included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [instanceGroupManager] - The name of the instance group manager. |
+ * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
* |
@@ -3727,7 +3543,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> update(HttpHealthCheck request, core.String project, core.String httpHealthCheck) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3741,17 +3557,14 @@ class InstanceGroupManagersResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ if (httpHealthCheck == null) { |
+ throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
var _response = _requester.request(_url, |
- "POST", |
+ "PUT", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -3760,20 +3573,28 @@ class InstanceGroupManagersResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class ImagesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ ImagesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Returns the specified managed instance group resource. |
+ * Deletes the specified image resource. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [instanceGroupManager] - The name of the instance group manager resource. |
+ * [image] - Name of the image resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [InstanceGroupManager]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3781,7 +3602,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> delete(core.String project, core.String image) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3792,38 +3613,37 @@ class InstanceGroupManagersResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ if (image == null) { |
+ throw new core.ArgumentError("Parameter image is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image'); |
var _response = _requester.request(_url, |
- "GET", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupManager.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a managed instance group resource in the specified project using |
- * the data that is included in the request. |
+ * Sets the deprecation status of an image. |
+ * |
+ * If an empty request body is given, clears the deprecation status instead. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
+ * [image] - Image name. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
* |
@@ -3833,7 +3653,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(InstanceGroupManager request, core.String project, core.String zone) { |
+ async.Future<Operation> deprecate(DeprecationStatus request, core.String project, core.String image) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3847,11 +3667,11 @@ class InstanceGroupManagersResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (image == null) { |
+ throw new core.ArgumentError("Parameter image is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image') + '/deprecate'; |
var _response = _requester.request(_url, |
"POST", |
@@ -3864,45 +3684,18 @@ class InstanceGroupManagersResourceApi { |
} |
/** |
- * Retrieves a list of managed instance groups that are contained within the |
- * specified project and zone. |
+ * Returns the specified image resource. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [image] - Name of the image resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [InstanceGroupManagerList]. |
+ * Completes with a [Image]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3910,7 +3703,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Image> get(core.String project, core.String image) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3921,20 +3714,11 @@ class InstanceGroupManagersResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (image == null) { |
+ throw new core.ArgumentError("Parameter image is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image'); |
var _response = _requester.request(_url, |
"GET", |
@@ -3943,23 +3727,22 @@ class InstanceGroupManagersResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupManagerList.fromJson(data)); |
+ return _response.then((data) => new Image.fromJson(data)); |
} |
/** |
- * Lists managed instances. |
+ * Creates an image resource in the specified project using the data included |
+ * in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
- * |
- * [instanceGroupManager] - The name of the managed instance group. |
- * |
- * Completes with a [InstanceGroupManagersListManagedInstancesResponse]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -3967,7 +3750,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> insert(Image request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3975,17 +3758,14 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
var _response = _requester.request(_url, |
"POST", |
@@ -3994,26 +3774,40 @@ class InstanceGroupManagersResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupManagersListManagedInstancesResponse.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Recreates the specified instances. The instances are deleted, then |
- * recreated using the managed instance group's current instance template. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of image resources available to the specified project. |
* |
* Request parameters: |
* |
- * [project] - The project ID for this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [instanceGroupManager] - The name of the instance group manager. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * Completes with a [Operation]. |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [ImageList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4021,7 +3815,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<ImageList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4029,36 +3823,47 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new ImageList.fromJson(data)); |
} |
+} |
+ |
+ |
+class InstanceGroupManagersResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ InstanceGroupManagersResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Resizes the managed instance group. If you increase the size, the group |
- * creates new instances using the current instance template. If you decrease |
- * the size, the group removes instances in the order that is outlined in |
- * Resizing a managed instance group. |
+ * Removes the specified instances from the managed instance group, and from |
+ * any target pools where they are a member. The instances are not deleted. |
+ * The managed instance group automatically reduces its targetSize value by |
+ * the number of instances that you abandon from the group. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -4070,10 +3875,6 @@ class InstanceGroupManagersResourceApi { |
* |
* [instanceGroupManager] - The name of the instance group manager. |
* |
- * [size] - The number of running instances that the managed instance group |
- * should maintain at any given time. The group automatically adds or removes |
- * instances to maintain the number of instances specified by this parameter. |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -4082,7 +3883,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> resize(core.String project, core.String zone, core.String instanceGroupManager, core.int size) { |
+ async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4090,6 +3891,9 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -4099,12 +3903,8 @@ class InstanceGroupManagersResourceApi { |
if (instanceGroupManager == null) { |
throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- if (size == null) { |
- throw new core.ArgumentError("Parameter size is required."); |
- } |
- _queryParams["size"] = ["${size}"]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/resize'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4117,11 +3917,8 @@ class InstanceGroupManagersResourceApi { |
} |
/** |
- * Specifies the instance template to use when creating new instances in this |
- * group. The templates for existing instances in the group do not change |
- * unless you recreate them. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of managed instance groups, and groups them by project |
+ * and zone. |
* |
* Request parameters: |
* |
@@ -4129,11 +3926,28 @@ class InstanceGroupManagersResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the managed instance group is located. |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [instanceGroupManager] - The name of the instance group manager. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * Completes with a [Operation]. |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [InstanceGroupManagerAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4141,7 +3955,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<InstanceGroupManagerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4149,37 +3963,33 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- if (instanceGroupManager == null) { |
- throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroupManagers'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupManagerAggregatedList.fromJson(data)); |
} |
/** |
- * Modifies the target pools to which all new instances in this group are |
- * assigned. The target pools for existing instances in the group do not |
- * change unless you recreate them. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified managed instance group resource. |
* |
* Request parameters: |
* |
@@ -4189,7 +3999,7 @@ class InstanceGroupManagersResourceApi { |
* |
* [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [instanceGroupManager] - The name of the instance group manager. |
+ * [instanceGroupManager] - The name of the instance group manager to delete. |
* |
* Completes with a [Operation]. |
* |
@@ -4199,7 +4009,7 @@ class InstanceGroupManagersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4207,9 +4017,6 @@ class InstanceGroupManagersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -4220,10 +4027,10 @@ class InstanceGroupManagersResourceApi { |
throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -4232,18 +4039,11 @@ class InstanceGroupManagersResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class InstanceGroupsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- InstanceGroupsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Adds a list of instances to an instance group. All of the instances in the |
- * instance group must be in the same network. |
+ * Deletes the specified instances. The instances are deleted and removed from |
+ * the instance group and any target pools where they are a member. The |
+ * managed instance group automatically reduces its targetSize value by the |
+ * number of instances that you delete. |
* |
* [request] - The metadata request object. |
* |
@@ -4253,10 +4053,9 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [instanceGroup] - The name of the instance group where you are adding |
- * instances. |
+ * [instanceGroupManager] - The name of the instance group manager. |
* |
* Completes with a [Operation]. |
* |
@@ -4266,7 +4065,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> addInstances(InstanceGroupsAddInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) { |
+ async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4283,11 +4082,11 @@ class InstanceGroupsResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/addInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4300,7 +4099,7 @@ class InstanceGroupsResourceApi { |
} |
/** |
- * Retrieves the list of instance groups, and sorts them by zone. |
+ * Returns the specified managed instance group resource. |
* |
* Request parameters: |
* |
@@ -4308,34 +4107,11 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [instanceGroupManager] - The name of the instance group manager resource. |
* |
- * Completes with a [InstanceGroupAggregatedList]. |
+ * Completes with a [InstanceGroupManager]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4343,7 +4119,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4354,17 +4130,14 @@ class InstanceGroupsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroups'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); |
var _response = _requester.request(_url, |
"GET", |
@@ -4373,11 +4146,14 @@ class InstanceGroupsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupAggregatedList.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupManager.fromJson(data)); |
} |
/** |
- * Deletes the specified instance group. |
+ * Creates a managed instance group resource in the specified project using |
+ * the data that is included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -4385,9 +4161,7 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
- * |
- * [instanceGroup] - The name of the instance group to delete. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
* Completes with a [Operation]. |
* |
@@ -4397,7 +4171,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroup) { |
+ async.Future<Operation> insert(InstanceGroupManager request, core.String project, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4405,20 +4179,20 @@ class InstanceGroupsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -4428,7 +4202,8 @@ class InstanceGroupsResourceApi { |
} |
/** |
- * Returns the specified instance group resource. |
+ * Retrieves a list of managed instance groups that are contained within the |
+ * specified project and zone. |
* |
* Request parameters: |
* |
@@ -4436,11 +4211,30 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [instanceGroup] - The name of the instance group. |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [InstanceGroup]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [InstanceGroupManagerList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4448,7 +4242,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroup> get(core.String project, core.String zone, core.String instanceGroup) { |
+ async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4462,27 +4256,30 @@ class InstanceGroupsResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup'); |
- |
- var _response = _requester.request(_url, |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; |
+ |
+ var _response = _requester.request(_url, |
"GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroup.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupManagerList.fromJson(data)); |
} |
/** |
- * Creates an instance group in the specified project using the parameters |
- * that are included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Lists managed instances. |
* |
* Request parameters: |
* |
@@ -4490,9 +4287,11 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * Completes with a [Operation]. |
+ * [instanceGroupManager] - The name of the managed instance group. |
+ * |
+ * Completes with a [InstanceGroupManagersListManagedInstancesResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4500,7 +4299,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(InstanceGroup request, core.String project, core.String zone) { |
+ async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4508,17 +4307,17 @@ class InstanceGroupsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4527,12 +4326,14 @@ class InstanceGroupsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupManagersListManagedInstancesResponse.fromJson(data)); |
} |
/** |
- * Retrieves the list of instance groups that are located in the specified |
- * project and zone. |
+ * Recreates the specified instances. The instances are deleted, then |
+ * recreated using the managed instance group's current instance template. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -4540,36 +4341,11 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
- * |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [instanceGroupManager] - The name of the instance group manager. |
* |
- * Completes with a [InstanceGroupList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4577,7 +4353,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4585,40 +4361,36 @@ class InstanceGroupsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Lists instances in an instance group. The parameters for this method |
- * specify whether the list filters instances by state and named ports |
- * information. |
- * |
- * [request] - The metadata request object. |
+ * Resizes the managed instance group. If you increase the size, the group |
+ * creates new instances using the current instance template. If you decrease |
+ * the size, the group removes instances in the order that is outlined in |
+ * Resizing a managed instance group. |
* |
* Request parameters: |
* |
@@ -4626,39 +4398,15 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
- * |
- * [instanceGroup] - The name of the instance group from which you want to |
- * generate a list of included instances. |
- * |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [instanceGroupManager] - The name of the instance group manager. |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [size] - The number of running instances that the managed instance group |
+ * should maintain at any given time. The group automatically adds or removes |
+ * instances to maintain the number of instances specified by this parameter. |
* |
- * Completes with a [InstanceGroupsListInstances]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4666,7 +4414,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, core.String instanceGroup, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> resize(core.String project, core.String zone, core.String instanceGroupManager, core.int size) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4674,29 +4422,21 @@ class InstanceGroupsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (size == null) { |
+ throw new core.ArgumentError("Parameter size is required."); |
} |
+ _queryParams["size"] = ["${size}"]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/listInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/resize'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4705,11 +4445,13 @@ class InstanceGroupsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceGroupsListInstances.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Removes a list of instances from an instance group. |
+ * Specifies the instance template to use when creating new instances in this |
+ * group. The templates for existing instances in the group do not change |
+ * unless you recreate them. |
* |
* [request] - The metadata request object. |
* |
@@ -4719,10 +4461,9 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [instanceGroup] - The name of the instance group where the specified |
- * instances will be removed. |
+ * [instanceGroupManager] - The name of the instance group manager. |
* |
* Completes with a [Operation]. |
* |
@@ -4732,7 +4473,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> removeInstances(InstanceGroupsRemoveInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) { |
+ async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4749,11 +4490,11 @@ class InstanceGroupsResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/removeInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4766,7 +4507,9 @@ class InstanceGroupsResourceApi { |
} |
/** |
- * Sets the named ports in an instance group. |
+ * Modifies the target pools to which all new instances in this group are |
+ * assigned. The target pools for existing instances in the group do not |
+ * change unless you recreate them. |
* |
* [request] - The metadata request object. |
* |
@@ -4776,10 +4519,9 @@ class InstanceGroupsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The URL of the zone where the instance group is located. |
+ * [zone] - The URL of the zone where the managed instance group is located. |
* |
- * [instanceGroup] - The name of the instance group where the named ports are |
- * updated. |
+ * [instanceGroupManager] - The name of the instance group manager. |
* |
* Completes with a [Operation]. |
* |
@@ -4789,7 +4531,7 @@ class InstanceGroupsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setNamedPorts(InstanceGroupsSetNamedPortsRequest request, core.String project, core.String zone, core.String instanceGroup) { |
+ async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String zone, core.String instanceGroupManager) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4806,11 +4548,11 @@ class InstanceGroupsResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instanceGroup == null) { |
- throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ if (instanceGroupManager == null) { |
+ throw new core.ArgumentError("Parameter instanceGroupManager is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/setNamedPorts'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools'; |
var _response = _requester.request(_url, |
"POST", |
@@ -4825,14 +4567,17 @@ class InstanceGroupsResourceApi { |
} |
-class InstanceTemplatesResourceApi { |
+class InstanceGroupsResourceApi { |
final commons.ApiRequester _requester; |
- InstanceTemplatesResourceApi(commons.ApiRequester client) : |
+ InstanceGroupsResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified instance template. |
+ * Adds a list of instances to an instance group. All of the instances in the |
+ * instance group must be in the same network. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -4840,8 +4585,10 @@ class InstanceTemplatesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [instanceTemplate] - The name of the instance template to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [zone] - The URL of the zone where the instance group is located. |
+ * |
+ * [instanceGroup] - The name of the instance group where you are adding |
+ * instances. |
* |
* Completes with a [Operation]. |
* |
@@ -4851,7 +4598,7 @@ class InstanceTemplatesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String instanceTemplate) { |
+ async.Future<Operation> addInstances(InstanceGroupsAddInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4859,17 +4606,23 @@ class InstanceTemplatesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (instanceTemplate == null) { |
- throw new core.ArgumentError("Parameter instanceTemplate is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/addInstances'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -4879,7 +4632,7 @@ class InstanceTemplatesResourceApi { |
} |
/** |
- * Returns the specified instance template resource. |
+ * Retrieves the list of instance groups, and sorts them by zone. |
* |
* Request parameters: |
* |
@@ -4887,10 +4640,28 @@ class InstanceTemplatesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [instanceTemplate] - The name of the instance template. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [InstanceTemplate]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [InstanceGroupAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -4898,7 +4669,7 @@ class InstanceTemplatesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceTemplate> get(core.String project, core.String instanceTemplate) { |
+ async.Future<InstanceGroupAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4909,11 +4680,17 @@ class InstanceTemplatesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (instanceTemplate == null) { |
- throw new core.ArgumentError("Parameter instanceTemplate is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroups'; |
var _response = _requester.request(_url, |
"GET", |
@@ -4922,14 +4699,11 @@ class InstanceTemplatesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceTemplate.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupAggregatedList.fromJson(data)); |
} |
/** |
- * Creates an instance template in the specified project using the data that |
- * is included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified instance group. |
* |
* Request parameters: |
* |
@@ -4937,6 +4711,10 @@ class InstanceTemplatesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - The URL of the zone where the instance group is located. |
+ * |
+ * [instanceGroup] - The name of the instance group to delete. |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -4945,7 +4723,7 @@ class InstanceTemplatesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(InstanceTemplate request, core.String project) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroup) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4953,17 +4731,20 @@ class InstanceTemplatesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -4973,8 +4754,7 @@ class InstanceTemplatesResourceApi { |
} |
/** |
- * Retrieves a list of instance templates that are contained within the |
- * specified project and zone. |
+ * Returns the specified instance group resource. |
* |
* Request parameters: |
* |
@@ -4982,34 +4762,11 @@ class InstanceTemplatesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * [zone] - The URL of the zone where the instance group is located. |
* |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [instanceGroup] - The name of the instance group. |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [InstanceTemplateList]. |
+ * Completes with a [InstanceGroup]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5017,7 +4774,7 @@ class InstanceTemplatesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceTemplateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<InstanceGroup> get(core.String project, core.String zone, core.String instanceGroup) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5028,17 +4785,14 @@ class InstanceTemplatesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup'); |
var _response = _requester.request(_url, |
"GET", |
@@ -5047,37 +4801,22 @@ class InstanceTemplatesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceTemplateList.fromJson(data)); |
+ return _response.then((data) => new InstanceGroup.fromJson(data)); |
} |
-} |
- |
- |
-class InstancesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- InstancesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Adds an access config to an instance's network interface. |
+ * Creates an instance group in the specified project using the parameters |
+ * that are included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [instance] - The instance name for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [networkInterface] - The name of the network interface to add to this |
- * instance. |
+ * [zone] - The URL of the zone where the instance group is located. |
* |
* Completes with a [Operation]. |
* |
@@ -5087,7 +4826,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> addAccessConfig(AccessConfig request, core.String project, core.String zone, core.String instance, core.String networkInterface) { |
+ async.Future<Operation> insert(InstanceGroup request, core.String project, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5104,15 +4843,8 @@ class InstancesResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
- } |
- if (networkInterface == null) { |
- throw new core.ArgumentError("Parameter networkInterface is required."); |
- } |
- _queryParams["networkInterface"] = [networkInterface]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/addAccessConfig'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5125,31 +4857,30 @@ class InstancesResourceApi { |
} |
/** |
+ * Retrieves the list of instance groups that are located in the specified |
+ * project and zone. |
+ * |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - The URL of the zone where the instance group is located. |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -5158,7 +4889,7 @@ class InstancesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [InstanceAggregatedList]. |
+ * Completes with a [InstanceGroupList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5166,7 +4897,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5177,6 +4908,9 @@ class InstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -5187,7 +4921,7 @@ class InstancesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups'; |
var _response = _requester.request(_url, |
"GET", |
@@ -5196,27 +4930,49 @@ class InstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceAggregatedList.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupList.fromJson(data)); |
} |
/** |
- * Attaches a Disk resource to an instance. |
+ * Lists instances in an instance group. The parameters for this method |
+ * specify whether the list filters instances by state and named ports |
+ * information. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [zone] - The URL of the zone where the instance group is located. |
* |
- * [instance] - Instance name. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [instanceGroup] - The name of the instance group from which you want to |
+ * generate a list of included instances. |
* |
- * Completes with a [Operation]. |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [InstanceGroupsListInstances]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5224,7 +4980,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> attachDisk(AttachedDisk request, core.String project, core.String zone, core.String instance) { |
+ async.Future<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, core.String instanceGroup, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5241,11 +4997,20 @@ class InstancesResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
+ } |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/attachDisk'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/listInstances'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5254,24 +5019,24 @@ class InstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new InstanceGroupsListInstances.fromJson(data)); |
} |
/** |
- * Deletes the specified Instance resource. For more information, see Shutting |
- * down an instance. |
+ * Removes a list of instances from an instance group. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [zone] - The URL of the zone where the instance group is located. |
* |
- * [instance] - Name of the instance resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [instanceGroup] - The name of the instance group where the specified |
+ * instances will be removed. |
* |
* Completes with a [Operation]. |
* |
@@ -5281,7 +5046,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String zone, core.String instance) { |
+ async.Future<Operation> removeInstances(InstanceGroupsRemoveInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5289,20 +5054,23 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/removeInstances'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -5312,23 +5080,20 @@ class InstancesResourceApi { |
} |
/** |
- * Deletes an access config from an instance's network interface. |
+ * Sets the named ports in an instance group. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [instance] - The instance name for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [accessConfig] - The name of the access config to delete. |
+ * [zone] - The URL of the zone where the instance group is located. |
* |
- * [networkInterface] - The name of the network interface. |
+ * [instanceGroup] - The name of the instance group where the named ports are |
+ * updated. |
* |
* Completes with a [Operation]. |
* |
@@ -5338,7 +5103,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> deleteAccessConfig(core.String project, core.String zone, core.String instance, core.String accessConfig, core.String networkInterface) { |
+ async.Future<Operation> setNamedPorts(InstanceGroupsSetNamedPortsRequest request, core.String project, core.String zone, core.String instanceGroup) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5346,25 +5111,20 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
- } |
- if (accessConfig == null) { |
- throw new core.ArgumentError("Parameter accessConfig is required."); |
- } |
- _queryParams["accessConfig"] = [accessConfig]; |
- if (networkInterface == null) { |
- throw new core.ArgumentError("Parameter networkInterface is required."); |
+ if (instanceGroup == null) { |
+ throw new core.ArgumentError("Parameter instanceGroup is required."); |
} |
- _queryParams["networkInterface"] = [networkInterface]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/setNamedPorts'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5376,24 +5136,27 @@ class InstancesResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class InstanceTemplatesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ InstanceTemplatesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Detaches a disk from an instance. |
+ * Deletes the specified instance template. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [instance] - Instance name. |
+ * [instanceTemplate] - The name of the instance template to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [deviceName] - Disk device name to detach. |
- * Value must have pattern "\w[\w.-]{0,254}". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -5402,7 +5165,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> detachDisk(core.String project, core.String zone, core.String instance, core.String deviceName) { |
+ async.Future<Operation> delete(core.String project, core.String instanceTemplate) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5413,21 +5176,14 @@ class InstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
- } |
- if (deviceName == null) { |
- throw new core.ArgumentError("Parameter deviceName is required."); |
+ if (instanceTemplate == null) { |
+ throw new core.ArgumentError("Parameter instanceTemplate is required."); |
} |
- _queryParams["deviceName"] = [deviceName]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/detachDisk'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -5437,21 +5193,18 @@ class InstancesResourceApi { |
} |
/** |
- * Returns the specified instance resource. |
+ * Returns the specified instance template resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the The name of the zone for this request.. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [instance] - Name of the instance resource to return. |
+ * [instanceTemplate] - The name of the instance template. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Instance]. |
+ * Completes with a [InstanceTemplate]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5459,7 +5212,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Instance> get(core.String project, core.String zone, core.String instance) { |
+ async.Future<InstanceTemplate> get(core.String project, core.String instanceTemplate) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5470,14 +5223,11 @@ class InstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
+ if (instanceTemplate == null) { |
+ throw new core.ArgumentError("Parameter instanceTemplate is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
var _response = _requester.request(_url, |
"GET", |
@@ -5486,28 +5236,88 @@ class InstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Instance.fromJson(data)); |
+ return _response.then((data) => new InstanceTemplate.fromJson(data)); |
} |
/** |
- * Returns the specified instance's serial port output. |
+ * Creates an instance template in the specified project using the data that |
+ * is included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - The project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * Completes with a [Operation]. |
* |
- * [instance] - Name of the instance scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
* |
- * [port] - Specifies which COM or serial port to retrieve data from. |
- * Value must be between "1" and "4". |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Operation> insert(InstanceTemplate request, core.String project) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates'; |
+ |
+ var _response = _requester.request(_url, |
+ "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Operation.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Retrieves a list of instance templates that are contained within the |
+ * specified project and zone. |
* |
- * Completes with a [SerialPortOutput]. |
+ * Request parameters: |
+ * |
+ * [project] - The project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [InstanceTemplateList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5515,7 +5325,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port}) { |
+ async.Future<InstanceTemplateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5526,17 +5336,17 @@ class InstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
} |
- if (port != null) { |
- _queryParams["port"] = ["${port}"]; |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates'; |
var _response = _requester.request(_url, |
"GET", |
@@ -5545,12 +5355,20 @@ class InstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new SerialPortOutput.fromJson(data)); |
+ return _response.then((data) => new InstanceTemplateList.fromJson(data)); |
} |
+} |
+ |
+ |
+class InstancesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ InstancesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Creates an instance resource in the specified project using the data |
- * included in the request. |
+ * Adds an access config to an instance's network interface. |
* |
* [request] - The metadata request object. |
* |
@@ -5563,6 +5381,12 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
+ * [instance] - The instance name for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [networkInterface] - The name of the network interface to add to this |
+ * instance. |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -5571,7 +5395,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Instance request, core.String project, core.String zone) { |
+ async.Future<Operation> addAccessConfig(AccessConfig request, core.String project, core.String zone, core.String instance, core.String networkInterface) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5588,8 +5412,15 @@ class InstancesResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
+ } |
+ if (networkInterface == null) { |
+ throw new core.ArgumentError("Parameter networkInterface is required."); |
+ } |
+ _queryParams["networkInterface"] = [networkInterface]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/addAccessConfig'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5602,37 +5433,25 @@ class InstancesResourceApi { |
} |
/** |
- * Retrieves the list of instance resources contained within the specified |
- * zone. |
- * |
* Request parameters: |
* |
* [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - The name of the zone for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -5641,7 +5460,7 @@ class InstancesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [InstanceList]. |
+ * Completes with a [InstanceAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5649,7 +5468,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5660,9 +5479,6 @@ class InstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -5673,7 +5489,7 @@ class InstancesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances'; |
var _response = _requester.request(_url, |
"GET", |
@@ -5682,11 +5498,13 @@ class InstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstanceList.fromJson(data)); |
+ return _response.then((data) => new InstanceAggregatedList.fromJson(data)); |
} |
/** |
- * Performs a hard reset on the instance. |
+ * Attaches a Disk resource to an instance. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -5697,7 +5515,7 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - Name of the instance scoping this request. |
+ * [instance] - Instance name. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -5708,7 +5526,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> reset(core.String project, core.String zone, core.String instance) { |
+ async.Future<Operation> attachDisk(AttachedDisk request, core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5716,6 +5534,9 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -5726,7 +5547,7 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/reset'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/attachDisk'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5739,7 +5560,8 @@ class InstancesResourceApi { |
} |
/** |
- * Sets the auto-delete flag for a disk attached to an instance. |
+ * Deletes the specified Instance resource. For more information, see Shutting |
+ * down an instance. |
* |
* Request parameters: |
* |
@@ -5750,15 +5572,9 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - The instance name. |
+ * [instance] - Name of the instance resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [autoDelete] - Whether to auto-delete the disk when the instance is |
- * deleted. |
- * |
- * [deviceName] - The device name of the disk to modify. |
- * Value must have pattern "\w[\w.-]{0,254}". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -5767,7 +5583,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setDiskAutoDelete(core.String project, core.String zone, core.String instance, core.bool autoDelete, core.String deviceName) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5784,19 +5600,11 @@ class InstancesResourceApi { |
if (instance == null) { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- if (autoDelete == null) { |
- throw new core.ArgumentError("Parameter autoDelete is required."); |
- } |
- _queryParams["autoDelete"] = ["${autoDelete}"]; |
- if (deviceName == null) { |
- throw new core.ArgumentError("Parameter deviceName is required."); |
- } |
- _queryParams["deviceName"] = [deviceName]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -5806,10 +5614,7 @@ class InstancesResourceApi { |
} |
/** |
- * Sets metadata for the specified instance to the data included in the |
- * request. |
- * |
- * [request] - The metadata request object. |
+ * Deletes an access config from an instance's network interface. |
* |
* Request parameters: |
* |
@@ -5820,9 +5625,13 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - Name of the instance scoping this request. |
+ * [instance] - The instance name for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
+ * [accessConfig] - The name of the access config to delete. |
+ * |
+ * [networkInterface] - The name of the network interface. |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -5831,7 +5640,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setMetadata(Metadata request, core.String project, core.String zone, core.String instance) { |
+ async.Future<Operation> deleteAccessConfig(core.String project, core.String zone, core.String instance, core.String accessConfig, core.String networkInterface) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5839,9 +5648,6 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -5851,8 +5657,16 @@ class InstancesResourceApi { |
if (instance == null) { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
+ if (accessConfig == null) { |
+ throw new core.ArgumentError("Parameter accessConfig is required."); |
+ } |
+ _queryParams["accessConfig"] = [accessConfig]; |
+ if (networkInterface == null) { |
+ throw new core.ArgumentError("Parameter networkInterface is required."); |
+ } |
+ _queryParams["networkInterface"] = [networkInterface]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMetadata'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5865,9 +5679,7 @@ class InstancesResourceApi { |
} |
/** |
- * Sets an instance's scheduling options. |
- * |
- * [request] - The metadata request object. |
+ * Detaches a disk from an instance. |
* |
* Request parameters: |
* |
@@ -5881,6 +5693,9 @@ class InstancesResourceApi { |
* [instance] - Instance name. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
+ * [deviceName] - Disk device name to detach. |
+ * Value must have pattern "\w[\w.-]{0,254}". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -5889,7 +5704,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setScheduling(Scheduling request, core.String project, core.String zone, core.String instance) { |
+ async.Future<Operation> detachDisk(core.String project, core.String zone, core.String instance, core.String deviceName) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5897,9 +5712,6 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -5909,8 +5721,12 @@ class InstancesResourceApi { |
if (instance == null) { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
+ if (deviceName == null) { |
+ throw new core.ArgumentError("Parameter deviceName is required."); |
+ } |
+ _queryParams["deviceName"] = [deviceName]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setScheduling'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/detachDisk'; |
var _response = _requester.request(_url, |
"POST", |
@@ -5923,9 +5739,7 @@ class InstancesResourceApi { |
} |
/** |
- * Sets tags for the specified instance to the data included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified instance resource. |
* |
* Request parameters: |
* |
@@ -5936,10 +5750,10 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - Name of the instance scoping this request. |
+ * [instance] - Name of the instance resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * Completes with a [Instance]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -5947,7 +5761,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setTags(Tags request, core.String project, core.String zone, core.String instance) { |
+ async.Future<Instance> get(core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -5955,9 +5769,6 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
@@ -5968,21 +5779,20 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setTags'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new Instance.fromJson(data)); |
} |
/** |
- * This method starts an instance that was stopped using the using the |
- * instances().stop method. For more information, see Restart an instance. |
+ * Returns the specified instance's serial port output. |
* |
* Request parameters: |
* |
@@ -5993,10 +5803,13 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - Name of the instance resource to start. |
+ * [instance] - Name of the instance scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * [port] - Specifies which COM or serial port to retrieve data from. |
+ * Value must be between "1" and "4". |
+ * |
+ * Completes with a [SerialPortOutput]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6004,7 +5817,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> start(core.String project, core.String zone, core.String instance) { |
+ async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6021,26 +5834,27 @@ class InstancesResourceApi { |
if (instance == null) { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
+ if (port != null) { |
+ _queryParams["port"] = ["${port}"]; |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/start'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new SerialPortOutput.fromJson(data)); |
} |
/** |
- * This method stops a running instance, shutting it down cleanly, and allows |
- * you to restart the instance at a later time. Stopped instances do not incur |
- * per-minute, virtual machine usage charges while they are stopped, but any |
- * resources that the virtual machine is using, such as persistent disks and |
- * static IP addresses,will continue to be charged until they are deleted. For |
- * more information, see Stopping an instance. |
+ * Creates an instance resource in the specified project using the data |
+ * included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -6051,9 +5865,6 @@ class InstancesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [instance] - Name of the instance resource to stop. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -6062,7 +5873,7 @@ class InstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> stop(core.String project, core.String zone, core.String instance) { |
+ async.Future<Operation> insert(Instance request, core.String project, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6070,17 +5881,17 @@ class InstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (instance == null) { |
- throw new core.ArgumentError("Parameter instance is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/stop'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances'; |
var _response = _requester.request(_url, |
"POST", |
@@ -6092,17 +5903,9 @@ class InstancesResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class LicensesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- LicensesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Returns the specified license resource. |
+ * Retrieves the list of instance resources contained within the specified |
+ * zone. |
* |
* Request parameters: |
* |
@@ -6110,81 +5913,22 @@ class LicensesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [license] - Name of the license resource to return. |
+ * [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [License]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<License> get(core.String project, core.String license) { |
- var _url = null; |
- var _queryParams = new core.Map(); |
- var _uploadMedia = null; |
- var _uploadOptions = null; |
- var _downloadOptions = commons.DownloadOptions.Metadata; |
- var _body = null; |
- |
- if (project == null) { |
- throw new core.ArgumentError("Parameter project is required."); |
- } |
- if (license == null) { |
- throw new core.ArgumentError("Parameter license is required."); |
- } |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + commons.Escaper.ecapeVariable('$license'); |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new License.fromJson(data)); |
- } |
- |
-} |
- |
- |
-class MachineTypesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- MachineTypesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves the list of machine type resources grouped by scope. |
- * |
- * Request parameters: |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [project] - Project ID for this request. |
- * Value must have pattern |
- * "(?:(?:[-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])?))". |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -6193,7 +5937,7 @@ class MachineTypesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [MachineTypeAggregatedList]. |
+ * Completes with a [InstanceList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6201,7 +5945,7 @@ class MachineTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6212,6 +5956,9 @@ class MachineTypesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -6222,7 +5969,7 @@ class MachineTypesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances'; |
var _response = _requester.request(_url, |
"GET", |
@@ -6231,11 +5978,11 @@ class MachineTypesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new MachineTypeAggregatedList.fromJson(data)); |
+ return _response.then((data) => new InstanceList.fromJson(data)); |
} |
/** |
- * Returns the specified machine type resource. |
+ * Performs a hard reset on the instance. |
* |
* Request parameters: |
* |
@@ -6246,10 +5993,10 @@ class MachineTypesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [machineType] - Name of the machine type resource to return. |
+ * [instance] - Name of the instance scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [MachineType]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6257,7 +6004,7 @@ class MachineTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<MachineType> get(core.String project, core.String zone, core.String machineType) { |
+ async.Future<Operation> reset(core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6271,25 +6018,24 @@ class MachineTypesResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (machineType == null) { |
- throw new core.ArgumentError("Parameter machineType is required."); |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$machineType'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/reset'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new MachineType.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Retrieves the list of machine type resources available to the specified |
- * project. |
+ * Sets the auto-delete flag for a disk attached to an instance. |
* |
* Request parameters: |
* |
@@ -6300,34 +6046,16 @@ class MachineTypesResourceApi { |
* [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * [instance] - The instance name. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [autoDelete] - Whether to auto-delete the disk when the instance is |
+ * deleted. |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [deviceName] - The device name of the disk to modify. |
+ * Value must have pattern "\w[\w.-]{0,254}". |
* |
- * Completes with a [MachineTypeList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6335,7 +6063,7 @@ class MachineTypesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> setDiskAutoDelete(core.String project, core.String zone, core.String instance, core.bool autoDelete, core.String deviceName) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6349,39 +6077,35 @@ class MachineTypesResourceApi { |
if (zone == null) { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
} |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
+ if (autoDelete == null) { |
+ throw new core.ArgumentError("Parameter autoDelete is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ _queryParams["autoDelete"] = ["${autoDelete}"]; |
+ if (deviceName == null) { |
+ throw new core.ArgumentError("Parameter deviceName is required."); |
} |
+ _queryParams["deviceName"] = [deviceName]; |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new MachineTypeList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class NetworksResourceApi { |
- final commons.ApiRequester _requester; |
- |
- NetworksResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Deletes the specified network resource. |
+ * Sets metadata for the specified instance to the data included in the |
+ * request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -6389,7 +6113,10 @@ class NetworksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [network] - Name of the network resource to delete. |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [instance] - Name of the instance scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -6400,7 +6127,7 @@ class NetworksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String network) { |
+ async.Future<Operation> setMetadata(Metadata request, core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6408,17 +6135,23 @@ class NetworksResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (network == null) { |
- throw new core.ArgumentError("Parameter network is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMetadata'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -6428,7 +6161,9 @@ class NetworksResourceApi { |
} |
/** |
- * Returns the specified network resource. |
+ * Sets an instance's scheduling options. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -6436,10 +6171,13 @@ class NetworksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [network] - Name of the network resource to return. |
+ * [zone] - The name of the zone for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Network]. |
+ * [instance] - Instance name. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6447,7 +6185,7 @@ class NetworksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Network> get(core.String project, core.String network) { |
+ async.Future<Operation> setScheduling(Scheduling request, core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6455,28 +6193,33 @@ class NetworksResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (network == null) { |
- throw new core.ArgumentError("Parameter network is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setScheduling'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Network.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a network resource in the specified project using the data included |
- * in the request. |
+ * Sets tags for the specified instance to the data included in the request. |
* |
* [request] - The metadata request object. |
* |
@@ -6486,6 +6229,12 @@ class NetworksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [instance] - Name of the instance scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -6494,7 +6243,7 @@ class NetworksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Network request, core.String project) { |
+ async.Future<Operation> setTags(Tags request, core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6508,8 +6257,14 @@ class NetworksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setTags'; |
var _response = _requester.request(_url, |
"POST", |
@@ -6522,7 +6277,8 @@ class NetworksResourceApi { |
} |
/** |
- * Retrieves the list of network resources available to the specified project. |
+ * This method starts an instance that was stopped using the using the |
+ * instances().stop method. For more information, see Restart an instance. |
* |
* Request parameters: |
* |
@@ -6530,34 +6286,13 @@ class NetworksResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [instance] - Name of the instance resource to start. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [NetworkList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6565,7 +6300,7 @@ class NetworksResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<NetworkList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> start(core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6576,39 +6311,32 @@ class NetworksResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/start'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new NetworkList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class ProjectsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ProjectsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Returns the specified project resource. |
+ * This method stops a running instance, shutting it down cleanly, and allows |
+ * you to restart the instance at a later time. Stopped instances do not incur |
+ * per-minute, virtual machine usage charges while they are stopped, but any |
+ * resources that the virtual machine is using, such as persistent disks and |
+ * static IP addresses,will continue to be charged until they are deleted. For |
+ * more information, see Stopping an instance. |
* |
* Request parameters: |
* |
@@ -6616,7 +6344,13 @@ class ProjectsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Project]. |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [instance] - Name of the instance resource to stop. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6624,7 +6358,7 @@ class ProjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Project> get(core.String project) { |
+ async.Future<Operation> stop(core.String project, core.String zone, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6635,23 +6369,36 @@ class ProjectsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (instance == null) { |
+ throw new core.ArgumentError("Parameter instance is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/stop'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Project.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class LicensesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ LicensesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Moves a persistent disk from one zone to another. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified license resource. |
* |
* Request parameters: |
* |
@@ -6659,7 +6406,10 @@ class ProjectsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Operation]. |
+ * [license] - Name of the license resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [License]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6667,7 +6417,7 @@ class ProjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> moveDisk(DiskMoveRequest request, core.String project) { |
+ async.Future<License> get(core.String project, core.String license) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6675,30 +6425,36 @@ class ProjectsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (license == null) { |
+ throw new core.ArgumentError("Parameter license is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/moveDisk'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + commons.Escaper.ecapeVariable('$license'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new License.fromJson(data)); |
} |
+} |
+ |
+ |
+class MachineTypesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ MachineTypesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Moves an instance and its attached persistent disks from one zone to |
- * another. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of machine type resources grouped by scope. |
* |
* Request parameters: |
* |
@@ -6706,7 +6462,28 @@ class ProjectsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Operation]. |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [MachineTypeAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6714,7 +6491,7 @@ class ProjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> moveInstance(InstanceMoveRequest request, core.String project) { |
+ async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6722,30 +6499,33 @@ class ProjectsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/moveInstance'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new MachineTypeAggregatedList.fromJson(data)); |
} |
/** |
- * Sets metadata common to all instances within the specified project using |
- * the data included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified machine type resource. |
* |
* Request parameters: |
* |
@@ -6753,7 +6533,13 @@ class ProjectsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Operation]. |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [machineType] - Name of the machine type resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [MachineType]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6761,7 +6547,7 @@ class ProjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.String project) { |
+ async.Future<MachineType> get(core.String project, core.String zone, core.String machineType) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6769,31 +6555,31 @@ class ProjectsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (machineType == null) { |
+ throw new core.ArgumentError("Parameter machineType is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$machineType'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new MachineType.fromJson(data)); |
} |
/** |
- * Enables the usage export feature and sets the usage export bucket where |
- * reports are stored. If you provide an empty request body using this method, |
- * the usage export feature will be disabled. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of machine type resources available to the specified |
+ * project. |
* |
* Request parameters: |
* |
@@ -6801,7 +6587,31 @@ class ProjectsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * Completes with a [Operation]. |
+ * [zone] - The name of the zone for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [MachineTypeList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6809,7 +6619,7 @@ class ProjectsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core.String project) { |
+ async.Future<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6817,36 +6627,45 @@ class ProjectsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new MachineTypeList.fromJson(data)); |
} |
} |
-class RegionOperationsResourceApi { |
+class NetworksResourceApi { |
final commons.ApiRequester _requester; |
- RegionOperationsResourceApi(commons.ApiRequester client) : |
+ NetworksResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified region-specific Operations resource. |
+ * Deletes the specified network resource. |
* |
* Request parameters: |
* |
@@ -6854,11 +6673,10 @@ class RegionOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
+ * [network] - Name of the network resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [operation] - Name of the Operations resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6866,7 +6684,7 @@ class RegionOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future delete(core.String project, core.String region, core.String operation) { |
+ async.Future<Operation> delete(core.String project, core.String network) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6877,16 +6695,11 @@ class RegionOperationsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
+ if (network == null) { |
+ throw new core.ArgumentError("Parameter network is required."); |
} |
- _downloadOptions = null; |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -6895,11 +6708,11 @@ class RegionOperationsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => null); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Retrieves the specified region-specific Operations resource. |
+ * Returns the specified network resource. |
* |
* Request parameters: |
* |
@@ -6907,13 +6720,10 @@ class RegionOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the zone scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [operation] - Name of the Operations resource to return. |
+ * [network] - Name of the network resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * Completes with a [Network]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6921,7 +6731,7 @@ class RegionOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> get(core.String project, core.String region, core.String operation) { |
+ async.Future<Network> get(core.String project, core.String network) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -6932,14 +6742,11 @@ class RegionOperationsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
+ if (network == null) { |
+ throw new core.ArgumentError("Parameter network is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network'); |
var _response = _requester.request(_url, |
"GET", |
@@ -6948,12 +6755,14 @@ class RegionOperationsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new Network.fromJson(data)); |
} |
/** |
- * Retrieves the list of Operation resources contained within the specified |
- * region. |
+ * Creates a network resource in the specified project using the data included |
+ * in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -6961,37 +6770,7 @@ class RegionOperationsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [OperationList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -6999,7 +6778,7 @@ class RegionOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<OperationList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> insert(Network request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7007,45 +6786,27 @@ class RegionOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new OperationList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class RegionsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- RegionsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Returns the specified region resource. |
+ * Retrieves the list of network resources available to the specified project. |
* |
* Request parameters: |
* |
@@ -7053,10 +6814,28 @@ class RegionsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Region]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [NetworkList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7064,7 +6843,7 @@ class RegionsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Region> get(core.String project, core.String region) { |
+ async.Future<NetworkList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7075,11 +6854,17 @@ class RegionsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
var _response = _requester.request(_url, |
"GET", |
@@ -7088,11 +6873,20 @@ class RegionsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Region.fromJson(data)); |
+ return _response.then((data) => new NetworkList.fromJson(data)); |
} |
+} |
+ |
+ |
+class ProjectsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ ProjectsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Retrieves the list of region resources available to the specified project. |
+ * Returns the specified project resource. |
* |
* Request parameters: |
* |
@@ -7100,34 +6894,7 @@ class RegionsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [RegionList]. |
+ * Completes with a [Project]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7135,7 +6902,7 @@ class RegionsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<RegionList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Project> get(core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7146,17 +6913,8 @@ class RegionsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions'; |
+ _url = commons.Escaper.ecapeVariable('$project'); |
var _response = _requester.request(_url, |
"GET", |
@@ -7165,30 +6923,20 @@ class RegionsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new RegionList.fromJson(data)); |
+ return _response.then((data) => new Project.fromJson(data)); |
} |
-} |
- |
- |
-class RoutesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- RoutesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Deletes the specified route resource. |
+ * Moves a persistent disk from one zone to another. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [route] - Name of the route resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -7197,7 +6945,7 @@ class RoutesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String route) { |
+ async.Future<Operation> moveDisk(DiskMoveRequest request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7205,17 +6953,17 @@ class RoutesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (route == null) { |
- throw new core.ArgumentError("Parameter route is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/moveDisk'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -7225,18 +6973,18 @@ class RoutesResourceApi { |
} |
/** |
- * Returns the specified route resource. |
+ * Moves an instance and its attached persistent disks from one zone to |
+ * another. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [route] - Name of the route resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * Completes with a [Route]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7244,7 +6992,7 @@ class RoutesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Route> get(core.String project, core.String route) { |
+ async.Future<Operation> moveInstance(InstanceMoveRequest request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7252,34 +7000,34 @@ class RoutesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (route == null) { |
- throw new core.ArgumentError("Parameter route is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/moveInstance'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Route.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a route resource in the specified project using the data included |
- * in the request. |
+ * Sets metadata common to all instances within the specified project using |
+ * the data included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
@@ -7291,7 +7039,7 @@ class RoutesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(Route request, core.String project) { |
+ async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7306,7 +7054,7 @@ class RoutesResourceApi { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata'; |
var _response = _requester.request(_url, |
"POST", |
@@ -7319,42 +7067,19 @@ class RoutesResourceApi { |
} |
/** |
- * Retrieves the list of route resources available to the specified project. |
+ * Enables the usage export feature and sets the usage export bucket where |
+ * reports are stored. If you provide an empty request body using this method, |
+ * the usage export feature will be disabled. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [RouteList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7362,7 +7087,7 @@ class RoutesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<RouteList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7370,53 +7095,48 @@ class RoutesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new RouteList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
} |
-class SnapshotsResourceApi { |
+class RegionOperationsResourceApi { |
final commons.ApiRequester _requester; |
- SnapshotsResourceApi(commons.ApiRequester client) : |
+ RegionOperationsResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified persistent disk snapshot resource. |
+ * Deletes the specified region-specific Operations resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [snapshot] - Name of the persistent disk snapshot resource to delete. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * [operation] - Name of the Operations resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7424,7 +7144,7 @@ class SnapshotsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String snapshot) { |
+ async.Future delete(core.String project, core.String region, core.String operation) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7435,11 +7155,16 @@ class SnapshotsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (snapshot == null) { |
- throw new core.ArgumentError("Parameter snapshot is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot'); |
+ _downloadOptions = null; |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -7448,22 +7173,25 @@ class SnapshotsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => null); |
} |
/** |
- * Returns the specified persistent disk snapshot resource. |
+ * Retrieves the specified region-specific Operations resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [snapshot] - Name of the persistent disk snapshot resource to return. |
+ * [region] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Snapshot]. |
+ * [operation] - Name of the Operations resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7471,7 +7199,7 @@ class SnapshotsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Snapshot> get(core.String project, core.String snapshot) { |
+ async.Future<Operation> get(core.String project, core.String region, core.String operation) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7482,11 +7210,14 @@ class SnapshotsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (snapshot == null) { |
- throw new core.ArgumentError("Parameter snapshot is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
var _response = _requester.request(_url, |
"GET", |
@@ -7495,38 +7226,35 @@ class SnapshotsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Snapshot.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Retrieves the list of persistent disk snapshot resources contained within |
- * the specified project. |
+ * Retrieves the list of Operation resources contained within the specified |
+ * region. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -7535,7 +7263,7 @@ class SnapshotsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [SnapshotList]. |
+ * Completes with a [OperationList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7543,7 +7271,7 @@ class SnapshotsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<SnapshotList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<OperationList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7554,6 +7282,9 @@ class SnapshotsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -7564,7 +7295,7 @@ class SnapshotsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations'; |
var _response = _requester.request(_url, |
"GET", |
@@ -7573,31 +7304,31 @@ class SnapshotsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new SnapshotList.fromJson(data)); |
+ return _response.then((data) => new OperationList.fromJson(data)); |
} |
} |
-class TargetHttpProxiesResourceApi { |
+class RegionsResourceApi { |
final commons.ApiRequester _requester; |
- TargetHttpProxiesResourceApi(commons.ApiRequester client) : |
+ RegionsResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Deletes the specified TargetHttpProxy resource. |
+ * Returns the specified region resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [targetHttpProxy] - Name of the TargetHttpProxy resource to delete. |
+ * [region] - Name of the region resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * Completes with a [Region]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7605,7 +7336,7 @@ class TargetHttpProxiesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String targetHttpProxy) { |
+ async.Future<Region> get(core.String project, core.String region) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7616,35 +7347,53 @@ class TargetHttpProxiesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (targetHttpProxy == null) { |
- throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new Region.fromJson(data)); |
} |
/** |
- * Returns the specified TargetHttpProxy resource. |
+ * Retrieves the list of region resources available to the specified project. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [targetHttpProxy] - Name of the TargetHttpProxy resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [TargetHttpProxy]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [RegionList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7652,7 +7401,7 @@ class TargetHttpProxiesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetHttpProxy> get(core.String project, core.String targetHttpProxy) { |
+ async.Future<RegionList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7663,11 +7412,17 @@ class TargetHttpProxiesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (targetHttpProxy == null) { |
- throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions'; |
var _response = _requester.request(_url, |
"GET", |
@@ -7676,14 +7431,20 @@ class TargetHttpProxiesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetHttpProxy.fromJson(data)); |
+ return _response.then((data) => new RegionList.fromJson(data)); |
} |
+} |
+ |
+ |
+class RoutesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ RoutesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Creates a TargetHttpProxy resource in the specified project using the data |
- * included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified route resource. |
* |
* Request parameters: |
* |
@@ -7691,6 +7452,9 @@ class TargetHttpProxiesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [route] - Name of the route resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -7699,7 +7463,7 @@ class TargetHttpProxiesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(TargetHttpProxy request, core.String project) { |
+ async.Future<Operation> delete(core.String project, core.String route) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7707,17 +7471,17 @@ class TargetHttpProxiesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (route == null) { |
+ throw new core.ArgumentError("Parameter route is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -7727,8 +7491,7 @@ class TargetHttpProxiesResourceApi { |
} |
/** |
- * Retrieves the list of TargetHttpProxy resources available to the specified |
- * project. |
+ * Returns the specified route resource. |
* |
* Request parameters: |
* |
@@ -7736,34 +7499,10 @@ class TargetHttpProxiesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
+ * [route] - Name of the route resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [TargetHttpProxyList]. |
+ * Completes with a [Route]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7771,7 +7510,7 @@ class TargetHttpProxiesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetHttpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Route> get(core.String project, core.String route) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7782,17 +7521,11 @@ class TargetHttpProxiesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (route == null) { |
+ throw new core.ArgumentError("Parameter route is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route'); |
var _response = _requester.request(_url, |
"GET", |
@@ -7801,11 +7534,12 @@ class TargetHttpProxiesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetHttpProxyList.fromJson(data)); |
+ return _response.then((data) => new Route.fromJson(data)); |
} |
/** |
- * Changes the URL map for TargetHttpProxy. |
+ * Creates a route resource in the specified project using the data included |
+ * in the request. |
* |
* [request] - The metadata request object. |
* |
@@ -7815,10 +7549,6 @@ class TargetHttpProxiesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [targetHttpProxy] - Name of the TargetHttpProxy resource whose URL map is |
- * to be set. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -7827,7 +7557,7 @@ class TargetHttpProxiesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpProxy) { |
+ async.Future<Operation> insert(Route request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7841,11 +7571,8 @@ class TargetHttpProxiesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (targetHttpProxy == null) { |
- throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
var _response = _requester.request(_url, |
"POST", |
@@ -7857,17 +7584,8 @@ class TargetHttpProxiesResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class TargetInstancesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- TargetInstancesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Retrieves the list of target instances grouped by scope. |
+ * Retrieves the list of route resources available to the specified project. |
* |
* Request parameters: |
* |
@@ -7876,24 +7594,18 @@ class TargetInstancesResourceApi { |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -7902,7 +7614,7 @@ class TargetInstancesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [TargetInstanceAggregatedList]. |
+ * Completes with a [RouteList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -7910,7 +7622,7 @@ class TargetInstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<RouteList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7931,7 +7643,7 @@ class TargetInstancesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
var _response = _requester.request(_url, |
"GET", |
@@ -7940,11 +7652,26 @@ class TargetInstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetInstanceAggregatedList.fromJson(data)); |
+ return _response.then((data) => new RouteList.fromJson(data)); |
} |
+} |
+ |
+ |
+class SnapshotsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ SnapshotsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Deletes the specified TargetInstance resource. |
+ * Deletes the specified Snapshot resource. Keep in mind that deleting a |
+ * single snapshot might not necessarily delete all the data on that snapshot. |
+ * If any data on the snapshot that is marked for deletion is needed for |
+ * subsequent snapshots, the data will be moved to the next corresponding |
+ * snapshot. |
+ * |
+ * For more information, see Deleting snaphots. |
* |
* Request parameters: |
* |
@@ -7952,10 +7679,7 @@ class TargetInstancesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [targetInstance] - Name of the TargetInstance resource to delete. |
+ * [snapshot] - Name of the Snapshot resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -7966,7 +7690,7 @@ class TargetInstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String zone, core.String targetInstance) { |
+ async.Future<Operation> delete(core.String project, core.String snapshot) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -7977,14 +7701,11 @@ class TargetInstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (targetInstance == null) { |
- throw new core.ArgumentError("Parameter targetInstance is required."); |
+ if (snapshot == null) { |
+ throw new core.ArgumentError("Parameter snapshot is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -7997,7 +7718,7 @@ class TargetInstancesResourceApi { |
} |
/** |
- * Returns the specified TargetInstance resource. |
+ * Returns the specified Snapshot resource. |
* |
* Request parameters: |
* |
@@ -8005,13 +7726,10 @@ class TargetInstancesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [targetInstance] - Name of the TargetInstance resource to return. |
+ * [snapshot] - Name of the Snapshot resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [TargetInstance]. |
+ * Completes with a [Snapshot]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8019,7 +7737,7 @@ class TargetInstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetInstance> get(core.String project, core.String zone, core.String targetInstance) { |
+ async.Future<Snapshot> get(core.String project, core.String snapshot) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8030,14 +7748,11 @@ class TargetInstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (targetInstance == null) { |
- throw new core.ArgumentError("Parameter targetInstance is required."); |
+ if (snapshot == null) { |
+ throw new core.ArgumentError("Parameter snapshot is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot'); |
var _response = _requester.request(_url, |
"GET", |
@@ -8046,14 +7761,12 @@ class TargetInstancesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetInstance.fromJson(data)); |
+ return _response.then((data) => new Snapshot.fromJson(data)); |
} |
/** |
- * Creates a TargetInstance resource in the specified project and zone using |
- * the data included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of Snapshot resources contained within the specified |
+ * project. |
* |
* Request parameters: |
* |
@@ -8061,10 +7774,28 @@ class TargetInstancesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Operation]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [SnapshotList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8072,7 +7803,7 @@ class TargetInstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(TargetInstance request, core.String project, core.String zone) { |
+ async.Future<SnapshotList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8080,31 +7811,42 @@ class TargetInstancesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new SnapshotList.fromJson(data)); |
} |
+} |
+ |
+ |
+class TargetHttpProxiesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ TargetHttpProxiesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Retrieves the list of TargetInstance resources available to the specified |
- * project and zone. |
+ * Deletes the specified TargetHttpProxy resource. |
* |
* Request parameters: |
* |
@@ -8112,37 +7854,10 @@ class TargetInstancesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
+ * [targetHttpProxy] - Name of the TargetHttpProxy resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [TargetInstanceList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8150,7 +7865,7 @@ class TargetInstancesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> delete(core.String project, core.String targetHttpProxy) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8161,59 +7876,35 @@ class TargetInstancesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (targetHttpProxy == null) { |
+ throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
var _response = _requester.request(_url, |
- "GET", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetInstanceList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class TargetPoolsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- TargetPoolsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Adds health check URL to targetPool. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified TargetHttpProxy resource. |
* |
* Request parameters: |
* |
- * [project] - null |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [targetPool] - Name of the TargetPool resource to which health_check_url is |
- * to be added. |
+ * [targetHttpProxy] - Name of the TargetHttpProxy resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * Completes with a [TargetHttpProxy]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8221,7 +7912,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest request, core.String project, core.String region, core.String targetPool) { |
+ async.Future<TargetHttpProxy> get(core.String project, core.String targetHttpProxy) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8229,49 +7920,37 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
+ if (targetHttpProxy == null) { |
+ throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new TargetHttpProxy.fromJson(data)); |
} |
/** |
- * Adds instance url to targetPool. |
+ * Creates a TargetHttpProxy resource in the specified project using the data |
+ * included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - null |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [targetPool] - Name of the TargetPool resource to which instance_url is to |
- * be added. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -8280,7 +7959,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, core.String project, core.String region, core.String targetPool) { |
+ async.Future<Operation> insert(TargetHttpProxy request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8294,14 +7973,8 @@ class TargetPoolsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addInstance'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies'; |
var _response = _requester.request(_url, |
"POST", |
@@ -8314,7 +7987,8 @@ class TargetPoolsResourceApi { |
} |
/** |
- * Retrieves the list of target pools grouped by scope. |
+ * Retrieves the list of TargetHttpProxy resources available to the specified |
+ * project. |
* |
* Request parameters: |
* |
@@ -8323,24 +7997,18 @@ class TargetPoolsResourceApi { |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -8349,7 +8017,7 @@ class TargetPoolsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [TargetPoolAggregatedList]. |
+ * Completes with a [TargetHttpProxyList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8357,7 +8025,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<TargetHttpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8378,7 +8046,7 @@ class TargetPoolsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies'; |
var _response = _requester.request(_url, |
"GET", |
@@ -8387,11 +8055,13 @@ class TargetPoolsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetPoolAggregatedList.fromJson(data)); |
+ return _response.then((data) => new TargetHttpProxyList.fromJson(data)); |
} |
/** |
- * Deletes the specified TargetPool resource. |
+ * Changes the URL map for TargetHttpProxy. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -8399,10 +8069,8 @@ class TargetPoolsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [targetPool] - Name of the TargetPool resource to delete. |
+ * [targetHttpProxy] - Name of the TargetHttpProxy resource whose URL map is |
+ * to be set. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -8413,7 +8081,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String region, core.String targetPool) { |
+ async.Future<Operation> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpProxy) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8421,20 +8089,20 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
+ if (targetHttpProxy == null) { |
+ throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -8443,8 +8111,17 @@ class TargetPoolsResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class TargetInstancesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ TargetInstancesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Returns the specified TargetPool resource. |
+ * Retrieves the list of target instances grouped by scope. |
* |
* Request parameters: |
* |
@@ -8452,13 +8129,28 @@ class TargetPoolsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * [targetPool] - Name of the TargetPool resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * Completes with a [TargetPool]. |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [TargetInstanceAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8466,7 +8158,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetPool> get(core.String project, core.String region, core.String targetPool) { |
+ async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8477,14 +8169,17 @@ class TargetPoolsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
} |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances'; |
var _response = _requester.request(_url, |
"GET", |
@@ -8493,29 +8188,25 @@ class TargetPoolsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetPool.fromJson(data)); |
+ return _response.then((data) => new TargetInstanceAggregatedList.fromJson(data)); |
} |
/** |
- * Gets the most recent health check results for each IP for the given |
- * instance that is referenced by given TargetPool. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified TargetInstance resource. |
* |
* Request parameters: |
* |
- * [project] - null |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetPool] - Name of the TargetPool resource to which the queried |
- * instance belongs. |
+ * [targetInstance] - Name of the TargetInstance resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [TargetPoolInstanceHealth]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8523,7 +8214,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, core.String project, core.String region, core.String targetPool) { |
+ async.Future<Operation> delete(core.String project, core.String zone, core.String targetInstance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8531,36 +8222,30 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
+ if (targetInstance == null) { |
+ throw new core.ArgumentError("Parameter targetInstance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/getHealth'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a TargetPool resource in the specified project and region using the |
- * data included in the request. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified TargetInstance resource. |
* |
* Request parameters: |
* |
@@ -8568,10 +8253,13 @@ class TargetPoolsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * [targetInstance] - Name of the TargetInstance resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [TargetInstance]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8579,7 +8267,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(TargetPool request, core.String project, core.String region) { |
+ async.Future<TargetInstance> get(core.String project, core.String zone, core.String targetInstance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8587,31 +8275,33 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (targetInstance == null) { |
+ throw new core.ArgumentError("Parameter targetInstance is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance'); |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new TargetInstance.fromJson(data)); |
} |
/** |
- * Retrieves the list of TargetPool resources available to the specified |
- * project and region. |
+ * Creates a TargetInstance resource in the specified project and zone using |
+ * the data included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
@@ -8619,37 +8309,10 @@ class TargetPoolsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [TargetPoolList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8657,7 +8320,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetPoolList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> insert(TargetInstance request, core.String project, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8665,53 +8328,63 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetPoolList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Removes health check URL from targetPool. |
- * |
- * [request] - The metadata request object. |
+ * Retrieves the list of TargetInstance resources available to the specified |
+ * project and zone. |
* |
* Request parameters: |
* |
- * [project] - null |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - Name of the region scoping this request. |
+ * [zone] - Name of the zone scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetPool] - Name of the TargetPool resource to which health_check_url is |
- * to be removed. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Operation]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [TargetInstanceList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8719,7 +8392,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest request, core.String project, core.String region, core.String targetPool) { |
+ async.Future<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8727,33 +8400,45 @@ class TargetPoolsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- if (targetPool == null) { |
- throw new core.ArgumentError("Parameter targetPool is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances'; |
var _response = _requester.request(_url, |
- "POST", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new TargetInstanceList.fromJson(data)); |
} |
+} |
+ |
+ |
+class TargetPoolsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ TargetPoolsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Removes instance URL from targetPool. |
+ * Adds health check URL to targetPool. |
* |
* [request] - The metadata request object. |
* |
@@ -8766,8 +8451,8 @@ class TargetPoolsResourceApi { |
* [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetPool] - Name of the TargetPool resource to which instance_url is to |
- * be removed. |
+ * [targetPool] - Name of the TargetPool resource to which health_check_url is |
+ * to be added. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -8778,7 +8463,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest request, core.String project, core.String region, core.String targetPool) { |
+ async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest request, core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8799,7 +8484,7 @@ class TargetPoolsResourceApi { |
throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeInstance'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck'; |
var _response = _requester.request(_url, |
"POST", |
@@ -8812,25 +8497,23 @@ class TargetPoolsResourceApi { |
} |
/** |
- * Changes backup pool configurations. |
+ * Adds instance url to targetPool. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - null |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
* [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetPool] - Name of the TargetPool resource for which the backup is to |
- * be set. |
+ * [targetPool] - Name of the TargetPool resource to which instance_url is to |
+ * be added. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [failoverRatio] - New failoverRatio value for the containing target pool. |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -8839,7 +8522,7 @@ class TargetPoolsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> setBackup(TargetReference request, core.String project, core.String region, core.String targetPool, {core.double failoverRatio}) { |
+ async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8859,11 +8542,8 @@ class TargetPoolsResourceApi { |
if (targetPool == null) { |
throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- if (failoverRatio != null) { |
- _queryParams["failoverRatio"] = ["${failoverRatio}"]; |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/setBackup'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addInstance'; |
var _response = _requester.request(_url, |
"POST", |
@@ -8875,43 +8555,28 @@ class TargetPoolsResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class TargetVpnGatewaysResourceApi { |
- final commons.ApiRequester _requester; |
- |
- TargetVpnGatewaysResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Retrieves the list of target VPN gateways grouped by scope. |
+ * Retrieves the list of target pools grouped by scope. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -8920,7 +8585,7 @@ class TargetVpnGatewaysResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [TargetVpnGatewayAggregatedList]. |
+ * Completes with a [TargetPoolAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -8928,7 +8593,7 @@ class TargetVpnGatewaysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetVpnGatewayAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8949,7 +8614,7 @@ class TargetVpnGatewaysResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetVpnGateways'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools'; |
var _response = _requester.request(_url, |
"GET", |
@@ -8958,22 +8623,22 @@ class TargetVpnGatewaysResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(data)); |
+ return _response.then((data) => new TargetPoolAggregatedList.fromJson(data)); |
} |
/** |
- * Deletes the specified TargetVpnGateway resource. |
+ * Deletes the specified TargetPool resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetVpnGateway] - Name of the TargetVpnGateway resource to delete. |
+ * [targetPool] - Name of the TargetPool resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -8984,7 +8649,7 @@ class TargetVpnGatewaysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String region, core.String targetVpnGateway) { |
+ async.Future<Operation> delete(core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -8998,11 +8663,11 @@ class TargetVpnGatewaysResourceApi { |
if (region == null) { |
throw new core.ArgumentError("Parameter region is required."); |
} |
- if (targetVpnGateway == null) { |
- throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -9015,21 +8680,21 @@ class TargetVpnGatewaysResourceApi { |
} |
/** |
- * Returns the specified TargetVpnGateway resource. |
+ * Returns the specified TargetPool resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [targetVpnGateway] - Name of the TargetVpnGateway resource to return. |
+ * [targetPool] - Name of the TargetPool resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [TargetVpnGateway]. |
+ * Completes with a [TargetPool]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9037,7 +8702,7 @@ class TargetVpnGatewaysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetVpnGateway> get(core.String project, core.String region, core.String targetVpnGateway) { |
+ async.Future<TargetPool> get(core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9051,11 +8716,11 @@ class TargetVpnGatewaysResourceApi { |
if (region == null) { |
throw new core.ArgumentError("Parameter region is required."); |
} |
- if (targetVpnGateway == null) { |
- throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool'); |
var _response = _requester.request(_url, |
"GET", |
@@ -9064,25 +8729,29 @@ class TargetVpnGatewaysResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetVpnGateway.fromJson(data)); |
+ return _response.then((data) => new TargetPool.fromJson(data)); |
} |
/** |
- * Creates a TargetVpnGateway resource in the specified project and region |
- * using the data included in the request. |
+ * Gets the most recent health check results for each IP for the given |
+ * instance that is referenced by given TargetPool. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - null |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * [targetPool] - Name of the TargetPool resource to which the queried |
+ * instance belongs. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [TargetPoolInstanceHealth]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9090,7 +8759,7 @@ class TargetVpnGatewaysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(TargetVpnGateway request, core.String project, core.String region) { |
+ async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9107,8 +8776,11 @@ class TargetVpnGatewaysResourceApi { |
if (region == null) { |
throw new core.ArgumentError("Parameter region is required."); |
} |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/getHealth'; |
var _response = _requester.request(_url, |
"POST", |
@@ -9117,50 +8789,25 @@ class TargetVpnGatewaysResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data)); |
} |
/** |
- * Retrieves the list of TargetVpnGateway resources available to the specified |
- * project and region. |
+ * Creates a TargetPool resource in the specified project and region using the |
+ * data included in the request. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [TargetVpnGatewayList]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9168,7 +8815,7 @@ class TargetVpnGatewaysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<TargetVpnGatewayList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<Operation> insert(TargetPool request, core.String project, core.String region) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9176,53 +8823,122 @@ class TargetVpnGatewaysResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
if (region == null) { |
throw new core.ArgumentError("Parameter region is required."); |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new TargetVpnGatewayList.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
+ /** |
+ * Retrieves the list of TargetPool resources available to the specified |
+ * project and region. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Name of the project scoping this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [TargetPoolList]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<TargetPoolList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
-class UrlMapsResourceApi { |
- final commons.ApiRequester _requester; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools'; |
- UrlMapsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new TargetPoolList.fromJson(data)); |
+ } |
/** |
- * Deletes the specified UrlMap resource. |
+ * Removes health check URL from targetPool. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - null |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [urlMap] - Name of the UrlMap resource to delete. |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [targetPool] - Name of the TargetPool resource to which health_check_url is |
+ * to be removed. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -9233,7 +8949,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String urlMap) { |
+ async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest request, core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9241,17 +8957,23 @@ class UrlMapsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (urlMap == null) { |
- throw new core.ArgumentError("Parameter urlMap is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck'; |
var _response = _requester.request(_url, |
- "DELETE", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -9261,18 +8983,24 @@ class UrlMapsResourceApi { |
} |
/** |
- * Returns the specified UrlMap resource. |
+ * Removes instance URL from targetPool. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - null |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [urlMap] - Name of the UrlMap resource to return. |
+ * [region] - Name of the region scoping this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [UrlMap]. |
+ * [targetPool] - Name of the TargetPool resource to which instance_url is to |
+ * be removed. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9280,7 +9008,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<UrlMap> get(core.String project, core.String urlMap) { |
+ async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest request, core.String project, core.String region, core.String targetPool) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9288,28 +9016,33 @@ class UrlMapsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (urlMap == null) { |
- throw new core.ArgumentError("Parameter urlMap is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeInstance'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new UrlMap.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Creates a UrlMap resource in the specified project using the data included |
- * in the request. |
+ * Changes backup pool configurations. |
* |
* [request] - The metadata request object. |
* |
@@ -9319,6 +9052,15 @@ class UrlMapsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - Name of the region scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [targetPool] - Name of the TargetPool resource for which the backup is to |
+ * be set. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [failoverRatio] - New failoverRatio value for the containing target pool. |
+ * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -9327,7 +9069,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(UrlMap request, core.String project) { |
+ async.Future<Operation> setBackup(TargetReference request, core.String project, core.String region, core.String targetPool, {core.double failoverRatio}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9341,8 +9083,17 @@ class UrlMapsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (targetPool == null) { |
+ throw new core.ArgumentError("Parameter targetPool is required."); |
+ } |
+ if (failoverRatio != null) { |
+ _queryParams["failoverRatio"] = ["${failoverRatio}"]; |
+ } |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/setBackup'; |
var _response = _requester.request(_url, |
"POST", |
@@ -9354,34 +9105,37 @@ class UrlMapsResourceApi { |
return _response.then((data) => new Operation.fromJson(data)); |
} |
+} |
+ |
+ |
+class TargetVpnGatewaysResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ TargetVpnGatewaysResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Retrieves the list of UrlMap resources available to the specified project. |
+ * Retrieves the list of target VPN gateways grouped by scope. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -9390,7 +9144,7 @@ class UrlMapsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [UrlMapList]. |
+ * Completes with a [TargetVpnGatewayAggregatedList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9398,7 +9152,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<UrlMapList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<TargetVpnGatewayAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9419,7 +9173,7 @@ class UrlMapsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetVpnGateways'; |
var _response = _requester.request(_url, |
"GET", |
@@ -9428,22 +9182,22 @@ class UrlMapsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new UrlMapList.fromJson(data)); |
+ return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(data)); |
} |
/** |
- * Update the entire content of the UrlMap resource. This method supports |
- * patch semantics. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the specified TargetVpnGateway resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [urlMap] - Name of the UrlMap resource to update. |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [targetVpnGateway] - Name of the TargetVpnGateway resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -9454,7 +9208,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> patch(UrlMap request, core.String project, core.String urlMap) { |
+ async.Future<Operation> delete(core.String project, core.String region, core.String targetVpnGateway) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9462,20 +9216,20 @@ class UrlMapsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (urlMap == null) { |
- throw new core.ArgumentError("Parameter urlMap is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (targetVpnGateway == null) { |
+ throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway'); |
var _response = _requester.request(_url, |
- "PATCH", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -9485,20 +9239,21 @@ class UrlMapsResourceApi { |
} |
/** |
- * Update the entire content of the UrlMap resource. |
- * |
- * [request] - The metadata request object. |
+ * Returns the specified TargetVpnGateway resource. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [urlMap] - Name of the UrlMap resource to update. |
+ * [region] - The name of the region for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [Operation]. |
+ * [targetVpnGateway] - Name of the TargetVpnGateway resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [TargetVpnGateway]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9506,7 +9261,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> update(UrlMap request, core.String project, core.String urlMap) { |
+ async.Future<TargetVpnGateway> get(core.String project, core.String region, core.String targetVpnGateway) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9514,45 +9269,44 @@ class UrlMapsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (urlMap == null) { |
- throw new core.ArgumentError("Parameter urlMap is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (targetVpnGateway == null) { |
+ throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway'); |
var _response = _requester.request(_url, |
- "PUT", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new TargetVpnGateway.fromJson(data)); |
} |
/** |
- * Run static validation for the UrlMap. In particular, the tests of the |
- * provided UrlMap will be run. Calling this method does NOT create the |
- * UrlMap. |
+ * Creates a TargetVpnGateway resource in the specified project and region |
+ * using the data included in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Name of the project scoping this request. |
+ * [project] - Project ID for this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [urlMap] - Name of the UrlMap resource to be validated as. |
+ * [region] - The name of the region for this request. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [UrlMapsValidateResponse]. |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9560,7 +9314,7 @@ class UrlMapsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request, core.String project, core.String urlMap) { |
+ async.Future<Operation> insert(TargetVpnGateway request, core.String project, core.String region) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9574,11 +9328,11 @@ class UrlMapsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (urlMap == null) { |
- throw new core.ArgumentError("Parameter urlMap is required."); |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/validate'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways'; |
var _response = _requester.request(_url, |
"POST", |
@@ -9587,20 +9341,12 @@ class UrlMapsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new UrlMapsValidateResponse.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class VpnTunnelsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- VpnTunnelsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Retrieves the list of VPN tunnels grouped by scope. |
+ * Retrieves the list of TargetVpnGateway resources available to the specified |
+ * project and region. |
* |
* Request parameters: |
* |
@@ -9608,25 +9354,22 @@ class VpnTunnelsResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -9635,7 +9378,7 @@ class VpnTunnelsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [VpnTunnelAggregatedList]. |
+ * Completes with a [TargetVpnGatewayList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9643,7 +9386,7 @@ class VpnTunnelsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<VpnTunnelAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<TargetVpnGatewayList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9654,6 +9397,9 @@ class VpnTunnelsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -9664,7 +9410,7 @@ class VpnTunnelsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways'; |
var _response = _requester.request(_url, |
"GET", |
@@ -9673,22 +9419,28 @@ class VpnTunnelsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new VpnTunnelAggregatedList.fromJson(data)); |
+ return _response.then((data) => new TargetVpnGatewayList.fromJson(data)); |
} |
+} |
+ |
+ |
+class UrlMapsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ UrlMapsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
/** |
- * Deletes the specified VpnTunnel resource. |
+ * Deletes the specified UrlMap resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [vpnTunnel] - Name of the VpnTunnel resource to delete. |
+ * [urlMap] - Name of the UrlMap resource to delete. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -9699,7 +9451,7 @@ class VpnTunnelsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String project, core.String region, core.String vpnTunnel) { |
+ async.Future<Operation> delete(core.String project, core.String urlMap) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9710,14 +9462,11 @@ class VpnTunnelsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (vpnTunnel == null) { |
- throw new core.ArgumentError("Parameter vpnTunnel is required."); |
+ if (urlMap == null) { |
+ throw new core.ArgumentError("Parameter urlMap is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
var _response = _requester.request(_url, |
"DELETE", |
@@ -9730,21 +9479,18 @@ class VpnTunnelsResourceApi { |
} |
/** |
- * Returns the specified VpnTunnel resource. |
+ * Returns the specified UrlMap resource. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [vpnTunnel] - Name of the VpnTunnel resource to return. |
+ * [urlMap] - Name of the UrlMap resource to return. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * Completes with a [VpnTunnel]. |
+ * Completes with a [UrlMap]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9752,7 +9498,7 @@ class VpnTunnelsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<VpnTunnel> get(core.String project, core.String region, core.String vpnTunnel) { |
+ async.Future<UrlMap> get(core.String project, core.String urlMap) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9763,14 +9509,11 @@ class VpnTunnelsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- if (vpnTunnel == null) { |
- throw new core.ArgumentError("Parameter vpnTunnel is required."); |
+ if (urlMap == null) { |
+ throw new core.ArgumentError("Parameter urlMap is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
var _response = _requester.request(_url, |
"GET", |
@@ -9779,24 +9522,21 @@ class VpnTunnelsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new VpnTunnel.fromJson(data)); |
+ return _response.then((data) => new UrlMap.fromJson(data)); |
} |
/** |
- * Creates a VpnTunnel resource in the specified project and region using the |
- * data included in the request. |
+ * Creates a UrlMap resource in the specified project using the data included |
+ * in the request. |
* |
* [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -9805,7 +9545,7 @@ class VpnTunnelsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> insert(VpnTunnel request, core.String project, core.String region) { |
+ async.Future<Operation> insert(UrlMap request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9819,11 +9559,8 @@ class VpnTunnelsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
var _response = _requester.request(_url, |
"POST", |
@@ -9836,37 +9573,27 @@ class VpnTunnelsResourceApi { |
} |
/** |
- * Retrieves the list of VpnTunnel resources contained in the specified |
- * project and region. |
+ * Retrieves the list of UrlMap resources available to the specified project. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [region] - The name of the region for this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -9875,7 +9602,7 @@ class VpnTunnelsResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [VpnTunnelList]. |
+ * Completes with a [UrlMapList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9883,7 +9610,7 @@ class VpnTunnelsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<VpnTunnelList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<UrlMapList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9894,9 +9621,6 @@ class VpnTunnelsResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (region == null) { |
- throw new core.ArgumentError("Parameter region is required."); |
- } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -9907,7 +9631,7 @@ class VpnTunnelsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
var _response = _requester.request(_url, |
"GET", |
@@ -9916,32 +9640,25 @@ class VpnTunnelsResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new VpnTunnelList.fromJson(data)); |
+ return _response.then((data) => new UrlMapList.fromJson(data)); |
} |
-} |
- |
- |
-class ZoneOperationsResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ZoneOperationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Deletes the specified zone-specific Operations resource. |
+ * Update the entire content of the UrlMap resource. This method supports |
+ * patch semantics. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
+ * [urlMap] - Name of the UrlMap resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [operation] - Name of the Operations resource to delete. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -9949,7 +9666,7 @@ class ZoneOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future delete(core.String project, core.String zone, core.String operation) { |
+ async.Future<Operation> patch(UrlMap request, core.String project, core.String urlMap) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -9957,43 +9674,40 @@ class ZoneOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
+ if (urlMap == null) { |
+ throw new core.ArgumentError("Parameter urlMap is required."); |
} |
- _downloadOptions = null; |
- |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "PATCH", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => null); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
/** |
- * Retrieves the specified zone-specific Operations resource. |
+ * Update the entire content of the UrlMap resource. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
- * |
- * [operation] - Name of the Operations resource to return. |
+ * [urlMap] - Name of the UrlMap resource to update. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
* Completes with a [Operation]. |
@@ -10004,7 +9718,7 @@ class ZoneOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> get(core.String project, core.String zone, core.String operation) { |
+ async.Future<Operation> update(UrlMap request, core.String project, core.String urlMap) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -10012,20 +9726,20 @@ class ZoneOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (operation == null) { |
- throw new core.ArgumentError("Parameter operation is required."); |
+ if (urlMap == null) { |
+ throw new core.ArgumentError("Parameter urlMap is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap'); |
var _response = _requester.request(_url, |
- "GET", |
+ "PUT", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -10035,46 +9749,22 @@ class ZoneOperationsResourceApi { |
} |
/** |
- * Retrieves the list of Operation resources contained within the specified |
- * zone. |
+ * Run static validation for the UrlMap. In particular, the tests of the |
+ * provided UrlMap will be run. Calling this method does NOT create the |
+ * UrlMap. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [project] - Project ID for this request. |
+ * [project] - Name of the project scoping this request. |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone scoping this request. |
+ * [urlMap] - Name of the UrlMap resource to be validated as. |
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
* |
- * [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
- * |
- * [maxResults] - Maximum count of results to be returned. |
- * Value must be between "0" and "500". |
- * |
- * [pageToken] - Specifies a page token to use. Use this parameter if you want |
- * to list the next page of results. Set pageToken to the nextPageToken |
- * returned by a previous list request. |
- * |
- * Completes with a [OperationList]. |
+ * Completes with a [UrlMapsValidateResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -10082,7 +9772,7 @@ class ZoneOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request, core.String project, core.String urlMap) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -10090,45 +9780,39 @@ class ZoneOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
- } |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
- if (maxResults != null) { |
- _queryParams["maxResults"] = ["${maxResults}"]; |
- } |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
+ if (urlMap == null) { |
+ throw new core.ArgumentError("Parameter urlMap is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/validate'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new OperationList.fromJson(data)); |
+ return _response.then((data) => new UrlMapsValidateResponse.fromJson(data)); |
} |
} |
-class ZonesResourceApi { |
+class VpnTunnelsResourceApi { |
final commons.ApiRequester _requester; |
- ZonesResourceApi(commons.ApiRequester client) : |
+ VpnTunnelsResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Returns the specified zone resource. |
+ * Retrieves the list of VPN tunnels grouped by scope. |
* |
* Request parameters: |
* |
@@ -10136,18 +9820,36 @@ class ZonesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
- * [zone] - Name of the zone resource to return. |
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
* |
- * Completes with a [Zone]. |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
* |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
+ * For example, filter=name ne example-instance. |
* |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Zone> get(core.String project, core.String zone) { |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [VpnTunnelAggregatedList]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<VpnTunnelAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -10158,11 +9860,17 @@ class ZonesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- if (zone == null) { |
- throw new core.ArgumentError("Parameter zone is required."); |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone'); |
+ _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels'; |
var _response = _requester.request(_url, |
"GET", |
@@ -10171,11 +9879,171 @@ class ZonesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Zone.fromJson(data)); |
+ return _response.then((data) => new VpnTunnelAggregatedList.fromJson(data)); |
} |
/** |
- * Retrieves the list of zone resources available to the specified project. |
+ * Deletes the specified VpnTunnel resource. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [vpnTunnel] - Name of the VpnTunnel resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Operation> delete(core.String project, core.String region, core.String vpnTunnel) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (vpnTunnel == null) { |
+ throw new core.ArgumentError("Parameter vpnTunnel is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel'); |
+ |
+ var _response = _requester.request(_url, |
+ "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Operation.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Returns the specified VpnTunnel resource. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [vpnTunnel] - Name of the VpnTunnel resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [VpnTunnel]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<VpnTunnel> get(core.String project, core.String region, core.String vpnTunnel) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ if (vpnTunnel == null) { |
+ throw new core.ArgumentError("Parameter vpnTunnel is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel'); |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new VpnTunnel.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Creates a VpnTunnel resource in the specified project and region using the |
+ * data included in the request. |
+ * |
+ * [request] - The metadata request object. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Operation> insert(VpnTunnel request, core.String project, core.String region) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels'; |
+ |
+ var _response = _requester.request(_url, |
+ "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Operation.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Retrieves the list of VpnTunnel resources contained in the specified |
+ * project and region. |
* |
* Request parameters: |
* |
@@ -10183,25 +10051,22 @@ class ZonesResourceApi { |
* Value must have pattern |
* "(?:(?:[-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])?))". |
* |
+ * [region] - The name of the region for this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
* [filter] - Sets a filter expression for filtering listed resources, in the |
- * form filter={expression}. Your {expression} must contain the following: |
- * FIELD_NAME COMPARISON_STRING LITERAL_STRING |
- * |
- * - FIELD_NAME: The name of the field you want to compare. The field name |
- * must be valid for the type of resource being filtered. Only atomic field |
- * types are supported (string, number, boolean). Array and object fields are |
- * not currently supported. |
- * - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not |
- * equals). |
- * - LITERAL_STRING: The literal string value to filter to. The literal value |
- * must be valid for the type of field (string, number, boolean). For string |
- * fields, the literal value is interpreted as a regular expression using RE2 |
- * syntax. The literal value must match the entire field. For example, you |
- * can filter by the name of a resource: |
- * filter=name ne example-instance |
- * The above filter returns only results whose name field does not equal |
- * example-instance. You can also enclose your literal string in single, |
- * double, or no quotes. |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
* |
* [maxResults] - Maximum count of results to be returned. |
* Value must be between "0" and "500". |
@@ -10210,7 +10075,7 @@ class ZonesResourceApi { |
* to list the next page of results. Set pageToken to the nextPageToken |
* returned by a previous list request. |
* |
- * Completes with a [ZoneList]. |
+ * Completes with a [VpnTunnelList]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -10218,7 +10083,7 @@ class ZonesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ZoneList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ async.Future<VpnTunnelList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -10229,6 +10094,9 @@ class ZonesResourceApi { |
if (project == null) { |
throw new core.ArgumentError("Parameter project is required."); |
} |
+ if (region == null) { |
+ throw new core.ArgumentError("Parameter region is required."); |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -10239,7 +10107,7 @@ class ZonesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = commons.Escaper.ecapeVariable('$project') + '/zones'; |
+ _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels'; |
var _response = _requester.request(_url, |
"GET", |
@@ -10248,48 +10116,855 @@ class ZonesResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ZoneList.fromJson(data)); |
+ return _response.then((data) => new VpnTunnelList.fromJson(data)); |
} |
} |
+class ZoneOperationsResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ ZoneOperationsResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
-/** An access configuration attached to an instance's network interface. */ |
-class AccessConfig { |
- /** |
- * [Output Only] Type of the resource. Always compute#accessConfig for access |
- * configs. |
- */ |
- core.String kind; |
- /** Name of this access configuration. */ |
- core.String name; |
- /** |
- * An external IP address associated with this instance. Specify an unused |
- * static external IP address available to the project or leave this field |
- * undefined to use an IP from a shared ephemeral IP address pool. If you |
- * specify a static external IP address, it must live in the same region as |
- * the zone of the instance. |
- */ |
- core.String natIP; |
/** |
- * The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
- * Possible string values are: |
- * - "ONE_TO_ONE_NAT" |
+ * Deletes the specified zone-specific Operations resource. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [operation] - Name of the Operations resource to delete. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
*/ |
- core.String type; |
- |
- AccessConfig(); |
+ async.Future delete(core.String project, core.String zone, core.String operation) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
+ } |
+ |
+ _downloadOptions = null; |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ |
+ var _response = _requester.request(_url, |
+ "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => null); |
+ } |
+ |
+ /** |
+ * Retrieves the specified zone-specific Operations resource. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [operation] - Name of the Operations resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Operation]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Operation> get(core.String project, core.String zone, core.String operation) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (operation == null) { |
+ throw new core.ArgumentError("Parameter operation is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Operation.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Retrieves the list of Operation resources contained within the specified |
+ * zone. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [zone] - Name of the zone scoping this request. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [OperationList]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations'; |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new OperationList.fromJson(data)); |
+ } |
+ |
+} |
+ |
+ |
+class ZonesResourceApi { |
+ final commons.ApiRequester _requester; |
+ |
+ ZonesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
+ |
+ /** |
+ * Returns the specified zone resource. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [zone] - Name of the zone resource to return. |
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
+ * |
+ * Completes with a [Zone]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<Zone> get(core.String project, core.String zone) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone'); |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new Zone.fromJson(data)); |
+ } |
+ |
+ /** |
+ * Retrieves the list of zone resources available to the specified project. |
+ * |
+ * Request parameters: |
+ * |
+ * [project] - Project ID for this request. |
+ * Value must have pattern |
+ * "(?:(?:[-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])?))". |
+ * |
+ * [filter] - Sets a filter expression for filtering listed resources, in the |
+ * form filter={expression}. Your {expression} must be in the format: |
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING. |
+ * |
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic |
+ * field types are supported (string, number, boolean). The COMPARISON_STRING |
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the |
+ * string value to filter to. The literal value must be valid for the type of |
+ * field (string, number, boolean). For string fields, the literal value is |
+ * interpreted as a regular expression using RE2 syntax. The literal value |
+ * must match the entire field. |
+ * |
+ * For example, filter=name ne example-instance. |
+ * |
+ * [maxResults] - Maximum count of results to be returned. |
+ * Value must be between "0" and "500". |
+ * |
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want |
+ * to list the next page of results. Set pageToken to the nextPageToken |
+ * returned by a previous list request. |
+ * |
+ * Completes with a [ZoneList]. |
+ * |
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
+ * error. |
+ * |
+ * If the used [http.Client] completes with an error when making a REST call, |
+ * this method will complete with the same error. |
+ */ |
+ async.Future<ZoneList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (project == null) { |
+ throw new core.ArgumentError("Parameter project is required."); |
+ } |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
+ if (maxResults != null) { |
+ _queryParams["maxResults"] = ["${maxResults}"]; |
+ } |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
+ |
+ _url = commons.Escaper.ecapeVariable('$project') + '/zones'; |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new ZoneList.fromJson(data)); |
+ } |
+ |
+} |
+ |
+ |
+ |
+/** An access configuration attached to an instance's network interface. */ |
+class AccessConfig { |
+ /** |
+ * [Output Only] Type of the resource. Always compute#accessConfig for access |
+ * configs. |
+ */ |
+ core.String kind; |
+ /** Name of this access configuration. */ |
+ core.String name; |
+ /** |
+ * An external IP address associated with this instance. Specify an unused |
+ * static external IP address available to the project or leave this field |
+ * undefined to use an IP from a shared ephemeral IP address pool. If you |
+ * specify a static external IP address, it must live in the same region as |
+ * the zone of the instance. |
+ */ |
+ core.String natIP; |
+ /** |
+ * The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
+ * Possible string values are: |
+ * - "ONE_TO_ONE_NAT" |
+ */ |
+ core.String type; |
+ |
+ AccessConfig(); |
+ |
+ AccessConfig.fromJson(core.Map _json) { |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
+ } |
+ if (_json.containsKey("name")) { |
+ name = _json["name"]; |
+ } |
+ if (_json.containsKey("natIP")) { |
+ natIP = _json["natIP"]; |
+ } |
+ if (_json.containsKey("type")) { |
+ type = _json["type"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (kind != null) { |
+ _json["kind"] = kind; |
+ } |
+ if (name != null) { |
+ _json["name"] = name; |
+ } |
+ if (natIP != null) { |
+ _json["natIP"] = natIP; |
+ } |
+ if (type != null) { |
+ _json["type"] = type; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** A reserved address resource. */ |
+class Address { |
+ /** The static external IP address represented by this resource. */ |
+ core.String address; |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
+ core.String creationTimestamp; |
+ /** |
+ * An optional textual description of the resource; provided by the client |
+ * when the resource is created. |
+ */ |
+ core.String description; |
+ /** |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
+ */ |
+ core.String id; |
+ /** |
+ * [Output Only] Type of the resource. Always compute#address for addresses. |
+ */ |
+ core.String kind; |
+ /** |
+ * Name of the resource; provided by the client when the resource is created. |
+ * The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
+ */ |
+ core.String name; |
+ /** |
+ * [Output Only] URL of the region where the regional address resides. This |
+ * field is not applicable to global addresses. |
+ */ |
+ core.String region; |
+ /** [Output Only] Server defined URL for the resource. */ |
+ core.String selfLink; |
+ /** |
+ * [Output Only] The status of the address, which can be either IN_USE or |
+ * RESERVED. An address that is RESERVED is currently reserved and available |
+ * to use. An IN_USE address is currently being used by another resource and |
+ * is not available. |
+ * Possible string values are: |
+ * - "IN_USE" |
+ * - "RESERVED" |
+ */ |
+ core.String status; |
+ /** [Output Only] The URLs of the resources that are using this address. */ |
+ core.List<core.String> users; |
+ |
+ Address(); |
+ |
+ Address.fromJson(core.Map _json) { |
+ if (_json.containsKey("address")) { |
+ address = _json["address"]; |
+ } |
+ if (_json.containsKey("creationTimestamp")) { |
+ creationTimestamp = _json["creationTimestamp"]; |
+ } |
+ if (_json.containsKey("description")) { |
+ description = _json["description"]; |
+ } |
+ if (_json.containsKey("id")) { |
+ id = _json["id"]; |
+ } |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
+ } |
+ if (_json.containsKey("name")) { |
+ name = _json["name"]; |
+ } |
+ if (_json.containsKey("region")) { |
+ region = _json["region"]; |
+ } |
+ if (_json.containsKey("selfLink")) { |
+ selfLink = _json["selfLink"]; |
+ } |
+ if (_json.containsKey("status")) { |
+ status = _json["status"]; |
+ } |
+ if (_json.containsKey("users")) { |
+ users = _json["users"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (address != null) { |
+ _json["address"] = address; |
+ } |
+ if (creationTimestamp != null) { |
+ _json["creationTimestamp"] = creationTimestamp; |
+ } |
+ if (description != null) { |
+ _json["description"] = description; |
+ } |
+ if (id != null) { |
+ _json["id"] = id; |
+ } |
+ if (kind != null) { |
+ _json["kind"] = kind; |
+ } |
+ if (name != null) { |
+ _json["name"] = name; |
+ } |
+ if (region != null) { |
+ _json["region"] = region; |
+ } |
+ if (selfLink != null) { |
+ _json["selfLink"] = selfLink; |
+ } |
+ if (status != null) { |
+ _json["status"] = status; |
+ } |
+ if (users != null) { |
+ _json["users"] = users; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+class AddressAggregatedList { |
+ /** |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
+ */ |
+ core.String id; |
+ /** [Output Only] A map of scoped address lists. */ |
+ core.Map<core.String, AddressesScopedList> items; |
+ /** |
+ * [Output Only] Type of resource. Always compute#addressAggregatedList for |
+ * aggregated lists of addresses. |
+ */ |
+ core.String kind; |
+ /** [Output Only] A token used to continue a truncated list request. */ |
+ core.String nextPageToken; |
+ /** [Output Only] Server defined URL for this resource. */ |
+ core.String selfLink; |
+ |
+ AddressAggregatedList(); |
+ |
+ AddressAggregatedList.fromJson(core.Map _json) { |
+ if (_json.containsKey("id")) { |
+ id = _json["id"]; |
+ } |
+ if (_json.containsKey("items")) { |
+ items = commons.mapMap(_json["items"], (item) => new AddressesScopedList.fromJson(item)); |
+ } |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
+ } |
+ if (_json.containsKey("nextPageToken")) { |
+ nextPageToken = _json["nextPageToken"]; |
+ } |
+ if (_json.containsKey("selfLink")) { |
+ selfLink = _json["selfLink"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (id != null) { |
+ _json["id"] = id; |
+ } |
+ if (items != null) { |
+ _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
+ } |
+ if (kind != null) { |
+ _json["kind"] = kind; |
+ } |
+ if (nextPageToken != null) { |
+ _json["nextPageToken"] = nextPageToken; |
+ } |
+ if (selfLink != null) { |
+ _json["selfLink"] = selfLink; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** Contains a list of address resources. */ |
+class AddressList { |
+ /** |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
+ */ |
+ core.String id; |
+ /** [Output Only] A list of Address resources. */ |
+ core.List<Address> items; |
+ /** |
+ * [Output Only] Type of resource. Always compute#addressList for lists of |
+ * addresses. |
+ */ |
+ core.String kind; |
+ /** [Output Only] A token used to continue a truncated list request. */ |
+ core.String nextPageToken; |
+ /** [Output Only] Server defined URL for the resource. */ |
+ core.String selfLink; |
+ |
+ AddressList(); |
+ |
+ AddressList.fromJson(core.Map _json) { |
+ if (_json.containsKey("id")) { |
+ id = _json["id"]; |
+ } |
+ if (_json.containsKey("items")) { |
+ items = _json["items"].map((value) => new Address.fromJson(value)).toList(); |
+ } |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
+ } |
+ if (_json.containsKey("nextPageToken")) { |
+ nextPageToken = _json["nextPageToken"]; |
+ } |
+ if (_json.containsKey("selfLink")) { |
+ selfLink = _json["selfLink"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (id != null) { |
+ _json["id"] = id; |
+ } |
+ if (items != null) { |
+ _json["items"] = items.map((value) => (value).toJson()).toList(); |
+ } |
+ if (kind != null) { |
+ _json["kind"] = kind; |
+ } |
+ if (nextPageToken != null) { |
+ _json["nextPageToken"] = nextPageToken; |
+ } |
+ if (selfLink != null) { |
+ _json["selfLink"] = selfLink; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+class AddressesScopedListWarningData { |
+ /** [Output Only] A key for the warning data. */ |
+ core.String key; |
+ /** [Output Only] A warning data value corresponding to the key. */ |
+ core.String value; |
+ |
+ AddressesScopedListWarningData(); |
+ |
+ AddressesScopedListWarningData.fromJson(core.Map _json) { |
+ if (_json.containsKey("key")) { |
+ key = _json["key"]; |
+ } |
+ if (_json.containsKey("value")) { |
+ value = _json["value"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (key != null) { |
+ _json["key"] = key; |
+ } |
+ if (value != null) { |
+ _json["value"] = value; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** |
+ * [Output Only] Informational warning which replaces the list of addresses when |
+ * the list is empty. |
+ */ |
+class AddressesScopedListWarning { |
+ /** |
+ * [Output Only] The warning type identifier for this warning. |
+ * Possible string values are: |
+ * - "DEPRECATED_RESOURCE_USED" |
+ * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
+ * - "INJECTED_KERNELS_DEPRECATED" |
+ * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
+ * - "NEXT_HOP_CANNOT_IP_FORWARD" |
+ * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
+ * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
+ * - "NEXT_HOP_NOT_RUNNING" |
+ * - "NOT_CRITICAL_ERROR" |
+ * - "NO_RESULTS_ON_PAGE" |
+ * - "REQUIRED_TOS_AGREEMENT" |
+ * - "RESOURCE_NOT_DELETED" |
+ * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
+ * - "UNREACHABLE" |
+ */ |
+ core.String code; |
+ /** [Output Only] Metadata for this warning in key: value format. */ |
+ core.List<AddressesScopedListWarningData> data; |
+ /** [Output Only] Optional human-readable details for this warning. */ |
+ core.String message; |
+ |
+ AddressesScopedListWarning(); |
+ |
+ AddressesScopedListWarning.fromJson(core.Map _json) { |
+ if (_json.containsKey("code")) { |
+ code = _json["code"]; |
+ } |
+ if (_json.containsKey("data")) { |
+ data = _json["data"].map((value) => new AddressesScopedListWarningData.fromJson(value)).toList(); |
+ } |
+ if (_json.containsKey("message")) { |
+ message = _json["message"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (code != null) { |
+ _json["code"] = code; |
+ } |
+ if (data != null) { |
+ _json["data"] = data.map((value) => (value).toJson()).toList(); |
+ } |
+ if (message != null) { |
+ _json["message"] = message; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+class AddressesScopedList { |
+ /** [Output Only] List of addresses contained in this scope. */ |
+ core.List<Address> addresses; |
+ /** |
+ * [Output Only] Informational warning which replaces the list of addresses |
+ * when the list is empty. |
+ */ |
+ AddressesScopedListWarning warning; |
+ |
+ AddressesScopedList(); |
+ |
+ AddressesScopedList.fromJson(core.Map _json) { |
+ if (_json.containsKey("addresses")) { |
+ addresses = _json["addresses"].map((value) => new Address.fromJson(value)).toList(); |
+ } |
+ if (_json.containsKey("warning")) { |
+ warning = new AddressesScopedListWarning.fromJson(_json["warning"]); |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (addresses != null) { |
+ _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); |
+ } |
+ if (warning != null) { |
+ _json["warning"] = (warning).toJson(); |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** An instance-attached disk resource. */ |
+class AttachedDisk { |
+ /** |
+ * Specifies whether the disk will be auto-deleted when the instance is |
+ * deleted (but not when the disk is detached from the instance). |
+ */ |
+ core.bool autoDelete; |
+ /** |
+ * Indicates that this is a boot disk. The virtual machine will use the first |
+ * partition of the disk for its root filesystem. |
+ */ |
+ core.bool boot; |
+ /** |
+ * Specifies a unique device name of your choice that is reflected into the |
+ * /dev/ tree of a Linux operating system running within the instance. This |
+ * name can be used to reference the device for mounting, resizing, and so on, |
+ * from within the instance. |
+ * |
+ * If not specified, the server chooses a default device name to apply to this |
+ * disk, in the form persistent-disks-x, where x is a number assigned by |
+ * Google Compute Engine. This field is only applicable for persistent disks. |
+ */ |
+ core.String deviceName; |
+ /** |
+ * Assigns a zero-based index to this disk, where 0 is reserved for the boot |
+ * disk. For example, if you have many disks attached to an instance, each |
+ * disk would have a unique index number. If not specified, the server will |
+ * choose an appropriate value. |
+ */ |
+ core.int index; |
+ /** |
+ * [Input Only] Specifies the parameters for a new disk that will be created |
+ * alongside the new instance. Use initialization parameters to create boot |
+ * disks or local SSDs attached to the new instance. |
+ * |
+ * This property is mutually exclusive with the source property; you can only |
+ * define one or the other, but not both. |
+ */ |
+ AttachedDiskInitializeParams initializeParams; |
+ /** |
+ * |
+ * Possible string values are: |
+ * - "NVME" |
+ * - "SCSI" |
+ */ |
+ core.String interface; |
+ /** |
+ * [Output Only] Type of the resource. Always compute#attachedDisk for |
+ * attached disks. |
+ */ |
+ core.String kind; |
+ /** [Output Only] Any valid publicly visible licenses. */ |
+ core.List<core.String> licenses; |
+ /** |
+ * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If |
+ * not specified, the default is to attach the disk in READ_WRITE mode. |
+ * Possible string values are: |
+ * - "READ_ONLY" |
+ * - "READ_WRITE" |
+ */ |
+ core.String mode; |
+ /** |
+ * Specifies a valid partial or full URL to an existing Persistent Disk |
+ * resource. This field is only applicable for persistent disks. |
+ */ |
+ core.String source; |
+ /** |
+ * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not |
+ * specified, the default is PERSISTENT. |
+ * Possible string values are: |
+ * - "PERSISTENT" |
+ * - "SCRATCH" |
+ */ |
+ core.String type; |
- AccessConfig.fromJson(core.Map _json) { |
+ AttachedDisk(); |
+ |
+ AttachedDisk.fromJson(core.Map _json) { |
+ if (_json.containsKey("autoDelete")) { |
+ autoDelete = _json["autoDelete"]; |
+ } |
+ if (_json.containsKey("boot")) { |
+ boot = _json["boot"]; |
+ } |
+ if (_json.containsKey("deviceName")) { |
+ deviceName = _json["deviceName"]; |
+ } |
+ if (_json.containsKey("index")) { |
+ index = _json["index"]; |
+ } |
+ if (_json.containsKey("initializeParams")) { |
+ initializeParams = new AttachedDiskInitializeParams.fromJson(_json["initializeParams"]); |
+ } |
+ if (_json.containsKey("interface")) { |
+ interface = _json["interface"]; |
+ } |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
} |
- if (_json.containsKey("name")) { |
- name = _json["name"]; |
+ if (_json.containsKey("licenses")) { |
+ licenses = _json["licenses"]; |
} |
- if (_json.containsKey("natIP")) { |
- natIP = _json["natIP"]; |
+ if (_json.containsKey("mode")) { |
+ mode = _json["mode"]; |
+ } |
+ if (_json.containsKey("source")) { |
+ source = _json["source"]; |
} |
if (_json.containsKey("type")) { |
type = _json["type"]; |
@@ -10298,14 +10973,35 @@ class AccessConfig { |
core.Map toJson() { |
var _json = new core.Map(); |
+ if (autoDelete != null) { |
+ _json["autoDelete"] = autoDelete; |
+ } |
+ if (boot != null) { |
+ _json["boot"] = boot; |
+ } |
+ if (deviceName != null) { |
+ _json["deviceName"] = deviceName; |
+ } |
+ if (index != null) { |
+ _json["index"] = index; |
+ } |
+ if (initializeParams != null) { |
+ _json["initializeParams"] = (initializeParams).toJson(); |
+ } |
+ if (interface != null) { |
+ _json["interface"] = interface; |
+ } |
if (kind != null) { |
_json["kind"] = kind; |
} |
- if (name != null) { |
- _json["name"] = name; |
+ if (licenses != null) { |
+ _json["licenses"] = licenses; |
} |
- if (natIP != null) { |
- _json["natIP"] = natIP; |
+ if (mode != null) { |
+ _json["mode"] = mode; |
+ } |
+ if (source != null) { |
+ _json["source"] = source; |
} |
if (type != null) { |
_json["type"] = type; |
@@ -10314,11 +11010,94 @@ class AccessConfig { |
} |
} |
-/** A reserved address resource. */ |
-class Address { |
- /** The static external IP address represented by this resource. */ |
- core.String address; |
- /** [Output Only] Creation timestamp in RFC3339 text format. */ |
+/** |
+ * [Input Only] Specifies the parameters for a new disk that will be created |
+ * alongside the new instance. Use initialization parameters to create boot |
+ * disks or local SSDs attached to the new instance. |
+ * |
+ * This property is mutually exclusive with the source property; you can only |
+ * define one or the other, but not both. |
+ */ |
+class AttachedDiskInitializeParams { |
+ /** |
+ * Specifies the disk name. If not specified, the default is to use the name |
+ * of the instance. |
+ */ |
+ core.String diskName; |
+ /** Specifies the size of the disk in base-2 GB. */ |
+ core.String diskSizeGb; |
+ /** |
+ * Specifies the disk type to use to create the instance. If not specified, |
+ * the default is pd-standard, specified using the full URL. For example: |
+ * |
+ * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard |
+ * |
+ * Other values include pd-ssd and local-ssd. If you define this field, you |
+ * can provide either the full or partial URL. For example, the following are |
+ * valid values: |
+ * - |
+ * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType |
+ * - projects/project/zones/zone/diskTypes/diskType |
+ * - zones/zone/diskTypes/diskType |
+ */ |
+ core.String diskType; |
+ /** |
+ * A source image used to create the disk. You can provide a private (custom) |
+ * image, and Compute Engine will use the corresponding image from your |
+ * project. For example: |
+ * |
+ * global/images/my-private-image |
+ * |
+ * Or you can provide an image from a publicly-available project. For example, |
+ * to use a Debian image from the debian-cloud project, make sure to include |
+ * the project in the URL: |
+ * |
+ * projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD |
+ * |
+ * where vYYYYMMDD is the image version. The fully-qualified URL will also |
+ * work in both cases. |
+ */ |
+ core.String sourceImage; |
+ |
+ AttachedDiskInitializeParams(); |
+ |
+ AttachedDiskInitializeParams.fromJson(core.Map _json) { |
+ if (_json.containsKey("diskName")) { |
+ diskName = _json["diskName"]; |
+ } |
+ if (_json.containsKey("diskSizeGb")) { |
+ diskSizeGb = _json["diskSizeGb"]; |
+ } |
+ if (_json.containsKey("diskType")) { |
+ diskType = _json["diskType"]; |
+ } |
+ if (_json.containsKey("sourceImage")) { |
+ sourceImage = _json["sourceImage"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (diskName != null) { |
+ _json["diskName"] = diskName; |
+ } |
+ if (diskSizeGb != null) { |
+ _json["diskSizeGb"] = diskSizeGb; |
+ } |
+ if (diskType != null) { |
+ _json["diskType"] = diskType; |
+ } |
+ if (sourceImage != null) { |
+ _json["sourceImage"] = sourceImage; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+class Autoscaler { |
+ /** Autoscaling configuration. */ |
+ AutoscalingPolicy autoscalingPolicy; |
+ /** Creation timestamp in RFC3339 text format (output only). */ |
core.String creationTimestamp; |
/** |
* An optional textual description of the resource; provided by the client |
@@ -10326,48 +11105,31 @@ class Address { |
*/ |
core.String description; |
/** |
- * [Output Only] Unique identifier for the resource; defined by the server. |
+ * Unique identifier for the resource; defined by the server (output only). |
*/ |
core.String id; |
- /** |
- * [Output Only] Type of the resource. Always compute#address for addresses. |
- */ |
+ /** Type of the resource. */ |
core.String kind; |
/** |
* Name of the resource; provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
- * Specifically, the name must be 1-63 characters long and match the regular |
- * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
- * be a lowercase letter, and all following characters must be a dash, |
- * lowercase letter, or digit, except the last character, which cannot be a |
- * dash. |
*/ |
core.String name; |
- /** |
- * [Output Only] URL of the region where the regional address resides. This |
- * field is not applicable to global addresses. |
- */ |
- core.String region; |
- /** [Output Only] Server defined URL for the resource. */ |
+ /** Server defined URL for the resource (output only). */ |
core.String selfLink; |
/** |
- * [Output Only] The status of the address, which can be either IN_USE or |
- * RESERVED. An address that is RESERVED is currently reserved and available |
- * to use. An IN_USE address is currently being used by another resource and |
- * is not available. |
- * Possible string values are: |
- * - "IN_USE" |
- * - "RESERVED" |
+ * URL of Instance Group Manager or Replica Pool which will be controlled by |
+ * Autoscaler. |
*/ |
- core.String status; |
- /** [Output Only] The URLs of the resources that are using this address. */ |
- core.List<core.String> users; |
+ core.String target; |
+ /** URL of the zone where the instance group resides (output only). */ |
+ core.String zone; |
- Address(); |
+ Autoscaler(); |
- Address.fromJson(core.Map _json) { |
- if (_json.containsKey("address")) { |
- address = _json["address"]; |
+ Autoscaler.fromJson(core.Map _json) { |
+ if (_json.containsKey("autoscalingPolicy")) { |
+ autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolicy"]); |
} |
if (_json.containsKey("creationTimestamp")) { |
creationTimestamp = _json["creationTimestamp"]; |
@@ -10381,27 +11143,24 @@ class Address { |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
} |
- if (_json.containsKey("name")) { |
- name = _json["name"]; |
- } |
- if (_json.containsKey("region")) { |
- region = _json["region"]; |
+ if (_json.containsKey("name")) { |
+ name = _json["name"]; |
} |
if (_json.containsKey("selfLink")) { |
selfLink = _json["selfLink"]; |
} |
- if (_json.containsKey("status")) { |
- status = _json["status"]; |
+ if (_json.containsKey("target")) { |
+ target = _json["target"]; |
} |
- if (_json.containsKey("users")) { |
- users = _json["users"]; |
+ if (_json.containsKey("zone")) { |
+ zone = _json["zone"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (address != null) { |
- _json["address"] = address; |
+ if (autoscalingPolicy != null) { |
+ _json["autoscalingPolicy"] = (autoscalingPolicy).toJson(); |
} |
if (creationTimestamp != null) { |
_json["creationTimestamp"] = creationTimestamp; |
@@ -10418,47 +11177,41 @@ class Address { |
if (name != null) { |
_json["name"] = name; |
} |
- if (region != null) { |
- _json["region"] = region; |
- } |
if (selfLink != null) { |
_json["selfLink"] = selfLink; |
} |
- if (status != null) { |
- _json["status"] = status; |
+ if (target != null) { |
+ _json["target"] = target; |
} |
- if (users != null) { |
- _json["users"] = users; |
+ if (zone != null) { |
+ _json["zone"] = zone; |
} |
return _json; |
} |
} |
-class AddressAggregatedList { |
+class AutoscalerAggregatedList { |
/** |
- * [Output Only] Unique identifier for the resource; defined by the server. |
+ * Unique identifier for the resource; defined by the server (output only). |
*/ |
core.String id; |
- /** [Output Only] A map of scoped address lists. */ |
- core.Map<core.String, AddressesScopedList> items; |
- /** |
- * [Output Only] Type of resource. Always compute#addressAggregatedList for |
- * aggregated lists of addresses. |
- */ |
+ /** A map of scoped autoscaler lists. */ |
+ core.Map<core.String, AutoscalersScopedList> items; |
+ /** Type of resource. */ |
core.String kind; |
- /** [Output Only] A token used to continue a truncated list request. */ |
+ /** A token used to continue a truncated list request (output only). */ |
core.String nextPageToken; |
- /** [Output Only] Server defined URL for this resource. */ |
+ /** Server defined URL for this resource (output only). */ |
core.String selfLink; |
- AddressAggregatedList(); |
+ AutoscalerAggregatedList(); |
- AddressAggregatedList.fromJson(core.Map _json) { |
+ AutoscalerAggregatedList.fromJson(core.Map _json) { |
if (_json.containsKey("id")) { |
id = _json["id"]; |
} |
if (_json.containsKey("items")) { |
- items = commons.mapMap(_json["items"], (item) => new AddressesScopedList.fromJson(item)); |
+ items = commons.mapMap(_json["items"], (item) => new AutoscalersScopedList.fromJson(item)); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -10492,32 +11245,29 @@ class AddressAggregatedList { |
} |
} |
-/** Contains a list of address resources. */ |
-class AddressList { |
+/** Contains a list of persistent autoscaler resources. */ |
+class AutoscalerList { |
/** |
- * [Output Only] Unique identifier for the resource; defined by the server. |
+ * Unique identifier for the resource; defined by the server (output only). |
*/ |
core.String id; |
- /** [Output Only] A list of Address resources. */ |
- core.List<Address> items; |
- /** |
- * [Output Only] Type of resource. Always compute#addressList for lists of |
- * addresses. |
- */ |
+ /** A list of Autoscaler resources. */ |
+ core.List<Autoscaler> items; |
+ /** Type of resource. */ |
core.String kind; |
- /** [Output Only] A token used to continue a truncated list request. */ |
+ /** A token used to continue a truncated list request (output only). */ |
core.String nextPageToken; |
- /** [Output Only] Server defined URL for the resource. */ |
+ /** Server defined URL for this resource (output only). */ |
core.String selfLink; |
- AddressList(); |
+ AutoscalerList(); |
- AddressList.fromJson(core.Map _json) { |
+ AutoscalerList.fromJson(core.Map _json) { |
if (_json.containsKey("id")) { |
id = _json["id"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Address.fromJson(value)).toList(); |
+ items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -10551,15 +11301,15 @@ class AddressList { |
} |
} |
-class AddressesScopedListWarningData { |
+class AutoscalersScopedListWarningData { |
/** [Output Only] A key for the warning data. */ |
core.String key; |
/** [Output Only] A warning data value corresponding to the key. */ |
core.String value; |
- AddressesScopedListWarningData(); |
+ AutoscalersScopedListWarningData(); |
- AddressesScopedListWarningData.fromJson(core.Map _json) { |
+ AutoscalersScopedListWarningData.fromJson(core.Map _json) { |
if (_json.containsKey("key")) { |
key = _json["key"]; |
} |
@@ -10581,10 +11331,10 @@ class AddressesScopedListWarningData { |
} |
/** |
- * [Output Only] Informational warning which replaces the list of addresses when |
- * the list is empty. |
+ * Informational warning which replaces the list of autoscalers when the list is |
+ * empty. |
*/ |
-class AddressesScopedListWarning { |
+class AutoscalersScopedListWarning { |
/** |
* [Output Only] The warning type identifier for this warning. |
* Possible string values are: |
@@ -10605,18 +11355,18 @@ class AddressesScopedListWarning { |
*/ |
core.String code; |
/** [Output Only] Metadata for this warning in key: value format. */ |
- core.List<AddressesScopedListWarningData> data; |
+ core.List<AutoscalersScopedListWarningData> data; |
/** [Output Only] Optional human-readable details for this warning. */ |
core.String message; |
- AddressesScopedListWarning(); |
+ AutoscalersScopedListWarning(); |
- AddressesScopedListWarning.fromJson(core.Map _json) { |
+ AutoscalersScopedListWarning.fromJson(core.Map _json) { |
if (_json.containsKey("code")) { |
code = _json["code"]; |
} |
if (_json.containsKey("data")) { |
- data = _json["data"].map((value) => new AddressesScopedListWarningData.fromJson(value)).toList(); |
+ data = _json["data"].map((value) => new AutoscalersScopedListWarningData.fromJson(value)).toList(); |
} |
if (_json.containsKey("message")) { |
message = _json["message"]; |
@@ -10638,30 +11388,30 @@ class AddressesScopedListWarning { |
} |
} |
-class AddressesScopedList { |
- /** [Output Only] List of addresses contained in this scope. */ |
- core.List<Address> addresses; |
+class AutoscalersScopedList { |
+ /** List of autoscalers contained in this scope. */ |
+ core.List<Autoscaler> autoscalers; |
/** |
- * [Output Only] Informational warning which replaces the list of addresses |
- * when the list is empty. |
+ * Informational warning which replaces the list of autoscalers when the list |
+ * is empty. |
*/ |
- AddressesScopedListWarning warning; |
+ AutoscalersScopedListWarning warning; |
- AddressesScopedList(); |
+ AutoscalersScopedList(); |
- AddressesScopedList.fromJson(core.Map _json) { |
- if (_json.containsKey("addresses")) { |
- addresses = _json["addresses"].map((value) => new Address.fromJson(value)).toList(); |
+ AutoscalersScopedList.fromJson(core.Map _json) { |
+ if (_json.containsKey("autoscalers")) { |
+ autoscalers = _json["autoscalers"].map((value) => new Autoscaler.fromJson(value)).toList(); |
} |
if (_json.containsKey("warning")) { |
- warning = new AddressesScopedListWarning.fromJson(_json["warning"]); |
+ warning = new AutoscalersScopedListWarning.fromJson(_json["warning"]); |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (addresses != null) { |
- _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); |
+ if (autoscalers != null) { |
+ _json["autoscalers"] = autoscalers.map((value) => (value).toJson()).toList(); |
} |
if (warning != null) { |
_json["warning"] = (warning).toJson(); |
@@ -10670,237 +11420,191 @@ class AddressesScopedList { |
} |
} |
-/** An instance-attached disk resource. */ |
-class AttachedDisk { |
- /** |
- * Specifies whether the disk will be auto-deleted when the instance is |
- * deleted (but not when the disk is detached from the instance). |
- */ |
- core.bool autoDelete; |
- /** |
- * Indicates that this is a boot disk. The virtual machine will use the first |
- * partition of the disk for its root filesystem. |
- */ |
- core.bool boot; |
- /** |
- * Specifies a unique device name of your choice that is reflected into the |
- * /dev/ tree of a Linux operating system running within the instance. This |
- * name can be used to reference the device for mounting, resizing, and so on, |
- * from within the instance. |
- * |
- * If not specified, the server chooses a default device name to apply to this |
- * disk, in the form persistent-disks-x, where x is a number assigned by |
- * Google Compute Engine. This field is only applicable for persistent disks. |
- */ |
- core.String deviceName; |
- /** |
- * Assigns a zero-based index to this disk, where 0 is reserved for the boot |
- * disk. For example, if you have many disks attached to an instance, each |
- * disk would have a unique index number. If not specified, the server will |
- * choose an appropriate value. |
- */ |
- core.int index; |
- /** |
- * [Input Only] Specifies the parameters for a new disk that will be created |
- * alongside the new instance. Use initialization parameters to create boot |
- * disks or local SSDs attached to the new instance. |
- * |
- * This property is mutually exclusive with the source property; you can only |
- * define one or the other, but not both. |
- */ |
- AttachedDiskInitializeParams initializeParams; |
- /** |
- * |
- * Possible string values are: |
- * - "NVME" |
- * - "SCSI" |
- */ |
- core.String interface; |
+/** Cloud Autoscaler policy. */ |
+class AutoscalingPolicy { |
/** |
- * [Output Only] Type of the resource. Always compute#attachedDisk for |
- * attached disks. |
+ * The number of seconds that the Autoscaler should wait between two |
+ * succeeding changes to the number of virtual machines. You should define an |
+ * interval that is at least as long as the initialization time of a virtual |
+ * machine and the time it may take for replica pool to create the virtual |
+ * machine. The default is 60 seconds. |
*/ |
- core.String kind; |
- /** [Output Only] Any valid publicly visible licenses. */ |
- core.List<core.String> licenses; |
+ core.int coolDownPeriodSec; |
/** |
- * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If |
- * not specified, the default is to attach the disk in READ_WRITE mode. |
- * Possible string values are: |
- * - "READ_ONLY" |
- * - "READ_WRITE" |
+ * TODO(jbartosik): Add support for scaling based on muliple utilization |
+ * metrics (take max recommendation). Exactly one utilization policy should be |
+ * provided. Configuration parameters of CPU based autoscaling policy. |
*/ |
- core.String mode; |
+ AutoscalingPolicyCpuUtilization cpuUtilization; |
+ /** Configuration parameters of autoscaling based on custom metric. */ |
+ core.List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations; |
+ /** Configuration parameters of autoscaling based on load balancer. */ |
+ AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization; |
/** |
- * Specifies a valid partial or full URL to an existing Persistent Disk |
- * resource. This field is only applicable for persistent disks. |
+ * The maximum number of replicas that the Autoscaler can scale up to. This |
+ * field is required for config to be effective. Maximum number of replicas |
+ * should be not lower than minimal number of replicas. Absolute limit for |
+ * this value is defined in Autoscaler backend. |
*/ |
- core.String source; |
+ core.int maxNumReplicas; |
/** |
- * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not |
- * specified, the default is PERSISTENT. |
- * Possible string values are: |
- * - "PERSISTENT" |
- * - "SCRATCH" |
+ * The minimum number of replicas that the Autoscaler can scale down to. Can't |
+ * be less than 0. If not provided Autoscaler will choose default value |
+ * depending on maximal number of replicas. |
*/ |
- core.String type; |
+ core.int minNumReplicas; |
- AttachedDisk(); |
+ AutoscalingPolicy(); |
- AttachedDisk.fromJson(core.Map _json) { |
- if (_json.containsKey("autoDelete")) { |
- autoDelete = _json["autoDelete"]; |
- } |
- if (_json.containsKey("boot")) { |
- boot = _json["boot"]; |
- } |
- if (_json.containsKey("deviceName")) { |
- deviceName = _json["deviceName"]; |
- } |
- if (_json.containsKey("index")) { |
- index = _json["index"]; |
- } |
- if (_json.containsKey("initializeParams")) { |
- initializeParams = new AttachedDiskInitializeParams.fromJson(_json["initializeParams"]); |
+ AutoscalingPolicy.fromJson(core.Map _json) { |
+ if (_json.containsKey("coolDownPeriodSec")) { |
+ coolDownPeriodSec = _json["coolDownPeriodSec"]; |
} |
- if (_json.containsKey("interface")) { |
- interface = _json["interface"]; |
- } |
- if (_json.containsKey("kind")) { |
- kind = _json["kind"]; |
+ if (_json.containsKey("cpuUtilization")) { |
+ cpuUtilization = new AutoscalingPolicyCpuUtilization.fromJson(_json["cpuUtilization"]); |
} |
- if (_json.containsKey("licenses")) { |
- licenses = _json["licenses"]; |
+ if (_json.containsKey("customMetricUtilizations")) { |
+ customMetricUtilizations = _json["customMetricUtilizations"].map((value) => new AutoscalingPolicyCustomMetricUtilization.fromJson(value)).toList(); |
} |
- if (_json.containsKey("mode")) { |
- mode = _json["mode"]; |
+ if (_json.containsKey("loadBalancingUtilization")) { |
+ loadBalancingUtilization = new AutoscalingPolicyLoadBalancingUtilization.fromJson(_json["loadBalancingUtilization"]); |
} |
- if (_json.containsKey("source")) { |
- source = _json["source"]; |
+ if (_json.containsKey("maxNumReplicas")) { |
+ maxNumReplicas = _json["maxNumReplicas"]; |
} |
- if (_json.containsKey("type")) { |
- type = _json["type"]; |
+ if (_json.containsKey("minNumReplicas")) { |
+ minNumReplicas = _json["minNumReplicas"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (autoDelete != null) { |
- _json["autoDelete"] = autoDelete; |
- } |
- if (boot != null) { |
- _json["boot"] = boot; |
- } |
- if (deviceName != null) { |
- _json["deviceName"] = deviceName; |
- } |
- if (index != null) { |
- _json["index"] = index; |
- } |
- if (initializeParams != null) { |
- _json["initializeParams"] = (initializeParams).toJson(); |
- } |
- if (interface != null) { |
- _json["interface"] = interface; |
+ if (coolDownPeriodSec != null) { |
+ _json["coolDownPeriodSec"] = coolDownPeriodSec; |
} |
- if (kind != null) { |
- _json["kind"] = kind; |
+ if (cpuUtilization != null) { |
+ _json["cpuUtilization"] = (cpuUtilization).toJson(); |
} |
- if (licenses != null) { |
- _json["licenses"] = licenses; |
+ if (customMetricUtilizations != null) { |
+ _json["customMetricUtilizations"] = customMetricUtilizations.map((value) => (value).toJson()).toList(); |
} |
- if (mode != null) { |
- _json["mode"] = mode; |
+ if (loadBalancingUtilization != null) { |
+ _json["loadBalancingUtilization"] = (loadBalancingUtilization).toJson(); |
} |
- if (source != null) { |
- _json["source"] = source; |
+ if (maxNumReplicas != null) { |
+ _json["maxNumReplicas"] = maxNumReplicas; |
} |
- if (type != null) { |
- _json["type"] = type; |
+ if (minNumReplicas != null) { |
+ _json["minNumReplicas"] = minNumReplicas; |
} |
return _json; |
} |
} |
-/** |
- * [Input Only] Specifies the parameters for a new disk that will be created |
- * alongside the new instance. Use initialization parameters to create boot |
- * disks or local SSDs attached to the new instance. |
- * |
- * This property is mutually exclusive with the source property; you can only |
- * define one or the other, but not both. |
- */ |
-class AttachedDiskInitializeParams { |
- /** |
- * Specifies the disk name. If not specified, the default is to use the name |
- * of the instance. |
- */ |
- core.String diskName; |
- /** Specifies the size of the disk in base-2 GB. */ |
- core.String diskSizeGb; |
+/** CPU utilization policy. */ |
+class AutoscalingPolicyCpuUtilization { |
/** |
- * Specifies the disk type to use to create the instance. If not specified, |
- * the default is pd-standard, specified using the full URL. For example: |
- * |
- * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard |
- * |
- * Other values include pd-ssd and local-ssd. If you define this field, you |
- * can provide either the full or partial URL. For example, the following are |
- * valid values: |
- * - |
- * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType |
- * - projects/project/zones/zone/diskTypes/diskType |
- * - zones/zone/diskTypes/diskType |
+ * The target utilization that the Autoscaler should maintain. It is |
+ * represented as a fraction of used cores. For example: 6 cores used in |
+ * 8-core VM are represented here as 0.75. Must be a float value between (0, |
+ * 1]. If not defined, the default is 0.8. |
*/ |
- core.String diskType; |
- /** |
- * A source image used to create the disk. You can provide a private (custom) |
- * image, and Compute Engine will use the corresponding image from your |
- * project. For example: |
- * |
- * global/images/my-private-image |
- * |
- * Or you can provide an image from a publicly-available project. For example, |
- * to use a Debian image from the debian-cloud project, make sure to include |
- * the project in the URL: |
- * |
- * projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD |
- * |
- * where vYYYYMMDD is the image version. The fully-qualified URL will also |
- * work in both cases. |
+ core.double utilizationTarget; |
+ |
+ AutoscalingPolicyCpuUtilization(); |
+ |
+ AutoscalingPolicyCpuUtilization.fromJson(core.Map _json) { |
+ if (_json.containsKey("utilizationTarget")) { |
+ utilizationTarget = _json["utilizationTarget"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (utilizationTarget != null) { |
+ _json["utilizationTarget"] = utilizationTarget; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** Custom utilization metric policy. */ |
+class AutoscalingPolicyCustomMetricUtilization { |
+ /** |
+ * Identifier of the metric. It should be a Cloud Monitoring metric. The |
+ * metric can not have negative values. The metric should be an utilization |
+ * metric (increasing number of VMs handling requests x times should reduce |
+ * average value of the metric roughly x times). For example you could use: |
+ * compute.googleapis.com/instance/network/received_bytes_count. |
*/ |
- core.String sourceImage; |
+ core.String metric; |
+ /** |
+ * Target value of the metric which Autoscaler should maintain. Must be a |
+ * positive value. |
+ */ |
+ core.double utilizationTarget; |
+ /** |
+ * Defines type in which utilization_target is expressed. |
+ * Possible string values are: |
+ * - "DELTA_PER_MINUTE" |
+ * - "DELTA_PER_SECOND" |
+ * - "GAUGE" |
+ */ |
+ core.String utilizationTargetType; |
- AttachedDiskInitializeParams(); |
+ AutoscalingPolicyCustomMetricUtilization(); |
- AttachedDiskInitializeParams.fromJson(core.Map _json) { |
- if (_json.containsKey("diskName")) { |
- diskName = _json["diskName"]; |
- } |
- if (_json.containsKey("diskSizeGb")) { |
- diskSizeGb = _json["diskSizeGb"]; |
+ AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) { |
+ if (_json.containsKey("metric")) { |
+ metric = _json["metric"]; |
} |
- if (_json.containsKey("diskType")) { |
- diskType = _json["diskType"]; |
+ if (_json.containsKey("utilizationTarget")) { |
+ utilizationTarget = _json["utilizationTarget"]; |
} |
- if (_json.containsKey("sourceImage")) { |
- sourceImage = _json["sourceImage"]; |
+ if (_json.containsKey("utilizationTargetType")) { |
+ utilizationTargetType = _json["utilizationTargetType"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (diskName != null) { |
- _json["diskName"] = diskName; |
+ if (metric != null) { |
+ _json["metric"] = metric; |
} |
- if (diskSizeGb != null) { |
- _json["diskSizeGb"] = diskSizeGb; |
+ if (utilizationTarget != null) { |
+ _json["utilizationTarget"] = utilizationTarget; |
} |
- if (diskType != null) { |
- _json["diskType"] = diskType; |
+ if (utilizationTargetType != null) { |
+ _json["utilizationTargetType"] = utilizationTargetType; |
} |
- if (sourceImage != null) { |
- _json["sourceImage"] = sourceImage; |
+ return _json; |
+ } |
+} |
+ |
+/** Load balancing utilization policy. */ |
+class AutoscalingPolicyLoadBalancingUtilization { |
+ /** |
+ * Fraction of backend capacity utilization (set in HTTP load balancing |
+ * configuration) that Autoscaler should maintain. Must be a positive float |
+ * value. If not defined, the default is 0.8. For example if your |
+ * maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set |
+ * at 10 and you would like to keep number of instances such that each |
+ * instance receives 7 QPS on average, set this to 0.7. |
+ */ |
+ core.double utilizationTarget; |
+ |
+ AutoscalingPolicyLoadBalancingUtilization(); |
+ |
+ AutoscalingPolicyLoadBalancingUtilization.fromJson(core.Map _json) { |
+ if (_json.containsKey("utilizationTarget")) { |
+ utilizationTarget = _json["utilizationTarget"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (utilizationTarget != null) { |
+ _json["utilizationTarget"] = utilizationTarget; |
} |
return _json; |
} |
@@ -10909,30 +11613,35 @@ class AttachedDiskInitializeParams { |
/** Message containing information of one individual backend. */ |
class Backend { |
/** |
- * The balancing mode of this backend, default is UTILIZATION. |
+ * Specifies the balancing mode for this backend. The default is UTILIZATION |
+ * but available values are UTILIZATION and RATE. |
* Possible string values are: |
* - "RATE" |
* - "UTILIZATION" |
*/ |
core.String balancingMode; |
/** |
- * The multiplier (a value between 0.0 and 1.0) of the max capacity (CPU or |
- * RPS, depending on 'balancingMode') the group should serve up to. 0 means |
- * the group is totally drained. Default value is 1. Valid range is [0.0, |
- * 1.0]. |
+ * A multiplier applied to the group's maximum servicing capacity (either |
+ * UTILIZATION or RATE). Default value is 1, which means the group will serve |
+ * up to 100% of its configured CPU or RPS (depending on balancingMode). A |
+ * setting of 0 means the group is completely drained, offering 0% of its |
+ * available CPU or RPS. Valid range is [0.0,1.0]. |
*/ |
core.double capacityScaler; |
/** |
- * An optional textual description of the resource, which is provided by the |
- * client when the resource is created. |
+ * An optional textual description of the resource. Provided by the client |
+ * when the resource is created. |
*/ |
core.String description; |
/** |
- * URL of a zonal Cloud Resource View resource. This resource view defines the |
- * list of instances that serve traffic. Member virtual machine instances from |
- * each resource view must live in the same zone as the resource view itself. |
- * No two backends in a backend service are allowed to use same Resource View |
- * resource. |
+ * The fully-qualified URL of a zonal Instance Group resource. This instance |
+ * group defines the list of instances that serve traffic. Member virtual |
+ * machine instances from each instance group must live in the same zone as |
+ * the instance group itself. No two backends in a backend service are allowed |
+ * to use same Instance Group resource. |
+ * |
+ * Note that you must specify an Instance Group resource using the |
+ * fully-qualified URL, rather than a partial URL. |
*/ |
core.String group; |
/** |
@@ -10948,9 +11657,9 @@ class Backend { |
*/ |
core.double maxRatePerInstance; |
/** |
- * Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU |
- * utilization target for the group. The default is 0.8. Valid range is [0, |
- * 1]. |
+ * Used when balancingMode is UTILIZATION. This ratio defines the CPU |
+ * utilization target for the group. The default is 0.8. Valid range is [0.0, |
+ * 1.0]. |
*/ |
core.double maxUtilization; |
@@ -11010,29 +11719,14 @@ class Backend { |
/** |
* A BackendService resource. This resource defines a group of backend VMs |
* together with their serving capacity. |
- * |
- * If you add field foo, you probably need to also add: |
- * com.google.cloud.cluster.manager.api.BackendServiceResource: foo |
- * com.google.cloud.cluster.manager.networking.entities: BackendService, |
- * BackendServiceEntity: getFoo, setFoo: |
- * |
- * Converters/mappers will need to be updated: |
- * com.google.cloud.cluster.manager.networking.services.backendservice.BackendServiceResourceConverter: |
- * toResource, updateEntity: copy foo |
- * com.google.cloud.cluster.mixer.protomappers.BackendServiceMappers.ResourceMapper: |
- * ResourceMapper: add a new map call |
- * |
- * Tests to update: |
- * com.google.cloud.cluster.manager.networking.services.backendservice.BackendServiceResourceConverterTest |
- * com.google.cloud.cluster.mixer.protomappers.BackendServiceMappersTest.testResourceMapping |
*/ |
class BackendService { |
/** The list of backends that serve this BackendService. */ |
core.List<Backend> backends; |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
- * An optional textual description of the resource; provided by the client |
+ * An optional textual description of the resource. Provided by the client |
* when the resource is created. |
*/ |
core.String description; |
@@ -11057,18 +11751,26 @@ class BackendService { |
*/ |
core.List<core.String> healthChecks; |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
- /** Type of the resource. */ |
+ /** |
+ * [Output Only] Type of resource. Always compute#backendService for backend |
+ * services. |
+ */ |
core.String kind; |
/** |
- * Name of the resource; provided by the client when the resource is created. |
+ * Name of the resource. Provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
/** |
- * Deprecated in favor of port_name. The TCP port to connect on the backend. |
+ * Deprecated in favor of port name. The TCP port to connect on the backend. |
* The default value is 80. |
*/ |
core.int port; |
@@ -11083,7 +11785,7 @@ class BackendService { |
* - "HTTP" |
*/ |
core.String protocol; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server defined URL for the resource. */ |
core.String selfLink; |
/** |
* How many seconds to wait for the backend before considering it a failed |
@@ -11182,7 +11884,10 @@ class BackendService { |
class BackendServiceGroupHealth { |
core.List<HealthStatus> healthStatus; |
- /** Type of resource. */ |
+ /** |
+ * [Output Only] Type of resource. Always compute#backendServiceGroupHealth |
+ * for the health of backend services. |
+ */ |
core.String kind; |
BackendServiceGroupHealth(); |
@@ -11211,16 +11916,19 @@ class BackendServiceGroupHealth { |
/** Contains a list of BackendService resources. */ |
class BackendServiceList { |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
/** A list of BackendService resources. */ |
core.List<BackendService> items; |
- /** Type of resource. */ |
+ /** |
+ * [Output Only] Type of resource. Always compute#backendServiceList for lists |
+ * of backend services. |
+ */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server-defined URL for this resource. */ |
core.String selfLink; |
BackendServiceList(); |
@@ -12238,7 +12946,7 @@ class Firewall { |
* protocol and port-range tuple that describes a permitted connection. |
*/ |
core.List<FirewallAllowed> allowed; |
- /** [Output Only] Creation timestamp in RFC3339text format. */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
* An optional textual description of the resource; provided by the client |
@@ -12284,8 +12992,8 @@ class Firewall { |
* One or both of sourceRanges and sourceTags may be set. |
* |
* If both properties are set, an inbound connection is allowed if the range |
- * or the tag of the source matches the sourceRanges OR matches the sourceTags |
- * property; the connection does not need to match both properties. |
+ * matches the sourceRanges OR the tag of the source matches the sourceTags |
+ * property. The connection does not need to match both properties. |
*/ |
core.List<core.String> sourceRanges; |
/** |
@@ -12293,13 +13001,13 @@ class Firewall { |
* sourceRanges and sourceTags may be set. |
* |
* If both properties are set, an inbound connection is allowed if the range |
- * or the tag of the source matches the sourceRanges OR matches the sourceTags |
- * property; the connection does not need to match both properties. |
+ * matches the sourceRanges OR the tag of the source matches the sourceTags |
+ * property. The connection does not need to match both properties. |
*/ |
core.List<core.String> sourceTags; |
/** |
- * A list of instance tags indicating sets of instances located on network |
- * which may make network connections as specified in allowed[]. If no |
+ * A list of instance tags indicating sets of instances located in the network |
+ * that may make network connections as specified in allowed[]. If no |
* targetTags are specified, the firewall rule applies to all instances on the |
* specified network. |
*/ |
@@ -12456,8 +13164,8 @@ class ForwardingRule { |
*/ |
core.String IPAddress; |
/** |
- * The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', |
- * 'ESP', 'AH' or 'SCTP'. |
+ * The IP protocol to which this rule applies, valid options are TCP, UDP, |
+ * ESP, AH or SCTP. |
* Possible string values are: |
* - "AH" |
* - "ESP" |
@@ -12466,7 +13174,7 @@ class ForwardingRule { |
* - "UDP" |
*/ |
core.String IPProtocol; |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
* An optional textual description of the resource; provided by the client |
@@ -12474,7 +13182,7 @@ class ForwardingRule { |
*/ |
core.String description; |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
/** Type of the resource. */ |
@@ -12482,28 +13190,33 @@ class ForwardingRule { |
/** |
* Name of the resource; provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
/** |
- * Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets |
- * addressed to ports in the specified range will be forwarded to 'target'. If |
- * 'portRange' is left empty (default value), all ports are forwarded. |
- * Forwarding rules with the same [IPAddress, IPProtocol] pair must have |
+ * Applicable only when `IPProtocol` is TCP, UDP, or SCTP, only packets |
+ * addressed to ports in the specified range will be forwarded to target. If |
+ * portRange is left empty (default value), all ports are forwarded. |
+ * Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have |
* disjoint port ranges. |
*/ |
core.String portRange; |
/** |
- * URL of the region where the regional forwarding rule resides (output only). |
+ * [Output Only] URL of the region where the regional forwarding rule resides. |
* This field is not applicable to global forwarding rules. |
*/ |
core.String region; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server-defined URL for the resource. */ |
core.String selfLink; |
/** |
* The URL of the target resource to receive the matched traffic. For regional |
* forwarding rules, this target must live in the same region as the |
* forwarding rule. For global forwarding rules, this target must be a global |
- * TargetHttpProxy resource. |
+ * TargetHttpProxy or TargetHttpsProxy resource. |
*/ |
core.String target; |
@@ -12586,16 +13299,16 @@ class ForwardingRule { |
class ForwardingRuleAggregatedList { |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
/** A map of scoped forwarding rule lists. */ |
core.Map<core.String, ForwardingRulesScopedList> items; |
/** Type of resource. */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server defined URL for this resource. */ |
core.String selfLink; |
ForwardingRuleAggregatedList(); |
@@ -12641,17 +13354,15 @@ class ForwardingRuleAggregatedList { |
/** Contains a list of ForwardingRule resources. */ |
class ForwardingRuleList { |
- /** |
- * Unique identifier for the resource; defined by the server (output only). |
- */ |
+ /** [Output Only] Unique identifier for the resource. Set by the server. */ |
core.String id; |
/** A list of ForwardingRule resources. */ |
core.List<ForwardingRule> items; |
/** Type of resource. */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server defined URL for this resource. */ |
core.String selfLink; |
ForwardingRuleList(); |
@@ -12885,10 +13596,11 @@ class HealthStatus { |
} |
/** |
- * A host-matching rule for a URL. If matched, will use the named PathMatcher to |
- * select the BackendService. |
+ * UrlMaps A host-matching rule for a URL. If matched, will use the named |
+ * PathMatcher to select the BackendService. |
*/ |
class HostRule { |
+ /** An optional textual description. */ |
core.String description; |
/** |
* The list of host patterns to match. They must be valid hostnames except |
@@ -12898,7 +13610,7 @@ class HostRule { |
core.List<core.String> hosts; |
/** |
* The name of the PathMatcher to match the path portion of the URL, if the |
- * this HostRule matches the URL's host portion. |
+ * this hostRule matches the URL's host portion. |
*/ |
core.String pathMatcher; |
@@ -13987,13 +14699,6 @@ class InstanceGroupManager { |
* this managed instance group that are scheduled for those actions. |
*/ |
InstanceGroupManagerActionsSummary currentActions; |
- /** |
- * [Output Only] The number of instances that currently exist and are a part |
- * of this group. The number includes instances that are in a RUNNING state, |
- * instances that are starting, and instances that are scheduled to be deleted |
- * or abandoned. |
- */ |
- core.int currentSize; |
/** An optional text description for the managed instance group. */ |
core.String description; |
/** |
@@ -14035,7 +14740,7 @@ class InstanceGroupManager { |
/** [Output Only] Server defined URL for this managed instance group. */ |
core.String selfLink; |
/** |
- * The URL of all TargetPool resources to which new instances in the |
+ * The URLs of all TargetPool resources to which new instances in the |
* instanceGroup field are added. Updating the target pool values does not |
* affect existing instances. |
*/ |
@@ -14064,9 +14769,6 @@ class InstanceGroupManager { |
if (_json.containsKey("currentActions")) { |
currentActions = new InstanceGroupManagerActionsSummary.fromJson(_json["currentActions"]); |
} |
- if (_json.containsKey("currentSize")) { |
- currentSize = _json["currentSize"]; |
- } |
if (_json.containsKey("description")) { |
description = _json["description"]; |
} |
@@ -14116,9 +14818,6 @@ class InstanceGroupManager { |
if (currentActions != null) { |
_json["currentActions"] = (currentActions).toJson(); |
} |
- if (currentSize != null) { |
- _json["currentSize"] = currentSize; |
- } |
if (description != null) { |
_json["description"] = description; |
} |
@@ -14157,13 +14856,46 @@ class InstanceGroupManager { |
} |
class InstanceGroupManagerActionsSummary { |
+ /** |
+ * [Output Only] Total number of instances in the managed instance group that |
+ * are scheduled to be abandoned. Abandoning an instance removes it from the |
+ * managed instance group without deleting it. |
+ */ |
core.int abandoning; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * are scheduled to be created or are currently being created. |
+ */ |
core.int creating; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * are scheduled to be deleted or are currently being deleted. |
+ */ |
core.int deleting; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * currently have no scheduled actions. |
+ */ |
core.int none; |
- core.int rebooting; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * are scheduled to be recreated or are currently being being recreated. |
+ * Recreating an instance deletes the existing root persistent disk and |
+ * creates a new disk from the image that is defined in the instance template. |
+ */ |
core.int recreating; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * are being reconfigured with properties that do not require a restart or a |
+ * recreate action. For example, setting or removing target pools for the |
+ * instance. |
+ */ |
core.int refreshing; |
+ /** |
+ * [Output Only] The number of instances in the managed instance group that |
+ * are scheduled to be restarted or are currently being restarted. |
+ */ |
+ core.int restarting; |
InstanceGroupManagerActionsSummary(); |
@@ -14180,15 +14912,15 @@ class InstanceGroupManagerActionsSummary { |
if (_json.containsKey("none")) { |
none = _json["none"]; |
} |
- if (_json.containsKey("rebooting")) { |
- rebooting = _json["rebooting"]; |
- } |
if (_json.containsKey("recreating")) { |
recreating = _json["recreating"]; |
} |
if (_json.containsKey("refreshing")) { |
refreshing = _json["refreshing"]; |
} |
+ if (_json.containsKey("restarting")) { |
+ restarting = _json["restarting"]; |
+ } |
} |
core.Map toJson() { |
@@ -14205,15 +14937,15 @@ class InstanceGroupManagerActionsSummary { |
if (none != null) { |
_json["none"] = none; |
} |
- if (rebooting != null) { |
- _json["rebooting"] = rebooting; |
- } |
if (recreating != null) { |
_json["recreating"] = recreating; |
} |
if (refreshing != null) { |
_json["refreshing"] = refreshing; |
} |
+ if (restarting != null) { |
+ _json["restarting"] = restarting; |
+ } |
return _json; |
} |
} |
@@ -14286,13 +15018,13 @@ class InstanceGroupManagerAggregatedList { |
class InstanceGroupManagerAutoHealingPolicy { |
/** |
* The action to perform when an instance becomes unhealthy. Possible values |
- * are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new |
+ * are RECREATE or RESTART. RECREATE replaces an unhealthy instance with a new |
* instance that is based on the instance template for this managed instance |
- * group. REBOOT performs a soft reboot on an instance. If the instance cannot |
- * reboot, the instance performs a hard restart. |
+ * group. RESTART performs a soft restart on an instance. If the instance |
+ * cannot restart softly, the instance performs a hard restart. |
* Possible string values are: |
- * - "REBOOT" |
* - "RECREATE" |
+ * - "RESTART" |
*/ |
core.String actionType; |
/** The URL for the HealthCheck that signals autohealing. */ |
@@ -15993,16 +16725,16 @@ class ManagedInstance { |
* - "CREATING" |
* - "DELETING" |
* - "NONE" |
- * - "REBOOTING" |
* - "RECREATING" |
* - "REFRESHING" |
+ * - "RESTARTING" |
*/ |
core.String currentAction; |
/** |
* The unique identifier for this resource (empty when instance does not |
* exist). |
*/ |
- core.String incarnationId; |
+ core.String id; |
/** The URL of the instance (set even though instance does not exist yet). */ |
core.String instance; |
/** |
@@ -16027,8 +16759,8 @@ class ManagedInstance { |
if (_json.containsKey("currentAction")) { |
currentAction = _json["currentAction"]; |
} |
- if (_json.containsKey("incarnationId")) { |
- incarnationId = _json["incarnationId"]; |
+ if (_json.containsKey("id")) { |
+ id = _json["id"]; |
} |
if (_json.containsKey("instance")) { |
instance = _json["instance"]; |
@@ -16046,8 +16778,8 @@ class ManagedInstance { |
if (currentAction != null) { |
_json["currentAction"] = currentAction; |
} |
- if (incarnationId != null) { |
- _json["incarnationId"] = incarnationId; |
+ if (id != null) { |
+ _json["id"] = id; |
} |
if (instance != null) { |
_json["instance"] = instance; |
@@ -16289,7 +17021,7 @@ class Network { |
/** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
- * An optional textual description of the resource; provided by the client |
+ * An optional textual description of the resource. Provided by the client |
* when the resource is created. |
*/ |
core.String description; |
@@ -16300,7 +17032,7 @@ class Network { |
*/ |
core.String gatewayIPv4; |
/** |
- * [Output Only] Unique identifier for the resource; defined by the server. |
+ * [Output Only] Unique identifier for the resource. Defined by the server. |
*/ |
core.String id; |
/** |
@@ -16308,7 +17040,7 @@ class Network { |
*/ |
core.String kind; |
/** |
- * Name of the resource; provided by the client when the resource is created. |
+ * Name of the resource. Provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
* Specifically, the name must be 1-63 characters long and match the regular |
* expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
@@ -16382,10 +17114,9 @@ class Network { |
/** A network interface resource attached to an instance. */ |
class NetworkInterface { |
/** |
- * An array of configurations for this interface. Currently, |
- * <codeONE_TO_ONE_NAT is the only access config supported. If there are no |
- * accessConfigs specified, then this instance will have no external internet |
- * access. |
+ * An array of configurations for this interface. Currently, ONE_TO_ONE_NAT is |
+ * the only access config supported. If there are no accessConfigs specified, |
+ * then this instance will have no external internet access. |
*/ |
core.List<AccessConfig> accessConfigs; |
/** |
@@ -16452,7 +17183,7 @@ class NetworkInterface { |
/** Contains a list of Network resources. */ |
class NetworkList { |
/** |
- * [Output Only] Unique identifier for the resource; defined by the server. |
+ * [Output Only] Unique identifier for the resource. Defined by the server. |
*/ |
core.String id; |
/** [Output Only] A list of Network resources. */ |
@@ -17153,6 +17884,7 @@ class PathMatcher { |
* 'pathRules' defined by this PathMatcher is met by the URL's path portion. |
*/ |
core.String defaultService; |
+ /** An optional textual description of the resource. */ |
core.String description; |
/** The name to which this PathMatcher is referred by the HostRule. */ |
core.String name; |
@@ -17674,39 +18406,52 @@ class RouteWarnings { |
* tie, the system selects the Route with the smallest priority value. If there |
* is still a tie, it uses the layer three and four packet headers to select |
* just one of the remaining matching Routes. The packet is then forwarded as |
- * specified by the next_hop field of the winning Route -- either to another VM |
+ * specified by the nextHop field of the winning Route -- either to another VM |
* destination, a VM gateway or a GCE operated gateway. Packets that do not |
- * match any Route in the sending VM's routing table will be dropped. |
+ * match any Route in the sending VM's routing table are dropped. |
*/ |
class Route { |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
- * An optional textual description of the resource; provided by the client |
+ * An optional textual description of the resource. Provided by the client |
* when the resource is created. |
*/ |
core.String description; |
- /** Which packets does this route apply to? */ |
+ /** The destination range of outgoing packets that this route applies to. */ |
core.String destRange; |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource. Defined by the server. |
*/ |
core.String id; |
- /** Type of the resource. */ |
+ /** |
+ * [Output Only] Type of this resource. Always compute#routes for Route |
+ * resources. |
+ */ |
core.String kind; |
/** |
* Name of the resource; provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
+ /** Fully-qualified URL of the network that this route applies to. */ |
+ core.String network; |
/** |
- * URL of the network to which this route is applied; provided by the client |
- * when the route is created. |
+ * The URL to a gateway that should handle matching packets. Currently, this |
+ * is only the internet gateway: |
+ * projects/<project-id>/global/gateways/default-internet-gateway |
*/ |
- core.String network; |
- /** The URL to a gateway that should handle matching packets. */ |
core.String nextHopGateway; |
- /** The URL to an instance that should handle matching packets. */ |
+ /** |
+ * The fully-qualified URL to an instance that should handle matching packets. |
+ * For example: |
+ * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ |
+ */ |
core.String nextHopInstance; |
/** |
* The network IP address of an instance that should handle matching packets. |
@@ -17722,13 +18467,13 @@ class Route { |
* valid range is between 0 and 65535. |
*/ |
core.int priority; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server-defined fully-qualified URL for this resource. */ |
core.String selfLink; |
/** A list of instance tags to which this route applies. */ |
core.List<core.String> tags; |
/** |
- * If potential misconfigurations are detected for this route, this field will |
- * be populated with warning messages. |
+ * [Output Only] If potential misconfigurations are detected for this route, |
+ * this field will be populated with warning messages. |
*/ |
core.List<RouteWarnings> warnings; |
@@ -17842,16 +18587,16 @@ class Route { |
/** Contains a list of route resources. */ |
class RouteList { |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource. Defined by the server. |
*/ |
core.String id; |
/** A list of Route resources. */ |
core.List<Route> items; |
/** Type of resource. */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server defined URL for this resource. */ |
core.String selfLink; |
RouteList(); |
@@ -18015,40 +18760,48 @@ class ServiceAccount { |
/** A persistent disk snapshot resource. */ |
class Snapshot { |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
* An optional textual description of the resource; provided by the client |
* when the resource is created. |
*/ |
core.String description; |
- /** Size of the persistent disk snapshot, specified in GB (output only). */ |
+ /** [Output Only] Size of the snapshot, specified in GB. */ |
core.String diskSizeGb; |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
- /** Type of the resource. */ |
+ /** |
+ * [Output Only] Type of the resource. Always compute#snapshot for Snapshot |
+ * resources. |
+ */ |
core.String kind; |
/** Public visible licenses. */ |
core.List<core.String> licenses; |
/** |
* Name of the resource; provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server-defined URL for the resource. */ |
core.String selfLink; |
/** The source disk used to create this snapshot. */ |
core.String sourceDisk; |
/** |
- * The 'id' value of the disk used to create this snapshot. This value may be |
- * used to determine whether the snapshot was taken from the current or a |
- * previous instance of a given disk name. |
+ * [Output Only] The ID value of the disk used to create this snapshot. This |
+ * value may be used to determine whether the snapshot was taken from the |
+ * current or a previous instance of a given disk name. |
*/ |
core.String sourceDiskId; |
/** |
- * The status of the persistent disk snapshot (output only). |
+ * [Output Only] The status of the snapshot. |
* Possible string values are: |
* - "CREATING" |
* - "DELETING" |
@@ -18058,13 +18811,14 @@ class Snapshot { |
*/ |
core.String status; |
/** |
- * A size of the the storage used by the snapshot. As snapshots share storage |
- * this number is expected to change with snapshot creation/deletion. |
+ * [Output Only] A size of the the storage used by the snapshot. As snapshots |
+ * share storage, this number is expected to change with snapshot |
+ * creation/deletion. |
*/ |
core.String storageBytes; |
/** |
- * An indicator whether storageBytes is in a stable state, or it is being |
- * adjusted as a result of shared storage reallocation. |
+ * [Output Only] An indicator whether storageBytes is in a stable state or it |
+ * is being adjusted as a result of shared storage reallocation. |
* Possible string values are: |
* - "UPDATING" |
* - "UP_TO_DATE" |
@@ -18160,7 +18914,7 @@ class Snapshot { |
} |
} |
-/** Contains a list of persistent disk snapshot resources. */ |
+/** Contains a list of Snapshot resources. */ |
class SnapshotList { |
/** |
* Unique identifier for the resource; defined by the server (output only). |
@@ -18266,7 +19020,7 @@ class Tags { |
/** A TargetHttpProxy resource. This resource defines an HTTP proxy. */ |
class TargetHttpProxy { |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** |
* An optional textual description of the resource; provided by the client |
@@ -18274,17 +19028,25 @@ class TargetHttpProxy { |
*/ |
core.String description; |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource. Defined by the server. |
*/ |
core.String id; |
- /** Type of the resource. */ |
+ /** |
+ * [Output Only] Type of resource. Always compute#Operation for Operation |
+ * resources. |
+ */ |
core.String kind; |
/** |
* Name of the resource; provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server defined URL for the resource. */ |
core.String selfLink; |
/** |
* URL to the UrlMap resource that defines the mapping from URL to the |
@@ -18345,19 +19107,22 @@ class TargetHttpProxy { |
} |
} |
-/** Contains a list of TargetHttpProxy resources. */ |
+/** A list of TargetHttpProxy resources. */ |
class TargetHttpProxyList { |
/** |
- * Unique identifier for the resource; defined by the server (output only). |
+ * [Output Only] Unique identifier for the resource; defined by the server. |
*/ |
core.String id; |
/** A list of TargetHttpProxy resources. */ |
core.List<TargetHttpProxy> items; |
- /** Type of resource. */ |
+ /** |
+ * Type of resource. Always compute#targetHttpProxyList for lists of Target |
+ * HTTP proxies. |
+ */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server-defined URL for this resource. */ |
core.String selfLink; |
TargetHttpProxyList(); |
@@ -19286,8 +20051,13 @@ class TargetVpnGateway { |
*/ |
core.String kind; |
/** |
- * Name of the resource. Provided by the client when the resource is created. |
- * The name must be 1-63 characters long and comply with RFC1035. |
+ * Name of the resource; provided by the client when the resource is created. |
+ * The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
/** |
@@ -19674,12 +20444,12 @@ class TestFailure { |
* path. |
*/ |
class UrlMap { |
- /** Creation timestamp in RFC3339 text format (output only). */ |
+ /** [Output Only] Creation timestamp in RFC3339 text format. */ |
core.String creationTimestamp; |
/** The URL of the BackendService resource if none of the hostRules match. */ |
core.String defaultService; |
/** |
- * An optional textual description of the resource; provided by the client |
+ * An optional textual description of the resource. Provided by the client |
* when the resource is created. |
*/ |
core.String description; |
@@ -19699,20 +20469,23 @@ class UrlMap { |
} |
/** The list of HostRules to use against the URL. */ |
core.List<HostRule> hostRules; |
- /** |
- * Unique identifier for the resource; defined by the server (output only). |
- */ |
+ /** [Output Only] Unique identifier for the resource. Set by the server. */ |
core.String id; |
/** Type of the resource. */ |
core.String kind; |
/** |
- * Name of the resource; provided by the client when the resource is created. |
+ * Name of the resource. Provided by the client when the resource is created. |
* The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
/** The list of named PathMatchers to use against the URL. */ |
core.List<PathMatcher> pathMatchers; |
- /** Server defined URL for the resource (output only). */ |
+ /** [Output Only] Server defined URL for the resource. */ |
core.String selfLink; |
/** |
* The list of expected URL mappings. Request to update this UrlMap will |
@@ -19799,17 +20572,15 @@ class UrlMap { |
/** Contains a list of UrlMap resources. */ |
class UrlMapList { |
- /** |
- * Unique identifier for the resource; defined by the server (output only). |
- */ |
+ /** [Output Only] Unique identifier for the resource. Set by the server. */ |
core.String id; |
/** A list of UrlMap resources. */ |
core.List<UrlMap> items; |
/** Type of resource. */ |
core.String kind; |
- /** A token used to continue a truncated list request (output only). */ |
+ /** [Output Only] A token used to continue a truncated list request. */ |
core.String nextPageToken; |
- /** Server defined URL for this resource (output only). */ |
+ /** [Output Only] Server defined URL for this resource. */ |
core.String selfLink; |
UrlMapList(); |
@@ -20069,12 +20840,6 @@ class VpnTunnel { |
*/ |
core.String id; |
/** |
- * IKE networks to use when establishing the VPN tunnel with peer VPN gateway. |
- * The value should be a CIDR formatted string, for example: 192.168.0.0/16. |
- * The ranges should be disjoint. |
- */ |
- core.List<core.String> ikeNetworks; |
- /** |
* IKE protocol version to use when establishing the VPN tunnel with peer VPN |
* gateway. Acceptable IKE versions are 1 or 2. Default version is 2. |
*/ |
@@ -20084,8 +20849,13 @@ class VpnTunnel { |
*/ |
core.String kind; |
/** |
- * Name of the resource. Provided by the client when the resource is created. |
- * The name must be 1-63 characters long and comply with RFC1035. |
+ * Name of the resource; provided by the client when the resource is created. |
+ * The name must be 1-63 characters long, and comply with RFC1035. |
+ * Specifically, the name must be 1-63 characters long and match the regular |
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
+ * be a lowercase letter, and all following characters must be a dash, |
+ * lowercase letter, or digit, except the last character, which cannot be a |
+ * dash. |
*/ |
core.String name; |
/** IP address of the peer VPN gateway. */ |
@@ -20138,9 +20908,6 @@ class VpnTunnel { |
if (_json.containsKey("id")) { |
id = _json["id"]; |
} |
- if (_json.containsKey("ikeNetworks")) { |
- ikeNetworks = _json["ikeNetworks"]; |
- } |
if (_json.containsKey("ikeVersion")) { |
ikeVersion = _json["ikeVersion"]; |
} |
@@ -20187,9 +20954,6 @@ class VpnTunnel { |
if (id != null) { |
_json["id"] = id; |
} |
- if (ikeNetworks != null) { |
- _json["ikeNetworks"] = ikeNetworks; |
- } |
if (ikeVersion != null) { |
_json["ikeVersion"] = ikeVersion; |
} |