| Index: generated/googleapis/lib/compute/v1.dart
|
| diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart
|
| index 89e4a680dacc61902e1cc41f29c17839be1f399e..64ec8d2615daf1b2cde8b6f08a0b985d6cf29887 100644
|
| --- a/generated/googleapis/lib/compute/v1.dart
|
| +++ b/generated/googleapis/lib/compute/v1.dart
|
| @@ -1,17 +1,20 @@
|
| +// This is a generated file (see the discoveryapis_generator project).
|
| +
|
| library googleapis.compute.v1;
|
|
|
| -import "dart:core" as core;
|
| -import "dart:collection" as collection;
|
| -import "dart:async" as async;
|
| -import "dart:convert" as convert;
|
| +import 'dart:core' as core;
|
| +import 'dart:collection' as collection;
|
| +import 'dart:async' as async;
|
| +import 'dart:convert' as convert;
|
|
|
| -import "package:crypto/crypto.dart" as crypto;
|
| +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| +import 'package:crypto/crypto.dart' as crypto;
|
| import 'package:http/http.dart' as http;
|
| -import '../src/common_internal.dart' as common_internal;
|
| -import '../common/common.dart' as common;
|
|
|
| -export '../common/common.dart' show ApiRequestError;
|
| -export '../common/common.dart' show DetailedApiRequestError;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| + ApiRequestError, DetailedApiRequestError;
|
| +
|
| +const core.String USER_AGENT = 'dart-api-client compute/v1';
|
|
|
| /** API for the Google Compute Engine service. */
|
| class ComputeApi {
|
| @@ -34,7 +37,7 @@ class ComputeApi {
|
| static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write";
|
|
|
|
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| AddressesResourceApi get addresses => new AddressesResourceApi(_requester);
|
| BackendServicesResourceApi get backendServices => new BackendServicesResourceApi(_requester);
|
| @@ -60,20 +63,21 @@ class ComputeApi {
|
| TargetHttpProxiesResourceApi get targetHttpProxies => new TargetHttpProxiesResourceApi(_requester);
|
| TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceApi(_requester);
|
| TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requester);
|
| + TargetVpnGatewaysResourceApi get targetVpnGateways => new TargetVpnGatewaysResourceApi(_requester);
|
| UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester);
|
| + VpnTunnelsResourceApi get vpnTunnels => new VpnTunnelsResourceApi(_requester);
|
| ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(_requester);
|
| ZonesResourceApi get zones => new ZonesResourceApi(_requester);
|
|
|
| ComputeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "compute/v1/projects/"}) :
|
| - _requester = new common_internal.ApiRequester(client, rootUrl, servicePath);
|
| + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class AddressesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - AddressesResourceApi(common_internal.ApiRequester client) :
|
| + AddressesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -81,7 +85,7 @@ class AddressesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -96,7 +100,7 @@ class AddressesResourceApi {
|
| *
|
| * Completes with a [AddressAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -107,7 +111,7 @@ class AddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -124,7 +128,7 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/addresses';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/addresses';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -141,11 +145,11 @@ class AddressesResourceApi {
|
| *
|
| * 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.
|
| + * [region] - The name of the region for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [address] - Name of the address resource to delete.
|
| @@ -153,7 +157,7 @@ class AddressesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -164,7 +168,7 @@ class AddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -178,7 +182,7 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/addresses/' + common_internal.Escaper.ecapeVariable('$address');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/addresses/' + commons.Escaper.ecapeVariable('$address');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -195,11 +199,11 @@ class AddressesResourceApi {
|
| *
|
| * 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.
|
| + * [region] - The name of the region for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [address] - Name of the address resource to return.
|
| @@ -207,7 +211,7 @@ class AddressesResourceApi {
|
| *
|
| * Completes with a [Address].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -218,7 +222,7 @@ class AddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -232,7 +236,7 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/addresses/' + common_internal.Escaper.ecapeVariable('$address');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/addresses/' + commons.Escaper.ecapeVariable('$address');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -252,16 +256,16 @@ class AddressesResourceApi {
|
| *
|
| * 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.
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -272,7 +276,7 @@ class AddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -286,7 +290,7 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/addresses';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/addresses';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -304,11 +308,11 @@ class AddressesResourceApi {
|
| *
|
| * 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.
|
| + * [region] - The name of the region for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| @@ -322,7 +326,7 @@ class AddressesResourceApi {
|
| *
|
| * Completes with a [AddressList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -333,7 +337,7 @@ class AddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -353,7 +357,7 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/addresses';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/addresses';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -368,11 +372,10 @@ class AddressesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class BackendServicesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - BackendServicesResourceApi(common_internal.ApiRequester client) :
|
| + BackendServicesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -389,7 +392,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -400,7 +403,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -411,7 +414,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices/' + common_internal.Escaper.ecapeVariable('$backendService');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -437,7 +440,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [BackendService].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -448,7 +451,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -459,7 +462,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices/' + common_internal.Escaper.ecapeVariable('$backendService');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -488,7 +491,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [BackendServiceGroupHealth].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -499,7 +502,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -513,7 +516,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices/' + common_internal.Escaper.ecapeVariable('$backendService') + '/getHealth';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService') + '/getHealth';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -539,7 +542,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -550,7 +553,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -561,7 +564,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -594,7 +597,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [BackendServiceList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -605,7 +608,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -622,7 +625,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -651,7 +654,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -662,7 +665,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -676,7 +679,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices/' + common_internal.Escaper.ecapeVariable('$backendService');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -704,7 +707,7 @@ class BackendServicesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -715,7 +718,7 @@ class BackendServicesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -729,7 +732,7 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendServices/' + common_internal.Escaper.ecapeVariable('$backendService');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/' + commons.Escaper.ecapeVariable('$backendService');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -744,11 +747,10 @@ class BackendServicesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class DiskTypesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - DiskTypesResourceApi(common_internal.ApiRequester client) :
|
| + DiskTypesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -756,7 +758,7 @@ class DiskTypesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -771,7 +773,7 @@ class DiskTypesResourceApi {
|
| *
|
| * Completes with a [DiskTypeAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -782,7 +784,7 @@ class DiskTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -799,7 +801,7 @@ class DiskTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/diskTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/diskTypes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -816,11 +818,11 @@ class DiskTypesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -828,7 +830,7 @@ class DiskTypesResourceApi {
|
| *
|
| * Completes with a [DiskType].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -839,7 +841,7 @@ class DiskTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -853,7 +855,7 @@ class DiskTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/diskTypes/' + common_internal.Escaper.ecapeVariable('$diskType');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes/' + commons.Escaper.ecapeVariable('$diskType');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -871,11 +873,11 @@ class DiskTypesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| @@ -889,7 +891,7 @@ class DiskTypesResourceApi {
|
| *
|
| * Completes with a [DiskTypeList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -900,7 +902,7 @@ class DiskTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -920,7 +922,7 @@ class DiskTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/diskTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/diskTypes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -935,11 +937,10 @@ class DiskTypesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class DisksResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - DisksResourceApi(common_internal.ApiRequester client) :
|
| + DisksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -947,7 +948,7 @@ class DisksResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -962,7 +963,7 @@ class DisksResourceApi {
|
| *
|
| * Completes with a [DiskAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -973,7 +974,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -990,7 +991,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/disks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/disks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1003,25 +1004,25 @@ class DisksResourceApi {
|
| }
|
|
|
| /**
|
| - * Not documented yet.
|
| + * Creates a snapshot of this disk.
|
| *
|
| * [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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 resource to snapshot.
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1032,7 +1033,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1049,7 +1050,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.ecapeVariable('$disk') + '/createSnapshot';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk') + '/createSnapshot';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -1062,23 +1063,23 @@ class DisksResourceApi {
|
| }
|
|
|
| /**
|
| - * Deletes the specified persistent disk resource.
|
| + * Deletes the specified persistent disk.
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 resource to delete.
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1089,7 +1090,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1103,7 +1104,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.ecapeVariable('$disk');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -1116,23 +1117,23 @@ class DisksResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified persistent disk resource.
|
| + * Returns a specified persistent disk.
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 resource to return.
|
| + * [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 [Disk].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1143,7 +1144,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1157,7 +1158,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.ecapeVariable('$disk');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1170,25 +1171,25 @@ class DisksResourceApi {
|
| }
|
|
|
| /**
|
| - * Creates a persistent disk resource in the specified project using the data
|
| - * included in the request.
|
| + * Creates a persistent disk 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1199,7 +1200,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1216,7 +1217,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/disks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -1229,16 +1230,15 @@ class DisksResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of persistent disk resources contained within the
|
| - * specified zone.
|
| + * Retrieves the list of persistent disks contained within the specified zone.
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| @@ -1252,7 +1252,7 @@ class DisksResourceApi {
|
| *
|
| * Completes with a [DiskList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1263,7 +1263,7 @@ class DisksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1283,7 +1283,7 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/disks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/disks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1298,11 +1298,10 @@ class DisksResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class FirewallsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - FirewallsResourceApi(common_internal.ApiRequester client) :
|
| + FirewallsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -1310,7 +1309,7 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -1319,7 +1318,7 @@ class FirewallsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1330,7 +1329,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1341,7 +1340,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls/' + common_internal.Escaper.ecapeVariable('$firewall');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -1358,7 +1357,7 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -1367,7 +1366,7 @@ class FirewallsResourceApi {
|
| *
|
| * Completes with a [Firewall].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1378,7 +1377,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1389,7 +1388,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls/' + common_internal.Escaper.ecapeVariable('$firewall');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1409,13 +1408,13 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1426,7 +1425,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1437,7 +1436,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -1455,7 +1454,7 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -1470,7 +1469,7 @@ class FirewallsResourceApi {
|
| *
|
| * Completes with a [FirewallList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1481,7 +1480,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1498,7 +1497,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1518,7 +1517,7 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -1527,7 +1526,7 @@ class FirewallsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1538,7 +1537,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1552,7 +1551,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls/' + common_internal.Escaper.ecapeVariable('$firewall');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -1572,7 +1571,7 @@ class FirewallsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -1581,7 +1580,7 @@ class FirewallsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1592,7 +1591,7 @@ class FirewallsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1606,7 +1605,7 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewalls/' + common_internal.Escaper.ecapeVariable('$firewall');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + commons.Escaper.ecapeVariable('$firewall');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -1621,11 +1620,10 @@ class FirewallsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class ForwardingRulesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - ForwardingRulesResourceApi(common_internal.ApiRequester client) :
|
| + ForwardingRulesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -1648,7 +1646,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [ForwardingRuleAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1659,7 +1657,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1676,7 +1674,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/forwardingRules';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/forwardingRules';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1705,7 +1703,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1716,7 +1714,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1730,7 +1728,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -1759,7 +1757,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [ForwardingRule].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1770,7 +1768,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1784,7 +1782,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1813,7 +1811,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1824,7 +1822,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1838,7 +1836,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/forwardingRules';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -1874,7 +1872,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [ForwardingRuleList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1885,7 +1883,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -1905,7 +1903,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/forwardingRules';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/forwardingRules';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1937,7 +1935,7 @@ class ForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -1948,7 +1946,7 @@ class ForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -1965,7 +1963,7 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_internal.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",
|
| @@ -1980,11 +1978,10 @@ class ForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class GlobalAddressesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - GlobalAddressesResourceApi(common_internal.ApiRequester client) :
|
| + GlobalAddressesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -1992,7 +1989,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2001,7 +1998,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2012,7 +2009,7 @@ class GlobalAddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2023,7 +2020,7 @@ class GlobalAddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresses/' + common_internal.Escaper.ecapeVariable('$address');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -2040,7 +2037,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2049,7 +2046,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * Completes with a [Address].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2060,7 +2057,7 @@ class GlobalAddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2071,7 +2068,7 @@ class GlobalAddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresses/' + common_internal.Escaper.ecapeVariable('$address');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + commons.Escaper.ecapeVariable('$address');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2091,13 +2088,13 @@ class GlobalAddressesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2108,7 +2105,7 @@ class GlobalAddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2119,7 +2116,7 @@ class GlobalAddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresses';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -2136,7 +2133,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2151,7 +2148,7 @@ class GlobalAddressesResourceApi {
|
| *
|
| * Completes with a [AddressList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2162,7 +2159,7 @@ class GlobalAddressesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2179,7 +2176,7 @@ class GlobalAddressesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresses';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2194,11 +2191,10 @@ class GlobalAddressesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class GlobalForwardingRulesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - GlobalForwardingRulesResourceApi(common_internal.ApiRequester client) :
|
| + GlobalForwardingRulesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -2215,7 +2211,7 @@ class GlobalForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2226,7 +2222,7 @@ class GlobalForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2237,7 +2233,7 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -2263,7 +2259,7 @@ class GlobalForwardingRulesResourceApi {
|
| *
|
| * Completes with a [ForwardingRule].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2274,7 +2270,7 @@ class GlobalForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2285,7 +2281,7 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2311,7 +2307,7 @@ class GlobalForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2322,7 +2318,7 @@ class GlobalForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2333,7 +2329,7 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardingRules';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -2366,7 +2362,7 @@ class GlobalForwardingRulesResourceApi {
|
| *
|
| * Completes with a [ForwardingRuleList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2377,7 +2373,7 @@ class GlobalForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2394,7 +2390,7 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardingRules';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2423,7 +2419,7 @@ class GlobalForwardingRulesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2434,7 +2430,7 @@ class GlobalForwardingRulesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2448,7 +2444,7 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule') + '/setTarget';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -2463,11 +2459,10 @@ class GlobalForwardingRulesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class GlobalOperationsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - GlobalOperationsResourceApi(common_internal.ApiRequester client) :
|
| + GlobalOperationsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -2475,7 +2470,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2490,7 +2485,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * Completes with a [OperationAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2501,7 +2496,7 @@ class GlobalOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2518,7 +2513,7 @@ class GlobalOperationsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/operations';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2535,14 +2530,14 @@ class GlobalOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * [operation] - Name of the operation resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2553,7 +2548,7 @@ class GlobalOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2565,7 +2560,7 @@ class GlobalOperationsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -2582,7 +2577,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2591,7 +2586,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2602,7 +2597,7 @@ class GlobalOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2613,7 +2608,7 @@ class GlobalOperationsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + commons.Escaper.ecapeVariable('$operation');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2631,7 +2626,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -2646,7 +2641,7 @@ class GlobalOperationsResourceApi {
|
| *
|
| * Completes with a [OperationList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2657,7 +2652,7 @@ class GlobalOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2674,7 +2669,7 @@ class GlobalOperationsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/operations';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2689,11 +2684,10 @@ class GlobalOperationsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class HttpHealthChecksResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - HttpHealthChecksResourceApi(common_internal.ApiRequester client) :
|
| + HttpHealthChecksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -2710,7 +2704,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2721,7 +2715,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2732,7 +2726,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -2758,7 +2752,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [HttpHealthCheck].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2769,7 +2763,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2780,7 +2774,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2806,7 +2800,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2817,7 +2811,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2828,7 +2822,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -2861,7 +2855,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [HttpHealthCheckList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2872,7 +2866,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -2889,7 +2883,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -2918,7 +2912,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2929,7 +2923,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2943,7 +2937,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -2972,7 +2966,7 @@ class HttpHealthChecksResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -2983,7 +2977,7 @@ class HttpHealthChecksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -2997,7 +2991,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -3012,11 +3006,10 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class ImagesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - ImagesResourceApi(common_internal.ApiRequester client) :
|
| + ImagesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -3024,7 +3017,7 @@ class ImagesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -3033,7 +3026,7 @@ class ImagesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3044,7 +3037,7 @@ class ImagesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3055,7 +3048,7 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/' + common_internal.Escaper.ecapeVariable('$image');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -3068,14 +3061,15 @@ class ImagesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets the deprecation status of an image. If no message body is given,
|
| - * clears the deprecation status instead.
|
| + * 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] - 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])?))".
|
| *
|
| @@ -3084,7 +3078,7 @@ class ImagesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3095,7 +3089,7 @@ class ImagesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -3109,7 +3103,7 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/' + common_internal.Escaper.ecapeVariable('$image') + '/deprecate';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image') + '/deprecate';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3126,7 +3120,7 @@ class ImagesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -3135,7 +3129,7 @@ class ImagesResourceApi {
|
| *
|
| * Completes with a [Image].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3146,7 +3140,7 @@ class ImagesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3157,7 +3151,7 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/' + common_internal.Escaper.ecapeVariable('$image');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3177,13 +3171,13 @@ class ImagesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3194,7 +3188,7 @@ class ImagesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -3205,7 +3199,7 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3222,7 +3216,7 @@ class ImagesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -3237,7 +3231,7 @@ class ImagesResourceApi {
|
| *
|
| * Completes with a [ImageList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3248,7 +3242,7 @@ class ImagesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3265,7 +3259,7 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3280,11 +3274,10 @@ class ImagesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class InstanceTemplatesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - InstanceTemplatesResourceApi(common_internal.ApiRequester client) :
|
| + InstanceTemplatesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -3301,7 +3294,7 @@ class InstanceTemplatesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3312,7 +3305,7 @@ class InstanceTemplatesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3323,7 +3316,7 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -3349,7 +3342,7 @@ class InstanceTemplatesResourceApi {
|
| *
|
| * Completes with a [InstanceTemplate].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3360,7 +3353,7 @@ class InstanceTemplatesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3371,7 +3364,7 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3397,7 +3390,7 @@ class InstanceTemplatesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3408,7 +3401,7 @@ class InstanceTemplatesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -3419,7 +3412,7 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3452,7 +3445,7 @@ class InstanceTemplatesResourceApi {
|
| *
|
| * Completes with a [InstanceTemplateList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3463,7 +3456,7 @@ class InstanceTemplatesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3480,7 +3473,7 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3495,11 +3488,10 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class InstancesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - InstancesResourceApi(common_internal.ApiRequester client) :
|
| + InstancesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -3509,21 +3501,22 @@ class InstancesResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| + * [instance] - The instance name for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [networkInterface] - Network interface name.
|
| + * [networkInterface] - The name of the network interface to add to this
|
| + * instance.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3534,7 +3527,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -3555,7 +3548,7 @@ class InstancesResourceApi {
|
| _queryParams["networkInterface"] = [networkInterface];
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/addAccessConfig';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/addAccessConfig';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3568,11 +3561,9 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Not documented yet.
|
| - *
|
| * 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])?))".
|
| *
|
| @@ -3587,7 +3578,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [InstanceAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3598,7 +3589,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3615,7 +3606,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3628,17 +3619,17 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Attaches a disk resource to an instance.
|
| + * Attaches a Disk resource to an instance.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| @@ -3646,7 +3637,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3657,7 +3648,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -3674,7 +3665,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/attachDisk';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/attachDisk';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3687,15 +3678,16 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Deletes the specified instance resource.
|
| + * Deletes the specified Instance resource. For more information, see Shutting
|
| + * down an instance.
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 delete.
|
| @@ -3703,7 +3695,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3714,7 +3706,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3728,7 +3720,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -3745,23 +3737,23 @@ class InstancesResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| + * [instance] - The instance name for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [accessConfig] - Access config name.
|
| + * [accessConfig] - The name of the access config to delete.
|
| *
|
| - * [networkInterface] - Network interface name.
|
| + * [networkInterface] - The name of the network interface.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3772,7 +3764,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3794,7 +3786,7 @@ class InstancesResourceApi {
|
| _queryParams["networkInterface"] = [networkInterface];
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3811,11 +3803,11 @@ class InstancesResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| @@ -3826,7 +3818,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3837,7 +3829,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3855,7 +3847,7 @@ class InstancesResourceApi {
|
| _queryParams["deviceName"] = [deviceName];
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/detachDisk';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/detachDisk';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3872,11 +3864,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -3884,7 +3876,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Instance].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3895,7 +3887,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3909,7 +3901,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3926,11 +3918,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -3938,7 +3930,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [SerialPortOutput].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -3949,7 +3941,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -3963,7 +3955,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/serialPort';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3983,16 +3975,16 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4003,7 +3995,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -4017,7 +4009,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4035,11 +4027,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| @@ -4053,7 +4045,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [InstanceList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4064,7 +4056,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4084,7 +4076,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4101,11 +4093,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -4113,7 +4105,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4124,7 +4116,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4138,7 +4130,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/reset';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/reset';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4151,29 +4143,29 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets the auto-delete flag for a disk attached to an instance
|
| + * Sets the auto-delete flag for a disk attached to an instance.
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| + * [instance] - The instance name.
|
| * 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] - Disk device name to modify.
|
| + * [deviceName] - The device name of the disk to modify.
|
| * Value must have pattern "\w[\w.-]{0,254}".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4184,7 +4176,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4206,7 +4198,7 @@ class InstancesResourceApi {
|
| _queryParams["deviceName"] = [deviceName];
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4226,11 +4218,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -4238,7 +4230,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4249,7 +4241,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -4266,7 +4258,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/setMetadata';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMetadata';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4285,11 +4277,11 @@ class InstancesResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Project name.
|
| + * [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.
|
| + * [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.
|
| @@ -4297,7 +4289,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4308,7 +4300,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -4325,7 +4317,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/setScheduling';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setScheduling';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4344,11 +4336,11 @@ class InstancesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -4356,7 +4348,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4367,7 +4359,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -4384,7 +4376,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/setTags';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setTags';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4397,15 +4389,16 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Starts an instance
|
| + * This method starts an instance that was stopped using the using the
|
| + * instances().stop method. For more information, see Restart an instance.
|
| *
|
| * 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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -4413,7 +4406,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4424,7 +4417,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4438,7 +4431,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/start';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/start';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4451,15 +4444,20 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Stops an instance
|
| + * 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:
|
| *
|
| - * [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])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [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.
|
| @@ -4467,7 +4465,7 @@ class InstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4478,7 +4476,7 @@ class InstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4492,7 +4490,7 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Escaper.ecapeVariable('$instance') + '/stop';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/stop';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4507,11 +4505,10 @@ class InstancesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class LicensesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - LicensesResourceApi(common_internal.ApiRequester client) :
|
| + LicensesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -4519,7 +4516,7 @@ class LicensesResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -4528,7 +4525,7 @@ class LicensesResourceApi {
|
| *
|
| * Completes with a [License].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4539,7 +4536,7 @@ class LicensesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4550,7 +4547,7 @@ class LicensesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/licenses/' + common_internal.Escaper.ecapeVariable('$license');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + commons.Escaper.ecapeVariable('$license');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4565,11 +4562,10 @@ class LicensesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class MachineTypesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - MachineTypesResourceApi(common_internal.ApiRequester client) :
|
| + MachineTypesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -4592,7 +4588,7 @@ class MachineTypesResourceApi {
|
| *
|
| * Completes with a [MachineTypeAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4603,7 +4599,7 @@ class MachineTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4620,7 +4616,7 @@ class MachineTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4641,7 +4637,7 @@ class MachineTypesResourceApi {
|
| * 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.
|
| + * [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.
|
| @@ -4649,7 +4645,7 @@ class MachineTypesResourceApi {
|
| *
|
| * Completes with a [MachineType].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4660,7 +4656,7 @@ class MachineTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4674,7 +4670,7 @@ class MachineTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/machineTypes/' + common_internal.Escaper.ecapeVariable('$machineType');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$machineType');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4696,7 +4692,7 @@ class MachineTypesResourceApi {
|
| * 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.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| @@ -4710,7 +4706,7 @@ class MachineTypesResourceApi {
|
| *
|
| * Completes with a [MachineTypeList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4721,7 +4717,7 @@ class MachineTypesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4741,7 +4737,7 @@ class MachineTypesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/machineTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4756,11 +4752,10 @@ class MachineTypesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class NetworksResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - NetworksResourceApi(common_internal.ApiRequester client) :
|
| + NetworksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -4768,7 +4763,7 @@ class NetworksResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -4777,7 +4772,7 @@ class NetworksResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4788,7 +4783,7 @@ class NetworksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4799,7 +4794,7 @@ class NetworksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks/' + common_internal.Escaper.ecapeVariable('$network');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -4816,7 +4811,7 @@ class NetworksResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -4825,7 +4820,7 @@ class NetworksResourceApi {
|
| *
|
| * Completes with a [Network].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4836,7 +4831,7 @@ class NetworksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4847,7 +4842,7 @@ class NetworksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks/' + common_internal.Escaper.ecapeVariable('$network');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4867,13 +4862,13 @@ class NetworksResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4884,7 +4879,7 @@ class NetworksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -4895,7 +4890,7 @@ class NetworksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4912,7 +4907,7 @@ class NetworksResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -4927,7 +4922,7 @@ class NetworksResourceApi {
|
| *
|
| * Completes with a [NetworkList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4938,7 +4933,7 @@ class NetworksResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -4955,7 +4950,7 @@ class NetworksResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4970,11 +4965,10 @@ class NetworksResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class ProjectsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - ProjectsResourceApi(common_internal.ApiRequester client) :
|
| + ProjectsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -4982,13 +4976,13 @@ class ProjectsResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [project] - Name of the project resource to retrieve.
|
| + * [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])?))".
|
| *
|
| * Completes with a [Project].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -4999,7 +4993,7 @@ class ProjectsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5007,7 +5001,7 @@ class ProjectsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project');
|
| + _url = commons.Escaper.ecapeVariable('$project');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5020,6 +5014,101 @@ class ProjectsResourceApi {
|
| }
|
|
|
| /**
|
| + * Moves a persistent disk from one zone to another.
|
| + *
|
| + * [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])?))".
|
| + *
|
| + * 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> moveDisk(DiskMoveRequest 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') + '/moveDisk';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Moves an instance and its attached persistent disks from one zone to
|
| + * another.
|
| + *
|
| + * [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])?))".
|
| + *
|
| + * 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> moveInstance(InstanceMoveRequest 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') + '/moveInstance';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| * Sets metadata common to all instances within the specified project using
|
| * the data included in the request.
|
| *
|
| @@ -5027,13 +5116,13 @@ class ProjectsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5044,7 +5133,7 @@ class ProjectsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -5055,7 +5144,7 @@ class ProjectsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5068,19 +5157,21 @@ class ProjectsResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets usage export location
|
| + * 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])?))".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5091,7 +5182,7 @@ class ProjectsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -5102,7 +5193,7 @@ class ProjectsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/setUsageExportBucket';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5117,11 +5208,10 @@ class ProjectsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class RegionOperationsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - RegionOperationsResourceApi(common_internal.ApiRequester client) :
|
| + RegionOperationsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -5129,7 +5219,7 @@ class RegionOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -5139,7 +5229,7 @@ class RegionOperationsResourceApi {
|
| * [operation] - Name of the operation resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5150,7 +5240,7 @@ class RegionOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5165,7 +5255,7 @@ class RegionOperationsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -5182,7 +5272,7 @@ class RegionOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -5194,7 +5284,7 @@ class RegionOperationsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5205,7 +5295,7 @@ class RegionOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5219,7 +5309,7 @@ class RegionOperationsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5237,7 +5327,7 @@ class RegionOperationsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -5255,7 +5345,7 @@ class RegionOperationsResourceApi {
|
| *
|
| * Completes with a [OperationList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5266,7 +5356,7 @@ class RegionOperationsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5286,7 +5376,7 @@ class RegionOperationsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5301,11 +5391,10 @@ class RegionOperationsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class RegionsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - RegionsResourceApi(common_internal.ApiRequester client) :
|
| + RegionsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -5313,7 +5402,7 @@ class RegionsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -5322,7 +5411,7 @@ class RegionsResourceApi {
|
| *
|
| * Completes with a [Region].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5333,7 +5422,7 @@ class RegionsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5344,7 +5433,7 @@ class RegionsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5361,7 +5450,7 @@ class RegionsResourceApi {
|
| *
|
| * 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])?))".
|
| *
|
| @@ -5376,7 +5465,7 @@ class RegionsResourceApi {
|
| *
|
| * Completes with a [RegionList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5387,7 +5476,7 @@ class RegionsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5404,7 +5493,7 @@ class RegionsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5419,11 +5508,10 @@ class RegionsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class RoutesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - RoutesResourceApi(common_internal.ApiRequester client) :
|
| + RoutesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -5440,7 +5528,7 @@ class RoutesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5451,7 +5539,7 @@ class RoutesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5462,7 +5550,7 @@ class RoutesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes/' + common_internal.Escaper.ecapeVariable('$route');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -5488,7 +5576,7 @@ class RoutesResourceApi {
|
| *
|
| * Completes with a [Route].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5499,7 +5587,7 @@ class RoutesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5510,7 +5598,7 @@ class RoutesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes/' + common_internal.Escaper.ecapeVariable('$route');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5536,7 +5624,7 @@ class RoutesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5547,7 +5635,7 @@ class RoutesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -5558,7 +5646,7 @@ class RoutesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5590,7 +5678,7 @@ class RoutesResourceApi {
|
| *
|
| * Completes with a [RouteList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5601,7 +5689,7 @@ class RoutesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5618,7 +5706,7 @@ class RoutesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5633,11 +5721,10 @@ class RoutesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class SnapshotsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - SnapshotsResourceApi(common_internal.ApiRequester client) :
|
| + SnapshotsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -5654,7 +5741,7 @@ class SnapshotsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5665,7 +5752,7 @@ class SnapshotsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5676,7 +5763,7 @@ class SnapshotsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshots/' + common_internal.Escaper.ecapeVariable('$snapshot');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -5702,7 +5789,7 @@ class SnapshotsResourceApi {
|
| *
|
| * Completes with a [Snapshot].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5713,7 +5800,7 @@ class SnapshotsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5724,7 +5811,7 @@ class SnapshotsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshots/' + common_internal.Escaper.ecapeVariable('$snapshot');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5757,7 +5844,7 @@ class SnapshotsResourceApi {
|
| *
|
| * Completes with a [SnapshotList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5768,7 +5855,7 @@ class SnapshotsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5785,7 +5872,7 @@ class SnapshotsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshots';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5800,11 +5887,10 @@ class SnapshotsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class TargetHttpProxiesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - TargetHttpProxiesResourceApi(common_internal.ApiRequester client) :
|
| + TargetHttpProxiesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -5821,7 +5907,7 @@ class TargetHttpProxiesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5832,7 +5918,7 @@ class TargetHttpProxiesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5843,7 +5929,7 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -5869,7 +5955,7 @@ class TargetHttpProxiesResourceApi {
|
| *
|
| * Completes with a [TargetHttpProxy].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5880,7 +5966,7 @@ class TargetHttpProxiesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -5891,7 +5977,7 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5917,7 +6003,7 @@ class TargetHttpProxiesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5928,7 +6014,7 @@ class TargetHttpProxiesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -5939,7 +6025,7 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5972,7 +6058,7 @@ class TargetHttpProxiesResourceApi {
|
| *
|
| * Completes with a [TargetHttpProxyList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -5983,7 +6069,7 @@ class TargetHttpProxiesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6000,7 +6086,7 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6029,7 +6115,7 @@ class TargetHttpProxiesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6040,7 +6126,7 @@ class TargetHttpProxiesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6054,7 +6140,7 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6069,11 +6155,10 @@ class TargetHttpProxiesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class TargetInstancesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - TargetInstancesResourceApi(common_internal.ApiRequester client) :
|
| + TargetInstancesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -6096,7 +6181,7 @@ class TargetInstancesResourceApi {
|
| *
|
| * Completes with a [TargetInstanceAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6107,7 +6192,7 @@ class TargetInstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6124,7 +6209,7 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6153,7 +6238,7 @@ class TargetInstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6164,7 +6249,7 @@ class TargetInstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6178,7 +6263,7 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/targetInstances/' + common_internal.Escaper.ecapeVariable('$targetInstance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -6207,7 +6292,7 @@ class TargetInstancesResourceApi {
|
| *
|
| * Completes with a [TargetInstance].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6218,7 +6303,7 @@ class TargetInstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6232,7 +6317,7 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/targetInstances/' + common_internal.Escaper.ecapeVariable('$targetInstance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6261,7 +6346,7 @@ class TargetInstancesResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6272,7 +6357,7 @@ class TargetInstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6286,7 +6371,7 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6322,7 +6407,7 @@ class TargetInstancesResourceApi {
|
| *
|
| * Completes with a [TargetInstanceList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6333,7 +6418,7 @@ class TargetInstancesResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6353,7 +6438,7 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6368,11 +6453,10 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class TargetPoolsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| + final commons.ApiRequester _requester;
|
|
|
| - TargetPoolsResourceApi(common_internal.ApiRequester client) :
|
| + TargetPoolsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| @@ -6395,7 +6479,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6406,7 +6490,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6423,7 +6507,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6455,7 +6539,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6466,7 +6550,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6483,7 +6567,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/addInstance';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addInstance';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6515,7 +6599,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [TargetPoolAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6526,7 +6610,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6543,7 +6627,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6572,7 +6656,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6583,7 +6667,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6597,7 +6681,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -6626,7 +6710,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [TargetPool].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6637,7 +6721,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6651,7 +6735,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6684,7 +6768,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [TargetPoolInstanceHealth].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6695,7 +6779,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6712,7 +6796,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/getHealth';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/getHealth';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6741,7 +6825,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6752,7 +6836,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6766,7 +6850,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6802,7 +6886,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [TargetPoolList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6813,7 +6897,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -6833,7 +6917,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6865,7 +6949,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6876,7 +6960,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6893,7 +6977,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6925,7 +7009,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6936,7 +7020,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -6953,7 +7037,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/removeInstance';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeInstance';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6987,7 +7071,7 @@ class TargetPoolsResourceApi {
|
| *
|
| * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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,
|
| @@ -6998,7 +7082,7 @@ class TargetPoolsResourceApi {
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -7018,7 +7102,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + common_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_internal.Escaper.ecapeVariable('$targetPool') + '/setBackup';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/setBackup';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7033,50 +7117,115 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class UrlMapsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| +class TargetVpnGatewaysResourceApi {
|
| + final commons.ApiRequester _requester;
|
|
|
| - UrlMapsResourceApi(common_internal.ApiRequester client) :
|
| + TargetVpnGatewaysResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified UrlMap resource.
|
| + * 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])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [filter] - Optional. Filter expression for filtering listed resources.
|
| *
|
| - * Completes with a [Operation].
|
| + * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| + * value is 500 and default value is 500.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| + * by maxResults. Used to continue a previous list request.
|
| + *
|
| + * Completes with a [TargetVpnGatewayAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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 urlMap) {
|
| + 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;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap 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') + '/aggregated/targetVpnGateways';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Deletes the specified TargetVpnGateway 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])?".
|
| + *
|
| + * [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].
|
| + *
|
| + * 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 targetVpnGateway) {
|
| + 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 (targetVpnGateway == null) {
|
| + throw new core.ArgumentError("Parameter targetVpnGateway is required.");
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + common_internal.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -7089,42 +7238,48 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified UrlMap resource.
|
| + * 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 return.
|
| + * [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 [UrlMap].
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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<UrlMap> get(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;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| 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 = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + common_internal.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -7133,35 +7288,38 @@ class UrlMapsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMap.fromJson(data));
|
| + return _response.then((data) => new TargetVpnGateway.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a UrlMap resource in the specified project using the data included
|
| - * in the request.
|
| + * 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])?))".
|
| *
|
| + * [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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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(UrlMap request, core.String project) {
|
| + async.Future<Operation> insert(TargetVpnGateway request, core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -7170,9 +7328,12 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7185,14 +7346,18 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of UrlMap resources available to the specified project.
|
| + * Retrieves the list of TargetVpnGateway resources available to the specified
|
| + * project and 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] - The name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| * [filter] - Optional. Filter expression for filtering listed resources.
|
| *
|
| * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| @@ -7202,25 +7367,28 @@ class UrlMapsResourceApi {
|
| * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| * by maxResults. Used to continue a previous list request.
|
| *
|
| - * Completes with a [UrlMapList].
|
| + * Completes with a [TargetVpnGatewayList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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<UrlMapList> list(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;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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];
|
| }
|
| @@ -7232,7 +7400,7 @@ class UrlMapsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -7241,14 +7409,20 @@ class UrlMapsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMapList.fromJson(data));
|
| + return _response.then((data) => new TargetVpnGatewayList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class UrlMapsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + UrlMapsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Update the entire content of the UrlMap resource. This method supports
|
| - * patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Deletes the specified UrlMap resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7256,28 +7430,25 @@ 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])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to update.
|
| + * [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].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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> patch(UrlMap request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> delete(core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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.");
|
| }
|
| @@ -7286,10 +7457,10 @@ class UrlMapsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + common_internal.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| var _response = _requester.request(_url,
|
| - "PATCH",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -7299,9 +7470,7 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Update the entire content of the UrlMap resource.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified UrlMap resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7309,28 +7478,25 @@ 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])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to update.
|
| + * [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 [Operation].
|
| + * Completes with a [UrlMap].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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(UrlMap request, core.String project, core.String urlMap) {
|
| + async.Future<UrlMap> get(core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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.");
|
| }
|
| @@ -7339,22 +7505,21 @@ class UrlMapsResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + common_internal.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| 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 UrlMap.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 UrlMap resource in the specified project using the data included
|
| + * in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -7364,23 +7529,20 @@ 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])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to be validated as.
|
| - * 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 [common.ApiRequestError] if the API endpoint returned an
|
| + * 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<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> insert(UrlMap request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (request != null) {
|
| @@ -7389,12 +7551,9 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| - }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + common_internal.Escaper.ecapeVariable('$urlMap') + '/validate';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7403,21 +7562,11 @@ class UrlMapsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMapsValidateResponse.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class ZoneOperationsResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| -
|
| - ZoneOperationsResourceApi(common_internal.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified zone-specific operation resource.
|
| + * Retrieves the list of UrlMap resources available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7425,52 +7574,62 @@ class ZoneOperationsResourceApi {
|
| * 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] - Optional. Filter expression for filtering listed resources.
|
| *
|
| - * [operation] - Name of the operation resource to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| + * value is 500 and default value is 500.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| + * by maxResults. Used to continue a previous list request.
|
| + *
|
| + * Completes with a [UrlMapList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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 zone, core.String operation) {
|
| + 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;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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 (operation == null) {
|
| - throw new core.ArgumentError("Parameter operation is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _downloadOptions = null;
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
|
|
| 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 UrlMapList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves the specified zone-specific operation resource.
|
| + * Update the entire content of the UrlMap resource. This method supports
|
| + * patch semantics.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7478,43 +7637,40 @@ class ZoneOperationsResourceApi {
|
| * 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 operation 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].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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) {
|
| + async.Future<Operation> patch(UrlMap request, core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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 = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "PATCH",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -7524,8 +7680,9 @@ class ZoneOperationsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of operation resources contained within the specified
|
| - * zone.
|
| + * Update the entire content of the UrlMap resource.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7533,75 +7690,54 @@ class ZoneOperationsResourceApi {
|
| * 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])?".
|
| *
|
| - * [filter] - Optional. Filter expression for filtering listed resources.
|
| - *
|
| - * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| - * value is 500 and default value is 500.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| - * by maxResults. Used to continue a previous list request.
|
| - *
|
| - * Completes with a [OperationList].
|
| + * Completes with a [Operation].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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}) {
|
| + async.Future<Operation> update(UrlMap request, core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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 = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "PUT",
|
| 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));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class ZonesResourceApi {
|
| - final common_internal.ApiRequester _requester;
|
| -
|
| - ZonesResourceApi(common_internal.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Returns the specified zone resource.
|
| + * 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:
|
| *
|
| @@ -7609,51 +7745,63 @@ 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.
|
| + * [urlMap] - Name of the UrlMap resource to be validated as.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Zone].
|
| + * Completes with a [UrlMapsValidateResponse].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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) {
|
| + async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request, core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + 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 (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone');
|
| + _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 Zone.fromJson(data));
|
| + return _response.then((data) => new UrlMapsValidateResponse.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class VpnTunnelsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + VpnTunnelsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Retrieves the list of zone resources available to the specified project.
|
| + * Retrieves the list of VPN tunnels 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])?))".
|
| *
|
| @@ -7666,20 +7814,20 @@ class ZonesResourceApi {
|
| * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| * by maxResults. Used to continue a previous list request.
|
| *
|
| - * Completes with a [ZoneList].
|
| + * Completes with a [VpnTunnelAggregatedList].
|
| *
|
| - * Completes with a [common.ApiRequestError] if the API endpoint returned an
|
| + * 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}) {
|
| + 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;
|
| var _uploadOptions = null;
|
| - var _downloadOptions = common.DownloadOptions.Metadata;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| if (project == null) {
|
| @@ -7696,7 +7844,7 @@ class ZonesResourceApi {
|
| }
|
|
|
|
|
| - _url = common_internal.Escaper.ecapeVariable('$project') + '/zones';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -7705,88 +7853,1396 @@ class ZonesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ZoneList.fromJson(data));
|
| + return _response.then((data) => new VpnTunnelAggregatedList.fromJson(data));
|
| }
|
|
|
| -}
|
| + /**
|
| + * 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.");
|
| + }
|
|
|
|
|
| -/** An access configuration attached to an instance's network interface. */
|
| -class AccessConfig {
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
|
|
| - /** Name of this access configuration. */
|
| - core.String name;
|
| + var _response = _requester.request(_url,
|
| + "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
|
|
| /**
|
| - * An external IP address associated with this instance. Specify an unused
|
| - * static IP address available to the project. If not specified, the external
|
| - * IP will be drawn from a shared ephemeral pool.
|
| + * 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.
|
| */
|
| - core.String natIP;
|
| + 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;
|
|
|
| - /**
|
| - * Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures
|
| - * port-for-port NAT to the internet.
|
| - * Possible string values are:
|
| - * - "ONE_TO_ONE_NAT"
|
| - */
|
| - core.String type;
|
| + 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.");
|
| + }
|
|
|
|
|
| - AccessConfig();
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
|
|
| - AccessConfig.fromJson(core.Map _json) {
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + 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 (_json.containsKey("natIP")) {
|
| - natIP = _json["natIP"];
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| + 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));
|
| }
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + /**
|
| + * Retrieves the list of VpnTunnel resources contained in the specified
|
| + * project and region.
|
| + *
|
| + * 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])?".
|
| + *
|
| + * [filter] - Optional. Filter expression for filtering listed resources.
|
| + *
|
| + * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| + * value is 500 and default value is 500.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| + * by maxResults. Used to continue a previous list request.
|
| + *
|
| + * Completes with a [VpnTunnelList].
|
| + *
|
| + * 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<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;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (natIP != null) {
|
| - _json["natIP"] = natIP;
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| - return _json;
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| +
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new VpnTunnelList.fromJson(data));
|
| }
|
| +
|
| }
|
|
|
|
|
| -/** A reserved address resource. */
|
| -class Address {
|
| - /** The IP address represented by this resource. */
|
| - core.String address;
|
| +class ZoneOperationsResourceApi {
|
| + final commons.ApiRequester _requester;
|
|
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| + ZoneOperationsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
|
|
| /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| + * Deletes the specified zone-specific operation 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 operation 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.
|
| + */
|
| + 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 operation 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 operation 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] - Optional. Filter expression for filtering listed resources.
|
| + *
|
| + * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| + * value is 500 and default value is 500.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| + * by maxResults. Used to continue 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] - Optional. Filter expression for filtering listed resources.
|
| + *
|
| + * [maxResults] - Optional. Maximum count of results to be returned. Maximum
|
| + * value is 500 and default value is 500.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - Optional. Tag returned by a previous list request truncated
|
| + * by maxResults. Used to continue 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"
|
| + * - "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;
|
| +
|
| +
|
| + 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("licenses")) {
|
| + licenses = _json["licenses"];
|
| + }
|
| + if (_json.containsKey("mode")) {
|
| + mode = _json["mode"];
|
| + }
|
| + if (_json.containsKey("source")) {
|
| + source = _json["source"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + }
|
| +
|
| + 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 (licenses != null) {
|
| + _json["licenses"] = licenses;
|
| + }
|
| + if (mode != null) {
|
| + _json["mode"] = mode;
|
| + }
|
| + if (source != null) {
|
| + _json["source"] = source;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + 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;
|
| +
|
| + /**
|
| + * 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;
|
| + }
|
| +}
|
| +
|
| +
|
| +/** Message containing information of one individual backend. */
|
| +class Backend {
|
| + /**
|
| + * The balancing mode of this backend, default is UTILIZATION.
|
| + * Possible string values are:
|
| + * - "RATE"
|
| + * - "UTILIZATION"
|
| + */
|
| + core.String balancingMode;
|
| +
|
| + /**
|
| + * The multiplier (a value between 0 and 1e6) 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, 1e6].
|
| + */
|
| + core.double capacityScaler;
|
| +
|
| + /**
|
| + * An optional textual description of the resource, which is 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.
|
| + */
|
| + core.String group;
|
| +
|
| + /**
|
| + * The max RPS of the group. Can be used with either balancing mode, but
|
| + * required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance
|
| + * must be set.
|
| + */
|
| + core.int maxRate;
|
| +
|
| + /**
|
| + * The max RPS that a single backed instance can handle. This is used to
|
| + * calculate the capacity of the group. Can be used in either balancing mode.
|
| + * For RATE mode, either maxRate or maxRatePerInstance must be set.
|
| + */
|
| + 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].
|
| + */
|
| + core.double maxUtilization;
|
| +
|
| +
|
| + Backend();
|
| +
|
| + Backend.fromJson(core.Map _json) {
|
| + if (_json.containsKey("balancingMode")) {
|
| + balancingMode = _json["balancingMode"];
|
| + }
|
| + if (_json.containsKey("capacityScaler")) {
|
| + capacityScaler = _json["capacityScaler"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("group")) {
|
| + group = _json["group"];
|
| + }
|
| + if (_json.containsKey("maxRate")) {
|
| + maxRate = _json["maxRate"];
|
| + }
|
| + if (_json.containsKey("maxRatePerInstance")) {
|
| + maxRatePerInstance = _json["maxRatePerInstance"];
|
| + }
|
| + if (_json.containsKey("maxUtilization")) {
|
| + maxUtilization = _json["maxUtilization"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (balancingMode != null) {
|
| + _json["balancingMode"] = balancingMode;
|
| + }
|
| + if (capacityScaler != null) {
|
| + _json["capacityScaler"] = capacityScaler;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (group != null) {
|
| + _json["group"] = group;
|
| + }
|
| + if (maxRate != null) {
|
| + _json["maxRate"] = maxRate;
|
| + }
|
| + if (maxRatePerInstance != null) {
|
| + _json["maxRatePerInstance"] = maxRatePerInstance;
|
| + }
|
| + if (maxUtilization != null) {
|
| + _json["maxUtilization"] = maxUtilization;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * A BackendService resource. This resource defines a group of backend VMs
|
| + * together with their serving capacity.
|
| + */
|
| +class BackendService {
|
| + /** The list of backends that serve this BackendService. */
|
| + core.List<Backend> backends;
|
| +
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + core.String creationTimestamp;
|
| +
|
| + /**
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| */
|
| core.String description;
|
|
|
| /**
|
| + * Fingerprint of this resource. A hash of the contents stored in this object.
|
| + * This field is used in optimistic locking. This field will be ignored when
|
| + * inserting a BackendService. An up-to-date fingerprint must be provided in
|
| + * order to update the BackendService.
|
| + */
|
| + core.String fingerprint;
|
| +
|
| + core.List<core.int> get fingerprintAsBytes {
|
| + return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| + }
|
| +
|
| + void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| + fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + }
|
| +
|
| + /**
|
| + * The list of URLs to the HttpHealthCheck resource for health checking this
|
| + * BackendService. Currently at most one health check can be specified, and a
|
| + * health check is required.
|
| + */
|
| + core.List<core.String> healthChecks;
|
| +
|
| + /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
| @@ -7801,31 +9257,39 @@ class Address {
|
| core.String name;
|
|
|
| /**
|
| - * URL of the region where the regional address resides (output only). This
|
| - * field is not applicable to global addresses.
|
| + * Deprecated in favor of port_name. The TCP port to connect on the backend.
|
| + * The default value is 80.
|
| + */
|
| + core.int port;
|
| +
|
| + /**
|
| + * Name of backend port. The same name should appear in the resource views
|
| + * referenced by this service. Required.
|
| + */
|
| + core.String portName;
|
| +
|
| + /**
|
| + *
|
| + * Possible string values are:
|
| + * - "HTTP"
|
| */
|
| - core.String region;
|
| + core.String protocol;
|
|
|
| /** Server defined URL for the resource (output only). */
|
| core.String selfLink;
|
|
|
| /**
|
| - * The status of the address (output only).
|
| - * Possible string values are:
|
| - * - "IN_USE"
|
| - * - "RESERVED"
|
| + * How many seconds to wait for the backend before considering it a failed
|
| + * request. Default is 30 seconds.
|
| */
|
| - core.String status;
|
| -
|
| - /** The resources that are using this address resource. */
|
| - core.List<core.String> users;
|
| + core.int timeoutSec;
|
|
|
|
|
| - Address();
|
| + BackendService();
|
|
|
| - Address.fromJson(core.Map _json) {
|
| - if (_json.containsKey("address")) {
|
| - address = _json["address"];
|
| + BackendService.fromJson(core.Map _json) {
|
| + if (_json.containsKey("backends")) {
|
| + backends = _json["backends"].map((value) => new Backend.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| @@ -7833,6 +9297,12 @@ class Address {
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("fingerprint")) {
|
| + fingerprint = _json["fingerprint"];
|
| + }
|
| + if (_json.containsKey("healthChecks")) {
|
| + healthChecks = _json["healthChecks"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -7842,24 +9312,27 @@ class Address {
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("region")) {
|
| - region = _json["region"];
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| + }
|
| + if (_json.containsKey("protocol")) {
|
| + protocol = _json["protocol"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| - }
|
| - if (_json.containsKey("users")) {
|
| - users = _json["users"];
|
| + if (_json.containsKey("timeoutSec")) {
|
| + timeoutSec = _json["timeoutSec"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (address != null) {
|
| - _json["address"] = address;
|
| + if (backends != null) {
|
| + _json["backends"] = backends.map((value) => (value).toJson()).toList();
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| @@ -7867,6 +9340,12 @@ class Address {
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (fingerprint != null) {
|
| + _json["fingerprint"] = fingerprint;
|
| + }
|
| + if (healthChecks != null) {
|
| + _json["healthChecks"] = healthChecks;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -7876,94 +9355,66 @@ class Address {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| + }
|
| + if (protocol != null) {
|
| + _json["protocol"] = protocol;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| - }
|
| - if (users != null) {
|
| - _json["users"] = users;
|
| + if (timeoutSec != null) {
|
| + _json["timeoutSec"] = timeoutSec;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class AddressAggregatedList {
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /** A map of scoped address lists. */
|
| - core.Map<core.String, AddressesScopedList> items;
|
| +class BackendServiceGroupHealth {
|
| + core.List<HealthStatus> healthStatus;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
|
|
| - /** A token used to continue a truncated list request (output only). */
|
| - core.String nextPageToken;
|
| -
|
| - /** Server defined URL for this resource (output only). */
|
| - core.String selfLink;
|
| -
|
|
|
| - AddressAggregatedList();
|
| + BackendServiceGroupHealth();
|
|
|
| - AddressAggregatedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new AddressesScopedList.fromJson(item));
|
| + BackendServiceGroupHealth.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthStatus")) {
|
| + healthStatus = _json["healthStatus"].map((value) => new HealthStatus.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"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + if (healthStatus != null) {
|
| + _json["healthStatus"] = healthStatus.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;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of address resources. */
|
| -class AddressList {
|
| +/** Contains a list of BackendService resources. */
|
| +class BackendServiceList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of Address resources. */
|
| - core.List<Address> items;
|
| + /** A list of BackendService resources. */
|
| + core.List<BackendService> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -7971,18 +9422,18 @@ class AddressList {
|
| /** A token used to continue a truncated list request (output only). */
|
| core.String nextPageToken;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** Server defined URL for this resource (output only). */
|
| core.String selfLink;
|
|
|
|
|
| - AddressList();
|
| + BackendServiceList();
|
|
|
| - AddressList.fromJson(core.Map _json) {
|
| + BackendServiceList.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 BackendService.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -8017,222 +9468,222 @@ class AddressList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class AddressesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| -
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| -
|
| - AddressesScopedListWarningData();
|
| +/** Deprecation status for a public resource. */
|
| +class DeprecationStatus {
|
| + /**
|
| + * An optional RFC3339 timestamp on or after which the deprecation state of
|
| + * this resource will be changed to DELETED.
|
| + */
|
| + core.String deleted;
|
|
|
| - AddressesScopedListWarningData.fromJson(core.Map _json) {
|
| - if (_json.containsKey("key")) {
|
| - key = _json["key"];
|
| - }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| - }
|
| - }
|
| + /**
|
| + * An optional RFC3339 timestamp on or after which the deprecation state of
|
| + * this resource will be changed to DEPRECATED.
|
| + */
|
| + core.String deprecated;
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| - }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| + /**
|
| + * An optional RFC3339 timestamp on or after which the deprecation state of
|
| + * this resource will be changed to OBSOLETE.
|
| + */
|
| + core.String obsolete;
|
|
|
| + /**
|
| + * The URL of the suggested replacement for a deprecated resource. The
|
| + * suggested replacement resource must be the same kind of resource as the
|
| + * deprecated resource.
|
| + */
|
| + core.String replacement;
|
|
|
| -/**
|
| - * Informational warning which replaces the list of addresses when the list is
|
| - * empty.
|
| - */
|
| -class AddressesScopedListWarning {
|
| /**
|
| - * The warning type identifier for this warning.
|
| + * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE,
|
| + * or DELETED. Operations which create a new resource using a DEPRECATED
|
| + * resource will return successfully, but with a warning indicating the
|
| + * deprecated resource and recommending its replacement. Operations which use
|
| + * OBSOLETE or DELETED resources will be rejected and result in an error.
|
| * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| + * - "DELETED"
|
| + * - "DEPRECATED"
|
| + * - "OBSOLETE"
|
| */
|
| - core.String code;
|
| -
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<AddressesScopedListWarningData> data;
|
| -
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| -
|
| + core.String state;
|
|
|
| - 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"];
|
| - }
|
| - }
|
| + DeprecationStatus();
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (code != null) {
|
| - _json["code"] = code;
|
| + DeprecationStatus.fromJson(core.Map _json) {
|
| + if (_json.containsKey("deleted")) {
|
| + deleted = _json["deleted"];
|
| }
|
| - if (data != null) {
|
| - _json["data"] = data.map((value) => (value).toJson()).toList();
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = _json["deprecated"];
|
| }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| + if (_json.containsKey("obsolete")) {
|
| + obsolete = _json["obsolete"];
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class AddressesScopedList {
|
| - /** List of addresses contained in this scope. */
|
| - core.List<Address> addresses;
|
| -
|
| - /**
|
| - * 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("replacement")) {
|
| + replacement = _json["replacement"];
|
| }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new AddressesScopedListWarning.fromJson(_json["warning"]);
|
| + if (_json.containsKey("state")) {
|
| + state = _json["state"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (addresses != null) {
|
| - _json["addresses"] = addresses.map((value) => (value).toJson()).toList();
|
| + if (deleted != null) {
|
| + _json["deleted"] = deleted;
|
| }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = deprecated;
|
| + }
|
| + if (obsolete != null) {
|
| + _json["obsolete"] = obsolete;
|
| + }
|
| + if (replacement != null) {
|
| + _json["replacement"] = replacement;
|
| + }
|
| + if (state != null) {
|
| + _json["state"] = state;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** An instance-attached disk resource. */
|
| -class AttachedDisk {
|
| +/** A Disk resource. */
|
| +class Disk {
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
| +
|
| /**
|
| - * Whether the disk will be auto-deleted when the instance is deleted (but not
|
| - * when the disk is detached from the instance).
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| */
|
| - core.bool autoDelete;
|
| + core.String description;
|
|
|
| /**
|
| - * Indicates that this is a boot disk. VM will use the first partition of the
|
| - * disk for its root filesystem.
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| - core.bool boot;
|
| + core.String id;
|
| +
|
| + /** [Output Only] Type of the resource. Always compute#disk for disks. */
|
| + core.String kind;
|
| +
|
| + /** Any applicable publicly visible licenses. */
|
| + core.List<core.String> licenses;
|
|
|
| /**
|
| - * Persistent disk only; must be unique within the instance when specified.
|
| - * This represents a unique device name that is reflected into the /dev/ tree
|
| - * of a Linux operating system running within the instance. If not specified,
|
| - * a default will be chosen by the system.
|
| + * 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 deviceName;
|
| + core.String name;
|
| +
|
| + /** Internal use only. */
|
| + core.String options;
|
| +
|
| + /** [Output Only] Server-defined fully-qualified URL for this resource. */
|
| + core.String selfLink;
|
|
|
| /**
|
| - * A zero-based index to assign to this disk, where 0 is reserved for the boot
|
| - * disk. If not specified, the server will choose an appropriate value (output
|
| - * only).
|
| + * Size of the persistent disk, specified in GB. You can specify this field
|
| + * when creating a persistent disk using the sourceImage or sourceSnapshot
|
| + * parameter, or specify it alone to create an empty persistent disk.
|
| + *
|
| + * If you specify this field along with sourceImage or sourceSnapshot, the
|
| + * value of sizeGb must not be less than the size of the sourceImage or the
|
| + * size of the snapshot.
|
| */
|
| - core.int index;
|
| + core.String sizeGb;
|
|
|
| - /** Initialization parameters. */
|
| - AttachedDiskInitializeParams initializeParams;
|
| + /**
|
| + * The source image used to create this disk. If the source image is deleted
|
| + * from the system, this field will not be set, even if an image with the same
|
| + * name has been re-created.
|
| + *
|
| + * When creating a disk, you can provide a private (custom) image using the
|
| + * following input, 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;
|
|
|
| /**
|
| - * Not documented yet.
|
| - * Possible string values are:
|
| - * - "NVME"
|
| - * - "SCSI"
|
| + * The ID value of the image used to create this disk. This value identifies
|
| + * the exact image that was used to create this persistent disk. For example,
|
| + * if you created the persistent disk from an image that was later deleted and
|
| + * recreated under the same name, the source image ID would identify the exact
|
| + * version of the image that was used.
|
| */
|
| - core.String interface;
|
| + core.String sourceImageId;
|
|
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| + /**
|
| + * The source snapshot used to create this disk. You can provide this as a
|
| + * partial or full URL to the resource. For example, the following are valid
|
| + * values:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
|
| + * - projects/project/global/snapshots/snapshot
|
| + * - global/snapshots/snapshot
|
| + */
|
| + core.String sourceSnapshot;
|
|
|
| - /** Public visible licenses. */
|
| - core.List<core.String> licenses;
|
| + /**
|
| + * [Output Only] The unique ID of the snapshot used to create this disk. This
|
| + * value identifies the exact snapshot that was used to create this persistent
|
| + * disk. For example, if you created the persistent disk from a snapshot that
|
| + * was later deleted and recreated under the same name, the source snapshot ID
|
| + * would identify the exact version of the snapshot that was used.
|
| + */
|
| + core.String sourceSnapshotId;
|
|
|
| /**
|
| - * The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
|
| + * [Output Only] The status of disk creation. Applicable statuses includes:
|
| + * CREATING, FAILED, READY, RESTORING.
|
| * Possible string values are:
|
| - * - "READ_ONLY"
|
| - * - "READ_WRITE"
|
| + * - "CREATING"
|
| + * - "FAILED"
|
| + * - "READY"
|
| + * - "RESTORING"
|
| */
|
| - core.String mode;
|
| -
|
| - /** Persistent disk only; the URL of the persistent disk resource. */
|
| - core.String source;
|
| + core.String status;
|
|
|
| /**
|
| - * Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent
|
| - * disks must be created before you can specify them here.
|
| - * Possible string values are:
|
| - * - "PERSISTENT"
|
| - * - "SCRATCH"
|
| + * URL of the disk type resource describing which disk type to use to create
|
| + * the disk; provided by the client when the disk is created.
|
| */
|
| core.String type;
|
|
|
| + /** [Output Only] URL of the zone where the disk resides. */
|
| + core.String zone;
|
|
|
| - 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"];
|
| + Disk();
|
| +
|
| + Disk.fromJson(core.Map _json) {
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("initializeParams")) {
|
| - initializeParams = new AttachedDiskInitializeParams.fromJson(_json["initializeParams"]);
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| - if (_json.containsKey("interface")) {
|
| - interface = _json["interface"];
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -8240,36 +9691,51 @@ class AttachedDisk {
|
| if (_json.containsKey("licenses")) {
|
| licenses = _json["licenses"];
|
| }
|
| - if (_json.containsKey("mode")) {
|
| - mode = _json["mode"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| }
|
| - if (_json.containsKey("source")) {
|
| - source = _json["source"];
|
| + if (_json.containsKey("options")) {
|
| + options = _json["options"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("sizeGb")) {
|
| + sizeGb = _json["sizeGb"];
|
| + }
|
| + if (_json.containsKey("sourceImage")) {
|
| + sourceImage = _json["sourceImage"];
|
| + }
|
| + if (_json.containsKey("sourceImageId")) {
|
| + sourceImageId = _json["sourceImageId"];
|
| + }
|
| + if (_json.containsKey("sourceSnapshot")) {
|
| + sourceSnapshot = _json["sourceSnapshot"];
|
| + }
|
| + if (_json.containsKey("sourceSnapshotId")) {
|
| + sourceSnapshotId = _json["sourceSnapshotId"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| }
|
| if (_json.containsKey("type")) {
|
| type = _json["type"];
|
| }
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| + }
|
| }
|
|
|
| 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 (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (initializeParams != null) {
|
| - _json["initializeParams"] = (initializeParams).toJson();
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| }
|
| - if (interface != null) {
|
| - _json["interface"] = interface;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -8277,287 +9743,271 @@ class AttachedDisk {
|
| if (licenses != null) {
|
| _json["licenses"] = licenses;
|
| }
|
| - if (mode != null) {
|
| - _json["mode"] = mode;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| }
|
| - if (source != null) {
|
| - _json["source"] = source;
|
| + if (options != null) {
|
| + _json["options"] = options;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (sizeGb != null) {
|
| + _json["sizeGb"] = sizeGb;
|
| + }
|
| + if (sourceImage != null) {
|
| + _json["sourceImage"] = sourceImage;
|
| + }
|
| + if (sourceImageId != null) {
|
| + _json["sourceImageId"] = sourceImageId;
|
| + }
|
| + if (sourceSnapshot != null) {
|
| + _json["sourceSnapshot"] = sourceSnapshot;
|
| + }
|
| + if (sourceSnapshotId != null) {
|
| + _json["sourceSnapshotId"] = sourceSnapshotId;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class DiskAggregatedList {
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| + */
|
| + core.String id;
|
| +
|
| + /** [Output Only] A map of scoped disk lists. */
|
| + core.Map<core.String, DisksScopedList> items;
|
| +
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#diskAggregatedList for
|
| + * aggregated lists of persistent disks.
|
| + */
|
| + 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;
|
| +
|
| +
|
| + DiskAggregatedList();
|
| +
|
| + DiskAggregatedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("items")) {
|
| + items = commons.mapMap(_json["items"], (item) => new DisksScopedList.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 (type != null) {
|
| - _json["type"] = type;
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * Initialization parameters for the new disk (input-only). Can only be
|
| - * specified on the boot disk or local SSDs. Mutually exclusive with 'source'.
|
| - */
|
| -class AttachedDiskInitializeParams {
|
| +/** A list of Disk resources. */
|
| +class DiskList {
|
| /**
|
| - * Name of the disk (when not provided defaults to the name of the instance).
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| - core.String diskName;
|
| + core.String id;
|
|
|
| - /** Size of the disk in base-2 GB. */
|
| - core.String diskSizeGb;
|
| + /** [Output Only] A list of persistent disks. */
|
| + core.List<Disk> items;
|
|
|
| /**
|
| - * URL of the disk type resource describing which disk type to use to create
|
| - * the disk; provided by the client when the disk is created.
|
| + * [Output Only] Type of resource. Always compute#diskList for lists of disks.
|
| */
|
| - core.String diskType;
|
| + core.String kind;
|
|
|
| - /** The source image used to create this disk. */
|
| - core.String sourceImage;
|
| + /** [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;
|
|
|
| - AttachedDiskInitializeParams();
|
|
|
| - AttachedDiskInitializeParams.fromJson(core.Map _json) {
|
| - if (_json.containsKey("diskName")) {
|
| - diskName = _json["diskName"];
|
| + DiskList();
|
| +
|
| + DiskList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("diskSizeGb")) {
|
| - diskSizeGb = _json["diskSizeGb"];
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new Disk.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("diskType")) {
|
| - diskType = _json["diskType"];
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("sourceImage")) {
|
| - sourceImage = _json["sourceImage"];
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (diskName != null) {
|
| - _json["diskName"] = diskName;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (diskSizeGb != null) {
|
| - _json["diskSizeGb"] = diskSizeGb;
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| - if (diskType != null) {
|
| - _json["diskType"] = diskType;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| - if (sourceImage != null) {
|
| - _json["sourceImage"] = sourceImage;
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Message containing information of one individual backend. */
|
| -class Backend {
|
| - /**
|
| - * The balancing mode of this backend, default is UTILIZATION.
|
| - * Possible string values are:
|
| - * - "RATE"
|
| - * - "UTILIZATION"
|
| - */
|
| - core.String balancingMode;
|
| -
|
| - /**
|
| - * The multiplier (a value between 0 and 1e6) 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, 1e6].
|
| - */
|
| - core.double capacityScaler;
|
| -
|
| - /**
|
| - * An optional textual description of the resource, which is 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.
|
| - */
|
| - core.String group;
|
| -
|
| - /**
|
| - * The max RPS of the group. Can be used with either balancing mode, but
|
| - * required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance
|
| - * must be set.
|
| - */
|
| - core.int maxRate;
|
| -
|
| +class DiskMoveRequest {
|
| /**
|
| - * The max RPS that a single backed instance can handle. This is used to
|
| - * calculate the capacity of the group. Can be used in either balancing mode.
|
| - * For RATE mode, either maxRate or maxRatePerInstance must be set.
|
| + * The URL of the destination zone to move the disk to. This can be a full or
|
| + * partial URL. For example, the following are all valid URLs to a zone:
|
| + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone
|
| + * - projects/project/zones/zone
|
| + * - zones/zone
|
| */
|
| - core.double maxRatePerInstance;
|
| + core.String destinationZone;
|
|
|
| /**
|
| - * 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].
|
| + * The URL of the target disk to move. This can be a full or partial URL. For
|
| + * example, the following are all valid URLs to a disk:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
|
| + * - projects/project/zones/zone/disks/disk
|
| + * - zones/zone/disks/disk
|
| */
|
| - core.double maxUtilization;
|
| + core.String targetDisk;
|
|
|
|
|
| - Backend();
|
| + DiskMoveRequest();
|
|
|
| - Backend.fromJson(core.Map _json) {
|
| - if (_json.containsKey("balancingMode")) {
|
| - balancingMode = _json["balancingMode"];
|
| - }
|
| - if (_json.containsKey("capacityScaler")) {
|
| - capacityScaler = _json["capacityScaler"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("group")) {
|
| - group = _json["group"];
|
| - }
|
| - if (_json.containsKey("maxRate")) {
|
| - maxRate = _json["maxRate"];
|
| + DiskMoveRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("destinationZone")) {
|
| + destinationZone = _json["destinationZone"];
|
| }
|
| - if (_json.containsKey("maxRatePerInstance")) {
|
| - maxRatePerInstance = _json["maxRatePerInstance"];
|
| - }
|
| - if (_json.containsKey("maxUtilization")) {
|
| - maxUtilization = _json["maxUtilization"];
|
| + if (_json.containsKey("targetDisk")) {
|
| + targetDisk = _json["targetDisk"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (balancingMode != null) {
|
| - _json["balancingMode"] = balancingMode;
|
| - }
|
| - if (capacityScaler != null) {
|
| - _json["capacityScaler"] = capacityScaler;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (group != null) {
|
| - _json["group"] = group;
|
| + if (destinationZone != null) {
|
| + _json["destinationZone"] = destinationZone;
|
| }
|
| - if (maxRate != null) {
|
| - _json["maxRate"] = maxRate;
|
| - }
|
| - if (maxRatePerInstance != null) {
|
| - _json["maxRatePerInstance"] = maxRatePerInstance;
|
| - }
|
| - if (maxUtilization != null) {
|
| - _json["maxUtilization"] = maxUtilization;
|
| + if (targetDisk != null) {
|
| + _json["targetDisk"] = targetDisk;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A BackendService resource. This resource defines a group of backend VMs
|
| - * together with their serving capacity.
|
| - */
|
| -class BackendService {
|
| - /** The list of backends that serve this BackendService. */
|
| - core.List<Backend> backends;
|
| -
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +/** A disk type resource. */
|
| +class DiskType {
|
| + /** [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;
|
| -
|
| - /**
|
| - * Fingerprint of this resource. A hash of the contents stored in this object.
|
| - * This field is used in optimistic locking. This field will be ignored when
|
| - * inserting a BackendService. An up-to-date fingerprint must be provided in
|
| - * order to update the BackendService.
|
| - */
|
| - core.String fingerprint;
|
| + /** [Output Only] Server defined default disk size in GB. */
|
| + core.String defaultDiskSizeGb;
|
|
|
| - core.List<core.int> get fingerprintAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| - }
|
| + /** [Output Only] The deprecation status associated with this disk type. */
|
| + DeprecationStatus deprecated;
|
|
|
| - void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| - fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| - }
|
| + /** [Output Only] An optional textual description of the resource. */
|
| + core.String description;
|
|
|
| /**
|
| - * The list of URLs to the HttpHealthCheck resource for health checking this
|
| - * BackendService. Currently at most one health check can be specified, and a
|
| - * health check is required.
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| - core.List<core.String> healthChecks;
|
| + core.String id;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * [Output Only] Type of the resource. Always compute#diskType for disk types.
|
| */
|
| - core.String id;
|
| -
|
| - /** 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.
|
| - */
|
| + /** [Output Only] Name of the resource. */
|
| core.String name;
|
|
|
| - /**
|
| - * Deprecated in favor of port_name. The TCP port to connect on the backend.
|
| - * The default value is 80.
|
| - */
|
| - core.int port;
|
| -
|
| - /**
|
| - * Name of backend port. The same name should appear in the resource views
|
| - * referenced by this service. Required.
|
| - */
|
| - core.String portName;
|
| -
|
| - /**
|
| - * Not documented yet.
|
| - * Possible string values are:
|
| - * - "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
|
| - * request. Default is 30 seconds.
|
| + * [Output Only] An optional textual description of the valid disk size, such
|
| + * as "10GB-10TB".
|
| */
|
| - core.int timeoutSec;
|
| + core.String validDiskSize;
|
|
|
| + /** [Output Only] URL of the zone where the disk type resides. */
|
| + core.String zone;
|
|
|
| - BackendService();
|
|
|
| - BackendService.fromJson(core.Map _json) {
|
| - if (_json.containsKey("backends")) {
|
| - backends = _json["backends"].map((value) => new Backend.fromJson(value)).toList();
|
| - }
|
| + DiskType();
|
| +
|
| + DiskType.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| + if (_json.containsKey("defaultDiskSizeGb")) {
|
| + defaultDiskSizeGb = _json["defaultDiskSizeGb"];
|
| }
|
| - if (_json.containsKey("fingerprint")) {
|
| - fingerprint = _json["fingerprint"];
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| }
|
| - if (_json.containsKey("healthChecks")) {
|
| - healthChecks = _json["healthChecks"];
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -8565,42 +10015,33 @@ class BackendService {
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("port")) {
|
| - port = _json["port"];
|
| - }
|
| - if (_json.containsKey("portName")) {
|
| - portName = _json["portName"];
|
| - }
|
| - if (_json.containsKey("protocol")) {
|
| - protocol = _json["protocol"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("timeoutSec")) {
|
| - timeoutSec = _json["timeoutSec"];
|
| + if (_json.containsKey("validDiskSize")) {
|
| + validDiskSize = _json["validDiskSize"];
|
| + }
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (backends != null) {
|
| - _json["backends"] = backends.map((value) => (value).toJson()).toList();
|
| - }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| + if (defaultDiskSizeGb != null) {
|
| + _json["defaultDiskSizeGb"] = defaultDiskSizeGb;
|
| }
|
| - if (fingerprint != null) {
|
| - _json["fingerprint"] = fingerprint;
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = (deprecated).toJson();
|
| }
|
| - if (healthChecks != null) {
|
| - _json["healthChecks"] = healthChecks;
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -8611,87 +10052,111 @@ class BackendService {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (port != null) {
|
| - _json["port"] = port;
|
| - }
|
| - if (portName != null) {
|
| - _json["portName"] = portName;
|
| - }
|
| - if (protocol != null) {
|
| - _json["protocol"] = protocol;
|
| - }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (timeoutSec != null) {
|
| - _json["timeoutSec"] = timeoutSec;
|
| + if (validDiskSize != null) {
|
| + _json["validDiskSize"] = validDiskSize;
|
| + }
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class BackendServiceGroupHealth {
|
| - /** Not documented yet. */
|
| - core.List<HealthStatus> healthStatus;
|
| +class DiskTypeAggregatedList {
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| + */
|
| + core.String id;
|
|
|
| - /** Type of resource. */
|
| + /** [Output Only] A map of scoped disk type lists. */
|
| + core.Map<core.String, DiskTypesScopedList> items;
|
| +
|
| + /** [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */
|
| core.String kind;
|
|
|
| + /** [Output Only] A token used to continue a truncated list request. */
|
| + core.String nextPageToken;
|
|
|
| - BackendServiceGroupHealth();
|
| + /** [Output Only] Server defined URL for this resource. */
|
| + core.String selfLink;
|
|
|
| - BackendServiceGroupHealth.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthStatus")) {
|
| - healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJson(value)).toList();
|
| +
|
| + DiskTypeAggregatedList();
|
| +
|
| + DiskTypeAggregatedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("items")) {
|
| + items = commons.mapMap(_json["items"], (item) => new DiskTypesScopedList.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 (healthStatus != null) {
|
| - _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList();
|
| + 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 BackendService resources. */
|
| -class BackendServiceList {
|
| +/** Contains a list of disk type resources. */
|
| +class DiskTypeList {
|
| /**
|
| - * 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;
|
| + /** [Output Only] A list of Disk Type resources. */
|
| + core.List<DiskType> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#diskTypeList for disk types.
|
| + */
|
| 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();
|
| + DiskTypeList();
|
|
|
| - BackendServiceList.fromJson(core.Map _json) {
|
| + DiskTypeList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new BackendService.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new DiskType.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -8726,367 +10191,499 @@ class BackendServiceList {
|
| }
|
|
|
|
|
| -/** Deprecation status for a public resource. */
|
| -class DeprecationStatus {
|
| +class DiskTypesScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
| +
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
| +
|
| +
|
| + DiskTypesScopedListWarningData();
|
| +
|
| + DiskTypesScopedListWarningData.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 disk types
|
| + * when the list is empty.
|
| + */
|
| +class DiskTypesScopedListWarning {
|
| /**
|
| - * An optional RFC3339 timestamp on or after which the deprecation state of
|
| - * this resource will be changed to DELETED.
|
| + * [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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| */
|
| - core.String deleted;
|
| + core.String code;
|
| +
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<DiskTypesScopedListWarningData> data;
|
| +
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
| +
|
| +
|
| + DiskTypesScopedListWarning();
|
| +
|
| + DiskTypesScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new DiskTypesScopedListWarningData.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 DiskTypesScopedList {
|
| + /** [Output Only] List of disk types contained in this scope. */
|
| + core.List<DiskType> diskTypes;
|
| +
|
| + /**
|
| + * [Output Only] Informational warning which replaces the list of disk types
|
| + * when the list is empty.
|
| + */
|
| + DiskTypesScopedListWarning warning;
|
| +
|
| +
|
| + DiskTypesScopedList();
|
| +
|
| + DiskTypesScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("diskTypes")) {
|
| + diskTypes = _json["diskTypes"].map((value) => new DiskType.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("warning")) {
|
| + warning = new DiskTypesScopedListWarning.fromJson(_json["warning"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (diskTypes != null) {
|
| + _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class DisksScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
| +
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
| +
|
| +
|
| + DisksScopedListWarningData();
|
| +
|
| + DisksScopedListWarningData.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;
|
| + }
|
| +}
|
|
|
| - /**
|
| - * An optional RFC3339 timestamp on or after which the deprecation state of
|
| - * this resource will be changed to DEPRECATED.
|
| - */
|
| - core.String deprecated;
|
|
|
| +/**
|
| + * [Output Only] Informational warning which replaces the list of disks when the
|
| + * list is empty.
|
| + */
|
| +class DisksScopedListWarning {
|
| /**
|
| - * An optional RFC3339 timestamp on or after which the deprecation state of
|
| - * this resource will be changed to OBSOLETE.
|
| + * [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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| */
|
| - core.String obsolete;
|
| + core.String code;
|
|
|
| - /**
|
| - * A URL of the suggested replacement for the deprecated resource. The
|
| - * deprecated resource and its replacement must be resources of the same kind.
|
| - */
|
| - core.String replacement;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<DisksScopedListWarningData> data;
|
|
|
| - /**
|
| - * The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED".
|
| - * Operations which create a new resource using a "DEPRECATED" resource will
|
| - * return successfully, but with a warning indicating the deprecated resource
|
| - * and recommending its replacement. New uses of "OBSOLETE" or "DELETED"
|
| - * resources will result in an error.
|
| - * Possible string values are:
|
| - * - "DELETED"
|
| - * - "DEPRECATED"
|
| - * - "OBSOLETE"
|
| - */
|
| - core.String state;
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
|
|
| - DeprecationStatus();
|
| + DisksScopedListWarning();
|
|
|
| - DeprecationStatus.fromJson(core.Map _json) {
|
| - if (_json.containsKey("deleted")) {
|
| - deleted = _json["deleted"];
|
| - }
|
| - if (_json.containsKey("deprecated")) {
|
| - deprecated = _json["deprecated"];
|
| - }
|
| - if (_json.containsKey("obsolete")) {
|
| - obsolete = _json["obsolete"];
|
| + DisksScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("replacement")) {
|
| - replacement = _json["replacement"];
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new DisksScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("state")) {
|
| - state = _json["state"];
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (deleted != null) {
|
| - _json["deleted"] = deleted;
|
| - }
|
| - if (deprecated != null) {
|
| - _json["deprecated"] = deprecated;
|
| - }
|
| - if (obsolete != null) {
|
| - _json["obsolete"] = obsolete;
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (replacement != null) {
|
| - _json["replacement"] = replacement;
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| }
|
| - if (state != null) {
|
| - _json["state"] = state;
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A persistent disk resource. */
|
| -class Disk {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| -
|
| - /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| - */
|
| - core.String description;
|
| -
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| -
|
| - /** Public visible licenses. */
|
| - core.List<core.String> licenses;
|
| +class DisksScopedList {
|
| + /** [Output Only] List of disks contained in this scope. */
|
| + core.List<Disk> disks;
|
|
|
| /**
|
| - * 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.
|
| + * [Output Only] Informational warning which replaces the list of disks when
|
| + * the list is empty.
|
| */
|
| - core.String name;
|
| -
|
| - /** Internal use only. */
|
| - core.String options;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| + DisksScopedListWarning warning;
|
|
|
| - /**
|
| - * Size of the persistent disk, specified in GB. This parameter is optional
|
| - * when creating a disk from a disk image or a snapshot, otherwise it is
|
| - * required.
|
| - */
|
| - core.String sizeGb;
|
|
|
| - /** The source image used to create this disk. */
|
| - core.String sourceImage;
|
| + DisksScopedList();
|
|
|
| - /**
|
| - * The 'id' value of the image used to create this disk. This value may be
|
| - * used to determine whether the disk was created from the current or a
|
| - * previous instance of a given image.
|
| - */
|
| - core.String sourceImageId;
|
| + DisksScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("disks")) {
|
| + disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("warning")) {
|
| + warning = new DisksScopedListWarning.fromJson(_json["warning"]);
|
| + }
|
| + }
|
|
|
| - /** The source snapshot used to create this disk. */
|
| - core.String sourceSnapshot;
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (disks != null) {
|
| + _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
|
|
| - /**
|
| - * The 'id' value of the snapshot used to create this disk. This value may be
|
| - * used to determine whether the disk was created from the current or a
|
| - * previous instance of a given disk snapshot.
|
| - */
|
| - core.String sourceSnapshotId;
|
|
|
| +class FirewallAllowed {
|
| /**
|
| - * The status of disk creation (output only).
|
| - * Possible string values are:
|
| - * - "CREATING"
|
| - * - "FAILED"
|
| - * - "READY"
|
| - * - "RESTORING"
|
| + * The IP protocol that is allowed for this rule. The protocol type is
|
| + * required when creating a firewall. This value can either be one of the
|
| + * following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or
|
| + * the IP protocol number.
|
| */
|
| - core.String status;
|
| + core.String IPProtocol;
|
|
|
| /**
|
| - * URL of the disk type resource describing which disk type to use to create
|
| - * the disk; provided by the client when the disk is created.
|
| + * An optional list of ports which are allowed. This field is only applicable
|
| + * for UDP or TCP protocol. Each entry must be either an integer or a range.
|
| + * If not specified, connections through any port are allowed
|
| + *
|
| + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
|
| */
|
| - core.String type;
|
| -
|
| - /** URL of the zone where the disk resides (output only). */
|
| - core.String zone;
|
| + core.List<core.String> ports;
|
|
|
|
|
| - Disk();
|
| + FirewallAllowed();
|
|
|
| - Disk.fromJson(core.Map _json) {
|
| - 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("licenses")) {
|
| - licenses = _json["licenses"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("options")) {
|
| - options = _json["options"];
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| - }
|
| - if (_json.containsKey("sizeGb")) {
|
| - sizeGb = _json["sizeGb"];
|
| - }
|
| - if (_json.containsKey("sourceImage")) {
|
| - sourceImage = _json["sourceImage"];
|
| - }
|
| - if (_json.containsKey("sourceImageId")) {
|
| - sourceImageId = _json["sourceImageId"];
|
| - }
|
| - if (_json.containsKey("sourceSnapshot")) {
|
| - sourceSnapshot = _json["sourceSnapshot"];
|
| - }
|
| - if (_json.containsKey("sourceSnapshotId")) {
|
| - sourceSnapshotId = _json["sourceSnapshotId"];
|
| - }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| - }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| + FirewallAllowed.fromJson(core.Map _json) {
|
| + if (_json.containsKey("IPProtocol")) {
|
| + IPProtocol = _json["IPProtocol"];
|
| }
|
| - if (_json.containsKey("zone")) {
|
| - zone = _json["zone"];
|
| + if (_json.containsKey("ports")) {
|
| + ports = _json["ports"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - 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 (licenses != null) {
|
| - _json["licenses"] = licenses;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (options != null) {
|
| - _json["options"] = options;
|
| - }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| - }
|
| - if (sizeGb != null) {
|
| - _json["sizeGb"] = sizeGb;
|
| - }
|
| - if (sourceImage != null) {
|
| - _json["sourceImage"] = sourceImage;
|
| - }
|
| - if (sourceImageId != null) {
|
| - _json["sourceImageId"] = sourceImageId;
|
| - }
|
| - if (sourceSnapshot != null) {
|
| - _json["sourceSnapshot"] = sourceSnapshot;
|
| - }
|
| - if (sourceSnapshotId != null) {
|
| - _json["sourceSnapshotId"] = sourceSnapshotId;
|
| - }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| - }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| + if (IPProtocol != null) {
|
| + _json["IPProtocol"] = IPProtocol;
|
| }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (ports != null) {
|
| + _json["ports"] = ports;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class DiskAggregatedList {
|
| +/** A Firewall resource. */
|
| +class Firewall {
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * The list of rules specified by this firewall. Each rule specifies a
|
| + * protocol and port-range tuple that describes a permitted connection.
|
| */
|
| - core.String id;
|
| + core.List<FirewallAllowed> allowed;
|
|
|
| - /** A map of scoped disk lists. */
|
| - core.Map<core.String, DisksScopedList> items;
|
| + /** [Output Only] Creation timestamp in RFC3339text format. */
|
| + core.String creationTimestamp;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * 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 Ony] Type of the resource. Always compute#firewall for firewall
|
| + * rules.
|
| + */
|
| core.String kind;
|
|
|
| - /** A token used to continue a truncated list request (output only). */
|
| - core.String nextPageToken;
|
| + /**
|
| + * 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 this resource (output only). */
|
| + /**
|
| + * URL of the network resource for this firewall rule. This field is required
|
| + * for creating an instance but optional when creating a firewall rule. If not
|
| + * specified when creating a firewall rule, the default network is used:
|
| + * global/networks/default
|
| + * If you choose to specify this property, you can specify the network as a
|
| + * full or partial URL. For example, the following are all valid URLs:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network
|
| + * - projects/myproject/global/networks/my-network
|
| + * - global/networks/default
|
| + */
|
| + core.String network;
|
| +
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| + /**
|
| + * The IP address blocks that this rule applies to, expressed in CIDR format.
|
| + * 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.
|
| + */
|
| + core.List<core.String> sourceRanges;
|
|
|
| - DiskAggregatedList();
|
| + /**
|
| + * A list of instance tags which this rule applies to. 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.
|
| + */
|
| + core.List<core.String> sourceTags;
|
|
|
| - DiskAggregatedList.fromJson(core.Map _json) {
|
| + /**
|
| + * A list of instance tags indicating sets of instances located on network
|
| + * which may make network connections as specified in allowed[]. If no
|
| + * targetTags are specified, the firewall rule applies to all instances on the
|
| + * specified network.
|
| + */
|
| + core.List<core.String> targetTags;
|
| +
|
| +
|
| + Firewall();
|
| +
|
| + Firewall.fromJson(core.Map _json) {
|
| + if (_json.containsKey("allowed")) {
|
| + allowed = _json["allowed"].map((value) => new FirewallAllowed.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| - if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new DisksScopedList.fromJson(item));
|
| - }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("network")) {
|
| + network = _json["network"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| + if (_json.containsKey("sourceRanges")) {
|
| + sourceRanges = _json["sourceRanges"];
|
| + }
|
| + if (_json.containsKey("sourceTags")) {
|
| + sourceTags = _json["sourceTags"];
|
| + }
|
| + if (_json.containsKey("targetTags")) {
|
| + targetTags = _json["targetTags"];
|
| + }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (allowed != null) {
|
| + _json["allowed"] = allowed.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| - }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (network != null) {
|
| + _json["network"] = network;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| + if (sourceRanges != null) {
|
| + _json["sourceRanges"] = sourceRanges;
|
| + }
|
| + if (sourceTags != null) {
|
| + _json["sourceTags"] = sourceTags;
|
| + }
|
| + if (targetTags != null) {
|
| + _json["targetTags"] = targetTags;
|
| + }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of persistent disk resources. */
|
| -class DiskList {
|
| +/** Contains a list of Firewall resources. */
|
| +class FirewallList {
|
| /**
|
| - * 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 Disk resources. */
|
| - core.List<Disk> items;
|
| + /** [Output Only] A list of Firewall resources. */
|
| + core.List<Firewall> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#firewallList for lists of
|
| + * firewalls.
|
| + */
|
| 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;
|
|
|
|
|
| - DiskList();
|
| + FirewallList();
|
|
|
| - DiskList.fromJson(core.Map _json) {
|
| + FirewallList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Disk.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Firewall.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -9121,18 +10718,40 @@ class DiskList {
|
| }
|
|
|
|
|
| -/** A disk type resource. */
|
| -class DiskType {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| +/**
|
| + * A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
| + * target VMs to forward a packet to if it matches the given [IPAddress,
|
| + * IPProtocol, portRange] tuple.
|
| + */
|
| +class ForwardingRule {
|
| + /**
|
| + * Value of the reserved IP address that this forwarding rule is serving on
|
| + * behalf of. For global forwarding rules, the address must be a global IP;
|
| + * for regional forwarding rules, the address must live in the same region as
|
| + * the forwarding rule. If left empty (default value), an ephemeral IP from
|
| + * the same scope (global or regional) will be assigned.
|
| + */
|
| + core.String IPAddress;
|
|
|
| - /** Server defined default disk size in gb (output only). */
|
| - core.String defaultDiskSizeGb;
|
| + /**
|
| + * The IP protocol to which this rule applies, valid options are 'TCP', 'UDP',
|
| + * 'ESP', 'AH' or 'SCTP'.
|
| + * Possible string values are:
|
| + * - "AH"
|
| + * - "ESP"
|
| + * - "SCTP"
|
| + * - "TCP"
|
| + * - "UDP"
|
| + */
|
| + core.String IPProtocol;
|
|
|
| - /** The deprecation status associated with this disk type. */
|
| - DeprecationStatus deprecated;
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + core.String creationTimestamp;
|
|
|
| - /** An optional textual description of the resource. */
|
| + /**
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| + */
|
| core.String description;
|
|
|
| /**
|
| @@ -9143,32 +10762,50 @@ class DiskType {
|
| /** Type of the resource. */
|
| core.String kind;
|
|
|
| - /** Name of the resource. */
|
| + /**
|
| + * 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.
|
| + */
|
| 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
|
| + * disjoint port ranges.
|
| + */
|
| + core.String portRange;
|
| +
|
| + /**
|
| + * URL of the region where the regional forwarding rule resides (output only).
|
| + * This field is not applicable to global forwarding rules.
|
| + */
|
| + core.String region;
|
| +
|
| /** Server defined URL for the resource (output only). */
|
| core.String selfLink;
|
|
|
| /**
|
| - * An optional textual descroption of the valid disk size, e.g., "10GB-10TB".
|
| + * 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.
|
| */
|
| - core.String validDiskSize;
|
| -
|
| - /** Url of the zone where the disk type resides (output only). */
|
| - core.String zone;
|
| + core.String target;
|
|
|
|
|
| - DiskType();
|
| + ForwardingRule();
|
|
|
| - DiskType.fromJson(core.Map _json) {
|
| - if (_json.containsKey("creationTimestamp")) {
|
| - creationTimestamp = _json["creationTimestamp"];
|
| + ForwardingRule.fromJson(core.Map _json) {
|
| + if (_json.containsKey("IPAddress")) {
|
| + IPAddress = _json["IPAddress"];
|
| }
|
| - if (_json.containsKey("defaultDiskSizeGb")) {
|
| - defaultDiskSizeGb = _json["defaultDiskSizeGb"];
|
| + if (_json.containsKey("IPProtocol")) {
|
| + IPProtocol = _json["IPProtocol"];
|
| }
|
| - if (_json.containsKey("deprecated")) {
|
| - deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| @@ -9182,27 +10819,30 @@ class DiskType {
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| + if (_json.containsKey("portRange")) {
|
| + portRange = _json["portRange"];
|
| + }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("validDiskSize")) {
|
| - validDiskSize = _json["validDiskSize"];
|
| - }
|
| - if (_json.containsKey("zone")) {
|
| - zone = _json["zone"];
|
| + if (_json.containsKey("target")) {
|
| + target = _json["target"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| + if (IPAddress != null) {
|
| + _json["IPAddress"] = IPAddress;
|
| }
|
| - if (defaultDiskSizeGb != null) {
|
| - _json["defaultDiskSizeGb"] = defaultDiskSizeGb;
|
| + if (IPProtocol != null) {
|
| + _json["IPProtocol"] = IPProtocol;
|
| }
|
| - if (deprecated != null) {
|
| - _json["deprecated"] = (deprecated).toJson();
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| if (description != null) {
|
| _json["description"] = description;
|
| @@ -9216,29 +10856,31 @@ class DiskType {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| + if (portRange != null) {
|
| + _json["portRange"] = portRange;
|
| + }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| + }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (validDiskSize != null) {
|
| - _json["validDiskSize"] = validDiskSize;
|
| - }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (target != null) {
|
| + _json["target"] = target;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class DiskTypeAggregatedList {
|
| +class ForwardingRuleAggregatedList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A map of scoped disk type lists. */
|
| - core.Map<core.String, DiskTypesScopedList> items;
|
| + /** A map of scoped forwarding rule lists. */
|
| + core.Map<core.String, ForwardingRulesScopedList> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -9250,14 +10892,14 @@ class DiskTypeAggregatedList {
|
| core.String selfLink;
|
|
|
|
|
| - DiskTypeAggregatedList();
|
| + ForwardingRuleAggregatedList();
|
|
|
| - DiskTypeAggregatedList.fromJson(core.Map _json) {
|
| + ForwardingRuleAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new DiskTypesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new ForwardingRulesScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -9276,7 +10918,7 @@ class DiskTypeAggregatedList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -9292,15 +10934,15 @@ class DiskTypeAggregatedList {
|
| }
|
|
|
|
|
| -/** Contains a list of disk type resources. */
|
| -class DiskTypeList {
|
| +/** Contains a list of ForwardingRule resources. */
|
| +class ForwardingRuleList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of DiskType resources. */
|
| - core.List<DiskType> items;
|
| + /** A list of ForwardingRule resources. */
|
| + core.List<ForwardingRule> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -9312,14 +10954,14 @@ class DiskTypeList {
|
| core.String selfLink;
|
|
|
|
|
| - DiskTypeList();
|
| + ForwardingRuleList();
|
|
|
| - DiskTypeList.fromJson(core.Map _json) {
|
| + ForwardingRuleList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new DiskType.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new ForwardingRule.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -9354,18 +10996,17 @@ class DiskTypeList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class DiskTypesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| +class ForwardingRulesScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| core.String key;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
|
|
| - DiskTypesScopedListWarningData();
|
| + ForwardingRulesScopedListWarningData();
|
|
|
| - DiskTypesScopedListWarningData.fromJson(core.Map _json) {
|
| + ForwardingRulesScopedListWarningData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -9388,12 +11029,12 @@ class DiskTypesScopedListWarningData {
|
|
|
|
|
| /**
|
| - * Informational warning which replaces the list of disk types when the list is
|
| - * empty.
|
| + * Informational warning which replaces the list of forwarding rules when the
|
| + * list is empty.
|
| */
|
| -class DiskTypesScopedListWarning {
|
| +class ForwardingRulesScopedListWarning {
|
| /**
|
| - * The warning type identifier for this warning.
|
| + * [Output Only] The warning type identifier for this warning.
|
| * Possible string values are:
|
| * - "DEPRECATED_RESOURCE_USED"
|
| * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| @@ -9406,25 +11047,26 @@ class DiskTypesScopedListWarning {
|
| * - "NO_RESULTS_ON_PAGE"
|
| * - "REQUIRED_TOS_AGREEMENT"
|
| * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| * - "UNREACHABLE"
|
| */
|
| core.String code;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<DiskTypesScopedListWarningData> data;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<ForwardingRulesScopedListWarningData> data;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| core.String message;
|
|
|
|
|
| - DiskTypesScopedListWarning();
|
| + ForwardingRulesScopedListWarning();
|
|
|
| - DiskTypesScopedListWarning.fromJson(core.Map _json) {
|
| + ForwardingRulesScopedListWarning.fromJson(core.Map _json) {
|
| if (_json.containsKey("code")) {
|
| code = _json["code"];
|
| }
|
| if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new DiskTypesScopedListWarningData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new ForwardingRulesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -9447,366 +11089,652 @@ class DiskTypesScopedListWarning {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class DiskTypesScopedList {
|
| - /** List of disk types contained in this scope. */
|
| - core.List<DiskType> diskTypes;
|
| +class ForwardingRulesScopedList {
|
| + /** List of forwarding rules contained in this scope. */
|
| + core.List<ForwardingRule> forwardingRules;
|
| +
|
| + /**
|
| + * Informational warning which replaces the list of forwarding rules when the
|
| + * list is empty.
|
| + */
|
| + ForwardingRulesScopedListWarning warning;
|
| +
|
| +
|
| + ForwardingRulesScopedList();
|
| +
|
| + ForwardingRulesScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("forwardingRules")) {
|
| + forwardingRules = _json["forwardingRules"].map((value) => new ForwardingRule.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("warning")) {
|
| + warning = new ForwardingRulesScopedListWarning.fromJson(_json["warning"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (forwardingRules != null) {
|
| + _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class HealthCheckReference {
|
| + core.String healthCheck;
|
| +
|
| +
|
| + HealthCheckReference();
|
| +
|
| + HealthCheckReference.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthCheck")) {
|
| + healthCheck = _json["healthCheck"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (healthCheck != null) {
|
| + _json["healthCheck"] = healthCheck;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class HealthStatus {
|
| + /**
|
| + * Health state of the instance.
|
| + * Possible string values are:
|
| + * - "HEALTHY"
|
| + * - "UNHEALTHY"
|
| + */
|
| + core.String healthState;
|
| +
|
| + /** URL of the instance resource. */
|
| + core.String instance;
|
| +
|
| + /** The IP address represented by this resource. */
|
| + core.String ipAddress;
|
| +
|
| + /** The port on the instance. */
|
| + core.int port;
|
| +
|
| +
|
| + HealthStatus();
|
| +
|
| + HealthStatus.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthState")) {
|
| + healthState = _json["healthState"];
|
| + }
|
| + if (_json.containsKey("instance")) {
|
| + instance = _json["instance"];
|
| + }
|
| + if (_json.containsKey("ipAddress")) {
|
| + ipAddress = _json["ipAddress"];
|
| + }
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (healthState != null) {
|
| + _json["healthState"] = healthState;
|
| + }
|
| + if (instance != null) {
|
| + _json["instance"] = instance;
|
| + }
|
| + if (ipAddress != null) {
|
| + _json["ipAddress"] = ipAddress;
|
| + }
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * A host-matching rule for a URL. If matched, will use the named PathMatcher to
|
| + * select the BackendService.
|
| + */
|
| +class HostRule {
|
| + core.String description;
|
| +
|
| + /**
|
| + * The list of host patterns to match. They must be valid hostnames except
|
| + * that they may start with *. or *-. The * acts like a glob and will match
|
| + * any string of atoms (separated by .s and -s) to the left.
|
| + */
|
| + 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.
|
| + */
|
| + core.String pathMatcher;
|
| +
|
| +
|
| + HostRule();
|
| +
|
| + HostRule.fromJson(core.Map _json) {
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("hosts")) {
|
| + hosts = _json["hosts"];
|
| + }
|
| + if (_json.containsKey("pathMatcher")) {
|
| + pathMatcher = _json["pathMatcher"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (hosts != null) {
|
| + _json["hosts"] = hosts;
|
| + }
|
| + if (pathMatcher != null) {
|
| + _json["pathMatcher"] = pathMatcher;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * An HttpHealthCheck resource. This resource defines a template for how
|
| + * individual VMs should be checked for health, via HTTP.
|
| + */
|
| +class HttpHealthCheck {
|
| + /**
|
| + * How often (in seconds) to send a health check. The default value is 5
|
| + * seconds.
|
| + */
|
| + core.int checkIntervalSec;
|
| +
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + core.String creationTimestamp;
|
| +
|
| + /**
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| + */
|
| + core.String description;
|
| +
|
| + /**
|
| + * A so-far unhealthy VM will be marked healthy after this many consecutive
|
| + * successes. The default value is 2.
|
| + */
|
| + core.int healthyThreshold;
|
| +
|
| + /**
|
| + * The value of the host header in the HTTP health check request. If left
|
| + * empty (default value), the public IP on behalf of which this health check
|
| + * is performed will be used.
|
| + */
|
| + core.String host;
|
| +
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
| +
|
| + /** 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.
|
| + */
|
| + core.String name;
|
| +
|
| + /**
|
| + * The TCP port number for the HTTP health check request. The default value is
|
| + * 80.
|
| + */
|
| + core.int port;
|
| +
|
| + /**
|
| + * The request path of the HTTP health check request. The default value is
|
| + * "/".
|
| + */
|
| + core.String requestPath;
|
| +
|
| + /** Server defined URL for the resource (output only). */
|
| + core.String selfLink;
|
|
|
| /**
|
| - * Informational warning which replaces the list of disk types when the list
|
| - * is empty.
|
| + * How long (in seconds) to wait before claiming failure. The default value is
|
| + * 5 seconds. It is invalid for timeoutSec to have greater value than
|
| + * checkIntervalSec.
|
| */
|
| - DiskTypesScopedListWarning warning;
|
| + core.int timeoutSec;
|
| +
|
| + /**
|
| + * A so-far healthy VM will be marked unhealthy after this many consecutive
|
| + * failures. The default value is 2.
|
| + */
|
| + core.int unhealthyThreshold;
|
|
|
|
|
| - DiskTypesScopedList();
|
| + HttpHealthCheck();
|
|
|
| - DiskTypesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("diskTypes")) {
|
| - diskTypes = _json["diskTypes"].map((value) => new DiskType.fromJson(value)).toList();
|
| + HttpHealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("checkIntervalSec")) {
|
| + checkIntervalSec = _json["checkIntervalSec"];
|
| }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new DiskTypesScopedListWarning.fromJson(_json["warning"]);
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (diskTypes != null) {
|
| - _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList();
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| + if (_json.containsKey("healthyThreshold")) {
|
| + healthyThreshold = _json["healthyThreshold"];
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class DisksScopedListWarningData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| -
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| -
|
| - DisksScopedListWarningData();
|
| -
|
| - DisksScopedListWarningData.fromJson(core.Map _json) {
|
| - if (_json.containsKey("key")) {
|
| - key = _json["key"];
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + if (_json.containsKey("requestPath")) {
|
| + requestPath = _json["requestPath"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("timeoutSec")) {
|
| + timeoutSec = _json["timeoutSec"];
|
| + }
|
| + if (_json.containsKey("unhealthyThreshold")) {
|
| + unhealthyThreshold = _json["unhealthyThreshold"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| + if (checkIntervalSec != null) {
|
| + _json["checkIntervalSec"] = checkIntervalSec;
|
| }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (healthyThreshold != null) {
|
| + _json["healthyThreshold"] = healthyThreshold;
|
| + }
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + if (requestPath != null) {
|
| + _json["requestPath"] = requestPath;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (timeoutSec != null) {
|
| + _json["timeoutSec"] = timeoutSec;
|
| + }
|
| + if (unhealthyThreshold != null) {
|
| + _json["unhealthyThreshold"] = unhealthyThreshold;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * Informational warning which replaces the list of disks when the list is
|
| - * empty.
|
| - */
|
| -class DisksScopedListWarning {
|
| +/** Contains a list of HttpHealthCheck resources. */
|
| +class HttpHealthCheckList {
|
| /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| - core.String code;
|
| + core.String id;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<DisksScopedListWarningData> data;
|
| + /** A list of HttpHealthCheck resources. */
|
| + core.List<HttpHealthCheck> items;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| + /** Type of resource. */
|
| + core.String kind;
|
|
|
| + /** A token used to continue a truncated list request (output only). */
|
| + core.String nextPageToken;
|
|
|
| - DisksScopedListWarning();
|
| + /** Server defined URL for this resource (output only). */
|
| + core.String selfLink;
|
|
|
| - DisksScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| +
|
| + HttpHealthCheckList();
|
| +
|
| + HttpHealthCheckList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new DisksScopedListWarningData.fromJson(value)).toList();
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new HttpHealthCheck.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("message")) {
|
| - message = _json["message"];
|
| + 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 (code != null) {
|
| - _json["code"] = code;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (data != null) {
|
| - _json["data"] = data.map((value) => (value).toJson()).toList();
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class DisksScopedList {
|
| - /** List of disks contained in this scope. */
|
| - core.List<Disk> disks;
|
| -
|
| +/** The parameters of the raw disk image. */
|
| +class ImageRawDisk {
|
| /**
|
| - * Informational warning which replaces the list of disks when the list is
|
| - * empty.
|
| + * The format used to encode and transmit the block device, which should be
|
| + * TAR. This is just a container and transmission format and not a runtime
|
| + * format. Provided by the client when the disk image is created.
|
| + * Possible string values are:
|
| + * - "TAR"
|
| */
|
| - DisksScopedListWarning warning;
|
| -
|
| -
|
| - DisksScopedList();
|
| -
|
| - DisksScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("disks")) {
|
| - disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new DisksScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (disks != null) {
|
| - _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| + core.String containerType;
|
|
|
| -/** Not documented yet. */
|
| -class FirewallAllowed {
|
| /**
|
| - * Required; this is the IP protocol that is allowed for this rule. This can
|
| - * either be one of the following well known protocol strings ["tcp", "udp",
|
| - * "icmp", "esp", "ah", "sctp"], or the IP protocol number.
|
| + * An optional SHA1 checksum of the disk image before unpackaging; provided by
|
| + * the client when the disk image is created.
|
| */
|
| - core.String IPProtocol;
|
| + core.String sha1Checksum;
|
|
|
| /**
|
| - * An optional list of ports which are allowed. It is an error to specify this
|
| - * for any protocol that isn't UDP or TCP. Each entry must be either an
|
| - * integer or a range. If not specified, connections through any port are
|
| - * allowed.
|
| - *
|
| - * Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
|
| + * The full Google Cloud Storage URL where the disk image is stored. You must
|
| + * provide either this property or the sourceDisk property but not both.
|
| */
|
| - core.List<core.String> ports;
|
| + core.String source;
|
|
|
|
|
| - FirewallAllowed();
|
| + ImageRawDisk();
|
|
|
| - FirewallAllowed.fromJson(core.Map _json) {
|
| - if (_json.containsKey("IPProtocol")) {
|
| - IPProtocol = _json["IPProtocol"];
|
| + ImageRawDisk.fromJson(core.Map _json) {
|
| + if (_json.containsKey("containerType")) {
|
| + containerType = _json["containerType"];
|
| + }
|
| + if (_json.containsKey("sha1Checksum")) {
|
| + sha1Checksum = _json["sha1Checksum"];
|
| }
|
| - if (_json.containsKey("ports")) {
|
| - ports = _json["ports"];
|
| + if (_json.containsKey("source")) {
|
| + source = _json["source"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (IPProtocol != null) {
|
| - _json["IPProtocol"] = IPProtocol;
|
| + if (containerType != null) {
|
| + _json["containerType"] = containerType;
|
| }
|
| - if (ports != null) {
|
| - _json["ports"] = ports;
|
| + if (sha1Checksum != null) {
|
| + _json["sha1Checksum"] = sha1Checksum;
|
| + }
|
| + if (source != null) {
|
| + _json["source"] = source;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A firewall resource. */
|
| -class Firewall {
|
| +/** An Image resource. */
|
| +class Image {
|
| /**
|
| - * The list of rules specified by this firewall. Each rule specifies a
|
| - * protocol and port-range tuple that describes a permitted connection.
|
| + * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
| */
|
| - core.List<FirewallAllowed> allowed;
|
| + core.String archiveSizeBytes;
|
|
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
|
|
| + /** The deprecation status associated with this image. */
|
| + DeprecationStatus deprecated;
|
| +
|
| /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| + * Textual description of the resource; provided by the client when the
|
| + * resource is created.
|
| */
|
| core.String description;
|
|
|
| + /** Size of the image when restored onto a persistent disk (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#image for images. */
|
| core.String kind;
|
|
|
| + /** Any applicable publicly 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;
|
|
|
| - /**
|
| - * URL of the network to which this firewall is applied; provided by the
|
| - * client when the firewall is created.
|
| - */
|
| - core.String network;
|
| + /** The parameters of the raw disk image. */
|
| + ImageRawDisk rawDisk;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| /**
|
| - * A list of IP address blocks expressed in CIDR format which this rule
|
| - * applies to. One or both of sourceRanges and sourceTags may be set; an
|
| - * inbound connection is allowed if either the range or the tag of the source
|
| - * matches.
|
| + * URL of the The source disk used to create this image. This can be a full or
|
| + * valid partial URL. You must provide either this property or the
|
| + * rawDisk.source property but not both to create an image. For example, the
|
| + * following are valid values:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
|
| + * - projects/project/zones/zone/disk/disk
|
| + * - zones/zone/disks/disk
|
| */
|
| - core.List<core.String> sourceRanges;
|
| + core.String sourceDisk;
|
|
|
| /**
|
| - * A list of instance tags which this rule applies to. One or both of
|
| - * sourceRanges and sourceTags may be set; an inbound connection is allowed if
|
| - * either the range or the tag of the source matches.
|
| + * The ID value of the disk used to create this image. This value may be used
|
| + * to determine whether the image was taken from the current or a previous
|
| + * instance of a given disk name.
|
| */
|
| - core.List<core.String> sourceTags;
|
| + core.String sourceDiskId;
|
|
|
| /**
|
| - * A list of instance tags indicating sets of instances located on network
|
| - * which may make network connections as specified in allowed. If no
|
| - * targetTags are specified, the firewall rule applies to all instances on the
|
| - * specified network.
|
| + * The type of the image used to create this disk. The default and only value
|
| + * is RAW
|
| + * Possible string values are:
|
| + * - "RAW"
|
| */
|
| - core.List<core.String> targetTags;
|
| + core.String sourceType;
|
|
|
| + /**
|
| + * [Output Only] The status of the image. An image can be used to create other
|
| + * resources, such as instances, only after the image has been successfully
|
| + * created and the status is set to READY. Possible values are FAILED,
|
| + * PENDING, or READY.
|
| + * Possible string values are:
|
| + * - "FAILED"
|
| + * - "PENDING"
|
| + * - "READY"
|
| + */
|
| + core.String status;
|
|
|
| - Firewall();
|
|
|
| - Firewall.fromJson(core.Map _json) {
|
| - if (_json.containsKey("allowed")) {
|
| - allowed = _json["allowed"].map((value) => new FirewallAllowed.fromJson(value)).toList();
|
| + Image();
|
| +
|
| + Image.fromJson(core.Map _json) {
|
| + if (_json.containsKey("archiveSizeBytes")) {
|
| + archiveSizeBytes = _json["archiveSizeBytes"];
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| + }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("diskSizeGb")) {
|
| + diskSizeGb = _json["diskSizeGb"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| + if (_json.containsKey("licenses")) {
|
| + licenses = _json["licenses"];
|
| + }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("network")) {
|
| - network = _json["network"];
|
| + if (_json.containsKey("rawDisk")) {
|
| + rawDisk = new ImageRawDisk.fromJson(_json["rawDisk"]);
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("sourceRanges")) {
|
| - sourceRanges = _json["sourceRanges"];
|
| + if (_json.containsKey("sourceDisk")) {
|
| + sourceDisk = _json["sourceDisk"];
|
| }
|
| - if (_json.containsKey("sourceTags")) {
|
| - sourceTags = _json["sourceTags"];
|
| + if (_json.containsKey("sourceDiskId")) {
|
| + sourceDiskId = _json["sourceDiskId"];
|
| }
|
| - if (_json.containsKey("targetTags")) {
|
| - targetTags = _json["targetTags"];
|
| + if (_json.containsKey("sourceType")) {
|
| + sourceType = _json["sourceType"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (allowed != null) {
|
| - _json["allowed"] = allowed.map((value) => (value).toJson()).toList();
|
| + if (archiveSizeBytes != null) {
|
| + _json["archiveSizeBytes"] = archiveSizeBytes;
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = (deprecated).toJson();
|
| + }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (diskSizeGb != null) {
|
| + _json["diskSizeGb"] = diskSizeGb;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| + if (licenses != null) {
|
| + _json["licenses"] = licenses;
|
| + }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (network != null) {
|
| - _json["network"] = network;
|
| + if (rawDisk != null) {
|
| + _json["rawDisk"] = (rawDisk).toJson();
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (sourceRanges != null) {
|
| - _json["sourceRanges"] = sourceRanges;
|
| + if (sourceDisk != null) {
|
| + _json["sourceDisk"] = sourceDisk;
|
| }
|
| - if (sourceTags != null) {
|
| - _json["sourceTags"] = sourceTags;
|
| + if (sourceDiskId != null) {
|
| + _json["sourceDiskId"] = sourceDiskId;
|
| }
|
| - if (targetTags != null) {
|
| - _json["targetTags"] = targetTags;
|
| + if (sourceType != null) {
|
| + _json["sourceType"] = sourceType;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of firewall resources. */
|
| -class FirewallList {
|
| +/** Contains a list of Image resources. */
|
| +class ImageList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of Firewall resources. */
|
| - core.List<Firewall> items;
|
| + /** A list of Image resources. */
|
| + core.List<Image> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -9818,14 +11746,14 @@ class FirewallList {
|
| core.String selfLink;
|
|
|
|
|
| - FirewallList();
|
| + ImageList();
|
|
|
| - FirewallList.fromJson(core.Map _json) {
|
| + ImageList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Firewall.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Image.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -9860,34 +11788,20 @@ class FirewallList {
|
| }
|
|
|
|
|
| -/**
|
| - * A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
| - * target VMs to forward a packet to if it matches the given [IPAddress,
|
| - * IPProtocol, portRange] tuple.
|
| - */
|
| -class ForwardingRule {
|
| +/** An Instance resource. */
|
| +class Instance {
|
| /**
|
| - * Value of the reserved IP address that this forwarding rule is serving on
|
| - * behalf of. For global forwarding rules, the address must be a global IP;
|
| - * for regional forwarding rules, the address must live in the same region as
|
| - * the forwarding rule. If left empty (default value), an ephemeral IP from
|
| - * the same scope (global or regional) will be assigned.
|
| + * Allows this instance to send and receive packets with non-matching
|
| + * destination or source IPs. This is required if you plan to use this
|
| + * instance to forward routes. For more information, see Enabling IP
|
| + * Forwarding.
|
| */
|
| - core.String IPAddress;
|
| + core.bool canIpForward;
|
|
|
| - /**
|
| - * The IP protocol to which this rule applies, valid options are 'TCP', 'UDP',
|
| - * 'ESP', 'AH' or 'SCTP'.
|
| - * Possible string values are:
|
| - * - "AH"
|
| - * - "ESP"
|
| - * - "SCTP"
|
| - * - "TCP"
|
| - * - "UDP"
|
| - */
|
| - core.String IPProtocol;
|
| + /** [Output Only] The CPU platform used by this instance. */
|
| + core.String cpuPlatform;
|
|
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
|
|
| /**
|
| @@ -9897,54 +11811,105 @@ class ForwardingRule {
|
| core.String description;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * Array of disks associated with this instance. Persistent disks must be
|
| + * created before you can assign them.
|
| + */
|
| + core.List<AttachedDisk> disks;
|
| +
|
| + /**
|
| + * [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#instance for instances.
|
| + */
|
| core.String kind;
|
|
|
| /**
|
| + * Full or partial URL of the machine type resource to use for this instance.
|
| + * This is provided by the client when the instance is created. For example,
|
| + * the following is a valid partial url:
|
| + *
|
| + * zones/zone/machineTypes/machine-type
|
| + */
|
| + core.String machineType;
|
| +
|
| + /**
|
| + * The metadata key/value pairs assigned to this instance. This includes
|
| + * custom metadata and predefined keys.
|
| + */
|
| + Metadata metadata;
|
| +
|
| + /**
|
| * 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
|
| - * disjoint port ranges.
|
| + * An array of configurations for this interface. This specifies how this
|
| + * interface is configured to interact with other network services, such as
|
| + * connecting to the internet.
|
| */
|
| - core.String portRange;
|
| + core.List<NetworkInterface> networkInterfaces;
|
| +
|
| + /** Scheduling options for this instance. */
|
| + Scheduling scheduling;
|
| +
|
| + /** [Output Only] Server defined URL for this resource. */
|
| + core.String selfLink;
|
|
|
| /**
|
| - * URL of the region where the regional forwarding rule resides (output only).
|
| - * This field is not applicable to global forwarding rules.
|
| + * A list of service accounts, with their specified scopes, authorized for
|
| + * this instance. Service accounts generate access tokens that can be accessed
|
| + * through the metadata server and used to authenticate applications on the
|
| + * instance. See Authenticating from Google Compute Engine for more
|
| + * information.
|
| */
|
| - core.String region;
|
| + core.List<ServiceAccount> serviceAccounts;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| + /**
|
| + * [Output Only] The status of the instance. One of the following values:
|
| + * PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, TERMINATED.
|
| + * Possible string values are:
|
| + * - "PROVISIONING"
|
| + * - "RUNNING"
|
| + * - "STAGING"
|
| + * - "STOPPED"
|
| + * - "STOPPING"
|
| + * - "TERMINATED"
|
| + */
|
| + core.String status;
|
| +
|
| + /** [Output Only] An optional, human-readable explanation of the status. */
|
| + core.String statusMessage;
|
|
|
| /**
|
| - * 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.
|
| + * A list of tags to appy to this instance. Tags are used to identify valid
|
| + * sources or targets for network firewalls and are specified by the client
|
| + * during instance creation. The tags can be later modified by the setTags
|
| + * method. Each tag within the list must comply with RFC1035.
|
| */
|
| - core.String target;
|
| + Tags tags;
|
|
|
| + /** [Output Only] URL of the zone where the instance resides. */
|
| + core.String zone;
|
|
|
| - ForwardingRule();
|
|
|
| - ForwardingRule.fromJson(core.Map _json) {
|
| - if (_json.containsKey("IPAddress")) {
|
| - IPAddress = _json["IPAddress"];
|
| + Instance();
|
| +
|
| + Instance.fromJson(core.Map _json) {
|
| + if (_json.containsKey("canIpForward")) {
|
| + canIpForward = _json["canIpForward"];
|
| }
|
| - if (_json.containsKey("IPProtocol")) {
|
| - IPProtocol = _json["IPProtocol"];
|
| + if (_json.containsKey("cpuPlatform")) {
|
| + cpuPlatform = _json["cpuPlatform"];
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| @@ -9952,36 +11917,57 @@ class ForwardingRule {
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("disks")) {
|
| + disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).toList();
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| + if (_json.containsKey("machineType")) {
|
| + machineType = _json["machineType"];
|
| + }
|
| + if (_json.containsKey("metadata")) {
|
| + metadata = new Metadata.fromJson(_json["metadata"]);
|
| + }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("portRange")) {
|
| - portRange = _json["portRange"];
|
| + if (_json.containsKey("networkInterfaces")) {
|
| + networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkInterface.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("region")) {
|
| - region = _json["region"];
|
| + if (_json.containsKey("scheduling")) {
|
| + scheduling = new Scheduling.fromJson(_json["scheduling"]);
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("target")) {
|
| - target = _json["target"];
|
| + if (_json.containsKey("serviceAccounts")) {
|
| + serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("statusMessage")) {
|
| + statusMessage = _json["statusMessage"];
|
| + }
|
| + if (_json.containsKey("tags")) {
|
| + tags = new Tags.fromJson(_json["tags"]);
|
| + }
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (IPAddress != null) {
|
| - _json["IPAddress"] = IPAddress;
|
| + if (canIpForward != null) {
|
| + _json["canIpForward"] = canIpForward;
|
| }
|
| - if (IPProtocol != null) {
|
| - _json["IPProtocol"] = IPProtocol;
|
| + if (cpuPlatform != null) {
|
| + _json["cpuPlatform"] = cpuPlatform;
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| @@ -9989,60 +11975,83 @@ class ForwardingRule {
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (disks != null) {
|
| + _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| + if (machineType != null) {
|
| + _json["machineType"] = machineType;
|
| + }
|
| + if (metadata != null) {
|
| + _json["metadata"] = (metadata).toJson();
|
| + }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (portRange != null) {
|
| - _json["portRange"] = portRange;
|
| + if (networkInterfaces != null) {
|
| + _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJson()).toList();
|
| }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| + if (scheduling != null) {
|
| + _json["scheduling"] = (scheduling).toJson();
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (target != null) {
|
| - _json["target"] = target;
|
| + if (serviceAccounts != null) {
|
| + _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (statusMessage != null) {
|
| + _json["statusMessage"] = statusMessage;
|
| + }
|
| + if (tags != null) {
|
| + _json["tags"] = (tags).toJson();
|
| + }
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class ForwardingRuleAggregatedList {
|
| +class InstanceAggregatedList {
|
| /**
|
| - * 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;
|
| + /** [Output Only] A map of scoped instance lists. */
|
| + core.Map<core.String, InstancesScopedList> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#instanceAggregatedList for
|
| + * aggregated lists of Instance resources.
|
| + */
|
| 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();
|
| + InstanceAggregatedList();
|
|
|
| - ForwardingRuleAggregatedList.fromJson(core.Map _json) {
|
| + InstanceAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new ForwardingRulesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new InstancesScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10061,7 +12070,7 @@ class ForwardingRuleAggregatedList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -10077,34 +12086,37 @@ class ForwardingRuleAggregatedList {
|
| }
|
|
|
|
|
| -/** Contains a list of ForwardingRule resources. */
|
| -class ForwardingRuleList {
|
| +/** Contains a list of instance resources. */
|
| +class InstanceList {
|
| /**
|
| - * 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 ForwardingRule resources. */
|
| - core.List<ForwardingRule> items;
|
| + /** [Output Only] A list of Instance resources. */
|
| + core.List<Instance> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#instanceList for lists of
|
| + * Instance resources.
|
| + */
|
| 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();
|
| + InstanceList();
|
|
|
| - ForwardingRuleList.fromJson(core.Map _json) {
|
| + InstanceList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new ForwardingRule.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Instance.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10139,301 +12151,216 @@ class ForwardingRuleList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class ForwardingRulesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| -
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| -
|
| - ForwardingRulesScopedListWarningData();
|
| -
|
| - ForwardingRulesScopedListWarningData.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;
|
| - }
|
| -}
|
| -
|
| -
|
| -/**
|
| - * Informational warning which replaces the list of forwarding rules when the
|
| - * list is empty.
|
| - */
|
| -class ForwardingRulesScopedListWarning {
|
| - /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| - */
|
| - core.String code;
|
| -
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<ForwardingRulesScopedListWarningData> data;
|
| -
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| -
|
| -
|
| - ForwardingRulesScopedListWarning();
|
| -
|
| - ForwardingRulesScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| - }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new ForwardingRulesScopedListWarningData.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;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class ForwardingRulesScopedList {
|
| - /** List of forwarding rules contained in this scope. */
|
| - core.List<ForwardingRule> forwardingRules;
|
| -
|
| - /**
|
| - * Informational warning which replaces the list of forwarding rules when the
|
| - * list is empty.
|
| - */
|
| - ForwardingRulesScopedListWarning warning;
|
| -
|
| -
|
| - ForwardingRulesScopedList();
|
| -
|
| - ForwardingRulesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("forwardingRules")) {
|
| - forwardingRules = _json["forwardingRules"].map((value) => new ForwardingRule.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new ForwardingRulesScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (forwardingRules != null) {
|
| - _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class HealthCheckReference {
|
| - /** Not documented yet. */
|
| - core.String healthCheck;
|
| -
|
| -
|
| - HealthCheckReference();
|
| -
|
| - HealthCheckReference.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthCheck")) {
|
| - healthCheck = _json["healthCheck"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (healthCheck != null) {
|
| - _json["healthCheck"] = healthCheck;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class HealthStatus {
|
| +class InstanceMoveRequest {
|
| /**
|
| - * Health state of the instance.
|
| - * Possible string values are:
|
| - * - "HEALTHY"
|
| - * - "UNHEALTHY"
|
| + * The URL of the destination zone to move the instance to. This can be a full
|
| + * or partial URL. For example, the following are all valid URLs to a zone:
|
| + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone
|
| + * - projects/project/zones/zone
|
| + * - zones/zone
|
| */
|
| - core.String healthState;
|
| -
|
| - /** URL of the instance resource. */
|
| - core.String instance;
|
| -
|
| - /** The IP address represented by this resource. */
|
| - core.String ipAddress;
|
| -
|
| - /** The port on the instance. */
|
| - core.int port;
|
| + core.String destinationZone;
|
|
|
| + /**
|
| + * The URL of the target instance to move. This can be a full or partial URL.
|
| + * For example, the following are all valid URLs to an instance:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance
|
| + * - projects/project/zones/zone/instances/instance
|
| + * - zones/zone/instances/instance
|
| + */
|
| + core.String targetInstance;
|
|
|
| - HealthStatus();
|
|
|
| - HealthStatus.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthState")) {
|
| - healthState = _json["healthState"];
|
| - }
|
| - if (_json.containsKey("instance")) {
|
| - instance = _json["instance"];
|
| - }
|
| - if (_json.containsKey("ipAddress")) {
|
| - ipAddress = _json["ipAddress"];
|
| + InstanceMoveRequest();
|
| +
|
| + InstanceMoveRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("destinationZone")) {
|
| + destinationZone = _json["destinationZone"];
|
| }
|
| - if (_json.containsKey("port")) {
|
| - port = _json["port"];
|
| + if (_json.containsKey("targetInstance")) {
|
| + targetInstance = _json["targetInstance"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (healthState != null) {
|
| - _json["healthState"] = healthState;
|
| - }
|
| - if (instance != null) {
|
| - _json["instance"] = instance;
|
| + if (destinationZone != null) {
|
| + _json["destinationZone"] = destinationZone;
|
| }
|
| - if (ipAddress != null) {
|
| - _json["ipAddress"] = ipAddress;
|
| - }
|
| - if (port != null) {
|
| - _json["port"] = port;
|
| + if (targetInstance != null) {
|
| + _json["targetInstance"] = targetInstance;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A host-matching rule for a URL. If matched, will use the named PathMatcher to
|
| - * select the BackendService.
|
| - */
|
| -class HostRule {
|
| - /** Not documented yet. */
|
| +class InstanceProperties {
|
| + /**
|
| + * Allows instances created based on this template to send packets with source
|
| + * IP addresses other than their own and receive packets with destination IP
|
| + * addresses other than their own. If these instances will be used as an IP
|
| + * gateway or it will be set as the next-hop in a Route resource, say true. If
|
| + * unsure, leave this set to false.
|
| + */
|
| + core.bool canIpForward;
|
| +
|
| + /**
|
| + * An optional textual description for the instances created based on the
|
| + * instance template resource; provided by the client when the template is
|
| + * created.
|
| + */
|
| core.String description;
|
|
|
| /**
|
| - * The list of host patterns to match. They must be valid hostnames except
|
| - * that they may start with *. or *-. The * acts like a glob and will match
|
| - * any string of atoms (separated by .s and -s) to the left.
|
| + * Array of disks associated with instance created based on this template.
|
| */
|
| - core.List<core.String> hosts;
|
| + core.List<AttachedDisk> disks;
|
|
|
| /**
|
| - * The name of the PathMatcher to match the path portion of the URL, if the
|
| - * this HostRule matches the URL's host portion.
|
| + * Name of the machine type resource describing which machine type to use to
|
| + * host the instances created based on this template; provided by the client
|
| + * when the instance template is created.
|
| */
|
| - core.String pathMatcher;
|
| + core.String machineType;
|
| +
|
| + /**
|
| + * Metadata key/value pairs assigned to instances created based on this
|
| + * template. Consists of custom metadata or predefined keys; see Instance
|
| + * documentation for more information.
|
| + */
|
| + Metadata metadata;
|
|
|
| + /**
|
| + * Array of configurations for this interface. This specifies how this
|
| + * interface is configured to interact with other network services, such as
|
| + * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access
|
| + * config supported. If there are no accessConfigs specified, then this
|
| + * instances created based based on this template will have no external
|
| + * internet access.
|
| + */
|
| + core.List<NetworkInterface> networkInterfaces;
|
|
|
| - HostRule();
|
| + /** Scheduling options for the instances created based on this template. */
|
| + Scheduling scheduling;
|
|
|
| - HostRule.fromJson(core.Map _json) {
|
| + /**
|
| + * A list of service accounts each with specified scopes, for which access
|
| + * tokens are to be made available to the instances created based on this
|
| + * template, through metadata queries.
|
| + */
|
| + core.List<ServiceAccount> serviceAccounts;
|
| +
|
| + /**
|
| + * A list of tags to be applied to the instances created based on this
|
| + * template used to identify valid sources or targets for network firewalls.
|
| + * Provided by the client on instance creation. The tags can be later modified
|
| + * by the setTags method. Each tag within the list must comply with RFC1035.
|
| + */
|
| + Tags tags;
|
| +
|
| +
|
| + InstanceProperties();
|
| +
|
| + InstanceProperties.fromJson(core.Map _json) {
|
| + if (_json.containsKey("canIpForward")) {
|
| + canIpForward = _json["canIpForward"];
|
| + }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("hosts")) {
|
| - hosts = _json["hosts"];
|
| + if (_json.containsKey("disks")) {
|
| + disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("pathMatcher")) {
|
| - pathMatcher = _json["pathMatcher"];
|
| + if (_json.containsKey("machineType")) {
|
| + machineType = _json["machineType"];
|
| + }
|
| + if (_json.containsKey("metadata")) {
|
| + metadata = new Metadata.fromJson(_json["metadata"]);
|
| + }
|
| + if (_json.containsKey("networkInterfaces")) {
|
| + networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkInterface.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("scheduling")) {
|
| + scheduling = new Scheduling.fromJson(_json["scheduling"]);
|
| + }
|
| + if (_json.containsKey("serviceAccounts")) {
|
| + serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("tags")) {
|
| + tags = new Tags.fromJson(_json["tags"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (canIpForward != null) {
|
| + _json["canIpForward"] = canIpForward;
|
| + }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (hosts != null) {
|
| - _json["hosts"] = hosts;
|
| + if (disks != null) {
|
| + _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| }
|
| - if (pathMatcher != null) {
|
| - _json["pathMatcher"] = pathMatcher;
|
| + if (machineType != null) {
|
| + _json["machineType"] = machineType;
|
| + }
|
| + if (metadata != null) {
|
| + _json["metadata"] = (metadata).toJson();
|
| + }
|
| + if (networkInterfaces != null) {
|
| + _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (scheduling != null) {
|
| + _json["scheduling"] = (scheduling).toJson();
|
| + }
|
| + if (serviceAccounts != null) {
|
| + _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (tags != null) {
|
| + _json["tags"] = (tags).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * An HttpHealthCheck resource. This resource defines a template for how
|
| - * individual VMs should be checked for health, via HTTP.
|
| - */
|
| -class HttpHealthCheck {
|
| - /**
|
| - * How often (in seconds) to send a health check. The default value is 5
|
| - * seconds.
|
| - */
|
| - core.int checkIntervalSec;
|
| +class InstanceReference {
|
| + core.String instance;
|
| +
|
| +
|
| + InstanceReference();
|
| +
|
| + InstanceReference.fromJson(core.Map _json) {
|
| + if (_json.containsKey("instance")) {
|
| + instance = _json["instance"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (instance != null) {
|
| + _json["instance"] = instance;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
|
|
| +/** An Instance Template resource. */
|
| +class InstanceTemplate {
|
| /** Creation timestamp in RFC3339 text format (output only). */
|
| core.String creationTimestamp;
|
|
|
| /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| + * An optional textual description of the instance template resource; provided
|
| + * by the client when the resource is created.
|
| */
|
| core.String description;
|
|
|
| /**
|
| - * A so-far unhealthy VM will be marked healthy after this many consecutive
|
| - * successes. The default value is 2.
|
| - */
|
| - core.int healthyThreshold;
|
| -
|
| - /**
|
| - * The value of the host header in the HTTP health check request. If left
|
| - * empty (default value), the public IP on behalf of which this health check
|
| - * is performed will be used.
|
| - */
|
| - core.String host;
|
| -
|
| - /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
| @@ -10442,58 +12369,28 @@ class HttpHealthCheck {
|
| 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 instance template resource; provided by the client when the
|
| + * resource is created. The name must be 1-63 characters long, and comply with
|
| + * RFC1035
|
| */
|
| core.String name;
|
|
|
| - /**
|
| - * The TCP port number for the HTTP health check request. The default value is
|
| - * 80.
|
| - */
|
| - core.int port;
|
| -
|
| - /**
|
| - * The request path of the HTTP health check request. The default value is
|
| - * "/".
|
| - */
|
| - core.String requestPath;
|
| + /** The instance properties portion of this instance template resource. */
|
| + InstanceProperties properties;
|
|
|
| /** Server defined URL for the resource (output only). */
|
| core.String selfLink;
|
|
|
| - /**
|
| - * How long (in seconds) to wait before claiming failure. The default value is
|
| - * 5 seconds. It is invalid for timeoutSec to have greater value than
|
| - * checkIntervalSec.
|
| - */
|
| - core.int timeoutSec;
|
| -
|
| - /**
|
| - * A so-far healthy VM will be marked unhealthy after this many consecutive
|
| - * failures. The default value is 2.
|
| - */
|
| - core.int unhealthyThreshold;
|
| -
|
|
|
| - HttpHealthCheck();
|
| + InstanceTemplate();
|
|
|
| - HttpHealthCheck.fromJson(core.Map _json) {
|
| - if (_json.containsKey("checkIntervalSec")) {
|
| - checkIntervalSec = _json["checkIntervalSec"];
|
| - }
|
| + InstanceTemplate.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("healthyThreshold")) {
|
| - healthyThreshold = _json["healthyThreshold"];
|
| - }
|
| - if (_json.containsKey("host")) {
|
| - host = _json["host"];
|
| - }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -10503,40 +12400,22 @@ class HttpHealthCheck {
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("port")) {
|
| - port = _json["port"];
|
| - }
|
| - if (_json.containsKey("requestPath")) {
|
| - requestPath = _json["requestPath"];
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| - }
|
| - if (_json.containsKey("timeoutSec")) {
|
| - timeoutSec = _json["timeoutSec"];
|
| + if (_json.containsKey("properties")) {
|
| + properties = new InstanceProperties.fromJson(_json["properties"]);
|
| }
|
| - if (_json.containsKey("unhealthyThreshold")) {
|
| - unhealthyThreshold = _json["unhealthyThreshold"];
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (checkIntervalSec != null) {
|
| - _json["checkIntervalSec"] = checkIntervalSec;
|
| - }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (healthyThreshold != null) {
|
| - _json["healthyThreshold"] = healthyThreshold;
|
| - }
|
| - if (host != null) {
|
| - _json["host"] = host;
|
| - }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -10546,35 +12425,26 @@ class HttpHealthCheck {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (port != null) {
|
| - _json["port"] = port;
|
| - }
|
| - if (requestPath != null) {
|
| - _json["requestPath"] = requestPath;
|
| + if (properties != null) {
|
| + _json["properties"] = (properties).toJson();
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (timeoutSec != null) {
|
| - _json["timeoutSec"] = timeoutSec;
|
| - }
|
| - if (unhealthyThreshold != null) {
|
| - _json["unhealthyThreshold"] = unhealthyThreshold;
|
| - }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of HttpHealthCheck resources. */
|
| -class HttpHealthCheckList {
|
| +/** Contains a list of instance template resources. */
|
| +class InstanceTemplateList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of HttpHealthCheck resources. */
|
| - core.List<HttpHealthCheck> items;
|
| + /** A list of InstanceTemplate resources. */
|
| + core.List<InstanceTemplate> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -10586,14 +12456,14 @@ class HttpHealthCheckList {
|
| core.String selfLink;
|
|
|
|
|
| - HttpHealthCheckList();
|
| + InstanceTemplateList();
|
|
|
| - HttpHealthCheckList.fromJson(core.Map _json) {
|
| + InstanceTemplateList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new HttpHealthCheck.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new InstanceTemplate.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10628,273 +12498,166 @@ class HttpHealthCheckList {
|
| }
|
|
|
|
|
| -/** The raw disk image parameters. */
|
| -class ImageRawDisk {
|
| - /**
|
| - * The format used to encode and transmit the block device. Should be TAR.
|
| - * This is just a container and transmission format and not a runtime format.
|
| - * Provided by the client when the disk image is created.
|
| - * Possible string values are:
|
| - * - "TAR"
|
| - */
|
| - core.String containerType;
|
| -
|
| - /**
|
| - * An optional SHA1 checksum of the disk image before unpackaging; provided by
|
| - * the client when the disk image is created.
|
| - */
|
| - core.String sha1Checksum;
|
| +class InstancesScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
|
|
| - /**
|
| - * The full Google Cloud Storage URL where the disk image is stored; provided
|
| - * by the client when the disk image is created.
|
| - */
|
| - core.String source;
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
|
|
|
|
| - ImageRawDisk();
|
| + InstancesScopedListWarningData();
|
|
|
| - ImageRawDisk.fromJson(core.Map _json) {
|
| - if (_json.containsKey("containerType")) {
|
| - containerType = _json["containerType"];
|
| - }
|
| - if (_json.containsKey("sha1Checksum")) {
|
| - sha1Checksum = _json["sha1Checksum"];
|
| + InstancesScopedListWarningData.fromJson(core.Map _json) {
|
| + if (_json.containsKey("key")) {
|
| + key = _json["key"];
|
| }
|
| - if (_json.containsKey("source")) {
|
| - source = _json["source"];
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (containerType != null) {
|
| - _json["containerType"] = containerType;
|
| - }
|
| - if (sha1Checksum != null) {
|
| - _json["sha1Checksum"] = sha1Checksum;
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (source != null) {
|
| - _json["source"] = source;
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A disk image resource. */
|
| -class Image {
|
| - /**
|
| - * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
| - */
|
| - core.String archiveSizeBytes;
|
| -
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| -
|
| - /** The deprecation status associated with this image. */
|
| - DeprecationStatus deprecated;
|
| -
|
| - /**
|
| - * Textual description of the resource; provided by the client when the
|
| - * resource is created.
|
| - */
|
| - core.String description;
|
| -
|
| - /** Size of the image when restored onto a disk (in GiB). */
|
| - core.String diskSizeGb;
|
| -
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /** Type of the resource. */
|
| - 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.
|
| - */
|
| - core.String name;
|
| -
|
| - /** The raw disk image parameters. */
|
| - ImageRawDisk rawDisk;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| -
|
| - /** The source disk used to create this image. */
|
| - core.String sourceDisk;
|
| -
|
| - /**
|
| - * The 'id' value of the disk used to create this image. This value may be
|
| - * used to determine whether the image was taken from the current or a
|
| - * previous instance of a given disk name.
|
| - */
|
| - core.String sourceDiskId;
|
| -
|
| +/**
|
| + * [Output Only] Informational warning which replaces the list of instances when
|
| + * the list is empty.
|
| + */
|
| +class InstancesScopedListWarning {
|
| /**
|
| - * Must be "RAW"; provided by the client when the disk image is created.
|
| + * [Output Only] The warning type identifier for this warning.
|
| * Possible string values are:
|
| - * - "RAW"
|
| + * - "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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| */
|
| - core.String sourceType;
|
| + core.String code;
|
|
|
| - /**
|
| - * Status of the image (output only). It will be one of the following READY -
|
| - * after image has been successfully created and is ready for use FAILED - if
|
| - * creating the image fails for some reason PENDING - the image creation is in
|
| - * progress An image can be used to create other resources suck as instances
|
| - * only after the image has been successfully created and the status is set to
|
| - * READY.
|
| - * Possible string values are:
|
| - * - "FAILED"
|
| - * - "PENDING"
|
| - * - "READY"
|
| - */
|
| - core.String status;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<InstancesScopedListWarningData> data;
|
|
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
| - Image();
|
|
|
| - Image.fromJson(core.Map _json) {
|
| - if (_json.containsKey("archiveSizeBytes")) {
|
| - archiveSizeBytes = _json["archiveSizeBytes"];
|
| - }
|
| - if (_json.containsKey("creationTimestamp")) {
|
| - creationTimestamp = _json["creationTimestamp"];
|
| - }
|
| - if (_json.containsKey("deprecated")) {
|
| - deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("diskSizeGb")) {
|
| - diskSizeGb = _json["diskSizeGb"];
|
| - }
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("licenses")) {
|
| - licenses = _json["licenses"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("rawDisk")) {
|
| - rawDisk = new ImageRawDisk.fromJson(_json["rawDisk"]);
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| - }
|
| - if (_json.containsKey("sourceDisk")) {
|
| - sourceDisk = _json["sourceDisk"];
|
| - }
|
| - if (_json.containsKey("sourceDiskId")) {
|
| - sourceDiskId = _json["sourceDiskId"];
|
| + InstancesScopedListWarning();
|
| +
|
| + InstancesScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("sourceType")) {
|
| - sourceType = _json["sourceType"];
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new InstancesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (archiveSizeBytes != null) {
|
| - _json["archiveSizeBytes"] = archiveSizeBytes;
|
| - }
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| - }
|
| - if (deprecated != null) {
|
| - _json["deprecated"] = (deprecated).toJson();
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (diskSizeGb != null) {
|
| - _json["diskSizeGb"] = diskSizeGb;
|
| - }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (licenses != null) {
|
| - _json["licenses"] = licenses;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (rawDisk != null) {
|
| - _json["rawDisk"] = (rawDisk).toJson();
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| - if (sourceDisk != null) {
|
| - _json["sourceDisk"] = sourceDisk;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class InstancesScopedList {
|
| + /** [Output Only] List of instances contained in this scope. */
|
| + core.List<Instance> instances;
|
| +
|
| + /**
|
| + * [Output Only] Informational warning which replaces the list of instances
|
| + * when the list is empty.
|
| + */
|
| + InstancesScopedListWarning warning;
|
| +
|
| +
|
| + InstancesScopedList();
|
| +
|
| + InstancesScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("instances")) {
|
| + instances = _json["instances"].map((value) => new Instance.fromJson(value)).toList();
|
| }
|
| - if (sourceDiskId != null) {
|
| - _json["sourceDiskId"] = sourceDiskId;
|
| + if (_json.containsKey("warning")) {
|
| + warning = new InstancesScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| - if (sourceType != null) {
|
| - _json["sourceType"] = sourceType;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (instances != null) {
|
| + _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of disk image resources. */
|
| -class ImageList {
|
| +/** A license resource. */
|
| +class License {
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * If true, the customer will be charged license fee for running software that
|
| + * contains this license on an instance.
|
| */
|
| - core.String id;
|
| -
|
| - /** A list of Image resources. */
|
| - core.List<Image> items;
|
| + core.bool chargesUseFee;
|
|
|
| - /** Type of resource. */
|
| + /** [Output Only] Type of resource. Always compute#license for licenses. */
|
| core.String kind;
|
|
|
| - /** A token used to continue a truncated list request (output only). */
|
| - core.String nextPageToken;
|
| + /**
|
| + * Name of the resource. The name must be 1-63 characters long, and comply
|
| + * with RCF1035.
|
| + */
|
| + core.String name;
|
|
|
| - /** Server defined URL for this resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
|
|
| - ImageList();
|
| + License();
|
|
|
| - ImageList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Image.fromJson(value)).toList();
|
| + License.fromJson(core.Map _json) {
|
| + if (_json.containsKey("chargesUseFee")) {
|
| + chargesUseFee = _json["chargesUseFee"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| @@ -10903,17 +12666,14 @@ class ImageList {
|
|
|
| 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 (chargesUseFee != null) {
|
| + _json["chargesUseFee"] = chargesUseFee;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| @@ -10923,159 +12683,129 @@ class ImageList {
|
| }
|
|
|
|
|
| -/** An instance resource. */
|
| -class Instance {
|
| - /**
|
| - * Allows this instance to send packets with source IP addresses other than
|
| - * its own and receive packets with destination IP addresses other than its
|
| - * own. If this instance will be used as an IP gateway or it will be set as
|
| - * the next-hop in a Route resource, say true. If unsure, leave this set to
|
| - * false.
|
| - */
|
| - core.bool canIpForward;
|
| +class MachineTypeScratchDisks {
|
| + /** Size of the scratch disk, defined in GB. */
|
| + core.int diskGb;
|
|
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +
|
| + MachineTypeScratchDisks();
|
| +
|
| + MachineTypeScratchDisks.fromJson(core.Map _json) {
|
| + if (_json.containsKey("diskGb")) {
|
| + diskGb = _json["diskGb"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (diskGb != null) {
|
| + _json["diskGb"] = diskGb;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/** A Machine Type resource. */
|
| +class MachineType {
|
| + /** [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.
|
| + * [Output Only] The deprecation status associated with this machine type.
|
| */
|
| + DeprecationStatus deprecated;
|
| +
|
| + /** [Output Only] An optional textual description of the resource. */
|
| core.String description;
|
|
|
| + /** [Output Only] The tumber of CPUs exposed to the instance. */
|
| + core.int guestCpus;
|
| +
|
| /**
|
| - * Array of disks associated with this instance. Persistent disks must be
|
| - * created before you can assign them.
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| - core.List<AttachedDisk> disks;
|
| + core.String id;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * [Deprecated] This property is deprecated and will never be populated with
|
| + * any relevant values.
|
| */
|
| - core.String id;
|
| + core.int imageSpaceGb;
|
|
|
| /** Type of the resource. */
|
| core.String kind;
|
|
|
| - /**
|
| - * URL of the machine type resource describing which machine type to use to
|
| - * host the instance; provided by the client when the instance is created.
|
| - */
|
| - core.String machineType;
|
| + /** [Output Only] Maximum persistent disks allowed. */
|
| + core.int maximumPersistentDisks;
|
|
|
| - /**
|
| - * Metadata key/value pairs assigned to this instance. Consists of custom
|
| - * metadata or predefined keys; see Instance documentation for more
|
| - * information.
|
| - */
|
| - Metadata metadata;
|
| + /** [Output Only] Maximum total persistent disks size (GB) allowed. */
|
| + core.String maximumPersistentDisksSizeGb;
|
|
|
| /**
|
| - * 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.
|
| + * [Output Only] The amount of physical memory available to the instance,
|
| + * defined in MB.
|
| */
|
| - core.String name;
|
| + core.int memoryMb;
|
|
|
| - /**
|
| - * Array of configurations for this interface. This specifies how this
|
| - * interface is configured to interact with other network services, such as
|
| - * connecting to the internet. 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<NetworkInterface> networkInterfaces;
|
| + /** [Output Only] Name of the resource. */
|
| + core.String name;
|
|
|
| - /** Scheduling options for this instance. */
|
| - Scheduling scheduling;
|
| + /** [Output Only] List of extended scratch disks assigned to the instance. */
|
| + core.List<MachineTypeScratchDisks> scratchDisks;
|
|
|
| - /** Server defined URL for this resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| /**
|
| - * A list of service accounts each with specified scopes, for which access
|
| - * tokens are to be made available to the instance through metadata queries.
|
| - */
|
| - core.List<ServiceAccount> serviceAccounts;
|
| -
|
| - /**
|
| - * Instance status. One of the following values: "PROVISIONING", "STAGING",
|
| - * "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
|
| - * Possible string values are:
|
| - * - "PROVISIONING"
|
| - * - "RUNNING"
|
| - * - "STAGING"
|
| - * - "STOPPED"
|
| - * - "STOPPING"
|
| - * - "TERMINATED"
|
| - */
|
| - core.String status;
|
| -
|
| - /** An optional, human-readable explanation of the status (output only). */
|
| - core.String statusMessage;
|
| -
|
| - /**
|
| - * A list of tags to be applied to this instance. Used to identify valid
|
| - * sources or targets for network firewalls. Provided by the client on
|
| - * instance creation. The tags can be later modified by the setTags method.
|
| - * Each tag within the list must comply with RFC1035.
|
| + * [Output Only] The name of the zone where the machine type resides, such as
|
| + * us-central1-a.
|
| */
|
| - Tags tags;
|
| -
|
| - /** URL of the zone where the instance resides (output only). */
|
| core.String zone;
|
|
|
|
|
| - Instance();
|
| + MachineType();
|
|
|
| - Instance.fromJson(core.Map _json) {
|
| - if (_json.containsKey("canIpForward")) {
|
| - canIpForward = _json["canIpForward"];
|
| - }
|
| + MachineType.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| + }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("disks")) {
|
| - disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).toList();
|
| + if (_json.containsKey("guestCpus")) {
|
| + guestCpus = _json["guestCpus"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| + if (_json.containsKey("imageSpaceGb")) {
|
| + imageSpaceGb = _json["imageSpaceGb"];
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("machineType")) {
|
| - machineType = _json["machineType"];
|
| + if (_json.containsKey("maximumPersistentDisks")) {
|
| + maximumPersistentDisks = _json["maximumPersistentDisks"];
|
| }
|
| - if (_json.containsKey("metadata")) {
|
| - metadata = new Metadata.fromJson(_json["metadata"]);
|
| + if (_json.containsKey("maximumPersistentDisksSizeGb")) {
|
| + maximumPersistentDisksSizeGb = _json["maximumPersistentDisksSizeGb"];
|
| + }
|
| + if (_json.containsKey("memoryMb")) {
|
| + memoryMb = _json["memoryMb"];
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("networkInterfaces")) {
|
| - networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkInterface.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("scheduling")) {
|
| - scheduling = new Scheduling.fromJson(_json["scheduling"]);
|
| + if (_json.containsKey("scratchDisks")) {
|
| + scratchDisks = _json["scratchDisks"].map((value) => new MachineTypeScratchDisks.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("serviceAccounts")) {
|
| - serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| - }
|
| - if (_json.containsKey("statusMessage")) {
|
| - statusMessage = _json["statusMessage"];
|
| - }
|
| - if (_json.containsKey("tags")) {
|
| - tags = new Tags.fromJson(_json["tags"]);
|
| - }
|
| if (_json.containsKey("zone")) {
|
| zone = _json["zone"];
|
| }
|
| @@ -11083,54 +12813,45 @@ class Instance {
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (canIpForward != null) {
|
| - _json["canIpForward"] = canIpForward;
|
| - }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = (deprecated).toJson();
|
| + }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (disks != null) {
|
| - _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| + if (guestCpus != null) {
|
| + _json["guestCpus"] = guestCpus;
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| + if (imageSpaceGb != null) {
|
| + _json["imageSpaceGb"] = imageSpaceGb;
|
| + }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (machineType != null) {
|
| - _json["machineType"] = machineType;
|
| + if (maximumPersistentDisks != null) {
|
| + _json["maximumPersistentDisks"] = maximumPersistentDisks;
|
| }
|
| - if (metadata != null) {
|
| - _json["metadata"] = (metadata).toJson();
|
| + if (maximumPersistentDisksSizeGb != null) {
|
| + _json["maximumPersistentDisksSizeGb"] = maximumPersistentDisksSizeGb;
|
| + }
|
| + if (memoryMb != null) {
|
| + _json["memoryMb"] = memoryMb;
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (networkInterfaces != null) {
|
| - _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (scheduling != null) {
|
| - _json["scheduling"] = (scheduling).toJson();
|
| + if (scratchDisks != null) {
|
| + _json["scratchDisks"] = scratchDisks.map((value) => (value).toJson()).toList();
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (serviceAccounts != null) {
|
| - _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| - }
|
| - if (statusMessage != null) {
|
| - _json["statusMessage"] = statusMessage;
|
| - }
|
| - if (tags != null) {
|
| - _json["tags"] = (tags).toJson();
|
| - }
|
| if (zone != null) {
|
| _json["zone"] = zone;
|
| }
|
| @@ -11139,34 +12860,36 @@ class Instance {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class InstanceAggregatedList {
|
| +class MachineTypeAggregatedList {
|
| /**
|
| - * 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 instance lists. */
|
| - core.Map<core.String, InstancesScopedList> items;
|
| + /** [Output Only] A map of scoped machine type lists. */
|
| + core.Map<core.String, MachineTypesScopedList> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#machineTypeAggregatedList
|
| + * for aggregated lists of machine types.
|
| + */
|
| 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;
|
|
|
|
|
| - InstanceAggregatedList();
|
| + MachineTypeAggregatedList();
|
|
|
| - InstanceAggregatedList.fromJson(core.Map _json) {
|
| + MachineTypeAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new InstancesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new MachineTypesScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -11185,7 +12908,7 @@ class InstanceAggregatedList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -11201,34 +12924,37 @@ class InstanceAggregatedList {
|
| }
|
|
|
|
|
| -/** Contains a list of instance resources. */
|
| -class InstanceList {
|
| +/** Contains a list of Machine Type resources. */
|
| +class MachineTypeList {
|
| /**
|
| - * 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 Instance resources. */
|
| - core.List<Instance> items;
|
| + /** [Output Only] A list of Machine Type resources. */
|
| + core.List<MachineType> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#machineTypeList for lists of
|
| + * machine types.
|
| + */
|
| 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;
|
|
|
|
|
| - InstanceList();
|
| + MachineTypeList();
|
|
|
| - InstanceList.fromJson(core.Map _json) {
|
| + MachineTypeList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Instance.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new MachineType.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -11263,204 +12989,302 @@ class InstanceList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class InstanceProperties {
|
| - /**
|
| - * Allows instances created based on this template to send packets with source
|
| - * IP addresses other than their own and receive packets with destination IP
|
| - * addresses other than their own. If these instances will be used as an IP
|
| - * gateway or it will be set as the next-hop in a Route resource, say true. If
|
| - * unsure, leave this set to false.
|
| - */
|
| - core.bool canIpForward;
|
| +class MachineTypesScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
|
|
| - /**
|
| - * An optional textual description for the instances created based on the
|
| - * instance template resource; provided by the client when the template is
|
| - * created.
|
| - */
|
| - core.String description;
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
|
|
| - /**
|
| - * Array of disks associated with instance created based on this template.
|
| - */
|
| - core.List<AttachedDisk> disks;
|
|
|
| - /**
|
| - * Name of the machine type resource describing which machine type to use to
|
| - * host the instances created based on this template; provided by the client
|
| - * when the instance template is created.
|
| - */
|
| - core.String machineType;
|
| + MachineTypesScopedListWarningData();
|
|
|
| - /**
|
| - * Metadata key/value pairs assigned to instances created based on this
|
| - * template. Consists of custom metadata or predefined keys; see Instance
|
| - * documentation for more information.
|
| - */
|
| - Metadata metadata;
|
| + MachineTypesScopedListWarningData.fromJson(core.Map _json) {
|
| + if (_json.containsKey("key")) {
|
| + key = _json["key"];
|
| + }
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| + }
|
| + }
|
|
|
| - /**
|
| - * Array of configurations for this interface. This specifies how this
|
| - * interface is configured to interact with other network services, such as
|
| - * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access
|
| - * config supported. If there are no accessConfigs specified, then this
|
| - * instances created based based on this template will have no external
|
| - * internet access.
|
| - */
|
| - core.List<NetworkInterface> networkInterfaces;
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| + }
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
|
|
| - /** Scheduling options for the instances created based on this template. */
|
| - Scheduling scheduling;
|
|
|
| +/**
|
| + * [Output Only] An informational warning that appears when the machine types
|
| + * list is empty.
|
| + */
|
| +class MachineTypesScopedListWarning {
|
| /**
|
| - * A list of service accounts each with specified scopes, for which access
|
| - * tokens are to be made available to the instances created based on this
|
| - * template, through metadata queries.
|
| + * [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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| */
|
| - core.List<ServiceAccount> serviceAccounts;
|
| + core.String code;
|
|
|
| - /**
|
| - * A list of tags to be applied to the instances created based on this
|
| - * template used to identify valid sources or targets for network firewalls.
|
| - * Provided by the client on instance creation. The tags can be later modified
|
| - * by the setTags method. Each tag within the list must comply with RFC1035.
|
| - */
|
| - Tags tags;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<MachineTypesScopedListWarningData> data;
|
|
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
| - InstanceProperties();
|
|
|
| - InstanceProperties.fromJson(core.Map _json) {
|
| - if (_json.containsKey("canIpForward")) {
|
| - canIpForward = _json["canIpForward"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| + MachineTypesScopedListWarning();
|
| +
|
| + MachineTypesScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("disks")) {
|
| - disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).toList();
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new MachineTypesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("machineType")) {
|
| - machineType = _json["machineType"];
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| - if (_json.containsKey("metadata")) {
|
| - metadata = new Metadata.fromJson(_json["metadata"]);
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (_json.containsKey("networkInterfaces")) {
|
| - networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkInterface.fromJson(value)).toList();
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| }
|
| - if (_json.containsKey("scheduling")) {
|
| - scheduling = new Scheduling.fromJson(_json["scheduling"]);
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| - if (_json.containsKey("serviceAccounts")) {
|
| - serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList();
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class MachineTypesScopedList {
|
| + /** [Output Only] List of machine types contained in this scope. */
|
| + core.List<MachineType> machineTypes;
|
| +
|
| + /**
|
| + * [Output Only] An informational warning that appears when the machine types
|
| + * list is empty.
|
| + */
|
| + MachineTypesScopedListWarning warning;
|
| +
|
| +
|
| + MachineTypesScopedList();
|
| +
|
| + MachineTypesScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("machineTypes")) {
|
| + machineTypes = _json["machineTypes"].map((value) => new MachineType.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("tags")) {
|
| - tags = new Tags.fromJson(_json["tags"]);
|
| + if (_json.containsKey("warning")) {
|
| + warning = new MachineTypesScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (canIpForward != null) {
|
| - _json["canIpForward"] = canIpForward;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (disks != null) {
|
| - _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (machineType != null) {
|
| - _json["machineType"] = machineType;
|
| + if (machineTypes != null) {
|
| + _json["machineTypes"] = machineTypes.map((value) => (value).toJson()).toList();
|
| }
|
| - if (metadata != null) {
|
| - _json["metadata"] = (metadata).toJson();
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| - if (networkInterfaces != null) {
|
| - _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJson()).toList();
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class MetadataItems {
|
| + /**
|
| + * Key for the metadata entry. Keys must conform to the following regexp:
|
| + * [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as
|
| + * part of a URL in the metadata server. Additionally, to avoid ambiguity,
|
| + * keys must not conflict with any other metadata keys for the project.
|
| + */
|
| + core.String key;
|
| +
|
| + /**
|
| + * Value for the metadata entry. These are free-form strings, and only have
|
| + * meaning as interpreted by the image running in the instance. The only
|
| + * restriction placed on values is that their size must be less than or equal
|
| + * to 32768 bytes.
|
| + */
|
| + core.String value;
|
| +
|
| +
|
| + MetadataItems();
|
| +
|
| + MetadataItems.fromJson(core.Map _json) {
|
| + if (_json.containsKey("key")) {
|
| + key = _json["key"];
|
| }
|
| - if (scheduling != null) {
|
| - _json["scheduling"] = (scheduling).toJson();
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| - if (serviceAccounts != null) {
|
| - _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList();
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (tags != null) {
|
| - _json["tags"] = (tags).toJson();
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class InstanceReference {
|
| - /** Not documented yet. */
|
| - core.String instance;
|
| +/** A metadata key/value entry. */
|
| +class Metadata {
|
| + /**
|
| + * Specifies a fingerprint for this request, which is essentially a hash of
|
| + * the metadata's contents and used for optimistic locking. The fingerprint is
|
| + * initially generated by Compute Engine and changes after every request to
|
| + * modify or update metadata. You must always provide an up-to-date
|
| + * fingerprint hash in order to update or change metadata.
|
| + */
|
| + core.String fingerprint;
|
|
|
| + core.List<core.int> get fingerprintAsBytes {
|
| + return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| + }
|
|
|
| - InstanceReference();
|
| + void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| + fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + }
|
|
|
| - InstanceReference.fromJson(core.Map _json) {
|
| - if (_json.containsKey("instance")) {
|
| - instance = _json["instance"];
|
| + /**
|
| + * Array of key/value pairs. The total size of all keys and values must be
|
| + * less than 512 KB.
|
| + */
|
| + core.List<MetadataItems> items;
|
| +
|
| + /**
|
| + * [Output Only] Type of the resource. Always compute#metadata for metadata.
|
| + */
|
| + core.String kind;
|
| +
|
| +
|
| + Metadata();
|
| +
|
| + Metadata.fromJson(core.Map _json) {
|
| + if (_json.containsKey("fingerprint")) {
|
| + fingerprint = _json["fingerprint"];
|
| + }
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new MetadataItems.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (instance != null) {
|
| - _json["instance"] = instance;
|
| + if (fingerprint != null) {
|
| + _json["fingerprint"] = fingerprint;
|
| + }
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** An Instance Template resource. */
|
| -class InstanceTemplate {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +/** A network resource. */
|
| +class Network {
|
| + /**
|
| + * The range of internal addresses that are legal on this network. This range
|
| + * is a CIDR specification, for example: 192.168.0.0/16. Provided by the
|
| + * client when the network is created.
|
| + */
|
| + core.String IPv4Range;
|
| +
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
|
|
| /**
|
| - * An optional textual description of the instance template resource; 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;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * A gateway address for default routing to other networks. This value is read
|
| + * only and is selected by the Google Compute Engine, typically as the first
|
| + * usable address in the IPv4Range.
|
| + */
|
| + core.String gatewayIPv4;
|
| +
|
| + /**
|
| + * [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#network for networks.
|
| + */
|
| core.String kind;
|
|
|
| /**
|
| - * Name of the instance template 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;
|
|
|
| - /** The instance properties portion of this instance template resource. */
|
| - InstanceProperties properties;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
|
|
| - InstanceTemplate();
|
| + Network();
|
|
|
| - InstanceTemplate.fromJson(core.Map _json) {
|
| + Network.fromJson(core.Map _json) {
|
| + if (_json.containsKey("IPv4Range")) {
|
| + IPv4Range = _json["IPv4Range"];
|
| + }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("gatewayIPv4")) {
|
| + gatewayIPv4 = _json["gatewayIPv4"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -11470,9 +13294,6 @@ class InstanceTemplate {
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("properties")) {
|
| - properties = new InstanceProperties.fromJson(_json["properties"]);
|
| - }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| @@ -11480,12 +13301,18 @@ class InstanceTemplate {
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (IPv4Range != null) {
|
| + _json["IPv4Range"] = IPv4Range;
|
| + }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (gatewayIPv4 != null) {
|
| + _json["gatewayIPv4"] = gatewayIPv4;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -11495,9 +13322,6 @@ class InstanceTemplate {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (properties != null) {
|
| - _json["properties"] = (properties).toJson();
|
| - }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| @@ -11506,34 +13330,112 @@ class InstanceTemplate {
|
| }
|
|
|
|
|
| -/** Contains a list of instance template resources. */
|
| -class InstanceTemplateList {
|
| +/** A network interface resource attached to an instance. */
|
| +class NetworkInterface {
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * 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.
|
| + */
|
| + core.List<AccessConfig> accessConfigs;
|
| +
|
| + /**
|
| + * [Output Only] The name of the network interface, generated by the server.
|
| + * For network devices, these are eth0, eth1, etc.
|
| + */
|
| + core.String name;
|
| +
|
| + /**
|
| + * URL of the network resource for this instance. This is required for
|
| + * creating an instance but optional when creating a firewall rule. If not
|
| + * specified when creating a firewall rule, the default network is used:
|
| + *
|
| + * global/networks/default
|
| + *
|
| + * If you specify this property, you can specify the network as a full or
|
| + * partial URL. For example, the following are all valid URLs:
|
| + * -
|
| + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network
|
| + * - projects/project/global/networks/network
|
| + * - global/networks/default
|
| + */
|
| + core.String network;
|
| +
|
| + /**
|
| + * [Output Only] An optional IPV4 internal network address assigned to the
|
| + * instance for this network interface.
|
| + */
|
| + core.String networkIP;
|
| +
|
| +
|
| + NetworkInterface();
|
| +
|
| + NetworkInterface.fromJson(core.Map _json) {
|
| + if (_json.containsKey("accessConfigs")) {
|
| + accessConfigs = _json["accessConfigs"].map((value) => new AccessConfig.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("network")) {
|
| + network = _json["network"];
|
| + }
|
| + if (_json.containsKey("networkIP")) {
|
| + networkIP = _json["networkIP"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (accessConfigs != null) {
|
| + _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (network != null) {
|
| + _json["network"] = network;
|
| + }
|
| + if (networkIP != null) {
|
| + _json["networkIP"] = networkIP;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/** Contains a list of Network resources. */
|
| +class NetworkList {
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| core.String id;
|
|
|
| - /** A list of InstanceTemplate resources. */
|
| - core.List<InstanceTemplate> items;
|
| + /** [Output Only] A list of Network resources. */
|
| + core.List<Network> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#networkList for lists of
|
| + * networks.
|
| + */
|
| 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;
|
|
|
|
|
| - InstanceTemplateList();
|
| + NetworkList();
|
|
|
| - InstanceTemplateList.fromJson(core.Map _json) {
|
| + NetworkList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new InstanceTemplate.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Network.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -11568,18 +13470,91 @@ class InstanceTemplateList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class InstancesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| +class OperationErrorErrors {
|
| + /** [Output Only] The error type identifier for this error. */
|
| + core.String code;
|
| +
|
| + /**
|
| + * [Output Only] Indicates the field in the request which caused the error.
|
| + * This property is optional.
|
| + */
|
| + core.String location;
|
| +
|
| + /** [Output Only] An optional, human-readable error message. */
|
| + core.String message;
|
| +
|
| +
|
| + OperationErrorErrors();
|
| +
|
| + OperationErrorErrors.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("location")) {
|
| + location = _json["location"];
|
| + }
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| + }
|
| + if (location != null) {
|
| + _json["location"] = location;
|
| + }
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * [Output Only] If errors are generated during processing of the operation,
|
| + * this field will be populated.
|
| + */
|
| +class OperationError {
|
| + /**
|
| + * [Output Only] The array of errors encountered while processing this
|
| + * operation.
|
| + */
|
| + core.List<OperationErrorErrors> errors;
|
| +
|
| +
|
| + OperationError();
|
| +
|
| + OperationError.fromJson(core.Map _json) {
|
| + if (_json.containsKey("errors")) {
|
| + errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (errors != null) {
|
| + _json["errors"] = errors.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class OperationWarningsData {
|
| + /** [Output Only] A key for the warning data. */
|
| core.String key;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
|
|
| - InstancesScopedListWarningData();
|
| + OperationWarningsData();
|
|
|
| - InstancesScopedListWarningData.fromJson(core.Map _json) {
|
| + OperationWarningsData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -11601,13 +13576,9 @@ class InstancesScopedListWarningData {
|
| }
|
|
|
|
|
| -/**
|
| - * Informational warning which replaces the list of instances when the list is
|
| - * empty.
|
| - */
|
| -class InstancesScopedListWarning {
|
| +class OperationWarnings {
|
| /**
|
| - * The warning type identifier for this warning.
|
| + * [Output Only] The warning type identifier for this warning.
|
| * Possible string values are:
|
| * - "DEPRECATED_RESOURCE_USED"
|
| * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| @@ -11620,25 +13591,26 @@ class InstancesScopedListWarning {
|
| * - "NO_RESULTS_ON_PAGE"
|
| * - "REQUIRED_TOS_AGREEMENT"
|
| * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| * - "UNREACHABLE"
|
| */
|
| core.String code;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<InstancesScopedListWarningData> data;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<OperationWarningsData> data;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| core.String message;
|
|
|
|
|
| - InstancesScopedListWarning();
|
| + OperationWarnings();
|
|
|
| - InstancesScopedListWarning.fromJson(core.Map _json) {
|
| + OperationWarnings.fromJson(core.Map _json) {
|
| if (_json.containsKey("code")) {
|
| code = _json["code"];
|
| }
|
| if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new InstancesScopedListWarningData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new OperationWarningsData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -11661,214 +13633,197 @@ class InstancesScopedListWarning {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class InstancesScopedList {
|
| - /** List of instances contained in this scope. */
|
| - core.List<Instance> instances;
|
| -
|
| +/** An operation resource, used to manage asynchronous API requests. */
|
| +class Operation {
|
| /**
|
| - * Informational warning which replaces the list of instances when the list is
|
| - * empty.
|
| + * [Output Only] An optional identifier specified by the client when the
|
| + * mutation was initiated. Must be unique for all operation resources in the
|
| + * project
|
| */
|
| - InstancesScopedListWarning warning;
|
| -
|
| -
|
| - InstancesScopedList();
|
| -
|
| - InstancesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("instances")) {
|
| - instances = _json["instances"].map((value) => new Instance.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new InstancesScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (instances != null) {
|
| - _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| + core.String clientOperationId;
|
|
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
|
|
| -/** A license resource. */
|
| -class License {
|
| /**
|
| - * If true, the customer will be charged license fee for running software that
|
| - * contains this license on an instance.
|
| + * [Output Only] The time that this operation was completed. This is in
|
| + * RFC3339 text format.
|
| */
|
| - core.bool chargesUseFee;
|
| -
|
| - /** Type of resource. */
|
| - core.String kind;
|
| + core.String endTime;
|
|
|
| /**
|
| - * 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.
|
| + * [Output Only] If errors are generated during processing of the operation,
|
| + * this field will be populated.
|
| */
|
| - core.String name;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| -
|
| -
|
| - License();
|
| -
|
| - License.fromJson(core.Map _json) {
|
| - if (_json.containsKey("chargesUseFee")) {
|
| - chargesUseFee = _json["chargesUseFee"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (chargesUseFee != null) {
|
| - _json["chargesUseFee"] = chargesUseFee;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class MachineTypeScratchDisks {
|
| - /** Size of the scratch disk, defined in GB. */
|
| - core.int diskGb;
|
| -
|
| -
|
| - MachineTypeScratchDisks();
|
| + OperationError error;
|
|
|
| - MachineTypeScratchDisks.fromJson(core.Map _json) {
|
| - if (_json.containsKey("diskGb")) {
|
| - diskGb = _json["diskGb"];
|
| - }
|
| - }
|
| + /**
|
| + * [Output Only] If the operation fails, this field contains the HTTP error
|
| + * message that was returned, such as NOT FOUND.
|
| + */
|
| + core.String httpErrorMessage;
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (diskGb != null) {
|
| - _json["diskGb"] = diskGb;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| + /**
|
| + * [Output Only] If the operation fails, this field contains the HTTP error
|
| + * message that was returned, such as 404.
|
| + */
|
| + core.int httpErrorStatusCode;
|
|
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| + */
|
| + core.String id;
|
|
|
| -/** A machine type resource. */
|
| -class MachineType {
|
| - /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| - core.String creationTimestamp;
|
| + /**
|
| + * [Output Only] The time that this operation was requested. This is in
|
| + * RFC3339 text format.
|
| + */
|
| + core.String insertTime;
|
|
|
| - /** The deprecation status associated with this machine type. */
|
| - DeprecationStatus deprecated;
|
| + /**
|
| + * [Output Only] Type of the resource. Always compute#Operation for Operation
|
| + * resources.
|
| + */
|
| + core.String kind;
|
|
|
| - /** An optional textual description of the resource. */
|
| - core.String description;
|
| + /** [Output Only] Name of the resource. */
|
| + core.String name;
|
|
|
| - /** Count of CPUs exposed to the instance. */
|
| - core.int guestCpus;
|
| + /**
|
| + * [Output Only] Type of the operation, such as insert, update, and delete.
|
| + */
|
| + core.String operationType;
|
|
|
| /**
|
| - * [Output Only] Unique identifier for the resource; defined by the server.
|
| + * [Output Only] An optional progress indicator that ranges from 0 to 100.
|
| + * There is no requirement that this be linear or support any granularity of
|
| + * operations. This should not be used to guess at when the operation will be
|
| + * complete. This number should be monotonically increasing as the operation
|
| + * progresses.
|
| */
|
| - core.String id;
|
| + core.int progress;
|
|
|
| - /** Space allotted for the image, defined in GB. */
|
| - core.int imageSpaceGb;
|
| + /**
|
| + * [Output Only] URL of the region where the operation resides. Only
|
| + * applicable for regional resources.
|
| + */
|
| + core.String region;
|
|
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| + /** [Output Only] Server defined URL for the resource. */
|
| + core.String selfLink;
|
|
|
| - /** Maximum persistent disks allowed. */
|
| - core.int maximumPersistentDisks;
|
| + /**
|
| + * [Output Only] The time that this operation was started by the server. This
|
| + * is in RFC3339 text format.
|
| + */
|
| + core.String startTime;
|
|
|
| - /** Maximum total persistent disks size (GB) allowed. */
|
| - core.String maximumPersistentDisksSizeGb;
|
| + /**
|
| + * [Output Only] Status of the operation. Can be one of the following:
|
| + * PENDING, RUNNING, or DONE.
|
| + * Possible string values are:
|
| + * - "DONE"
|
| + * - "PENDING"
|
| + * - "RUNNING"
|
| + */
|
| + core.String status;
|
|
|
| - /** Physical memory assigned to the instance, defined in MB. */
|
| - core.int memoryMb;
|
| + /**
|
| + * [Output Only] An optional textual description of the current status of the
|
| + * operation.
|
| + */
|
| + core.String statusMessage;
|
|
|
| - /** Name of the resource. */
|
| - core.String name;
|
| + /**
|
| + * [Output Only] Unique target ID which identifies a particular incarnation of
|
| + * the target.
|
| + */
|
| + core.String targetId;
|
|
|
| - /** List of extended scratch disks assigned to the instance. */
|
| - core.List<MachineTypeScratchDisks> scratchDisks;
|
| + /** [Output Only] URL of the resource the operation is mutating. */
|
| + core.String targetLink;
|
|
|
| - /** [Output Only] Server defined URL for the resource. */
|
| - core.String selfLink;
|
| + /**
|
| + * [Output Only] User who requested the operation, for example:
|
| + * user@example.com.
|
| + */
|
| + core.String user;
|
|
|
| /**
|
| - * [Output Only] The name of the zone where the machine type resides, such as
|
| - * us-central1-a.
|
| + * [Output Only] If warning messages are generated during processing of the
|
| + * operation, this field will be populated.
|
| */
|
| + core.List<OperationWarnings> warnings;
|
| +
|
| + /** [Output Only] URL of the zone where the operation resides. */
|
| core.String zone;
|
|
|
|
|
| - MachineType();
|
| + Operation();
|
|
|
| - MachineType.fromJson(core.Map _json) {
|
| + Operation.fromJson(core.Map _json) {
|
| + if (_json.containsKey("clientOperationId")) {
|
| + clientOperationId = _json["clientOperationId"];
|
| + }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("deprecated")) {
|
| - deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| + if (_json.containsKey("endTime")) {
|
| + endTime = _json["endTime"];
|
| }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| + if (_json.containsKey("error")) {
|
| + error = new OperationError.fromJson(_json["error"]);
|
| }
|
| - if (_json.containsKey("guestCpus")) {
|
| - guestCpus = _json["guestCpus"];
|
| + if (_json.containsKey("httpErrorMessage")) {
|
| + httpErrorMessage = _json["httpErrorMessage"];
|
| + }
|
| + if (_json.containsKey("httpErrorStatusCode")) {
|
| + httpErrorStatusCode = _json["httpErrorStatusCode"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| - if (_json.containsKey("imageSpaceGb")) {
|
| - imageSpaceGb = _json["imageSpaceGb"];
|
| + if (_json.containsKey("insertTime")) {
|
| + insertTime = _json["insertTime"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("maximumPersistentDisks")) {
|
| - maximumPersistentDisks = _json["maximumPersistentDisks"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| }
|
| - if (_json.containsKey("maximumPersistentDisksSizeGb")) {
|
| - maximumPersistentDisksSizeGb = _json["maximumPersistentDisksSizeGb"];
|
| + if (_json.containsKey("operationType")) {
|
| + operationType = _json["operationType"];
|
| }
|
| - if (_json.containsKey("memoryMb")) {
|
| - memoryMb = _json["memoryMb"];
|
| + if (_json.containsKey("progress")) {
|
| + progress = _json["progress"];
|
| + }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("startTime")) {
|
| + startTime = _json["startTime"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("statusMessage")) {
|
| + statusMessage = _json["statusMessage"];
|
| + }
|
| + if (_json.containsKey("targetId")) {
|
| + targetId = _json["targetId"];
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + if (_json.containsKey("targetLink")) {
|
| + targetLink = _json["targetLink"];
|
| }
|
| - if (_json.containsKey("scratchDisks")) {
|
| - scratchDisks = _json["scratchDisks"].map((value) => new MachineTypeScratchDisks.fromJson(value)).toList();
|
| + if (_json.containsKey("user")) {
|
| + user = _json["user"];
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("warnings")) {
|
| + warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("zone")) {
|
| zone = _json["zone"];
|
| @@ -11877,45 +13832,69 @@ class MachineType {
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (clientOperationId != null) {
|
| + _json["clientOperationId"] = clientOperationId;
|
| + }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (deprecated != null) {
|
| - _json["deprecated"] = (deprecated).toJson();
|
| + if (endTime != null) {
|
| + _json["endTime"] = endTime;
|
| }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| + if (error != null) {
|
| + _json["error"] = (error).toJson();
|
| }
|
| - if (guestCpus != null) {
|
| - _json["guestCpus"] = guestCpus;
|
| + if (httpErrorMessage != null) {
|
| + _json["httpErrorMessage"] = httpErrorMessage;
|
| + }
|
| + if (httpErrorStatusCode != null) {
|
| + _json["httpErrorStatusCode"] = httpErrorStatusCode;
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| - if (imageSpaceGb != null) {
|
| - _json["imageSpaceGb"] = imageSpaceGb;
|
| + if (insertTime != null) {
|
| + _json["insertTime"] = insertTime;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (maximumPersistentDisks != null) {
|
| - _json["maximumPersistentDisks"] = maximumPersistentDisks;
|
| - }
|
| - if (maximumPersistentDisksSizeGb != null) {
|
| - _json["maximumPersistentDisksSizeGb"] = maximumPersistentDisksSizeGb;
|
| - }
|
| - if (memoryMb != null) {
|
| - _json["memoryMb"] = memoryMb;
|
| - }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (scratchDisks != null) {
|
| - _json["scratchDisks"] = scratchDisks.map((value) => (value).toJson()).toList();
|
| + if (operationType != null) {
|
| + _json["operationType"] = operationType;
|
| + }
|
| + if (progress != null) {
|
| + _json["progress"] = progress;
|
| + }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| + if (startTime != null) {
|
| + _json["startTime"] = startTime;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (statusMessage != null) {
|
| + _json["statusMessage"] = statusMessage;
|
| + }
|
| + if (targetId != null) {
|
| + _json["targetId"] = targetId;
|
| + }
|
| + if (targetLink != null) {
|
| + _json["targetLink"] = targetLink;
|
| + }
|
| + if (user != null) {
|
| + _json["user"] = user;
|
| + }
|
| + if (warnings != null) {
|
| + _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
|
| + }
|
| if (zone != null) {
|
| _json["zone"] = zone;
|
| }
|
| @@ -11924,34 +13903,36 @@ class MachineType {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class MachineTypeAggregatedList {
|
| +class OperationAggregatedList {
|
| /**
|
| * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| core.String id;
|
|
|
| - /** A map of scoped machine type lists. */
|
| - core.Map<core.String, MachineTypesScopedList> items;
|
| + /** [Output Only] A map of scoped operation lists. */
|
| + core.Map<core.String, OperationsScopedList> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#operationAggregatedList for
|
| + * aggregated lists of operations.
|
| + */
|
| core.String kind;
|
|
|
| /** [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;
|
|
|
|
|
| - MachineTypeAggregatedList();
|
| + OperationAggregatedList();
|
|
|
| - MachineTypeAggregatedList.fromJson(core.Map _json) {
|
| + OperationAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new MachineTypesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new OperationsScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -11970,7 +13951,7 @@ class MachineTypeAggregatedList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -11986,34 +13967,37 @@ class MachineTypeAggregatedList {
|
| }
|
|
|
|
|
| -/** Contains a list of machine type resources. */
|
| -class MachineTypeList {
|
| +/** Contains a list of operation resources. */
|
| +class OperationList {
|
| /**
|
| - * 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 MachineType resources. */
|
| - core.List<MachineType> items;
|
| + /** [Output Only] The operation resources. */
|
| + core.List<Operation> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#operations for Operations
|
| + * resource.
|
| + */
|
| core.String kind;
|
|
|
| - /** A token used to continue a truncated list request (output only). */
|
| + /** [Output Only] A token used to continue a truncate. */
|
| core.String nextPageToken;
|
|
|
| - /** Server defined URL for this resource (output only). */
|
| + /** [Output Only] Server defined URL for this resource. */
|
| core.String selfLink;
|
|
|
|
|
| - MachineTypeList();
|
| + OperationList();
|
|
|
| - MachineTypeList.fromJson(core.Map _json) {
|
| + OperationList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new MachineType.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Operation.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -12048,33 +14032,185 @@ class MachineTypeList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class MachineTypesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| +class OperationsScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| core.String key;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
|
|
| - MachineTypesScopedListWarningData();
|
| + OperationsScopedListWarningData();
|
|
|
| - MachineTypesScopedListWarningData.fromJson(core.Map _json) {
|
| + OperationsScopedListWarningData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| + 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 operations
|
| + * when the list is empty.
|
| + */
|
| +class OperationsScopedListWarning {
|
| + /**
|
| + * [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"
|
| + * - "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<OperationsScopedListWarningData> data;
|
| +
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
| +
|
| +
|
| + OperationsScopedListWarning();
|
| +
|
| + OperationsScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new OperationsScopedListWarningData.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 OperationsScopedList {
|
| + /** [Output Only] List of operations contained in this scope. */
|
| + core.List<Operation> operations;
|
| +
|
| + /**
|
| + * [Output Only] Informational warning which replaces the list of operations
|
| + * when the list is empty.
|
| + */
|
| + OperationsScopedListWarning warning;
|
| +
|
| +
|
| + OperationsScopedList();
|
| +
|
| + OperationsScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("operations")) {
|
| + operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("warning")) {
|
| + warning = new OperationsScopedListWarning.fromJson(_json["warning"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (operations != null) {
|
| + _json["operations"] = operations.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * A matcher for the path portion of the URL. The BackendService from the
|
| + * longest-matched rule will serve the URL. If no rule was matched, the
|
| + * default_service will be used.
|
| + */
|
| +class PathMatcher {
|
| + /**
|
| + * The URL to the BackendService resource. This will be used if none of the
|
| + * 'pathRules' defined by this PathMatcher is met by the URL's path portion.
|
| + */
|
| + core.String defaultService;
|
| +
|
| + core.String description;
|
| +
|
| + /** The name to which this PathMatcher is referred by the HostRule. */
|
| + core.String name;
|
| +
|
| + /** The list of path rules. */
|
| + core.List<PathRule> pathRules;
|
| +
|
| +
|
| + PathMatcher();
|
| +
|
| + PathMatcher.fromJson(core.Map _json) {
|
| + if (_json.containsKey("defaultService")) {
|
| + defaultService = _json["defaultService"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("pathRules")) {
|
| + pathRules = _json["pathRules"].map((value) => new PathRule.fromJson(value)).toList();
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| + if (defaultService != null) {
|
| + _json["defaultService"] = defaultService;
|
| }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (pathRules != null) {
|
| + _json["pathRules"] = pathRules.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| @@ -12082,258 +14218,273 @@ class MachineTypesScopedListWarningData {
|
|
|
|
|
| /**
|
| - * An informational warning that appears when the machine types list is empty.
|
| + * A path-matching rule for a URL. If matched, will use the specified
|
| + * BackendService to handle the traffic arriving at this URL.
|
| */
|
| -class MachineTypesScopedListWarning {
|
| +class PathRule {
|
| /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| + * The list of path patterns to match. Each must start with / and the only
|
| + * place a * is allowed is at the end following a /. The string fed to the
|
| + * path matcher does not include any text after the first ? or #, and those
|
| + * chars are not allowed here.
|
| */
|
| - core.String code;
|
| -
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<MachineTypesScopedListWarningData> data;
|
| + core.List<core.String> paths;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| + /** The URL of the BackendService resource if this rule is matched. */
|
| + core.String service;
|
|
|
|
|
| - MachineTypesScopedListWarning();
|
| + PathRule();
|
|
|
| - MachineTypesScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| - }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new MachineTypesScopedListWarningData.fromJson(value)).toList();
|
| + PathRule.fromJson(core.Map _json) {
|
| + if (_json.containsKey("paths")) {
|
| + paths = _json["paths"];
|
| }
|
| - if (_json.containsKey("message")) {
|
| - message = _json["message"];
|
| + if (_json.containsKey("service")) {
|
| + service = _json["service"];
|
| }
|
| }
|
|
|
| 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 (paths != null) {
|
| + _json["paths"] = paths;
|
| }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| + if (service != null) {
|
| + _json["service"] = service;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class MachineTypesScopedList {
|
| - /** List of machine types contained in this scope. */
|
| - core.List<MachineType> machineTypes;
|
| -
|
| +/**
|
| + * A Project resource. Projects can only be created in the Google Developers
|
| + * Console. Unless marked otherwise, values can only be modified in the console.
|
| + */
|
| +class Project {
|
| /**
|
| - * An informational warning that appears when the machine types list is empty.
|
| + * Metadata key/value pairs available to all instances contained in this
|
| + * project. See Custom metadata for more information.
|
| */
|
| - MachineTypesScopedListWarning warning;
|
| -
|
| -
|
| - MachineTypesScopedList();
|
| + Metadata commonInstanceMetadata;
|
|
|
| - MachineTypesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("machineTypes")) {
|
| - machineTypes = _json["machineTypes"].map((value) => new MachineType.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new MachineTypesScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (machineTypes != null) {
|
| - _json["machineTypes"] = machineTypes.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| + /** An optional textual description of the resource. */
|
| + core.String description;
|
|
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| + */
|
| + core.String id;
|
|
|
| -/** Not documented yet. */
|
| -class MetadataItems {
|
| /**
|
| - * Key for the metadata entry. Keys must conform to the following regexp:
|
| - * [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as
|
| - * part of a URL in the metadata server. Additionally, to avoid ambiguity,
|
| - * keys must not conflict with any other metadata keys for the project.
|
| + * [Output Only] Type of the resource. Always compute#project for projects.
|
| */
|
| - core.String key;
|
| + core.String kind;
|
| +
|
| + /** Name of the resource. */
|
| + core.String name;
|
| +
|
| + /** [Output Only] Quotas assigned to this project. */
|
| + core.List<Quota> quotas;
|
| +
|
| + /** [Output Only] Server defined URL for the resource. */
|
| + core.String selfLink;
|
|
|
| /**
|
| - * Value for the metadata entry. These are free-form strings, and only have
|
| - * meaning as interpreted by the image running in the instance. The only
|
| - * restriction placed on values is that their size must be less than or equal
|
| - * to 32768 bytes.
|
| + * The location in Cloud Storage and naming method of the daily usage report.
|
| */
|
| - core.String value;
|
| + UsageExportLocation usageExportLocation;
|
|
|
|
|
| - MetadataItems();
|
| + Project();
|
|
|
| - MetadataItems.fromJson(core.Map _json) {
|
| - if (_json.containsKey("key")) {
|
| - key = _json["key"];
|
| + Project.fromJson(core.Map _json) {
|
| + if (_json.containsKey("commonInstanceMetadata")) {
|
| + commonInstanceMetadata = new Metadata.fromJson(_json["commonInstanceMetadata"]);
|
| }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| + 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("quotas")) {
|
| + quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("usageExportLocation")) {
|
| + usageExportLocation = new UsageExportLocation.fromJson(_json["usageExportLocation"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| + if (commonInstanceMetadata != null) {
|
| + _json["commonInstanceMetadata"] = (commonInstanceMetadata).toJson();
|
| }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| + 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 (quotas != null) {
|
| + _json["quotas"] = quotas.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (usageExportLocation != null) {
|
| + _json["usageExportLocation"] = (usageExportLocation).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A metadata key/value entry. */
|
| -class Metadata {
|
| - /**
|
| - * Fingerprint of this resource. A hash of the metadata's contents. This field
|
| - * is used for optimistic locking. An up-to-date metadata fingerprint must be
|
| - * provided in order to modify metadata.
|
| - */
|
| - core.String fingerprint;
|
| -
|
| - core.List<core.int> get fingerprintAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| - }
|
| -
|
| - void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| - fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| - }
|
| +/** A quotas entry. */
|
| +class Quota {
|
| + /** [Output Only] Quota limit for this metric. */
|
| + core.double limit;
|
|
|
| /**
|
| - * Array of key/value pairs. The total size of all keys and values must be
|
| - * less than 512 KB.
|
| + * [Output Only] Name of the quota metric.
|
| + * Possible string values are:
|
| + * - "BACKEND_SERVICES"
|
| + * - "CPUS"
|
| + * - "DISKS_TOTAL_GB"
|
| + * - "FIREWALLS"
|
| + * - "FORWARDING_RULES"
|
| + * - "HEALTH_CHECKS"
|
| + * - "IMAGES"
|
| + * - "INSTANCES"
|
| + * - "IN_USE_ADDRESSES"
|
| + * - "LOCAL_SSD_TOTAL_GB"
|
| + * - "NETWORKS"
|
| + * - "ROUTES"
|
| + * - "SNAPSHOTS"
|
| + * - "SSD_TOTAL_GB"
|
| + * - "STATIC_ADDRESSES"
|
| + * - "TARGET_HTTP_PROXIES"
|
| + * - "TARGET_INSTANCES"
|
| + * - "TARGET_POOLS"
|
| + * - "URL_MAPS"
|
| */
|
| - core.List<MetadataItems> items;
|
| + core.String metric;
|
|
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| + /** [Output Only] Current usage of this metric. */
|
| + core.double usage;
|
|
|
|
|
| - Metadata();
|
| + Quota();
|
|
|
| - Metadata.fromJson(core.Map _json) {
|
| - if (_json.containsKey("fingerprint")) {
|
| - fingerprint = _json["fingerprint"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new MetadataItems.fromJson(value)).toList();
|
| + Quota.fromJson(core.Map _json) {
|
| + if (_json.containsKey("limit")) {
|
| + limit = _json["limit"];
|
| }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (_json.containsKey("metric")) {
|
| + metric = _json["metric"];
|
| + }
|
| + if (_json.containsKey("usage")) {
|
| + usage = _json["usage"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (fingerprint != null) {
|
| - _json["fingerprint"] = fingerprint;
|
| + if (limit != null) {
|
| + _json["limit"] = limit;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = items.map((value) => (value).toJson()).toList();
|
| + if (metric != null) {
|
| + _json["metric"] = metric;
|
| }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + if (usage != null) {
|
| + _json["usage"] = usage;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A network resource. */
|
| -class Network {
|
| - /**
|
| - * Required; The range of internal addresses that are legal on this network.
|
| - * This range is a CIDR specification, for example: 192.168.0.0/16. Provided
|
| - * by the client when the network is created.
|
| - */
|
| - core.String IPv4Range;
|
| -
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +/** Region resource. */
|
| +class Region {
|
| + /** [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] The deprecation status associated with this region. */
|
| + DeprecationStatus deprecated;
|
|
|
| - /**
|
| - * An optional address that is used for default routing to other networks.
|
| - * This must be within the range specified by IPv4Range, and is typically the
|
| - * first usable address in that range. If not specified, the default value is
|
| - * the first usable address in IPv4Range.
|
| - */
|
| - core.String gatewayIPv4;
|
| + /** [Output Only] Textual description of the resource. */
|
| + 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 the resource. Always compute#region for regions. */
|
| 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.
|
| - */
|
| + /** [Output Only] Name of the resource. */
|
| core.String name;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] Quotas assigned to this region. */
|
| + core.List<Quota> quotas;
|
| +
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| + /**
|
| + * [Output Only] Status of the region, either UP or DOWN.
|
| + * Possible string values are:
|
| + * - "DOWN"
|
| + * - "UP"
|
| + */
|
| + core.String status;
|
| +
|
| + /**
|
| + * [Output Only] A list of zones available in this region, in the form of
|
| + * resource URLs.
|
| + */
|
| + core.List<core.String> zones;
|
|
|
| - Network();
|
|
|
| - Network.fromJson(core.Map _json) {
|
| - if (_json.containsKey("IPv4Range")) {
|
| - IPv4Range = _json["IPv4Range"];
|
| - }
|
| + Region();
|
| +
|
| + Region.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| + }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("gatewayIPv4")) {
|
| - gatewayIPv4 = _json["gatewayIPv4"];
|
| - }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -12343,25 +14494,31 @@ class Network {
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| + if (_json.containsKey("quotas")) {
|
| + quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList();
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("zones")) {
|
| + zones = _json["zones"];
|
| + }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (IPv4Range != null) {
|
| - _json["IPv4Range"] = IPv4Range;
|
| - }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = (deprecated).toJson();
|
| + }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (gatewayIPv4 != null) {
|
| - _json["gatewayIPv4"] = gatewayIPv4;
|
| - }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -12371,105 +14528,54 @@ class Network {
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| + if (quotas != null) {
|
| + _json["quotas"] = quotas.map((value) => (value).toJson()).toList();
|
| + }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** A network interface resource attached to an instance. */
|
| -class NetworkInterface {
|
| - /**
|
| - * Array of configurations for this interface. This specifies how this
|
| - * interface is configured to interact with other network services, such as
|
| - * connecting to the internet. 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;
|
| -
|
| - /**
|
| - * Name of the network interface, determined by the server; for network
|
| - * devices, these are e.g. eth0, eth1, etc. (output only).
|
| - */
|
| - core.String name;
|
| -
|
| - /** URL of the network resource attached to this interface. */
|
| - core.String network;
|
| -
|
| - /**
|
| - * An optional IPV4 internal network address assigned to the instance for this
|
| - * network interface (output only).
|
| - */
|
| - core.String networkIP;
|
| -
|
| -
|
| - NetworkInterface();
|
| -
|
| - NetworkInterface.fromJson(core.Map _json) {
|
| - if (_json.containsKey("accessConfigs")) {
|
| - accessConfigs = _json["accessConfigs"].map((value) => new AccessConfig.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("network")) {
|
| - network = _json["network"];
|
| - }
|
| - if (_json.containsKey("networkIP")) {
|
| - networkIP = _json["networkIP"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (accessConfigs != null) {
|
| - _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (network != null) {
|
| - _json["network"] = network;
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| }
|
| - if (networkIP != null) {
|
| - _json["networkIP"] = networkIP;
|
| + if (zones != null) {
|
| + _json["zones"] = zones;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of network resources. */
|
| -class NetworkList {
|
| +/** Contains a list of region resources. */
|
| +class RegionList {
|
| /**
|
| - * 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 Network resources. */
|
| - core.List<Network> items;
|
| + /** [Output Only] A list of Region resources. */
|
| + core.List<Region> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#regionList for lists of
|
| + * regions.
|
| + */
|
| 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;
|
|
|
|
|
| - NetworkList();
|
| + RegionList();
|
|
|
| - NetworkList.fromJson(core.Map _json) {
|
| + RegionList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Network.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Region.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -12504,93 +14610,42 @@ class NetworkList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class OperationErrorErrors {
|
| - /** [Output Only] The error type identifier for this error. */
|
| - core.String code;
|
| -
|
| - /**
|
| - * [Output Only] Indicates the field in the request which caused the error.
|
| - * This property is optional.
|
| - */
|
| - core.String location;
|
| -
|
| - /** [Output Only] An optional, human-readable error message. */
|
| - core.String message;
|
| -
|
| -
|
| - OperationErrorErrors();
|
| -
|
| - OperationErrorErrors.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| - }
|
| - if (_json.containsKey("location")) {
|
| - location = _json["location"];
|
| - }
|
| - if (_json.containsKey("message")) {
|
| - message = _json["message"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (code != null) {
|
| - _json["code"] = code;
|
| - }
|
| - if (location != null) {
|
| - _json["location"] = location;
|
| - }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/**
|
| - * [Output Only] If errors occurred during processing of this operation, this
|
| - * field will be populated.
|
| - */
|
| -class OperationError {
|
| +class ResourceGroupReference {
|
| /**
|
| - * [Output Only] The array of errors encountered while processing this
|
| - * operation.
|
| + * A URI referencing one of the resource views listed in the backend service.
|
| */
|
| - core.List<OperationErrorErrors> errors;
|
| + core.String group;
|
|
|
|
|
| - OperationError();
|
| + ResourceGroupReference();
|
|
|
| - OperationError.fromJson(core.Map _json) {
|
| - if (_json.containsKey("errors")) {
|
| - errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(value)).toList();
|
| + ResourceGroupReference.fromJson(core.Map _json) {
|
| + if (_json.containsKey("group")) {
|
| + group = _json["group"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (errors != null) {
|
| - _json["errors"] = errors.map((value) => (value).toJson()).toList();
|
| + if (group != null) {
|
| + _json["group"] = group;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class OperationWarningsData {
|
| - /** A key for the warning data. */
|
| +class RouteWarningsData {
|
| + /** [Output Only] A key for the warning data. */
|
| core.String key;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
|
|
| - OperationWarningsData();
|
| + RouteWarningsData();
|
|
|
| - OperationWarningsData.fromJson(core.Map _json) {
|
| + RouteWarningsData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -12612,10 +14667,9 @@ class OperationWarningsData {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class OperationWarnings {
|
| +class RouteWarnings {
|
| /**
|
| - * The warning type identifier for this warning.
|
| + * [Output Only] The warning type identifier for this warning.
|
| * Possible string values are:
|
| * - "DEPRECATED_RESOURCE_USED"
|
| * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| @@ -12628,25 +14682,26 @@ class OperationWarnings {
|
| * - "NO_RESULTS_ON_PAGE"
|
| * - "REQUIRED_TOS_AGREEMENT"
|
| * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| * - "UNREACHABLE"
|
| */
|
| core.String code;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<OperationWarningsData> data;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<RouteWarningsData> data;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| core.String message;
|
|
|
|
|
| - OperationWarnings();
|
| + RouteWarnings();
|
|
|
| - OperationWarnings.fromJson(core.Map _json) {
|
| + RouteWarnings.fromJson(core.Map _json) {
|
| if (_json.containsKey("code")) {
|
| code = _json["code"];
|
| }
|
| if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new OperationWarningsData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new RouteWarningsData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -12666,345 +14721,228 @@ class OperationWarnings {
|
| }
|
| return _json;
|
| }
|
| -}
|
| -
|
| -
|
| -/** An operation resource, used to manage asynchronous API requests. */
|
| -class Operation {
|
| - /** Not documented yet. */
|
| - core.String clientOperationId;
|
| +}
|
|
|
| - /** [Output Only] Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
|
|
| - /** Not documented yet. */
|
| - core.String endTime;
|
| +/**
|
| + * The route resource. A Route is a rule that specifies how certain packets
|
| + * should be handled by the virtual network. Routes are associated with VMs by
|
| + * tag and the set of Routes for a particular VM is called its routing table.
|
| + * For each packet leaving a VM, the system searches that VM's routing table for
|
| + * a single best matching Route. Routes match packets by destination IP address,
|
| + * preferring smaller or more specific ranges over larger ones. If there is a
|
| + * 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
|
| + * 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.
|
| + */
|
| +class Route {
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + core.String creationTimestamp;
|
|
|
| /**
|
| - * [Output Only] If errors occurred during processing of this operation, this
|
| - * field will be populated.
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| */
|
| - OperationError error;
|
| -
|
| - /** Not documented yet. */
|
| - core.String httpErrorMessage;
|
| + core.String description;
|
|
|
| - /** Not documented yet. */
|
| - core.int httpErrorStatusCode;
|
| + /** Which packets does this route apply to? */
|
| + core.String destRange;
|
|
|
| /**
|
| - * [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] The time that this operation was requested. This is in RFC
|
| - * 3339 format.
|
| - */
|
| - core.String insertTime;
|
| + /** Type of the resource. */
|
| + core.String kind;
|
|
|
| /**
|
| - * [Output Only] Type of the resource. Always kind#operation for Operation
|
| - * resources.
|
| + * 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.
|
| */
|
| - core.String kind;
|
| -
|
| - /** [Output Only] Name of the resource (output only). */
|
| core.String name;
|
|
|
| - /** Not documented yet. */
|
| - core.String operationType;
|
| -
|
| - /** Not documented yet. */
|
| - core.int progress;
|
| -
|
| /**
|
| - * [Output Only] URL of the region where the operation resides (output only).
|
| + * URL of the network to which this route is applied; provided by the client
|
| + * when the route is created.
|
| */
|
| - core.String region;
|
| + core.String network;
|
|
|
| - /** [Output Only] Server defined URL for the resource. */
|
| - core.String selfLink;
|
| + /** The URL to a gateway that should handle matching packets. */
|
| + core.String nextHopGateway;
|
|
|
| - /**
|
| - * [Output Only] The time that this operation was started by the server. This
|
| - * is in RFC 3339 format.
|
| - */
|
| - core.String startTime;
|
| + /** The URL to an instance that should handle matching packets. */
|
| + core.String nextHopInstance;
|
|
|
| /**
|
| - * [Output Only] Status of the operation. Can be one of the following:
|
| - * "PENDING", "RUNNING", or "DONE".
|
| - * Possible string values are:
|
| - * - "DONE"
|
| - * - "PENDING"
|
| - * - "RUNNING"
|
| + * The network IP address of an instance that should handle matching packets.
|
| */
|
| - core.String status;
|
| + core.String nextHopIp;
|
|
|
| - /**
|
| - * [Output Only] An optional textual description of the current status of the
|
| - * operation.
|
| - */
|
| - core.String statusMessage;
|
| + /** The URL of the local network if it should handle matching packets. */
|
| + core.String nextHopNetwork;
|
|
|
| - /**
|
| - * [Output Only] Unique target id which identifies a particular incarnation of
|
| - * the target.
|
| - */
|
| - core.String targetId;
|
| + /** The URL to a VpnTunnel that should handle matching packets. */
|
| + core.String nextHopVpnTunnel;
|
|
|
| /**
|
| - * [Output Only] URL of the resource the operation is mutating (output only).
|
| + * Breaks ties between Routes of equal specificity. Routes with smaller values
|
| + * win when tied with routes with larger values.
|
| */
|
| - core.String targetLink;
|
| + core.int priority;
|
|
|
| - /** Not documented yet. */
|
| - core.String user;
|
| + /** Server defined URL for the resource (output only). */
|
| + core.String selfLink;
|
|
|
| - /** Not documented yet. */
|
| - core.List<OperationWarnings> warnings;
|
| + /** A list of instance tags to which this route applies. */
|
| + core.List<core.String> tags;
|
|
|
| /**
|
| - * [Output Only] URL of the zone where the operation resides (output only).
|
| + * If potential misconfigurations are detected for this route, this field will
|
| + * be populated with warning messages.
|
| */
|
| - core.String zone;
|
| + core.List<RouteWarnings> warnings;
|
|
|
|
|
| - Operation();
|
| + Route();
|
|
|
| - Operation.fromJson(core.Map _json) {
|
| - if (_json.containsKey("clientOperationId")) {
|
| - clientOperationId = _json["clientOperationId"];
|
| - }
|
| + Route.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("endTime")) {
|
| - endTime = _json["endTime"];
|
| - }
|
| - if (_json.containsKey("error")) {
|
| - error = new OperationError.fromJson(_json["error"]);
|
| - }
|
| - if (_json.containsKey("httpErrorMessage")) {
|
| - httpErrorMessage = _json["httpErrorMessage"];
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| - if (_json.containsKey("httpErrorStatusCode")) {
|
| - httpErrorStatusCode = _json["httpErrorStatusCode"];
|
| + if (_json.containsKey("destRange")) {
|
| + destRange = _json["destRange"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| - if (_json.containsKey("insertTime")) {
|
| - insertTime = _json["insertTime"];
|
| - }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("operationType")) {
|
| - operationType = _json["operationType"];
|
| - }
|
| - if (_json.containsKey("progress")) {
|
| - progress = _json["progress"];
|
| - }
|
| - if (_json.containsKey("region")) {
|
| - region = _json["region"];
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| - }
|
| - if (_json.containsKey("startTime")) {
|
| - startTime = _json["startTime"];
|
| - }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| - }
|
| - if (_json.containsKey("statusMessage")) {
|
| - statusMessage = _json["statusMessage"];
|
| - }
|
| - if (_json.containsKey("targetId")) {
|
| - targetId = _json["targetId"];
|
| - }
|
| - if (_json.containsKey("targetLink")) {
|
| - targetLink = _json["targetLink"];
|
| - }
|
| - if (_json.containsKey("user")) {
|
| - user = _json["user"];
|
| - }
|
| - if (_json.containsKey("warnings")) {
|
| - warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("zone")) {
|
| - zone = _json["zone"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (clientOperationId != null) {
|
| - _json["clientOperationId"] = clientOperationId;
|
| - }
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| - }
|
| - if (endTime != null) {
|
| - _json["endTime"] = endTime;
|
| - }
|
| - if (error != null) {
|
| - _json["error"] = (error).toJson();
|
| - }
|
| - if (httpErrorMessage != null) {
|
| - _json["httpErrorMessage"] = httpErrorMessage;
|
| - }
|
| - if (httpErrorStatusCode != null) {
|
| - _json["httpErrorStatusCode"] = httpErrorStatusCode;
|
| - }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (insertTime != null) {
|
| - _json["insertTime"] = insertTime;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (operationType != null) {
|
| - _json["operationType"] = operationType;
|
| - }
|
| - if (progress != null) {
|
| - _json["progress"] = progress;
|
| - }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| - }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| - }
|
| - if (startTime != null) {
|
| - _json["startTime"] = startTime;
|
| - }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| - }
|
| - if (statusMessage != null) {
|
| - _json["statusMessage"] = statusMessage;
|
| - }
|
| - if (targetId != null) {
|
| - _json["targetId"] = targetId;
|
| - }
|
| - if (targetLink != null) {
|
| - _json["targetLink"] = targetLink;
|
| - }
|
| - if (user != null) {
|
| - _json["user"] = user;
|
| + if (_json.containsKey("network")) {
|
| + network = _json["network"];
|
| }
|
| - if (warnings != null) {
|
| - _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
|
| + if (_json.containsKey("nextHopGateway")) {
|
| + nextHopGateway = _json["nextHopGateway"];
|
| }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (_json.containsKey("nextHopInstance")) {
|
| + nextHopInstance = _json["nextHopInstance"];
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class OperationAggregatedList {
|
| - /**
|
| - * [Output Only] Unique identifier for the resource; defined by the server.
|
| - */
|
| - core.String id;
|
| -
|
| - /** [Output Only] A map of scoped operation lists. */
|
| - core.Map<core.String, OperationsScopedList> items;
|
| -
|
| - /** Type of resource. */
|
| - 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;
|
| -
|
| -
|
| - OperationAggregatedList();
|
| -
|
| - OperationAggregatedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| + if (_json.containsKey("nextHopIp")) {
|
| + nextHopIp = _json["nextHopIp"];
|
| }
|
| - if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new OperationsScopedList.fromJson(item));
|
| + if (_json.containsKey("nextHopNetwork")) {
|
| + nextHopNetwork = _json["nextHopNetwork"];
|
| }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (_json.containsKey("nextHopVpnTunnel")) {
|
| + nextHopVpnTunnel = _json["nextHopVpnTunnel"];
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (_json.containsKey("priority")) {
|
| + priority = _json["priority"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| + if (_json.containsKey("tags")) {
|
| + tags = _json["tags"];
|
| + }
|
| + if (_json.containsKey("warnings")) {
|
| + warnings = _json["warnings"].map((value) => new RouteWarnings.fromJson(value)).toList();
|
| + }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (destRange != null) {
|
| + _json["destRange"] = destRange;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| - }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (network != null) {
|
| + _json["network"] = network;
|
| + }
|
| + if (nextHopGateway != null) {
|
| + _json["nextHopGateway"] = nextHopGateway;
|
| + }
|
| + if (nextHopInstance != null) {
|
| + _json["nextHopInstance"] = nextHopInstance;
|
| + }
|
| + if (nextHopIp != null) {
|
| + _json["nextHopIp"] = nextHopIp;
|
| + }
|
| + if (nextHopNetwork != null) {
|
| + _json["nextHopNetwork"] = nextHopNetwork;
|
| + }
|
| + if (nextHopVpnTunnel != null) {
|
| + _json["nextHopVpnTunnel"] = nextHopVpnTunnel;
|
| + }
|
| + if (priority != null) {
|
| + _json["priority"] = priority;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| + if (tags != null) {
|
| + _json["tags"] = tags;
|
| + }
|
| + if (warnings != null) {
|
| + _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
|
| + }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of operation resources. */
|
| -class OperationList {
|
| +/** Contains a list of route resources. */
|
| +class RouteList {
|
| /**
|
| - * [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] The operation resources. */
|
| - core.List<Operation> items;
|
| + /** A list of Route resources. */
|
| + core.List<Route> items;
|
|
|
| - /** Type of resource. Always compute#operations for Operations resource. */
|
| + /** Type of resource. */
|
| core.String kind;
|
|
|
| - /** [Output Only] A token used to continue a truncate. */
|
| + /** 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;
|
|
|
|
|
| - OperationList();
|
| + RouteList();
|
|
|
| - OperationList.fromJson(core.Map _json) {
|
| + RouteList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Operation.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Route.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -13032,428 +14970,147 @@ class OperationList {
|
| _json["nextPageToken"] = nextPageToken;
|
| }
|
| if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class OperationsScopedListWarningData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| -
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| -
|
| - OperationsScopedListWarningData();
|
| -
|
| - OperationsScopedListWarningData.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 operations
|
| - * when the list is empty.
|
| - */
|
| -class OperationsScopedListWarning {
|
| - /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| - */
|
| - core.String code;
|
| -
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<OperationsScopedListWarningData> data;
|
| -
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| -
|
| -
|
| - OperationsScopedListWarning();
|
| -
|
| - OperationsScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| - }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new OperationsScopedListWarningData.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;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class OperationsScopedList {
|
| - /** [Output Only] List of operations contained in this scope. */
|
| - core.List<Operation> operations;
|
| -
|
| - /**
|
| - * [Output Only] Informational warning which replaces the list of operations
|
| - * when the list is empty.
|
| - */
|
| - OperationsScopedListWarning warning;
|
| -
|
| -
|
| - OperationsScopedList();
|
| -
|
| - OperationsScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("operations")) {
|
| - operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new OperationsScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (operations != null) {
|
| - _json["operations"] = operations.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/**
|
| - * A matcher for the path portion of the URL. The BackendService from the
|
| - * longest-matched rule will serve the URL. If no rule was matched, the
|
| - * default_service will be used.
|
| - */
|
| -class PathMatcher {
|
| - /**
|
| - * The URL to the BackendService resource. This will be used if none of the
|
| - * 'pathRules' defined by this PathMatcher is met by the URL's path portion.
|
| - */
|
| - core.String defaultService;
|
| -
|
| - /** Not documented yet. */
|
| - core.String description;
|
| -
|
| - /** The name to which this PathMatcher is referred by the HostRule. */
|
| - core.String name;
|
| -
|
| - /** The list of path rules. */
|
| - core.List<PathRule> pathRules;
|
| -
|
| -
|
| - PathMatcher();
|
| -
|
| - PathMatcher.fromJson(core.Map _json) {
|
| - if (_json.containsKey("defaultService")) {
|
| - defaultService = _json["defaultService"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("pathRules")) {
|
| - pathRules = _json["pathRules"].map((value) => new PathRule.fromJson(value)).toList();
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (defaultService != null) {
|
| - _json["defaultService"] = defaultService;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (pathRules != null) {
|
| - _json["pathRules"] = pathRules.map((value) => (value).toJson()).toList();
|
| + _json["selfLink"] = selfLink;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A path-matching rule for a URL. If matched, will use the specified
|
| - * BackendService to handle the traffic arriving at this URL.
|
| - */
|
| -class PathRule {
|
| +/** Sets the scheduling options for an Instance. */
|
| +class Scheduling {
|
| /**
|
| - * The list of path patterns to match. Each must start with / and the only
|
| - * place a * is allowed is at the end following a /. The string fed to the
|
| - * path matcher does not include any text after the first ? or #, and those
|
| - * chars are not allowed here.
|
| + * Specifies whether the instance should be automatically restarted if it is
|
| + * terminated by Compute Engine (not terminated by a user).
|
| */
|
| - core.List<core.String> paths;
|
| + core.bool automaticRestart;
|
|
|
| - /** The URL of the BackendService resource if this rule is matched. */
|
| - core.String service;
|
| + /**
|
| + * Defines the maintenance behavior for this instance. The default behavior is
|
| + * MIGRATE. For more information, see Setting maintenance behavior.
|
| + * Possible string values are:
|
| + * - "MIGRATE"
|
| + * - "TERMINATE"
|
| + */
|
| + core.String onHostMaintenance;
|
|
|
|
|
| - PathRule();
|
| + Scheduling();
|
|
|
| - PathRule.fromJson(core.Map _json) {
|
| - if (_json.containsKey("paths")) {
|
| - paths = _json["paths"];
|
| + Scheduling.fromJson(core.Map _json) {
|
| + if (_json.containsKey("automaticRestart")) {
|
| + automaticRestart = _json["automaticRestart"];
|
| }
|
| - if (_json.containsKey("service")) {
|
| - service = _json["service"];
|
| + if (_json.containsKey("onHostMaintenance")) {
|
| + onHostMaintenance = _json["onHostMaintenance"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (paths != null) {
|
| - _json["paths"] = paths;
|
| + if (automaticRestart != null) {
|
| + _json["automaticRestart"] = automaticRestart;
|
| }
|
| - if (service != null) {
|
| - _json["service"] = service;
|
| + if (onHostMaintenance != null) {
|
| + _json["onHostMaintenance"] = onHostMaintenance;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A project resource. Projects can be created only in the APIs Console. Unless
|
| - * marked otherwise, values can only be modified in the console.
|
| - */
|
| -class Project {
|
| - /**
|
| - * Metadata key/value pairs available to all instances contained in this
|
| - * project.
|
| - */
|
| - Metadata commonInstanceMetadata;
|
| -
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| -
|
| - /** An optional textual description of the resource. */
|
| - core.String description;
|
| +/** An instance's serial console output. */
|
| +class SerialPortOutput {
|
| + /** [Output Only] The contents of the console output. */
|
| + core.String contents;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * [Output Only] Type of the resource. Always compute#serialPortOutput for
|
| + * serial port output.
|
| */
|
| - core.String id;
|
| -
|
| - /** Type of the resource. */
|
| core.String kind;
|
|
|
| - /** Name of the resource. */
|
| - core.String name;
|
| -
|
| - /** Quotas assigned to this project. */
|
| - core.List<Quota> quotas;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| - /**
|
| - * The location in Cloud Storage and naming method of the daily usage report.
|
| - */
|
| - UsageExportLocation usageExportLocation;
|
| -
|
|
|
| - Project();
|
| + SerialPortOutput();
|
|
|
| - Project.fromJson(core.Map _json) {
|
| - if (_json.containsKey("commonInstanceMetadata")) {
|
| - commonInstanceMetadata = new Metadata.fromJson(_json["commonInstanceMetadata"]);
|
| - }
|
| - if (_json.containsKey("creationTimestamp")) {
|
| - creationTimestamp = _json["creationTimestamp"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| + SerialPortOutput.fromJson(core.Map _json) {
|
| + if (_json.containsKey("contents")) {
|
| + contents = _json["contents"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("quotas")) {
|
| - quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList();
|
| - }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("usageExportLocation")) {
|
| - usageExportLocation = new UsageExportLocation.fromJson(_json["usageExportLocation"]);
|
| - }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (commonInstanceMetadata != null) {
|
| - _json["commonInstanceMetadata"] = (commonInstanceMetadata).toJson();
|
| - }
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| + if (contents != null) {
|
| + _json["contents"] = contents;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (quotas != null) {
|
| - _json["quotas"] = quotas.map((value) => (value).toJson()).toList();
|
| - }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (usageExportLocation != null) {
|
| - _json["usageExportLocation"] = (usageExportLocation).toJson();
|
| - }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A quotas entry. */
|
| -class Quota {
|
| - /** Quota limit for this metric. */
|
| - core.double limit;
|
| -
|
| - /**
|
| - * Name of the quota metric.
|
| - * Possible string values are:
|
| - * - "BACKEND_SERVICES"
|
| - * - "CPUS"
|
| - * - "DISKS"
|
| - * - "DISKS_TOTAL_GB"
|
| - * - "EPHEMERAL_ADDRESSES"
|
| - * - "FIREWALLS"
|
| - * - "FORWARDING_RULES"
|
| - * - "HEALTH_CHECKS"
|
| - * - "IMAGES"
|
| - * - "IMAGES_TOTAL_GB"
|
| - * - "INSTANCES"
|
| - * - "IN_USE_ADDRESSES"
|
| - * - "KERNELS"
|
| - * - "KERNELS_TOTAL_GB"
|
| - * - "LOCAL_SSD_TOTAL_GB"
|
| - * - "NETWORKS"
|
| - * - "OPERATIONS"
|
| - * - "ROUTES"
|
| - * - "SNAPSHOTS"
|
| - * - "SSD_TOTAL_GB"
|
| - * - "STATIC_ADDRESSES"
|
| - * - "TARGET_HTTP_PROXIES"
|
| - * - "TARGET_INSTANCES"
|
| - * - "TARGET_POOLS"
|
| - * - "URL_MAPS"
|
| - */
|
| - core.String metric;
|
| +/** A service account. */
|
| +class ServiceAccount {
|
| + /** Email address of the service account. */
|
| + core.String email;
|
|
|
| - /** Current usage of this metric. */
|
| - core.double usage;
|
| + /** The list of scopes to be made available for this service account. */
|
| + core.List<core.String> scopes;
|
|
|
|
|
| - Quota();
|
| + ServiceAccount();
|
|
|
| - Quota.fromJson(core.Map _json) {
|
| - if (_json.containsKey("limit")) {
|
| - limit = _json["limit"];
|
| - }
|
| - if (_json.containsKey("metric")) {
|
| - metric = _json["metric"];
|
| + ServiceAccount.fromJson(core.Map _json) {
|
| + if (_json.containsKey("email")) {
|
| + email = _json["email"];
|
| }
|
| - if (_json.containsKey("usage")) {
|
| - usage = _json["usage"];
|
| + if (_json.containsKey("scopes")) {
|
| + scopes = _json["scopes"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (limit != null) {
|
| - _json["limit"] = limit;
|
| - }
|
| - if (metric != null) {
|
| - _json["metric"] = metric;
|
| + if (email != null) {
|
| + _json["email"] = email;
|
| }
|
| - if (usage != null) {
|
| - _json["usage"] = usage;
|
| + if (scopes != null) {
|
| + _json["scopes"] = scopes;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Region resource. */
|
| -class Region {
|
| +/** A persistent disk snapshot resource. */
|
| +class Snapshot {
|
| /** Creation timestamp in RFC3339 text format (output only). */
|
| core.String creationTimestamp;
|
|
|
| - /** The deprecation status associated with this region. */
|
| - DeprecationStatus deprecated;
|
| -
|
| - /** Textual description of the resource. */
|
| + /**
|
| + * 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). */
|
| + core.String diskSizeGb;
|
| +
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| @@ -13462,59 +15119,96 @@ class Region {
|
| /** Type of the resource. */
|
| core.String kind;
|
|
|
| - /** Name of the resource. */
|
| - core.String name;
|
| + /** Public visible licenses. */
|
| + core.List<core.String> licenses;
|
|
|
| - /** Quotas assigned to this region. */
|
| - core.List<Quota> quotas;
|
| + /**
|
| + * 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.
|
| + */
|
| + core.String name;
|
|
|
| /** Server defined URL for the resource (output only). */
|
| 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.
|
| + */
|
| + core.String sourceDiskId;
|
| +
|
| /**
|
| - * Status of the region, "UP" or "DOWN".
|
| + * The status of the persistent disk snapshot (output only).
|
| * Possible string values are:
|
| - * - "DOWN"
|
| - * - "UP"
|
| + * - "CREATING"
|
| + * - "DELETING"
|
| + * - "FAILED"
|
| + * - "READY"
|
| + * - "UPLOADING"
|
| */
|
| core.String status;
|
|
|
| - /** A list of zones homed in this region, in the form of resource URLs. */
|
| - core.List<core.String> zones;
|
| + /**
|
| + * 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.
|
| + * Possible string values are:
|
| + * - "UPDATING"
|
| + * - "UP_TO_DATE"
|
| + */
|
| + core.String storageBytesStatus;
|
|
|
|
|
| - Region();
|
| + Snapshot();
|
|
|
| - Region.fromJson(core.Map _json) {
|
| + Snapshot.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("deprecated")) {
|
| - deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| - }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("diskSizeGb")) {
|
| + diskSizeGb = _json["diskSizeGb"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| + if (_json.containsKey("licenses")) {
|
| + licenses = _json["licenses"];
|
| + }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("quotas")) {
|
| - quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList();
|
| - }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| + if (_json.containsKey("sourceDisk")) {
|
| + sourceDisk = _json["sourceDisk"];
|
| + }
|
| + if (_json.containsKey("sourceDiskId")) {
|
| + sourceDiskId = _json["sourceDiskId"];
|
| + }
|
| if (_json.containsKey("status")) {
|
| status = _json["status"];
|
| }
|
| - if (_json.containsKey("zones")) {
|
| - zones = _json["zones"];
|
| + if (_json.containsKey("storageBytes")) {
|
| + storageBytes = _json["storageBytes"];
|
| + }
|
| + if (_json.containsKey("storageBytesStatus")) {
|
| + storageBytesStatus = _json["storageBytesStatus"];
|
| }
|
| }
|
|
|
| @@ -13523,47 +15217,56 @@ class Region {
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (deprecated != null) {
|
| - _json["deprecated"] = (deprecated).toJson();
|
| - }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (diskSizeGb != null) {
|
| + _json["diskSizeGb"] = diskSizeGb;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| + if (licenses != null) {
|
| + _json["licenses"] = licenses;
|
| + }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (quotas != null) {
|
| - _json["quotas"] = quotas.map((value) => (value).toJson()).toList();
|
| - }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| + if (sourceDisk != null) {
|
| + _json["sourceDisk"] = sourceDisk;
|
| + }
|
| + if (sourceDiskId != null) {
|
| + _json["sourceDiskId"] = sourceDiskId;
|
| + }
|
| if (status != null) {
|
| _json["status"] = status;
|
| }
|
| - if (zones != null) {
|
| - _json["zones"] = zones;
|
| + if (storageBytes != null) {
|
| + _json["storageBytes"] = storageBytes;
|
| + }
|
| + if (storageBytesStatus != null) {
|
| + _json["storageBytesStatus"] = storageBytesStatus;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of region resources. */
|
| -class RegionList {
|
| +/** Contains a list of persistent disk snapshot resources. */
|
| +class SnapshotList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of Region resources. */
|
| - core.List<Region> items;
|
| + /** A list of Snapshot resources. */
|
| + core.List<Snapshot> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -13575,14 +15278,14 @@ class RegionList {
|
| core.String selfLink;
|
|
|
|
|
| - RegionList();
|
| + SnapshotList();
|
|
|
| - RegionList.fromJson(core.Map _json) {
|
| + SnapshotList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Region.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Snapshot.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -13617,137 +15320,214 @@ class RegionList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class ResourceGroupReference {
|
| +/** A set of instance tags. */
|
| +class Tags {
|
| /**
|
| - * A URI referencing one of the resource views listed in the backend service.
|
| + * Specifies a fingerprint for this request, which is essentially a hash of
|
| + * the metadata's contents and used for optimistic locking. The fingerprint is
|
| + * initially generated by Compute Engine and changes after every request to
|
| + * modify or update metadata. You must always provide an up-to-date
|
| + * fingerprint hash in order to update or change metadata.
|
| + *
|
| + * To see the latest fingerprint, make get() request to the instance.
|
| */
|
| - core.String group;
|
| + core.String fingerprint;
|
|
|
| + core.List<core.int> get fingerprintAsBytes {
|
| + return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| + }
|
|
|
| - ResourceGroupReference();
|
| + void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| + fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + }
|
|
|
| - ResourceGroupReference.fromJson(core.Map _json) {
|
| - if (_json.containsKey("group")) {
|
| - group = _json["group"];
|
| + /**
|
| + * An array of tags. Each tag must be 1-63 characters long, and comply with
|
| + * RFC1035.
|
| + */
|
| + core.List<core.String> items;
|
| +
|
| +
|
| + Tags();
|
| +
|
| + Tags.fromJson(core.Map _json) {
|
| + if (_json.containsKey("fingerprint")) {
|
| + fingerprint = _json["fingerprint"];
|
| + }
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (group != null) {
|
| - _json["group"] = group;
|
| + if (fingerprint != null) {
|
| + _json["fingerprint"] = fingerprint;
|
| + }
|
| + if (items != null) {
|
| + _json["items"] = items;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class RouteWarningsData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| +/** A TargetHttpProxy resource. This resource defines an HTTP proxy. */
|
| +class TargetHttpProxy {
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + core.String creationTimestamp;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| + /**
|
| + * An optional textual description of the resource; provided by the client
|
| + * when the resource is created.
|
| + */
|
| + core.String description;
|
|
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
|
|
| - RouteWarningsData();
|
| + /** Type of the resource. */
|
| + core.String kind;
|
|
|
| - RouteWarningsData.fromJson(core.Map _json) {
|
| - if (_json.containsKey("key")) {
|
| - key = _json["key"];
|
| + /**
|
| + * 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.
|
| + */
|
| + core.String name;
|
| +
|
| + /** Server defined URL for the resource (output only). */
|
| + core.String selfLink;
|
| +
|
| + /**
|
| + * URL to the UrlMap resource that defines the mapping from URL to the
|
| + * BackendService.
|
| + */
|
| + core.String urlMap;
|
| +
|
| +
|
| + TargetHttpProxy();
|
| +
|
| + TargetHttpProxy.fromJson(core.Map _json) {
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| + 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("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("urlMap")) {
|
| + urlMap = _json["urlMap"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| + 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 (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (urlMap != null) {
|
| + _json["urlMap"] = urlMap;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class RouteWarnings {
|
| +/** Contains a list of TargetHttpProxy resources. */
|
| +class TargetHttpProxyList {
|
| /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| - core.String code;
|
| + core.String id;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<RouteWarningsData> data;
|
| + /** A list of TargetHttpProxy resources. */
|
| + core.List<TargetHttpProxy> items;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| + /** Type of resource. */
|
| + core.String kind;
|
|
|
| + /** A token used to continue a truncated list request (output only). */
|
| + core.String nextPageToken;
|
|
|
| - RouteWarnings();
|
| + /** Server defined URL for this resource (output only). */
|
| + core.String selfLink;
|
|
|
| - RouteWarnings.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| +
|
| + TargetHttpProxyList();
|
| +
|
| + TargetHttpProxyList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new RouteWarningsData.fromJson(value)).toList();
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new TargetHttpProxy.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("message")) {
|
| - message = _json["message"];
|
| + 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 (code != null) {
|
| - _json["code"] = code;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (data != null) {
|
| - _json["data"] = data.map((value) => (value).toJson()).toList();
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/**
|
| - * The route resource. A Route is a rule that specifies how certain packets
|
| - * should be handled by the virtual network. Routes are associated with VMs by
|
| - * tag and the set of Routes for a particular VM is called its routing table.
|
| - * For each packet leaving a VM, the system searches that VM's routing table for
|
| - * a single best matching Route. Routes match packets by destination IP address,
|
| - * preferring smaller or more specific ranges over larger ones. If there is a
|
| - * 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
|
| - * 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.
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +/**
|
| + * A TargetInstance resource. This resource defines an endpoint VM that
|
| + * terminates traffic of certain protocols.
|
| */
|
| -class Route {
|
| +class TargetInstance {
|
| /** Creation timestamp in RFC3339 text format (output only). */
|
| core.String creationTimestamp;
|
|
|
| @@ -13757,14 +15537,14 @@ class Route {
|
| */
|
| core.String description;
|
|
|
| - /** Which packets does this route apply to? */
|
| - core.String destRange;
|
| -
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| + /** The URL to the instance that terminates the relevant traffic. */
|
| + core.String instance;
|
| +
|
| /** Type of the resource. */
|
| core.String kind;
|
|
|
| @@ -13775,91 +15555,49 @@ class Route {
|
| core.String name;
|
|
|
| /**
|
| - * URL of the network to which this route is applied; provided by the client
|
| - * when the route is created.
|
| - */
|
| - 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. */
|
| - core.String nextHopInstance;
|
| -
|
| - /**
|
| - * The network IP address of an instance that should handle matching packets.
|
| - */
|
| - core.String nextHopIp;
|
| -
|
| - /** The URL of the local network if it should handle matching packets. */
|
| - core.String nextHopNetwork;
|
| -
|
| - /**
|
| - * Breaks ties between Routes of equal specificity. Routes with smaller values
|
| - * win when tied with routes with larger values.
|
| + * NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT
|
| + * (default value) is supported.
|
| + * Possible string values are:
|
| + * - "NO_NAT"
|
| */
|
| - core.int priority;
|
| + core.String natPolicy;
|
|
|
| /** Server defined URL for the resource (output only). */
|
| 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.
|
| - */
|
| - core.List<RouteWarnings> warnings;
|
| + /** URL of the zone where the target instance resides (output only). */
|
| + core.String zone;
|
|
|
|
|
| - Route();
|
| + TargetInstance();
|
|
|
| - Route.fromJson(core.Map _json) {
|
| + TargetInstance.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("destRange")) {
|
| - destRange = _json["destRange"];
|
| - }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| + if (_json.containsKey("instance")) {
|
| + instance = _json["instance"];
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("network")) {
|
| - network = _json["network"];
|
| - }
|
| - if (_json.containsKey("nextHopGateway")) {
|
| - nextHopGateway = _json["nextHopGateway"];
|
| - }
|
| - if (_json.containsKey("nextHopInstance")) {
|
| - nextHopInstance = _json["nextHopInstance"];
|
| - }
|
| - if (_json.containsKey("nextHopIp")) {
|
| - nextHopIp = _json["nextHopIp"];
|
| - }
|
| - if (_json.containsKey("nextHopNetwork")) {
|
| - nextHopNetwork = _json["nextHopNetwork"];
|
| - }
|
| - if (_json.containsKey("priority")) {
|
| - priority = _json["priority"];
|
| + if (_json.containsKey("natPolicy")) {
|
| + natPolicy = _json["natPolicy"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("tags")) {
|
| - tags = _json["tags"];
|
| - }
|
| - if (_json.containsKey("warnings")) {
|
| - warnings = _json["warnings"].map((value) => new RouteWarnings.fromJson(value)).toList();
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| @@ -13871,59 +15609,102 @@ class Route {
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (destRange != null) {
|
| - _json["destRange"] = destRange;
|
| - }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| + if (instance != null) {
|
| + _json["instance"] = instance;
|
| + }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (network != null) {
|
| - _json["network"] = network;
|
| + if (natPolicy != null) {
|
| + _json["natPolicy"] = natPolicy;
|
| }
|
| - if (nextHopGateway != null) {
|
| - _json["nextHopGateway"] = nextHopGateway;
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| - if (nextHopInstance != null) {
|
| - _json["nextHopInstance"] = nextHopInstance;
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| - if (nextHopIp != null) {
|
| - _json["nextHopIp"] = nextHopIp;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetInstanceAggregatedList {
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
| +
|
| + /** A map of scoped target instance lists. */
|
| + core.Map<core.String, TargetInstancesScopedList> items;
|
| +
|
| + /** Type of resource. */
|
| + core.String kind;
|
| +
|
| + /** A token used to continue a truncated list request (output only). */
|
| + core.String nextPageToken;
|
| +
|
| + /** Server defined URL for this resource (output only). */
|
| + core.String selfLink;
|
| +
|
| +
|
| + TargetInstanceAggregatedList();
|
| +
|
| + TargetInstanceAggregatedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (nextHopNetwork != null) {
|
| - _json["nextHopNetwork"] = nextHopNetwork;
|
| + if (_json.containsKey("items")) {
|
| + items = commons.mapMap(_json["items"], (item) => new TargetInstancesScopedList.fromJson(item));
|
| }
|
| - if (priority != null) {
|
| - _json["priority"] = priority;
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| }
|
| - if (tags != null) {
|
| - _json["tags"] = tags;
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| - if (warnings != null) {
|
| - _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
|
| + }
|
| +
|
| + 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 route resources. */
|
| -class RouteList {
|
| +/** Contains a list of TargetInstance resources. */
|
| +class TargetInstanceList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of Route resources. */
|
| - core.List<Route> items;
|
| + /** A list of TargetInstance resources. */
|
| + core.List<TargetInstance> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -13935,14 +15716,14 @@ class RouteList {
|
| core.String selfLink;
|
|
|
|
|
| - RouteList();
|
| + TargetInstanceList();
|
|
|
| - RouteList.fromJson(core.Map _json) {
|
| + TargetInstanceList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Route.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new TargetInstance.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -13977,125 +15758,156 @@ class RouteList {
|
| }
|
|
|
|
|
| -/** Scheduling options for an Instance. */
|
| -class Scheduling {
|
| - /**
|
| - * Whether the Instance should be automatically restarted whenever it is
|
| - * terminated by Compute Engine (not terminated by user).
|
| - */
|
| - core.bool automaticRestart;
|
| +class TargetInstancesScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
|
|
| - /**
|
| - * How the instance should behave when the host machine undergoes maintenance
|
| - * that may temporarily impact instance performance.
|
| - * Possible string values are:
|
| - * - "MIGRATE"
|
| - * - "TERMINATE"
|
| - */
|
| - core.String onHostMaintenance;
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
|
|
|
|
| - Scheduling();
|
| + TargetInstancesScopedListWarningData();
|
|
|
| - Scheduling.fromJson(core.Map _json) {
|
| - if (_json.containsKey("automaticRestart")) {
|
| - automaticRestart = _json["automaticRestart"];
|
| + TargetInstancesScopedListWarningData.fromJson(core.Map _json) {
|
| + if (_json.containsKey("key")) {
|
| + key = _json["key"];
|
| }
|
| - if (_json.containsKey("onHostMaintenance")) {
|
| - onHostMaintenance = _json["onHostMaintenance"];
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (automaticRestart != null) {
|
| - _json["automaticRestart"] = automaticRestart;
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (onHostMaintenance != null) {
|
| - _json["onHostMaintenance"] = onHostMaintenance;
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** An instance serial console output. */
|
| -class SerialPortOutput {
|
| - /** The contents of the console output. */
|
| - core.String contents;
|
| +/**
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| + */
|
| +class TargetInstancesScopedListWarning {
|
| + /**
|
| + * [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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| + */
|
| + core.String code;
|
|
|
| - /** Type of the resource. */
|
| - core.String kind;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<TargetInstancesScopedListWarningData> data;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
|
|
| - SerialPortOutput();
|
| + TargetInstancesScopedListWarning();
|
|
|
| - SerialPortOutput.fromJson(core.Map _json) {
|
| - if (_json.containsKey("contents")) {
|
| - contents = _json["contents"];
|
| + TargetInstancesScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new TargetInstancesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (contents != null) {
|
| - _json["contents"] = contents;
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A service account. */
|
| -class ServiceAccount {
|
| - /** Email address of the service account. */
|
| - core.String email;
|
| +class TargetInstancesScopedList {
|
| + /** List of target instances contained in this scope. */
|
| + core.List<TargetInstance> targetInstances;
|
|
|
| - /** The list of scopes to be made available for this service account. */
|
| - core.List<core.String> scopes;
|
| + /**
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| + */
|
| + TargetInstancesScopedListWarning warning;
|
|
|
|
|
| - ServiceAccount();
|
| + TargetInstancesScopedList();
|
|
|
| - ServiceAccount.fromJson(core.Map _json) {
|
| - if (_json.containsKey("email")) {
|
| - email = _json["email"];
|
| + TargetInstancesScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("targetInstances")) {
|
| + targetInstances = _json["targetInstances"].map((value) => new TargetInstance.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("scopes")) {
|
| - scopes = _json["scopes"];
|
| + if (_json.containsKey("warning")) {
|
| + warning = new TargetInstancesScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (email != null) {
|
| - _json["email"] = email;
|
| + if (targetInstances != null) {
|
| + _json["targetInstances"] = targetInstances.map((value) => (value).toJson()).toList();
|
| }
|
| - if (scopes != null) {
|
| - _json["scopes"] = scopes;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A persistent disk snapshot resource. */
|
| -class Snapshot {
|
| +/**
|
| + * A TargetPool resource. This resource defines a pool of VMs, associated
|
| + * HttpHealthCheck resources, and the fallback TargetPool.
|
| + */
|
| +class TargetPool {
|
| + /**
|
| + * This field is applicable only when the containing target pool is serving a
|
| + * forwarding rule as the primary pool, and its 'failoverRatio' field is
|
| + * properly set to a value between [0, 1].
|
| + *
|
| + * 'backupPool' and 'failoverRatio' together define the fallback behavior of
|
| + * the primary target pool: if the ratio of the healthy VMs in the primary
|
| + * pool is at or below 'failoverRatio', traffic arriving at the load-balanced
|
| + * IP will be directed to the backup pool.
|
| + *
|
| + * In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs
|
| + * in the backup pool are unhealthy, the traffic will be directed back to the
|
| + * primary pool in the "force" mode, where traffic will be spread to the
|
| + * healthy VMs with the best effort, or to all VMs when no VM is healthy.
|
| + */
|
| + core.String backupPool;
|
| +
|
| /** Creation timestamp in RFC3339 text format (output only). */
|
| core.String creationTimestamp;
|
|
|
| @@ -14105,165 +15917,256 @@ class Snapshot {
|
| */
|
| core.String description;
|
|
|
| - /** Size of the persistent disk snapshot, specified in GB (output only). */
|
| - core.String diskSizeGb;
|
| + /**
|
| + * This field is applicable only when the containing target pool is serving a
|
| + * forwarding rule as the primary pool (i.e., not as a backup pool to some
|
| + * other target pool). The value of the field must be in [0, 1].
|
| + *
|
| + * If set, 'backupPool' must also be set. They together define the fallback
|
| + * behavior of the primary target pool: if the ratio of the healthy VMs in the
|
| + * primary pool is at or below this number, traffic arriving at the
|
| + * load-balanced IP will be directed to the backup pool.
|
| + *
|
| + * In case where 'failoverRatio' is not set or all the VMs in the backup pool
|
| + * are unhealthy, the traffic will be directed back to the primary pool in the
|
| + * "force" mode, where traffic will be spread to the healthy VMs with the best
|
| + * effort, or to all VMs when no VM is healthy.
|
| + */
|
| + core.double failoverRatio;
|
| +
|
| + /**
|
| + * A list of URLs to the HttpHealthCheck resource. A member VM in this pool is
|
| + * considered healthy if and only if all specified health checks pass. An
|
| + * empty list means all member VMs will be considered healthy at all times.
|
| + */
|
| + core.List<core.String> healthChecks;
|
|
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| + /**
|
| + * A list of resource URLs to the member VMs serving this pool. They must live
|
| + * in zones contained in the same region as this pool.
|
| + */
|
| + core.List<core.String> instances;
|
| +
|
| /** Type of the resource. */
|
| 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.
|
| */
|
| core.String name;
|
|
|
| + /** URL of the region where the target pool resides (output only). */
|
| + core.String region;
|
| +
|
| /** Server defined URL for the resource (output only). */
|
| 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.
|
| - */
|
| - core.String sourceDiskId;
|
| -
|
| - /**
|
| - * The status of the persistent disk snapshot (output only).
|
| - * Possible string values are:
|
| - * - "CREATING"
|
| - * - "DELETING"
|
| - * - "FAILED"
|
| - * - "READY"
|
| - * - "UPLOADING"
|
| - */
|
| - 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.
|
| - */
|
| - core.String storageBytes;
|
| -
|
| /**
|
| - * An indicator whether storageBytes is in a stable state, or it is being
|
| - * adjusted as a result of shared storage reallocation.
|
| + * Sesssion affinity option, must be one of the following values: 'NONE':
|
| + * Connections from the same client IP may go to any VM in the pool;
|
| + * 'CLIENT_IP': Connections from the same client IP will go to the same VM in
|
| + * the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from
|
| + * the same client IP with the same IP protocol will go to the same VM in the
|
| + * pool while that VM remains healthy.
|
| * Possible string values are:
|
| - * - "UPDATING"
|
| - * - "UP_TO_DATE"
|
| + * - "CLIENT_IP"
|
| + * - "CLIENT_IP_PROTO"
|
| + * - "NONE"
|
| */
|
| - core.String storageBytesStatus;
|
| + core.String sessionAffinity;
|
|
|
|
|
| - Snapshot();
|
| + TargetPool();
|
|
|
| - Snapshot.fromJson(core.Map _json) {
|
| + TargetPool.fromJson(core.Map _json) {
|
| + if (_json.containsKey("backupPool")) {
|
| + backupPool = _json["backupPool"];
|
| + }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("diskSizeGb")) {
|
| - diskSizeGb = _json["diskSizeGb"];
|
| + if (_json.containsKey("failoverRatio")) {
|
| + failoverRatio = _json["failoverRatio"];
|
| + }
|
| + if (_json.containsKey("healthChecks")) {
|
| + healthChecks = _json["healthChecks"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| + if (_json.containsKey("instances")) {
|
| + instances = _json["instances"];
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("licenses")) {
|
| - licenses = _json["licenses"];
|
| - }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("sourceDisk")) {
|
| - sourceDisk = _json["sourceDisk"];
|
| + if (_json.containsKey("sessionAffinity")) {
|
| + sessionAffinity = _json["sessionAffinity"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (backupPool != null) {
|
| + _json["backupPool"] = backupPool;
|
| + }
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (failoverRatio != null) {
|
| + _json["failoverRatio"] = failoverRatio;
|
| + }
|
| + if (healthChecks != null) {
|
| + _json["healthChecks"] = healthChecks;
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (instances != null) {
|
| + _json["instances"] = instances;
|
| + }
|
| + 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 (sessionAffinity != null) {
|
| + _json["sessionAffinity"] = sessionAffinity;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolAggregatedList {
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
| +
|
| + /** A map of scoped target pool lists. */
|
| + core.Map<core.String, TargetPoolsScopedList> items;
|
| +
|
| + /** Type of resource. */
|
| + core.String kind;
|
| +
|
| + /** A token used to continue a truncated list request (output only). */
|
| + core.String nextPageToken;
|
| +
|
| + /** Server defined URL for this resource (output only). */
|
| + core.String selfLink;
|
| +
|
| +
|
| + TargetPoolAggregatedList();
|
| +
|
| + TargetPoolAggregatedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("sourceDiskId")) {
|
| - sourceDiskId = _json["sourceDiskId"];
|
| + if (_json.containsKey("items")) {
|
| + items = commons.mapMap(_json["items"], (item) => new TargetPoolsScopedList.fromJson(item));
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("storageBytes")) {
|
| - storageBytes = _json["storageBytes"];
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| }
|
| - if (_json.containsKey("storageBytesStatus")) {
|
| - storageBytesStatus = _json["storageBytesStatus"];
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (diskSizeGb != null) {
|
| - _json["diskSizeGb"] = diskSizeGb;
|
| - }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| + if (items != null) {
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| + }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (licenses != null) {
|
| - _json["licenses"] = licenses;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (sourceDisk != null) {
|
| - _json["sourceDisk"] = sourceDisk;
|
| - }
|
| - if (sourceDiskId != null) {
|
| - _json["sourceDiskId"] = sourceDiskId;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolInstanceHealth {
|
| + core.List<HealthStatus> healthStatus;
|
| +
|
| + /** Type of resource. */
|
| + core.String kind;
|
| +
|
| +
|
| + TargetPoolInstanceHealth();
|
| +
|
| + TargetPoolInstanceHealth.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthStatus")) {
|
| + healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJson(value)).toList();
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| - if (storageBytes != null) {
|
| - _json["storageBytes"] = storageBytes;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (healthStatus != null) {
|
| + _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList();
|
| }
|
| - if (storageBytesStatus != null) {
|
| - _json["storageBytesStatus"] = storageBytesStatus;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of persistent disk snapshot resources. */
|
| -class SnapshotList {
|
| +/** Contains a list of TargetPool resources. */
|
| +class TargetPoolList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of Snapshot resources. */
|
| - core.List<Snapshot> items;
|
| + /** A list of TargetPool resources. */
|
| + core.List<TargetPool> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -14275,14 +16178,14 @@ class SnapshotList {
|
| core.String selfLink;
|
|
|
|
|
| - SnapshotList();
|
| + TargetPoolList();
|
|
|
| - SnapshotList.fromJson(core.Map _json) {
|
| + TargetPoolList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Snapshot.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new TargetPool.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -14317,280 +16220,346 @@ class SnapshotList {
|
| }
|
|
|
|
|
| -/** A set of instance tags. */
|
| -class Tags {
|
| - /**
|
| - * Fingerprint of this resource. A hash of the tags stored in this object.
|
| - * This field is used optimistic locking. An up-to-date tags fingerprint must
|
| - * be provided in order to modify tags.
|
| - */
|
| - core.String fingerprint;
|
| +class TargetPoolsAddHealthCheckRequest {
|
| + /** Health check URLs to be added to targetPool. */
|
| + core.List<HealthCheckReference> healthChecks;
|
|
|
| - core.List<core.int> get fingerprintAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| +
|
| + TargetPoolsAddHealthCheckRequest();
|
| +
|
| + TargetPoolsAddHealthCheckRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthChecks")) {
|
| + healthChecks = _json["healthChecks"].map((value) => new HealthCheckReference.fromJson(value)).toList();
|
| + }
|
| }
|
|
|
| - void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| - fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (healthChecks != null) {
|
| + _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolsAddInstanceRequest {
|
| + /** URLs of the instances to be added to targetPool. */
|
| + core.List<InstanceReference> instances;
|
| +
|
| +
|
| + TargetPoolsAddInstanceRequest();
|
| +
|
| + TargetPoolsAddInstanceRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("instances")) {
|
| + instances = _json["instances"].map((value) => new InstanceReference.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (instances != null) {
|
| + _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolsRemoveHealthCheckRequest {
|
| + /** Health check URLs to be removed from targetPool. */
|
| + core.List<HealthCheckReference> healthChecks;
|
| +
|
| +
|
| + TargetPoolsRemoveHealthCheckRequest();
|
| +
|
| + TargetPoolsRemoveHealthCheckRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("healthChecks")) {
|
| + healthChecks = _json["healthChecks"].map((value) => new HealthCheckReference.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (healthChecks != null) {
|
| + _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolsRemoveInstanceRequest {
|
| + /** URLs of the instances to be removed from targetPool. */
|
| + core.List<InstanceReference> instances;
|
| +
|
| +
|
| + TargetPoolsRemoveInstanceRequest();
|
| +
|
| + TargetPoolsRemoveInstanceRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("instances")) {
|
| + instances = _json["instances"].map((value) => new InstanceReference.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (instances != null) {
|
| + _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +
|
| +class TargetPoolsScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
| +
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
| +
|
| +
|
| + TargetPoolsScopedListWarningData();
|
| +
|
| + TargetPoolsScopedListWarningData.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;
|
| }
|
| +}
|
|
|
| +
|
| +/**
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| + */
|
| +class TargetPoolsScopedListWarning {
|
| /**
|
| - * An array of tags. Each tag must be 1-63 characters long, and comply with
|
| - * RFC1035.
|
| + * [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"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| */
|
| - core.List<core.String> items;
|
| + core.String code;
|
|
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<TargetPoolsScopedListWarningData> data;
|
|
|
| - Tags();
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
| - Tags.fromJson(core.Map _json) {
|
| - if (_json.containsKey("fingerprint")) {
|
| - fingerprint = _json["fingerprint"];
|
| +
|
| + TargetPoolsScopedListWarning();
|
| +
|
| + TargetPoolsScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"];
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new TargetPoolsScopedListWarningData.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (fingerprint != null) {
|
| - _json["fingerprint"] = fingerprint;
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = items;
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** A TargetHttpProxy resource. This resource defines an HTTP proxy. */
|
| -class TargetHttpProxy {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| -
|
| - /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| - */
|
| - core.String description;
|
| -
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /** 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.
|
| - */
|
| - core.String name;
|
| -
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| +class TargetPoolsScopedList {
|
| + /** List of target pools contained in this scope. */
|
| + core.List<TargetPool> targetPools;
|
|
|
| /**
|
| - * URL to the UrlMap resource that defines the mapping from URL to the
|
| - * BackendService.
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| */
|
| - core.String urlMap;
|
| + TargetPoolsScopedListWarning warning;
|
|
|
|
|
| - TargetHttpProxy();
|
| + TargetPoolsScopedList();
|
|
|
| - TargetHttpProxy.fromJson(core.Map _json) {
|
| - 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("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + TargetPoolsScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("targetPools")) {
|
| + targetPools = _json["targetPools"].map((value) => new TargetPool.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("urlMap")) {
|
| - urlMap = _json["urlMap"];
|
| + if (_json.containsKey("warning")) {
|
| + warning = new TargetPoolsScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - 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 (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (targetPools != null) {
|
| + _json["targetPools"] = targetPools.map((value) => (value).toJson()).toList();
|
| }
|
| - if (urlMap != null) {
|
| - _json["urlMap"] = urlMap;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of TargetHttpProxy resources. */
|
| -class TargetHttpProxyList {
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /** A list of TargetHttpProxy resources. */
|
| - core.List<TargetHttpProxy> items;
|
| -
|
| - /** Type of resource. */
|
| - core.String kind;
|
| -
|
| - /** A token used to continue a truncated list request (output only). */
|
| - core.String nextPageToken;
|
| -
|
| - /** Server defined URL for this resource (output only). */
|
| - core.String selfLink;
|
| +class TargetReference {
|
| + core.String target;
|
|
|
|
|
| - TargetHttpProxyList();
|
| + TargetReference();
|
|
|
| - TargetHttpProxyList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new TargetHttpProxy.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| - }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + TargetReference.fromJson(core.Map _json) {
|
| + if (_json.containsKey("target")) {
|
| + target = _json["target"];
|
| }
|
| }
|
|
|
| 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;
|
| + if (target != null) {
|
| + _json["target"] = target;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A TargetInstance resource. This resource defines an endpoint VM that
|
| - * terminates traffic of certain protocols.
|
| - */
|
| -class TargetInstance {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +class TargetVpnGateway {
|
| + /** [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;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * [Output Only] A list of URLs to the ForwardingRule resources.
|
| + * ForwardingRules are created using compute.forwardingRules.insert and
|
| + * associated to a VPN gateway.
|
| */
|
| - core.String id;
|
| + core.List<core.String> forwardingRules;
|
|
|
| - /** The URL to the instance that terminates the relevant traffic. */
|
| - core.String instance;
|
| + /**
|
| + * [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#targetVpnGateway for target
|
| + * VPN gateways.
|
| + */
|
| 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.
|
| */
|
| core.String name;
|
|
|
| /**
|
| - * NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT
|
| - * (default value) is supported.
|
| - * Possible string values are:
|
| - * - "NO_NAT"
|
| + * URL of the network to which this VPN gateway is attached. Provided by the
|
| + * client when the VPN gateway is created.
|
| */
|
| - core.String natPolicy;
|
| + core.String network;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] URL of the region where the target VPN gateway resides. */
|
| + core.String region;
|
| +
|
| + /** [Output Only] Server-defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| - /** URL of the zone where the target instance resides (output only). */
|
| - core.String zone;
|
| + /**
|
| + * [Output Only] The status of the VPN gateway.
|
| + * Possible string values are:
|
| + * - "CREATING"
|
| + * - "DELETING"
|
| + * - "FAILED"
|
| + * - "READY"
|
| + */
|
| + core.String status;
|
|
|
| + /**
|
| + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created
|
| + * using compute.vpntunnels.insert and associated to a VPN gateway.
|
| + */
|
| + core.List<core.String> tunnels;
|
|
|
| - TargetInstance();
|
|
|
| - TargetInstance.fromJson(core.Map _json) {
|
| + TargetVpnGateway();
|
| +
|
| + TargetVpnGateway.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("forwardingRules")) {
|
| + forwardingRules = _json["forwardingRules"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| - if (_json.containsKey("instance")) {
|
| - instance = _json["instance"];
|
| - }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("natPolicy")) {
|
| - natPolicy = _json["natPolicy"];
|
| + if (_json.containsKey("network")) {
|
| + network = _json["network"];
|
| + }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("zone")) {
|
| - zone = _json["zone"];
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("tunnels")) {
|
| + tunnels = _json["tunnels"];
|
| }
|
| }
|
|
|
| @@ -14602,60 +16571,68 @@ class TargetInstance {
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (forwardingRules != null) {
|
| + _json["forwardingRules"] = forwardingRules;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| - if (instance != null) {
|
| - _json["instance"] = instance;
|
| - }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (natPolicy != null) {
|
| - _json["natPolicy"] = natPolicy;
|
| + if (network != null) {
|
| + _json["network"] = network;
|
| + }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (tunnels != null) {
|
| + _json["tunnels"] = tunnels;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetInstanceAggregatedList {
|
| +class TargetVpnGatewayAggregatedList {
|
| /**
|
| - * 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 target instance lists. */
|
| - core.Map<core.String, TargetInstancesScopedList> items;
|
| + /** A map of scoped target vpn gateway lists. */
|
| + core.Map<core.String, TargetVpnGatewaysScopedList> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#targetVpnGateway for target
|
| + * VPN gateways.
|
| + */
|
| 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 the resource. */
|
| core.String selfLink;
|
|
|
|
|
| - TargetInstanceAggregatedList();
|
| + TargetVpnGatewayAggregatedList();
|
|
|
| - TargetInstanceAggregatedList.fromJson(core.Map _json) {
|
| + TargetVpnGatewayAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new TargetInstancesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new TargetVpnGatewaysScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -14674,7 +16651,7 @@ class TargetInstanceAggregatedList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -14690,34 +16667,37 @@ class TargetInstanceAggregatedList {
|
| }
|
|
|
|
|
| -/** Contains a list of TargetInstance resources. */
|
| -class TargetInstanceList {
|
| +/** Contains a list of TargetVpnGateway resources. */
|
| +class TargetVpnGatewayList {
|
| /**
|
| - * 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 TargetInstance resources. */
|
| - core.List<TargetInstance> items;
|
| + /** [Output Only] A list of TargetVpnGateway resources. */
|
| + core.List<TargetVpnGateway> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#targetVpnGateway for target
|
| + * VPN gateways.
|
| + */
|
| 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 the resource. */
|
| core.String selfLink;
|
|
|
|
|
| - TargetInstanceList();
|
| + TargetVpnGatewayList();
|
|
|
| - TargetInstanceList.fromJson(core.Map _json) {
|
| + TargetVpnGatewayList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new TargetInstance.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new TargetVpnGateway.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -14752,18 +16732,17 @@ class TargetInstanceList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetInstancesScopedListWarningData {
|
| - /** A key for the warning data. */
|
| +class TargetVpnGatewaysScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| core.String key;
|
|
|
| - /** A warning data value corresponding to the key. */
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
|
|
| - TargetInstancesScopedListWarningData();
|
| + TargetVpnGatewaysScopedListWarningData();
|
|
|
| - TargetInstancesScopedListWarningData.fromJson(core.Map _json) {
|
| + TargetVpnGatewaysScopedListWarningData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -14786,12 +16765,12 @@ class TargetInstancesScopedListWarningData {
|
|
|
|
|
| /**
|
| - * Informational warning which replaces the list of addresses when the list is
|
| - * empty.
|
| + * [Output Only] Informational warning which replaces the list of addresses when
|
| + * the list is empty.
|
| */
|
| -class TargetInstancesScopedListWarning {
|
| +class TargetVpnGatewaysScopedListWarning {
|
| /**
|
| - * The warning type identifier for this warning.
|
| + * [Output Only] The warning type identifier for this warning.
|
| * Possible string values are:
|
| * - "DEPRECATED_RESOURCE_USED"
|
| * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| @@ -14804,25 +16783,26 @@ class TargetInstancesScopedListWarning {
|
| * - "NO_RESULTS_ON_PAGE"
|
| * - "REQUIRED_TOS_AGREEMENT"
|
| * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| * - "UNREACHABLE"
|
| */
|
| core.String code;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<TargetInstancesScopedListWarningData> data;
|
| + /** [Output Only] Metadata for this warning in key: value format. */
|
| + core.List<TargetVpnGatewaysScopedListWarningData> data;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| core.String message;
|
|
|
|
|
| - TargetInstancesScopedListWarning();
|
| + TargetVpnGatewaysScopedListWarning();
|
|
|
| - TargetInstancesScopedListWarning.fromJson(core.Map _json) {
|
| + TargetVpnGatewaysScopedListWarning.fromJson(core.Map _json) {
|
| if (_json.containsKey("code")) {
|
| code = _json["code"];
|
| }
|
| if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new TargetInstancesScopedListWarningData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new TargetVpnGatewaysScopedListWarningData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -14845,33 +16825,32 @@ class TargetInstancesScopedListWarning {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetInstancesScopedList {
|
| - /** List of target instances contained in this scope. */
|
| - core.List<TargetInstance> targetInstances;
|
| +class TargetVpnGatewaysScopedList {
|
| + /** [Output Only] List of target vpn gateways contained in this scope. */
|
| + core.List<TargetVpnGateway> targetVpnGateways;
|
|
|
| /**
|
| - * Informational warning which replaces the list of addresses when the list is
|
| - * empty.
|
| + * [Output Only] Informational warning which replaces the list of addresses
|
| + * when the list is empty.
|
| */
|
| - TargetInstancesScopedListWarning warning;
|
| + TargetVpnGatewaysScopedListWarning warning;
|
|
|
|
|
| - TargetInstancesScopedList();
|
| + TargetVpnGatewaysScopedList();
|
|
|
| - TargetInstancesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("targetInstances")) {
|
| - targetInstances = _json["targetInstances"].map((value) => new TargetInstance.fromJson(value)).toList();
|
| + TargetVpnGatewaysScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("targetVpnGateways")) {
|
| + targetVpnGateways = _json["targetVpnGateways"].map((value) => new TargetVpnGateway.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("warning")) {
|
| - warning = new TargetInstancesScopedListWarning.fromJson(_json["warning"]);
|
| + warning = new TargetVpnGatewaysScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (targetInstances != null) {
|
| - _json["targetInstances"] = targetInstances.map((value) => (value).toJson()).toList();
|
| + if (targetVpnGateways != null) {
|
| + _json["targetVpnGateways"] = targetVpnGateways.map((value) => (value).toJson()).toList();
|
| }
|
| if (warning != null) {
|
| _json["warning"] = (warning).toJson();
|
| @@ -14881,290 +16860,203 @@ class TargetInstancesScopedList {
|
| }
|
|
|
|
|
| -/**
|
| - * A TargetPool resource. This resource defines a pool of VMs, associated
|
| - * HttpHealthCheck resources, and the fallback TargetPool.
|
| - */
|
| -class TargetPool {
|
| - /**
|
| - * This field is applicable only when the containing target pool is serving a
|
| - * forwarding rule as the primary pool, and its 'failoverRatio' field is
|
| - * properly set to a value between [0, 1].
|
| - *
|
| - * 'backupPool' and 'failoverRatio' together define the fallback behavior of
|
| - * the primary target pool: if the ratio of the healthy VMs in the primary
|
| - * pool is at or below 'failoverRatio', traffic arriving at the load-balanced
|
| - * IP will be directed to the backup pool.
|
| - *
|
| - * In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs
|
| - * in the backup pool are unhealthy, the traffic will be directed back to the
|
| - * primary pool in the "force" mode, where traffic will be spread to the
|
| - * healthy VMs with the best effort, or to all VMs when no VM is healthy.
|
| - */
|
| - core.String backupPool;
|
| -
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| - core.String creationTimestamp;
|
| -
|
| - /**
|
| - * An optional textual description of the resource; provided by the client
|
| - * when the resource is created.
|
| - */
|
| - core.String description;
|
| -
|
| - /**
|
| - * This field is applicable only when the containing target pool is serving a
|
| - * forwarding rule as the primary pool (i.e., not as a backup pool to some
|
| - * other target pool). The value of the field must be in [0, 1].
|
| - *
|
| - * If set, 'backupPool' must also be set. They together define the fallback
|
| - * behavior of the primary target pool: if the ratio of the healthy VMs in the
|
| - * primary pool is at or below this number, traffic arriving at the
|
| - * load-balanced IP will be directed to the backup pool.
|
| - *
|
| - * In case where 'failoverRatio' is not set or all the VMs in the backup pool
|
| - * are unhealthy, the traffic will be directed back to the primary pool in the
|
| - * "force" mode, where traffic will be spread to the healthy VMs with the best
|
| - * effort, or to all VMs when no VM is healthy.
|
| - */
|
| - core.double failoverRatio;
|
| -
|
| - /**
|
| - * A list of URLs to the HttpHealthCheck resource. A member VM in this pool is
|
| - * considered healthy if and only if all specified health checks pass. An
|
| - * empty list means all member VMs will be considered healthy at all times.
|
| - */
|
| - core.List<core.String> healthChecks;
|
| -
|
| - /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| - */
|
| - core.String id;
|
| -
|
| - /**
|
| - * A list of resource URLs to the member VMs serving this pool. They must live
|
| - * in zones contained in the same region as this pool.
|
| - */
|
| - core.List<core.String> instances;
|
| -
|
| - /** 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.
|
| - */
|
| - core.String name;
|
| +class TestFailure {
|
| + core.String actualService;
|
|
|
| - /** URL of the region where the target pool resides (output only). */
|
| - core.String region;
|
| + core.String expectedService;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| - core.String selfLink;
|
| + core.String host;
|
|
|
| - /**
|
| - * Sesssion affinity option, must be one of the following values: 'NONE':
|
| - * Connections from the same client IP may go to any VM in the pool;
|
| - * 'CLIENT_IP': Connections from the same client IP will go to the same VM in
|
| - * the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from
|
| - * the same client IP with the same IP protocol will go to the same VM in the
|
| - * pool while that VM remains healthy.
|
| - * Possible string values are:
|
| - * - "CLIENT_IP"
|
| - * - "CLIENT_IP_PROTO"
|
| - * - "NONE"
|
| - */
|
| - core.String sessionAffinity;
|
| + core.String path;
|
|
|
|
|
| - TargetPool();
|
| + TestFailure();
|
|
|
| - TargetPool.fromJson(core.Map _json) {
|
| - if (_json.containsKey("backupPool")) {
|
| - backupPool = _json["backupPool"];
|
| - }
|
| - if (_json.containsKey("creationTimestamp")) {
|
| - creationTimestamp = _json["creationTimestamp"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("failoverRatio")) {
|
| - failoverRatio = _json["failoverRatio"];
|
| - }
|
| - if (_json.containsKey("healthChecks")) {
|
| - healthChecks = _json["healthChecks"];
|
| - }
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("instances")) {
|
| - instances = _json["instances"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + TestFailure.fromJson(core.Map _json) {
|
| + if (_json.containsKey("actualService")) {
|
| + actualService = _json["actualService"];
|
| }
|
| - if (_json.containsKey("region")) {
|
| - region = _json["region"];
|
| + if (_json.containsKey("expectedService")) {
|
| + expectedService = _json["expectedService"];
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - if (_json.containsKey("sessionAffinity")) {
|
| - sessionAffinity = _json["sessionAffinity"];
|
| + if (_json.containsKey("path")) {
|
| + path = _json["path"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (backupPool != null) {
|
| - _json["backupPool"] = backupPool;
|
| - }
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| - }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| - }
|
| - if (failoverRatio != null) {
|
| - _json["failoverRatio"] = failoverRatio;
|
| - }
|
| - if (healthChecks != null) {
|
| - _json["healthChecks"] = healthChecks;
|
| - }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (instances != null) {
|
| - _json["instances"] = instances;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (actualService != null) {
|
| + _json["actualService"] = actualService;
|
| }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| + if (expectedService != null) {
|
| + _json["expectedService"] = expectedService;
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| }
|
| - if (sessionAffinity != null) {
|
| - _json["sessionAffinity"] = sessionAffinity;
|
| + if (path != null) {
|
| + _json["path"] = path;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetPoolAggregatedList {
|
| +/**
|
| + * A UrlMap resource. This resource defines the mapping from URL to the
|
| + * BackendService resource, based on the "longest-match" of the URL's host and
|
| + * path.
|
| + */
|
| +class UrlMap {
|
| + /** Creation timestamp in RFC3339 text format (output only). */
|
| + 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
|
| + * when the resource is created.
|
| + */
|
| + core.String description;
|
| +
|
| + /**
|
| + * Fingerprint of this resource. A hash of the contents stored in this object.
|
| + * This field is used in optimistic locking. This field will be ignored when
|
| + * inserting a UrlMap. An up-to-date fingerprint must be provided in order to
|
| + * update the UrlMap.
|
| + */
|
| + core.String fingerprint;
|
| +
|
| + core.List<core.int> get fingerprintAsBytes {
|
| + return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| + }
|
| +
|
| + void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| + fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + }
|
| +
|
| + /** The list of HostRules to use against the URL. */
|
| + core.List<HostRule> hostRules;
|
| +
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A map of scoped target pool lists. */
|
| - core.Map<core.String, TargetPoolsScopedList> items;
|
| -
|
| - /** Type of resource. */
|
| + /** Type of the resource. */
|
| core.String kind;
|
|
|
| - /** A token used to continue a truncated list request (output only). */
|
| - core.String nextPageToken;
|
| + /**
|
| + * 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.
|
| + */
|
| + core.String name;
|
| +
|
| + /** The list of named PathMatchers to use against the URL. */
|
| + core.List<PathMatcher> pathMatchers;
|
|
|
| - /** Server defined URL for this resource (output only). */
|
| + /** Server defined URL for the resource (output only). */
|
| core.String selfLink;
|
|
|
| + /**
|
| + * The list of expected URL mappings. Request to update this UrlMap will
|
| + * succeed only all of the test cases pass.
|
| + */
|
| + core.List<UrlMapTest> tests;
|
| +
|
|
|
| - TargetPoolAggregatedList();
|
| + UrlMap();
|
|
|
| - TargetPoolAggregatedList.fromJson(core.Map _json) {
|
| + UrlMap.fromJson(core.Map _json) {
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| + }
|
| + if (_json.containsKey("defaultService")) {
|
| + defaultService = _json["defaultService"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("fingerprint")) {
|
| + fingerprint = _json["fingerprint"];
|
| + }
|
| + if (_json.containsKey("hostRules")) {
|
| + hostRules = _json["hostRules"].map((value) => new HostRule.fromJson(value)).toList();
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| - if (_json.containsKey("items")) {
|
| - items = common_internal.mapMap(_json["items"], (item) => new TargetPoolsScopedList.fromJson(item));
|
| - }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("pathMatchers")) {
|
| + pathMatchers = _json["pathMatchers"].map((value) => new PathMatcher.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| + if (_json.containsKey("tests")) {
|
| + tests = _json["tests"].map((value) => new UrlMapTest.fromJson(value)).toList();
|
| + }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (defaultService != null) {
|
| + _json["defaultService"] = defaultService;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (fingerprint != null) {
|
| + _json["fingerprint"] = fingerprint;
|
| + }
|
| + if (hostRules != null) {
|
| + _json["hostRules"] = hostRules.map((value) => (value).toJson()).toList();
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = common_internal.mapMap(items, (item) => (item).toJson());
|
| - }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (pathMatchers != null) {
|
| + _json["pathMatchers"] = pathMatchers.map((value) => (value).toJson()).toList();
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class TargetPoolInstanceHealth {
|
| - /** Not documented yet. */
|
| - core.List<HealthStatus> healthStatus;
|
| -
|
| - /** Type of resource. */
|
| - core.String kind;
|
| -
|
| -
|
| - TargetPoolInstanceHealth();
|
| -
|
| - TargetPoolInstanceHealth.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthStatus")) {
|
| - healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (healthStatus != null) {
|
| - _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + if (tests != null) {
|
| + _json["tests"] = tests.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of TargetPool resources. */
|
| -class TargetPoolList {
|
| +/** Contains a list of UrlMap resources. */
|
| +class UrlMapList {
|
| /**
|
| * Unique identifier for the resource; defined by the server (output only).
|
| */
|
| core.String id;
|
|
|
| - /** A list of TargetPool resources. */
|
| - core.List<TargetPool> items;
|
| + /** A list of UrlMap resources. */
|
| + core.List<UrlMap> items;
|
|
|
| /** Type of resource. */
|
| core.String kind;
|
| @@ -15176,14 +17068,14 @@ class TargetPoolList {
|
| core.String selfLink;
|
|
|
|
|
| - TargetPoolList();
|
| + UrlMapList();
|
|
|
| - TargetPoolList.fromJson(core.Map _json) {
|
| + UrlMapList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new TargetPool.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new UrlMap.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -15218,405 +17110,355 @@ class TargetPoolList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetPoolsAddHealthCheckRequest {
|
| - /** Health check URLs to be added to targetPool. */
|
| - core.List<HealthCheckReference> healthChecks;
|
| +class UrlMapReference {
|
| + core.String urlMap;
|
|
|
|
|
| - TargetPoolsAddHealthCheckRequest();
|
| + UrlMapReference();
|
|
|
| - TargetPoolsAddHealthCheckRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthChecks")) {
|
| - healthChecks = _json["healthChecks"].map((value) => new HealthCheckReference.fromJson(value)).toList();
|
| + UrlMapReference.fromJson(core.Map _json) {
|
| + if (_json.containsKey("urlMap")) {
|
| + urlMap = _json["urlMap"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (healthChecks != null) {
|
| - _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList();
|
| + if (urlMap != null) {
|
| + _json["urlMap"] = urlMap;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetPoolsAddInstanceRequest {
|
| - /** URLs of the instances to be added to targetPool. */
|
| - core.List<InstanceReference> instances;
|
| -
|
| -
|
| - TargetPoolsAddInstanceRequest();
|
| -
|
| - TargetPoolsAddInstanceRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("instances")) {
|
| - instances = _json["instances"].map((value) => new InstanceReference.fromJson(value)).toList();
|
| - }
|
| - }
|
| +/** Message for the expected URL mappings. */
|
| +class UrlMapTest {
|
| + /** Description of this test case. */
|
| + core.String description;
|
|
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (instances != null) {
|
| - _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| + /** Host portion of the URL. */
|
| + core.String host;
|
|
|
| + /** Path portion of the URL. */
|
| + core.String path;
|
|
|
| -/** Not documented yet. */
|
| -class TargetPoolsRemoveHealthCheckRequest {
|
| - /** Health check URLs to be removed from targetPool. */
|
| - core.List<HealthCheckReference> healthChecks;
|
| + /** Expected BackendService resource the given URL should be mapped to. */
|
| + core.String service;
|
|
|
|
|
| - TargetPoolsRemoveHealthCheckRequest();
|
| + UrlMapTest();
|
|
|
| - TargetPoolsRemoveHealthCheckRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthChecks")) {
|
| - healthChecks = _json["healthChecks"].map((value) => new HealthCheckReference.fromJson(value)).toList();
|
| + UrlMapTest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (healthChecks != null) {
|
| - _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toList();
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class TargetPoolsRemoveInstanceRequest {
|
| - /** URLs of the instances to be removed from targetPool. */
|
| - core.List<InstanceReference> instances;
|
| -
|
| -
|
| - TargetPoolsRemoveInstanceRequest();
|
| -
|
| - TargetPoolsRemoveInstanceRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("instances")) {
|
| - instances = _json["instances"].map((value) => new InstanceReference.fromJson(value)).toList();
|
| + if (_json.containsKey("path")) {
|
| + path = _json["path"];
|
| + }
|
| + if (_json.containsKey("service")) {
|
| + service = _json["service"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (instances != null) {
|
| - _json["instances"] = instances.map((value) => (value).toJson()).toList();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -
|
| -/** Not documented yet. */
|
| -class TargetPoolsScopedListWarningData {
|
| - /** A key for the warning data. */
|
| - core.String key;
|
| -
|
| - /** A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| -
|
| - TargetPoolsScopedListWarningData();
|
| -
|
| - TargetPoolsScopedListWarningData.fromJson(core.Map _json) {
|
| - if (_json.containsKey("key")) {
|
| - key = _json["key"];
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| }
|
| - if (_json.containsKey("value")) {
|
| - value = _json["value"];
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (key != null) {
|
| - _json["key"] = key;
|
| + if (path != null) {
|
| + _json["path"] = path;
|
| }
|
| - if (value != null) {
|
| - _json["value"] = value;
|
| + if (service != null) {
|
| + _json["service"] = service;
|
| }
|
| return _json;
|
| }
|
| -}
|
| -
|
| -
|
| -/**
|
| - * Informational warning which replaces the list of addresses when the list is
|
| - * empty.
|
| - */
|
| -class TargetPoolsScopedListWarning {
|
| - /**
|
| - * 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"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "UNREACHABLE"
|
| +}
|
| +
|
| +
|
| +/** Message representing the validation result for a UrlMap. */
|
| +class UrlMapValidationResult {
|
| + core.List<core.String> loadErrors;
|
| +
|
| + /**
|
| + * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors'
|
| + * indicates the reasons.
|
| */
|
| - core.String code;
|
| + core.bool loadSucceeded;
|
|
|
| - /** Metadata for this warning in 'key: value' format. */
|
| - core.List<TargetPoolsScopedListWarningData> data;
|
| + core.List<TestFailure> testFailures;
|
|
|
| - /** Optional human-readable details for this warning. */
|
| - core.String message;
|
| + /**
|
| + * If successfully loaded, this field indicates whether the test passed. If
|
| + * false, 'testFailures's indicate the reason of failure.
|
| + */
|
| + core.bool testPassed;
|
|
|
|
|
| - TargetPoolsScopedListWarning();
|
| + UrlMapValidationResult();
|
|
|
| - TargetPoolsScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| + UrlMapValidationResult.fromJson(core.Map _json) {
|
| + if (_json.containsKey("loadErrors")) {
|
| + loadErrors = _json["loadErrors"];
|
| }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new TargetPoolsScopedListWarningData.fromJson(value)).toList();
|
| + if (_json.containsKey("loadSucceeded")) {
|
| + loadSucceeded = _json["loadSucceeded"];
|
| }
|
| - if (_json.containsKey("message")) {
|
| - message = _json["message"];
|
| + if (_json.containsKey("testFailures")) {
|
| + testFailures = _json["testFailures"].map((value) => new TestFailure.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("testPassed")) {
|
| + testPassed = _json["testPassed"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (code != null) {
|
| - _json["code"] = code;
|
| + if (loadErrors != null) {
|
| + _json["loadErrors"] = loadErrors;
|
| }
|
| - if (data != null) {
|
| - _json["data"] = data.map((value) => (value).toJson()).toList();
|
| + if (loadSucceeded != null) {
|
| + _json["loadSucceeded"] = loadSucceeded;
|
| }
|
| - if (message != null) {
|
| - _json["message"] = message;
|
| + if (testFailures != null) {
|
| + _json["testFailures"] = testFailures.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (testPassed != null) {
|
| + _json["testPassed"] = testPassed;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetPoolsScopedList {
|
| - /** List of target pools contained in this scope. */
|
| - core.List<TargetPool> targetPools;
|
| -
|
| - /**
|
| - * Informational warning which replaces the list of addresses when the list is
|
| - * empty.
|
| - */
|
| - TargetPoolsScopedListWarning warning;
|
| +class UrlMapsValidateRequest {
|
| + /** Content of the UrlMap to be validated. */
|
| + UrlMap resource;
|
|
|
|
|
| - TargetPoolsScopedList();
|
| + UrlMapsValidateRequest();
|
|
|
| - TargetPoolsScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("targetPools")) {
|
| - targetPools = _json["targetPools"].map((value) => new TargetPool.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new TargetPoolsScopedListWarning.fromJson(_json["warning"]);
|
| + UrlMapsValidateRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("resource")) {
|
| + resource = new UrlMap.fromJson(_json["resource"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (targetPools != null) {
|
| - _json["targetPools"] = targetPools.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| + if (resource != null) {
|
| + _json["resource"] = (resource).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TargetReference {
|
| - /** Not documented yet. */
|
| - core.String target;
|
| +class UrlMapsValidateResponse {
|
| + UrlMapValidationResult result;
|
|
|
|
|
| - TargetReference();
|
| + UrlMapsValidateResponse();
|
|
|
| - TargetReference.fromJson(core.Map _json) {
|
| - if (_json.containsKey("target")) {
|
| - target = _json["target"];
|
| + UrlMapsValidateResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("result")) {
|
| + result = new UrlMapValidationResult.fromJson(_json["result"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (target != null) {
|
| - _json["target"] = target;
|
| + if (result != null) {
|
| + _json["result"] = (result).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class TestFailure {
|
| - /** Not documented yet. */
|
| - core.String actualService;
|
| -
|
| - /** Not documented yet. */
|
| - core.String expectedService;
|
| -
|
| - /** Not documented yet. */
|
| - core.String host;
|
| +/**
|
| + * The location in Cloud Storage and naming method of the daily usage report.
|
| + * Contains bucket_name and report_name prefix.
|
| + */
|
| +class UsageExportLocation {
|
| + /**
|
| + * The name of an existing bucket in Cloud Storage where the usage report
|
| + * object is stored. The Google Service Account is granted write access to
|
| + * this bucket. This is just the bucket name, with no gs:// or
|
| + * https://storage.googleapis.com/ in front of it.
|
| + */
|
| + core.String bucketName;
|
|
|
| - /** Not documented yet. */
|
| - core.String path;
|
| + /**
|
| + * An optional prefix for the name of the usage report object stored in
|
| + * bucketName. If not supplied, defaults to usage. The report is stored as a
|
| + * CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the
|
| + * day of the usage according to Pacific Time. If you supply a prefix, it
|
| + * should conform to Cloud Storage object naming conventions.
|
| + */
|
| + core.String reportNamePrefix;
|
|
|
|
|
| - TestFailure();
|
| + UsageExportLocation();
|
|
|
| - TestFailure.fromJson(core.Map _json) {
|
| - if (_json.containsKey("actualService")) {
|
| - actualService = _json["actualService"];
|
| - }
|
| - if (_json.containsKey("expectedService")) {
|
| - expectedService = _json["expectedService"];
|
| - }
|
| - if (_json.containsKey("host")) {
|
| - host = _json["host"];
|
| + UsageExportLocation.fromJson(core.Map _json) {
|
| + if (_json.containsKey("bucketName")) {
|
| + bucketName = _json["bucketName"];
|
| }
|
| - if (_json.containsKey("path")) {
|
| - path = _json["path"];
|
| + if (_json.containsKey("reportNamePrefix")) {
|
| + reportNamePrefix = _json["reportNamePrefix"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (actualService != null) {
|
| - _json["actualService"] = actualService;
|
| - }
|
| - if (expectedService != null) {
|
| - _json["expectedService"] = expectedService;
|
| - }
|
| - if (host != null) {
|
| - _json["host"] = host;
|
| + if (bucketName != null) {
|
| + _json["bucketName"] = bucketName;
|
| }
|
| - if (path != null) {
|
| - _json["path"] = path;
|
| + if (reportNamePrefix != null) {
|
| + _json["reportNamePrefix"] = reportNamePrefix;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * A UrlMap resource. This resource defines the mapping from URL to the
|
| - * BackendService resource, based on the "longest-match" of the URL's host and
|
| - * path.
|
| - */
|
| -class UrlMap {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| +class VpnTunnel {
|
| + /** [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;
|
|
|
| + /** [Output Only] Detailed status message for the VPN tunnel. */
|
| + core.String detailedStatus;
|
| +
|
| /**
|
| - * Fingerprint of this resource. A hash of the contents stored in this object.
|
| - * This field is used in optimistic locking. This field will be ignored when
|
| - * inserting a UrlMap. An up-to-date fingerprint must be provided in order to
|
| - * update the UrlMap.
|
| + * [Output Only] Unique identifier for the resource. Defined by the server.
|
| */
|
| - core.String fingerprint;
|
| -
|
| - core.List<core.int> get fingerprintAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(fingerprint);
|
| - }
|
| -
|
| - void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| - fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| - }
|
| + core.String id;
|
|
|
| - /** The list of HostRules to use against the URL. */
|
| - core.List<HostRule> hostRules;
|
| + /**
|
| + * 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;
|
|
|
| /**
|
| - * Unique identifier for the resource; defined by the server (output only).
|
| + * 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.
|
| */
|
| - core.String id;
|
| + core.int ikeVersion;
|
|
|
| - /** Type of the resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
|
| + */
|
| 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.
|
| */
|
| core.String name;
|
|
|
| - /** The list of named PathMatchers to use against the URL. */
|
| - core.List<PathMatcher> pathMatchers;
|
| + /** IP address of the peer VPN gateway. */
|
| + core.String peerIp;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] URL of the region where the VPN tunnel resides. */
|
| + core.String region;
|
| +
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| /**
|
| - * The list of expected URL mappings. Request to update this UrlMap will
|
| - * succeed only all of the test cases pass.
|
| + * Shared secret used to set the secure session between the GCE VPN gateway
|
| + * and the peer VPN gateway.
|
| */
|
| - core.List<UrlMapTest> tests;
|
| + core.String sharedSecret;
|
|
|
| + /** Hash of the shared secret. */
|
| + core.String sharedSecretHash;
|
|
|
| - UrlMap();
|
| + /**
|
| + * [Output Only] The status of the VPN tunnel.
|
| + * Possible string values are:
|
| + * - "AUTHORIZATION_ERROR"
|
| + * - "DEPROVISIONING"
|
| + * - "ESTABLISHED"
|
| + * - "FAILED"
|
| + * - "FIRST_HANDSHAKE"
|
| + * - "NEGOTIATION_FAILURE"
|
| + * - "NETWORK_ERROR"
|
| + * - "PROVISIONING"
|
| + * - "WAITING_FOR_FULL_CONFIG"
|
| + */
|
| + core.String status;
|
|
|
| - UrlMap.fromJson(core.Map _json) {
|
| + /**
|
| + * URL of the VPN gateway to which this VPN tunnel is associated. Provided by
|
| + * the client when the VPN tunnel is created.
|
| + */
|
| + core.String targetVpnGateway;
|
| +
|
| +
|
| + VpnTunnel();
|
| +
|
| + VpnTunnel.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| - if (_json.containsKey("defaultService")) {
|
| - defaultService = _json["defaultService"];
|
| - }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("fingerprint")) {
|
| - fingerprint = _json["fingerprint"];
|
| - }
|
| - if (_json.containsKey("hostRules")) {
|
| - hostRules = _json["hostRules"].map((value) => new HostRule.fromJson(value)).toList();
|
| + if (_json.containsKey("detailedStatus")) {
|
| + detailedStatus = _json["detailedStatus"];
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| + if (_json.containsKey("ikeNetworks")) {
|
| + ikeNetworks = _json["ikeNetworks"];
|
| + }
|
| + if (_json.containsKey("ikeVersion")) {
|
| + ikeVersion = _json["ikeVersion"];
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| - if (_json.containsKey("pathMatchers")) {
|
| - pathMatchers = _json["pathMatchers"].map((value) => new PathMatcher.fromJson(value)).toList();
|
| + if (_json.containsKey("peerIp")) {
|
| + peerIp = _json["peerIp"];
|
| + }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("tests")) {
|
| - tests = _json["tests"].map((value) => new UrlMapTest.fromJson(value)).toList();
|
| + if (_json.containsKey("sharedSecret")) {
|
| + sharedSecret = _json["sharedSecret"];
|
| + }
|
| + if (_json.containsKey("sharedSecretHash")) {
|
| + sharedSecretHash = _json["sharedSecretHash"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("targetVpnGateway")) {
|
| + targetVpnGateway = _json["targetVpnGateway"];
|
| }
|
| }
|
|
|
| @@ -15625,69 +17467,82 @@ class UrlMap {
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| - if (defaultService != null) {
|
| - _json["defaultService"] = defaultService;
|
| - }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (fingerprint != null) {
|
| - _json["fingerprint"] = fingerprint;
|
| - }
|
| - if (hostRules != null) {
|
| - _json["hostRules"] = hostRules.map((value) => (value).toJson()).toList();
|
| + if (detailedStatus != null) {
|
| + _json["detailedStatus"] = detailedStatus;
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| + if (ikeNetworks != null) {
|
| + _json["ikeNetworks"] = ikeNetworks;
|
| + }
|
| + if (ikeVersion != null) {
|
| + _json["ikeVersion"] = ikeVersion;
|
| + }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| - if (pathMatchers != null) {
|
| - _json["pathMatchers"] = pathMatchers.map((value) => (value).toJson()).toList();
|
| + if (peerIp != null) {
|
| + _json["peerIp"] = peerIp;
|
| + }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (tests != null) {
|
| - _json["tests"] = tests.map((value) => (value).toJson()).toList();
|
| + if (sharedSecret != null) {
|
| + _json["sharedSecret"] = sharedSecret;
|
| + }
|
| + if (sharedSecretHash != null) {
|
| + _json["sharedSecretHash"] = sharedSecretHash;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (targetVpnGateway != null) {
|
| + _json["targetVpnGateway"] = targetVpnGateway;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Contains a list of UrlMap resources. */
|
| -class UrlMapList {
|
| +class VpnTunnelAggregatedList {
|
| /**
|
| - * 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 UrlMap resources. */
|
| - core.List<UrlMap> items;
|
| + /** [Output Only] A map of scoped vpn tunnel lists. */
|
| + core.Map<core.String, VpnTunnelsScopedList> items;
|
|
|
| - /** Type of resource. */
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
|
| + */
|
| 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();
|
| + VpnTunnelAggregatedList();
|
|
|
| - UrlMapList.fromJson(core.Map _json) {
|
| + VpnTunnelAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new UrlMap.fromJson(value)).toList();
|
| + items = commons.mapMap(_json["items"], (item) => new VpnTunnelsScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -15706,7 +17561,7 @@ class UrlMapList {
|
| _json["id"] = id;
|
| }
|
| if (items != null) {
|
| - _json["items"] = items.map((value) => (value).toJson()).toList();
|
| + _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -15722,245 +17577,213 @@ class UrlMapList {
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class UrlMapReference {
|
| - /** Not documented yet. */
|
| - core.String urlMap;
|
| -
|
| -
|
| - UrlMapReference();
|
| -
|
| - UrlMapReference.fromJson(core.Map _json) {
|
| - if (_json.containsKey("urlMap")) {
|
| - urlMap = _json["urlMap"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (urlMap != null) {
|
| - _json["urlMap"] = urlMap;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| +/** Contains a list of VpnTunnel resources. */
|
| +class VpnTunnelList {
|
| + /**
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| + */
|
| + core.String id;
|
|
|
| -/** Message for the expected URL mappings. */
|
| -class UrlMapTest {
|
| - /** Description of this test case. */
|
| - core.String description;
|
| + /** [Output Only] A list of VpnTunnel resources. */
|
| + core.List<VpnTunnel> items;
|
|
|
| - /** Host portion of the URL. */
|
| - core.String host;
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
|
| + */
|
| + core.String kind;
|
|
|
| - /** Path portion of the URL. */
|
| - core.String path;
|
| + /** [Output Only] A token used to continue a truncated list request. */
|
| + core.String nextPageToken;
|
|
|
| - /** Expected BackendService resource the given URL should be mapped to. */
|
| - core.String service;
|
| + /** [Output Only] Server-defined URL for the resource. */
|
| + core.String selfLink;
|
|
|
|
|
| - UrlMapTest();
|
| + VpnTunnelList();
|
|
|
| - UrlMapTest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| + VpnTunnelList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("host")) {
|
| - host = _json["host"];
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new VpnTunnel.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("path")) {
|
| - path = _json["path"];
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("service")) {
|
| - service = _json["service"];
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (host != null) {
|
| - _json["host"] = host;
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| - if (path != null) {
|
| - _json["path"] = path;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| - if (service != null) {
|
| - _json["service"] = service;
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Message representing the validation result for a UrlMap. */
|
| -class UrlMapValidationResult {
|
| - /** Not documented yet. */
|
| - core.List<core.String> loadErrors;
|
| -
|
| - /**
|
| - * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors'
|
| - * indicates the reasons.
|
| - */
|
| - core.bool loadSucceeded;
|
| -
|
| - /** Not documented yet. */
|
| - core.List<TestFailure> testFailures;
|
| +class VpnTunnelsScopedListWarningData {
|
| + /** [Output Only] A key for the warning data. */
|
| + core.String key;
|
|
|
| - /**
|
| - * If successfully loaded, this field indicates whether the test passed. If
|
| - * false, 'testFailures's indicate the reason of failure.
|
| - */
|
| - core.bool testPassed;
|
| + /** [Output Only] A warning data value corresponding to the key. */
|
| + core.String value;
|
|
|
|
|
| - UrlMapValidationResult();
|
| + VpnTunnelsScopedListWarningData();
|
|
|
| - UrlMapValidationResult.fromJson(core.Map _json) {
|
| - if (_json.containsKey("loadErrors")) {
|
| - loadErrors = _json["loadErrors"];
|
| - }
|
| - if (_json.containsKey("loadSucceeded")) {
|
| - loadSucceeded = _json["loadSucceeded"];
|
| - }
|
| - if (_json.containsKey("testFailures")) {
|
| - testFailures = _json["testFailures"].map((value) => new TestFailure.fromJson(value)).toList();
|
| + VpnTunnelsScopedListWarningData.fromJson(core.Map _json) {
|
| + if (_json.containsKey("key")) {
|
| + key = _json["key"];
|
| }
|
| - if (_json.containsKey("testPassed")) {
|
| - testPassed = _json["testPassed"];
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (loadErrors != null) {
|
| - _json["loadErrors"] = loadErrors;
|
| - }
|
| - if (loadSucceeded != null) {
|
| - _json["loadSucceeded"] = loadSucceeded;
|
| - }
|
| - if (testFailures != null) {
|
| - _json["testFailures"] = testFailures.map((value) => (value).toJson()).toList();
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (testPassed != null) {
|
| - _json["testPassed"] = testPassed;
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| -class UrlMapsValidateRequest {
|
| - /** Content of the UrlMap to be validated. */
|
| - UrlMap resource;
|
| -
|
| -
|
| - UrlMapsValidateRequest();
|
| -
|
| - UrlMapsValidateRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("resource")) {
|
| - resource = new UrlMap.fromJson(_json["resource"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (resource != null) {
|
| - _json["resource"] = (resource).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| +/**
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| + */
|
| +class VpnTunnelsScopedListWarning {
|
| + /**
|
| + * [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"
|
| + * - "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<VpnTunnelsScopedListWarningData> data;
|
|
|
| -/** Not documented yet. */
|
| -class UrlMapsValidateResponse {
|
| - /** Not documented yet. */
|
| - UrlMapValidationResult result;
|
| + /** [Output Only] Optional human-readable details for this warning. */
|
| + core.String message;
|
|
|
|
|
| - UrlMapsValidateResponse();
|
| + VpnTunnelsScopedListWarning();
|
|
|
| - UrlMapsValidateResponse.fromJson(core.Map _json) {
|
| - if (_json.containsKey("result")) {
|
| - result = new UrlMapValidationResult.fromJson(_json["result"]);
|
| + VpnTunnelsScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new VpnTunnelsScopedListWarningData.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (result != null) {
|
| - _json["result"] = (result).toJson();
|
| + 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;
|
| }
|
| }
|
|
|
|
|
| -/**
|
| - * The location in Cloud Storage and naming method of the daily usage report.
|
| - * Contains bucket_name and report_name prefix.
|
| - */
|
| -class UsageExportLocation {
|
| - /**
|
| - * The name of an existing bucket in Cloud Storage where the usage report
|
| - * object is stored. The Google Service Account is granted write access to
|
| - * this bucket. This is simply the bucket name, with no "gs://" or
|
| - * "https://storage.googleapis.com/" in front of it.
|
| - */
|
| - core.String bucketName;
|
| +class VpnTunnelsScopedList {
|
| + /** List of vpn tunnels contained in this scope. */
|
| + core.List<VpnTunnel> vpnTunnels;
|
|
|
| /**
|
| - * An optional prefix for the name of the usage report object stored in
|
| - * bucket_name. If not supplied, defaults to "usage_". The report is stored as
|
| - * a CSV file named _gce_.csv. where is the day of the usage according to
|
| - * Pacific Time. The prefix should conform to Cloud Storage object naming
|
| - * conventions.
|
| + * Informational warning which replaces the list of addresses when the list is
|
| + * empty.
|
| */
|
| - core.String reportNamePrefix;
|
| + VpnTunnelsScopedListWarning warning;
|
|
|
|
|
| - UsageExportLocation();
|
| + VpnTunnelsScopedList();
|
|
|
| - UsageExportLocation.fromJson(core.Map _json) {
|
| - if (_json.containsKey("bucketName")) {
|
| - bucketName = _json["bucketName"];
|
| + VpnTunnelsScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("vpnTunnels")) {
|
| + vpnTunnels = _json["vpnTunnels"].map((value) => new VpnTunnel.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("reportNamePrefix")) {
|
| - reportNamePrefix = _json["reportNamePrefix"];
|
| + if (_json.containsKey("warning")) {
|
| + warning = new VpnTunnelsScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (bucketName != null) {
|
| - _json["bucketName"] = bucketName;
|
| + if (vpnTunnels != null) {
|
| + _json["vpnTunnels"] = vpnTunnels.map((value) => (value).toJson()).toList();
|
| }
|
| - if (reportNamePrefix != null) {
|
| - _json["reportNamePrefix"] = reportNamePrefix;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
|
|
| -/** Not documented yet. */
|
| class ZoneMaintenanceWindows {
|
| - /** Begin time of the maintenance window, in RFC 3339 format. */
|
| + /**
|
| + * [Output Only] Starting time of the maintenance window, in RFC3339 format.
|
| + */
|
| core.String beginTime;
|
|
|
| - /** Textual description of the maintenance window. */
|
| + /** [Output Only] Textual description of the maintenance window. */
|
| core.String description;
|
|
|
| - /** End time of the maintenance window, in RFC 3339 format. */
|
| + /**
|
| + * [Output Only] Ending time of the maintenance window, in RFC3339 format.
|
| + */
|
| core.String endTime;
|
|
|
| - /** Name of the maintenance window. */
|
| + /** [Output Only] Name of the maintenance window. */
|
| core.String name;
|
|
|
|
|
| @@ -16000,43 +17823,43 @@ class ZoneMaintenanceWindows {
|
| }
|
|
|
|
|
| -/** A zone resource. */
|
| +/** A Zone resource. */
|
| class Zone {
|
| - /** Creation timestamp in RFC3339 text format (output only). */
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
|
|
| - /** The deprecation status associated with this zone. */
|
| + /** [Output Only] The deprecation status associated with this zone. */
|
| DeprecationStatus deprecated;
|
|
|
| - /** Textual description of the resource. */
|
| + /** [Output Only] Textual description of the resource. */
|
| 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 the resource. Always kind#zone for zones. */
|
| core.String kind;
|
|
|
| /**
|
| - * Scheduled maintenance windows for the zone. When the zone is in a
|
| - * maintenance window, all resources which reside in the zone will be
|
| - * unavailable.
|
| + * [Output Only] Any scheduled maintenance windows for this zone. When the
|
| + * zone is in a maintenance window, all resources which reside in the zone
|
| + * will be unavailable. For more information, see Maintenance Windows
|
| */
|
| core.List<ZoneMaintenanceWindows> maintenanceWindows;
|
|
|
| - /** Name of the resource. */
|
| + /** [Output Only] Name of the resource. */
|
| core.String name;
|
|
|
| - /** Full URL reference to the region which hosts the zone (output only). */
|
| + /** [Output Only] Full URL reference to the region which hosts the zone. */
|
| core.String region;
|
|
|
| - /** Server defined URL for the resource (output only). */
|
| + /** [Output Only] Server defined URL for the resource. */
|
| core.String selfLink;
|
|
|
| /**
|
| - * Status of the zone. "UP" or "DOWN".
|
| + * [Output Only] Status of the zone, either UP or DOWN.
|
| * Possible string values are:
|
| * - "DOWN"
|
| * - "UP"
|
| @@ -16119,17 +17942,17 @@ class Zone {
|
| /** Contains a list of zone resources. */
|
| class ZoneList {
|
| /**
|
| - * 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 Zone resources. */
|
| + /** [Output Only] A list of Zone resources. */
|
| core.List<Zone> 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). */
|
| @@ -16176,5 +17999,3 @@ class ZoneList {
|
| return _json;
|
| }
|
| }
|
| -
|
| -
|
|
|