| Index: generated/googleapis/lib/compute/v1.dart
|
| diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart
|
| index efca81d731888d3664ab9f3cc73476ff4ddc1bf7..e956c2fa80d5cbba4bf6d8ae53f0f3d389e425f3 100644
|
| --- a/generated/googleapis/lib/compute/v1.dart
|
| +++ b/generated/googleapis/lib/compute/v1.dart
|
| @@ -47,6 +47,7 @@ class ComputeApi {
|
| GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceApi(_requester);
|
| GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwardingRulesResourceApi(_requester);
|
| GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResourceApi(_requester);
|
| + HealthChecksResourceApi get healthChecks => new HealthChecksResourceApi(_requester);
|
| HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResourceApi(_requester);
|
| HttpsHealthChecksResourceApi get httpsHealthChecks => new HttpsHealthChecksResourceApi(_requester);
|
| ImagesResourceApi get images => new ImagesResourceApi(_requester);
|
| @@ -69,6 +70,7 @@ class ComputeApi {
|
| TargetHttpsProxiesResourceApi get targetHttpsProxies => new TargetHttpsProxiesResourceApi(_requester);
|
| TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceApi(_requester);
|
| TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requester);
|
| + TargetSslProxiesResourceApi get targetSslProxies => new TargetSslProxiesResourceApi(_requester);
|
| TargetVpnGatewaysResourceApi get targetVpnGateways => new TargetVpnGatewaysResourceApi(_requester);
|
| UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester);
|
| VpnTunnelsResourceApi get vpnTunnels => new VpnTunnelsResourceApi(_requester);
|
| @@ -126,6 +128,17 @@ class AddressesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -138,7 +151,7 @@ class AddressesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<AddressAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<AddressAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -155,6 +168,9 @@ class AddressesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -373,6 +389,17 @@ class AddressesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -385,7 +412,7 @@ class AddressesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<AddressList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<AddressList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -405,6 +432,9 @@ class AddressesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -470,6 +500,17 @@ class AutoscalersResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -482,7 +523,7 @@ class AutoscalersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<AutoscalerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<AutoscalerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -499,6 +540,9 @@ class AutoscalersResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -718,6 +762,17 @@ class AutoscalersResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -730,7 +785,7 @@ class AutoscalersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<AutoscalerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<AutoscalerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -750,6 +805,9 @@ class AutoscalersResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -1132,6 +1190,17 @@ class BackendServicesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -1144,7 +1213,7 @@ class BackendServicesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<BackendServiceList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<BackendServiceList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1161,6 +1230,9 @@ class BackendServicesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -1178,10 +1250,10 @@ class BackendServicesResourceApi {
|
| }
|
|
|
| /**
|
| - * Updates the entire content of the BackendService resource. There are
|
| - * several restrictions and guidelines to keep in mind when updating a backend
|
| - * service. Read Restrictions and Guidelines for more information. This
|
| - * method supports patch semantics.
|
| + * Updates the specified BackendService resource with the data included in the
|
| + * request. There are several restrictions and guidelines to keep in mind when
|
| + * updating a backend service. Read Restrictions and Guidelines for more
|
| + * information. This method supports patch semantics.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -1233,9 +1305,10 @@ class BackendServicesResourceApi {
|
| }
|
|
|
| /**
|
| - * Updates the entire content of the BackendService resource. There are
|
| - * several restrictions and guidelines to keep in mind when updating a backend
|
| - * service. Read Restrictions and Guidelines for more information.
|
| + * Updates the specified BackendService resource with the data included in the
|
| + * request. There are several restrictions and guidelines to keep in mind when
|
| + * updating a backend service. Read Restrictions and Guidelines for more
|
| + * information.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -1335,6 +1408,17 @@ class DiskTypesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -1347,7 +1431,7 @@ class DiskTypesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1364,6 +1448,9 @@ class DiskTypesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -1477,6 +1564,17 @@ class DiskTypesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -1489,7 +1587,7 @@ class DiskTypesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1509,6 +1607,9 @@ class DiskTypesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -1574,6 +1675,17 @@ class DisksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -1586,7 +1698,7 @@ class DisksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1603,6 +1715,9 @@ class DisksResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -1890,6 +2005,17 @@ class DisksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -1902,7 +2028,7 @@ class DisksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1922,6 +2048,9 @@ class DisksResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -2186,6 +2315,17 @@ class FirewallsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -2198,7 +2338,7 @@ class FirewallsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<FirewallList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<FirewallList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2215,6 +2355,9 @@ class FirewallsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -2385,6 +2528,17 @@ class ForwardingRulesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -2397,7 +2551,7 @@ class ForwardingRulesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2414,6 +2568,9 @@ class ForwardingRulesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -2633,6 +2790,17 @@ class ForwardingRulesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -2645,7 +2813,7 @@ class ForwardingRulesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ForwardingRuleList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<ForwardingRuleList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2665,6 +2833,9 @@ class ForwardingRulesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -2932,6 +3103,17 @@ class GlobalAddressesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -2944,7 +3126,7 @@ class GlobalAddressesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<AddressList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<AddressList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2961,6 +3143,9 @@ class GlobalAddressesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -3169,6 +3354,17 @@ class GlobalForwardingRulesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -3181,7 +3377,7 @@ class GlobalForwardingRulesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ForwardingRuleList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<ForwardingRuleList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3198,6 +3394,9 @@ class GlobalForwardingRulesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -3317,6 +3516,17 @@ class GlobalOperationsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -3329,7 +3539,7 @@ class GlobalOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<OperationAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<OperationAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3346,6 +3556,9 @@ class GlobalOperationsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -3498,6 +3711,17 @@ class GlobalOperationsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| @@ -3510,7 +3734,7 @@ class GlobalOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<OperationList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<OperationList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3527,6 +3751,9 @@ class GlobalOperationsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| @@ -3546,14 +3773,14 @@ class GlobalOperationsResourceApi {
|
| }
|
|
|
|
|
| -class HttpHealthChecksResourceApi {
|
| +class HealthChecksResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - HttpHealthChecksResourceApi(commons.ApiRequester client) :
|
| + HealthChecksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified HttpHealthCheck resource.
|
| + * Deletes the specified HealthCheck resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -3561,7 +3788,7 @@ class HttpHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete.
|
| + * [healthCheck] - Name of the HealthCheck resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -3572,7 +3799,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String httpHealthCheck) {
|
| + async.Future<Operation> delete(core.String project, core.String healthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3583,11 +3810,11 @@ class HttpHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| + if (healthCheck == null) {
|
| + throw new core.ArgumentError("Parameter healthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -3600,8 +3827,8 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified HttpHealthCheck resource. Get a list of available
|
| - * HTTP health checks by making a list() request.
|
| + * Returns the specified HealthCheck resource. Get a list of available health
|
| + * checks by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -3609,10 +3836,10 @@ class HttpHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpHealthCheck] - Name of the HttpHealthCheck resource to return.
|
| + * [healthCheck] - Name of the HealthCheck resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [HttpHealthCheck].
|
| + * Completes with a [HealthCheck].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -3620,7 +3847,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthCheck) {
|
| + async.Future<HealthCheck> get(core.String project, core.String healthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3631,11 +3858,11 @@ class HttpHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| + if (healthCheck == null) {
|
| + throw new core.ArgumentError("Parameter healthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3644,11 +3871,11 @@ class HttpHealthChecksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new HttpHealthCheck.fromJson(data));
|
| + return _response.then((data) => new HealthCheck.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a HttpHealthCheck resource in the specified project using the data
|
| + * Creates a HealthCheck resource in the specified project using the data
|
| * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -3667,7 +3894,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(HttpHealthCheck request, core.String project) {
|
| + async.Future<Operation> insert(HealthCheck request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3682,7 +3909,7 @@ class HttpHealthChecksResourceApi {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -3695,7 +3922,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of HttpHealthCheck resources available to the specified
|
| + * Retrieves the list of HealthCheck resources available to the specified
|
| * project.
|
| *
|
| * Request parameters:
|
| @@ -3735,11 +3962,22 @@ class HttpHealthChecksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [HttpHealthCheckList].
|
| + * Completes with a [HealthCheckList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -3747,7 +3985,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<HttpHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<HealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3764,11 +4002,14 @@ class HttpHealthChecksResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3777,11 +4018,11 @@ class HttpHealthChecksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new HttpHealthCheckList.fromJson(data));
|
| + return _response.then((data) => new HealthCheckList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Updates a HttpHealthCheck resource in the specified project using the data
|
| + * Updates a HealthCheck resource in the specified project using the data
|
| * included in the request. This method supports patch semantics.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -3792,7 +4033,7 @@ class HttpHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpHealthCheck] - Name of the HttpHealthCheck resource to update.
|
| + * [healthCheck] - Name of the HealthCheck resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -3803,7 +4044,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> patch(HttpHealthCheck request, core.String project, core.String httpHealthCheck) {
|
| + async.Future<Operation> patch(HealthCheck request, core.String project, core.String healthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3817,11 +4058,11 @@ class HttpHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| + if (healthCheck == null) {
|
| + throw new core.ArgumentError("Parameter healthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -3834,7 +4075,7 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Updates a HttpHealthCheck resource in the specified project using the data
|
| + * Updates a HealthCheck resource in the specified project using the data
|
| * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -3845,7 +4086,7 @@ class HttpHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpHealthCheck] - Name of the HttpHealthCheck resource to update.
|
| + * [healthCheck] - Name of the HealthCheck resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -3856,7 +4097,7 @@ class HttpHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> update(HttpHealthCheck request, core.String project, core.String httpHealthCheck) {
|
| + async.Future<Operation> update(HealthCheck request, core.String project, core.String healthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3870,11 +4111,11 @@ class HttpHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| + if (healthCheck == null) {
|
| + throw new core.ArgumentError("Parameter healthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -3889,14 +4130,14 @@ class HttpHealthChecksResourceApi {
|
| }
|
|
|
|
|
| -class HttpsHealthChecksResourceApi {
|
| +class HttpHealthChecksResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - HttpsHealthChecksResourceApi(commons.ApiRequester client) :
|
| + HttpHealthChecksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified HttpsHealthCheck resource.
|
| + * Deletes the specified HttpHealthCheck resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -3904,7 +4145,7 @@ class HttpsHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to delete.
|
| + * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -3915,7 +4156,7 @@ class HttpsHealthChecksResourceApi {
|
| * 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 httpsHealthCheck) {
|
| + async.Future<Operation> delete(core.String project, core.String httpHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3926,11 +4167,11 @@ class HttpsHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpsHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| + if (httpHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -3943,8 +4184,8 @@ class HttpsHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified HttpsHealthCheck resource. Get a list of available
|
| - * HTTPS health checks by making a list() request.
|
| + * Returns the specified HttpHealthCheck resource. Get a list of available
|
| + * HTTP health checks by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -3952,10 +4193,10 @@ class HttpsHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to return.
|
| + * [httpHealthCheck] - Name of the HttpHealthCheck resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [HttpsHealthCheck].
|
| + * Completes with a [HttpHealthCheck].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -3963,7 +4204,7 @@ class HttpsHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<HttpsHealthCheck> get(core.String project, core.String httpsHealthCheck) {
|
| + async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3974,11 +4215,11 @@ class HttpsHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpsHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| + if (httpHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -3987,11 +4228,11 @@ class HttpsHealthChecksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new HttpsHealthCheck.fromJson(data));
|
| + return _response.then((data) => new HttpHealthCheck.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a HttpsHealthCheck resource in the specified project using the data
|
| + * Creates a HttpHealthCheck resource in the specified project using the data
|
| * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -4010,7 +4251,7 @@ class HttpsHealthChecksResourceApi {
|
| * 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(HttpsHealthCheck request, core.String project) {
|
| + async.Future<Operation> insert(HttpHealthCheck request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4025,7 +4266,7 @@ class HttpsHealthChecksResourceApi {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4038,7 +4279,7 @@ class HttpsHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of HttpsHealthCheck resources available to the specified
|
| + * Retrieves the list of HttpHealthCheck resources available to the specified
|
| * project.
|
| *
|
| * Request parameters:
|
| @@ -4078,11 +4319,22 @@ class HttpsHealthChecksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [HttpsHealthCheckList].
|
| + * Completes with a [HttpHealthCheckList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4090,7 +4342,7 @@ class HttpsHealthChecksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<HttpsHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<HttpHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4107,11 +4359,14 @@ class HttpsHealthChecksResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4120,11 +4375,11 @@ class HttpsHealthChecksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new HttpsHealthCheckList.fromJson(data));
|
| + return _response.then((data) => new HttpHealthCheckList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Updates a HttpsHealthCheck resource in the specified project using the data
|
| + * Updates a HttpHealthCheck resource in the specified project using the data
|
| * included in the request. This method supports patch semantics.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -4135,7 +4390,7 @@ class HttpsHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to update.
|
| + * [httpHealthCheck] - Name of the HttpHealthCheck resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -4146,7 +4401,7 @@ class HttpsHealthChecksResourceApi {
|
| * 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(HttpsHealthCheck request, core.String project, core.String httpsHealthCheck) {
|
| + async.Future<Operation> patch(HttpHealthCheck request, core.String project, core.String httpHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4160,11 +4415,11 @@ class HttpsHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpsHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| + if (httpHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -4177,7 +4432,7 @@ class HttpsHealthChecksResourceApi {
|
| }
|
|
|
| /**
|
| - * Updates a HttpsHealthCheck resource in the specified project using the data
|
| + * Updates a HttpHealthCheck resource in the specified project using the data
|
| * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -4188,7 +4443,7 @@ class HttpsHealthChecksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to update.
|
| + * [httpHealthCheck] - Name of the HttpHealthCheck resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -4199,7 +4454,7 @@ class HttpsHealthChecksResourceApi {
|
| * 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(HttpsHealthCheck request, core.String project, core.String httpsHealthCheck) {
|
| + async.Future<Operation> update(HttpHealthCheck request, core.String project, core.String httpHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4213,11 +4468,11 @@ class HttpsHealthChecksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (httpsHealthCheck == null) {
|
| - throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| + if (httpHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks/' + commons.Escaper.ecapeVariable('$httpHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -4232,14 +4487,14 @@ class HttpsHealthChecksResourceApi {
|
| }
|
|
|
|
|
| -class ImagesResourceApi {
|
| +class HttpsHealthChecksResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ImagesResourceApi(commons.ApiRequester client) :
|
| + HttpsHealthChecksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified image.
|
| + * Deletes the specified HttpsHealthCheck resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4247,7 +4502,7 @@ class ImagesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [image] - Name of the image resource to delete.
|
| + * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -4258,7 +4513,7 @@ class ImagesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String image) {
|
| + async.Future<Operation> delete(core.String project, core.String httpsHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4269,11 +4524,11 @@ class ImagesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (image == null) {
|
| - throw new core.ArgumentError("Parameter image is required.");
|
| + if (httpsHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -4286,11 +4541,8 @@ class ImagesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets the deprecation status of an image.
|
| - *
|
| - * If an empty request body is given, clears the deprecation status instead.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified HttpsHealthCheck resource. Get a list of available
|
| + * HTTPS health checks by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4298,10 +4550,10 @@ class ImagesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [image] - Image name.
|
| + * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Operation].
|
| + * Completes with a [HttpsHealthCheck].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4309,7 +4561,7 @@ class ImagesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> deprecate(DeprecationStatus request, core.String project, core.String image) {
|
| + async.Future<HttpsHealthCheck> get(core.String project, core.String httpsHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4317,31 +4569,30 @@ class ImagesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (image == null) {
|
| - throw new core.ArgumentError("Parameter image is required.");
|
| + if (httpsHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image') + '/deprecate';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new HttpsHealthCheck.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified image. Get a list of available images by making a
|
| - * list() request.
|
| + * Creates a HttpsHealthCheck resource in the specified project using the data
|
| + * included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4349,10 +4600,7 @@ class ImagesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [image] - Name of the image resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [Image].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4360,7 +4608,7 @@ class ImagesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Image> get(core.String project, core.String image) {
|
| + async.Future<Operation> insert(HttpsHealthCheck request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4368,28 +4616,28 @@ class ImagesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (image == null) {
|
| - throw new core.ArgumentError("Parameter image is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Image.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the latest image that is part of an image family and is not
|
| - * deprecated.
|
| + * Retrieves the list of HttpsHealthCheck resources available to the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4397,108 +4645,9 @@ class ImagesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [family] - Name of the image family to search for.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [Image].
|
| - *
|
| - * 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<Image> getFromFamily(core.String project, core.String family) {
|
| - 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 (family == null) {
|
| - throw new core.ArgumentError("Parameter family is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images/family/' + commons.Escaper.ecapeVariable('$family');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Image.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Creates an image in the specified project 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-z0-9](?:[-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(Image request, core.String project) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (project == null) {
|
| - throw new core.ArgumentError("Parameter project is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the list of private images available to the specified project.
|
| - * Private images are images you create that belong to your project. This
|
| - * method does not get any images that belong to other projects, including
|
| - * publicly-available images, like Debian 8. If you want to get a list of
|
| - * publicly-available images, use this method to make a request to the
|
| - * respective image project, such as debian-cloud or windows-cloud.
|
| - *
|
| - * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| - *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| * The field_name is the name of the field you want to compare. Only atomic
|
| * field types are supported (string, number, boolean). The comparison_string
|
| @@ -4527,11 +4676,22 @@ class ImagesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [ImageList].
|
| + * Completes with a [HttpsHealthCheckList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4539,7 +4699,7 @@ class ImagesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ImageList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<HttpsHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4556,11 +4716,14 @@ class ImagesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4569,27 +4732,12 @@ class ImagesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ImageList.fromJson(data));
|
| + return _response.then((data) => new HttpsHealthCheckList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class InstanceGroupManagersResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - InstanceGroupManagersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Schedules a group action to remove the specified instances from the managed
|
| - * instance group. Abandoning an instance does not delete the instance, but it
|
| - * does remove the instance from any target pools that are applied by the
|
| - * managed instance group. This method reduces the targetSize of the managed
|
| - * instance group by the number of instances that you abandon. This operation
|
| - * is marked as DONE when the action is scheduled even if the instances have
|
| - * not yet been removed from the group. You must separately verify the status
|
| - * of the abandoning action with the listmanagedinstances method.
|
| + * Updates a HttpsHealthCheck resource in the specified project using the data
|
| + * included in the request. This method supports patch semantics.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -4599,9 +4747,8 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| - *
|
| - * [instanceGroupManager] - The name of the managed instance group.
|
| + * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to update.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -4611,7 +4758,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Operation> patch(HttpsHealthCheck request, core.String project, core.String httpsHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4625,17 +4772,14 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instanceGroupManager == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + if (httpsHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "PATCH",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -4645,7 +4789,10 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of managed instance groups and groups them by zone.
|
| + * Updates a HttpsHealthCheck resource in the specified project using the data
|
| + * included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4653,42 +4800,10 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [httpsHealthCheck] - Name of the HttpsHealthCheck resource to update.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [InstanceGroupManagerAggregatedList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4696,7 +4811,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupManagerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> update(HttpsHealthCheck request, core.String project, core.String httpsHealthCheck) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4704,35 +4819,39 @@ class InstanceGroupManagersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (httpsHealthCheck == null) {
|
| + throw new core.ArgumentError("Parameter httpsHealthCheck is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroupManagers';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/httpsHealthChecks/' + commons.Escaper.ecapeVariable('$httpsHealthCheck');
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "PUT",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupManagerAggregatedList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class ImagesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ImagesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Deletes the specified managed instance group and all of the instances in
|
| - * that group. Note that the instance group must not belong to a backend
|
| - * service. Read Deleting an instance group for more information.
|
| + * Deletes the specified image.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4740,9 +4859,8 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| - *
|
| - * [instanceGroupManager] - The name of the managed instance group to delete.
|
| + * [image] - Name of the image resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -4752,7 +4870,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Operation> delete(core.String project, core.String image) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4763,14 +4881,11 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instanceGroupManager == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + if (image == null) {
|
| + throw new core.ArgumentError("Parameter image is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -4783,13 +4898,9 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Schedules a group action to delete the specified instances in the managed
|
| - * instance group. The instances are also removed from any target pools of
|
| - * which they were a member. This method reduces the targetSize of the managed
|
| - * instance group by the number of instances that you delete. This operation
|
| - * is marked as DONE when the action is scheduled even if the instances are
|
| - * still being deleted. You must separately verify the status of the deleting
|
| - * action with the listmanagedinstances method.
|
| + * Sets the deprecation status of an image.
|
| + *
|
| + * If an empty request body is given, clears the deprecation status instead.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -4799,9 +4910,8 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| - *
|
| - * [instanceGroupManager] - The name of the managed instance group.
|
| + * [image] - Image name.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -4811,7 +4921,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Operation> deprecate(DeprecationStatus request, core.String project, core.String image) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4825,14 +4935,11 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instanceGroupManager == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + if (image == null) {
|
| + throw new core.ArgumentError("Parameter image is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image') + '/deprecate';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4845,8 +4952,8 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns all of the details about the specified managed instance group. Get
|
| - * a list of available managed instance groups by making a list() request.
|
| + * Returns the specified image. Get a list of available images by making a
|
| + * list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4854,11 +4961,10 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| - *
|
| - * [instanceGroupManager] - The name of the managed instance group.
|
| + * [image] - Name of the image resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [InstanceGroupManager].
|
| + * Completes with a [Image].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -4866,7 +4972,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Image> get(core.String project, core.String image) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4877,14 +4983,59 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| + if (image == null) {
|
| + throw new core.ArgumentError("Parameter image is required.");
|
| }
|
| - if (instanceGroupManager == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commons.Escaper.ecapeVariable('$image');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Image.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Returns the latest image that is part of an image family and is not
|
| + * deprecated.
|
| + *
|
| + * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [family] - Name of the image family to search for.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Image].
|
| + *
|
| + * 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<Image> getFromFamily(core.String project, core.String family) {
|
| + 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 (family == null) {
|
| + throw new core.ArgumentError("Parameter family is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images/family/' + commons.Escaper.ecapeVariable('$family');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -4893,16 +5044,12 @@ class InstanceGroupManagersResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupManager.fromJson(data));
|
| + return _response.then((data) => new Image.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a managed instance group using the information that you specify in
|
| - * the request. After the group is created, it schedules an action to create
|
| - * instances in the group using the specified instance template. This
|
| - * operation is marked as DONE when the group is created even if the instances
|
| - * in the group have not yet been created. You must separately verify the
|
| - * status of the individual instances with the listmanagedinstances method.
|
| + * Creates an image in the specified project using the data included in the
|
| + * request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -4912,9 +5059,6 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where you want to create the managed instance
|
| - * group.
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -4923,7 +5067,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(InstanceGroupManager request, core.String project, core.String zone) {
|
| + async.Future<Operation> insert(Image request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -4937,11 +5081,8 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -4954,8 +5095,12 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of managed instance groups that are contained within the
|
| - * specified project and zone.
|
| + * Retrieves the list of private images available to the specified project.
|
| + * Private images are images you create that belong to your project. This
|
| + * method does not get any images that belong to other projects, including
|
| + * publicly-available images, like Debian 8. If you want to get a list of
|
| + * publicly-available images, use this method to make a request to the
|
| + * respective image project, such as debian-cloud or windows-cloud.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -4963,8 +5108,6 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| - *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -4996,11 +5139,22 @@ class InstanceGroupManagersResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [InstanceGroupManagerList].
|
| + * Completes with a [ImageList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5008,7 +5162,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<ImageList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5019,20 +5173,20 @@ class InstanceGroupManagersResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/images';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5041,15 +5195,29 @@ class InstanceGroupManagersResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupManagerList.fromJson(data));
|
| + return _response.then((data) => new ImageList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class InstanceGroupManagersResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + InstanceGroupManagersResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Lists all of the instances in the managed instance group. Each instance in
|
| - * the list has a currentAction, which indicates the action that the managed
|
| - * instance group is performing on the instance. For example, if the group is
|
| - * still creating an instance, the currentAction is CREATING. If a previous
|
| - * action failed, the list displays the errors for that failed action.
|
| + * Schedules a group action to remove the specified instances from the managed
|
| + * instance group. Abandoning an instance does not delete the instance, but it
|
| + * does remove the instance from any target pools that are applied by the
|
| + * managed instance group. This method reduces the targetSize of the managed
|
| + * instance group by the number of instances that you abandon. This operation
|
| + * is marked as DONE when the action is scheduled even if the instances have
|
| + * not yet been removed from the group. You must separately verify the status
|
| + * of the abandoning action with the listmanagedinstances method.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5061,7 +5229,7 @@ class InstanceGroupManagersResourceApi {
|
| *
|
| * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [InstanceGroupManagersListManagedInstancesResponse].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5069,7 +5237,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5077,6 +5245,9 @@ class InstanceGroupManagersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -5087,7 +5258,7 @@ class InstanceGroupManagersResourceApi {
|
| throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5096,18 +5267,11 @@ class InstanceGroupManagersResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupManagersListManagedInstancesResponse.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Schedules a group action to recreate the specified instances in the managed
|
| - * instance group. The instances are deleted and recreated using the current
|
| - * instance template for the managed instance group. This operation is marked
|
| - * as DONE when the action is scheduled even if the instances have not yet
|
| - * been recreated. You must separately verify the status of the recreating
|
| - * action with the listmanagedinstances method.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves the list of managed instance groups and groups them by zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5115,11 +5279,53 @@ class InstanceGroupManagersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the managed instance group is located.
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [instanceGroupManager] - The name of the managed instance group.
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * Completes with a [Operation].
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [InstanceGroupManagerAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5127,7 +5333,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<InstanceGroupManagerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5135,38 +5341,38 @@ class InstanceGroupManagersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (instanceGroupManager == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroupManagers';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupManagerAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Resizes the managed instance group. If you increase the size, the group
|
| - * creates new instances using the current instance template. If you decrease
|
| - * the size, the group deletes instances. The resize operation is marked DONE
|
| - * when the resize actions are scheduled even if the group has not yet added
|
| - * or deleted any instances. You must separately verify the status of the
|
| - * creating or deleting actions with the listmanagedinstances method.
|
| + * Deletes the specified managed instance group and all of the instances in
|
| + * that group. Note that the instance group must not belong to a backend
|
| + * service. Read Deleting an instance group for more information.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5176,11 +5382,7 @@ class InstanceGroupManagersResourceApi {
|
| *
|
| * [zone] - The name of the zone where the managed instance group is located.
|
| *
|
| - * [instanceGroupManager] - The name of the managed instance group.
|
| - *
|
| - * [size] - The number of running instances that the managed instance group
|
| - * should maintain at any given time. The group automatically adds or removes
|
| - * instances to maintain the number of instances specified by this parameter.
|
| + * [instanceGroupManager] - The name of the managed instance group to delete.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -5190,7 +5392,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> resize(core.String project, core.String zone, core.String instanceGroupManager, core.int size) {
|
| + async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5207,15 +5409,11 @@ class InstanceGroupManagersResourceApi {
|
| if (instanceGroupManager == null) {
|
| throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
| - if (size == null) {
|
| - throw new core.ArgumentError("Parameter size is required.");
|
| - }
|
| - _queryParams["size"] = ["${size}"];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/resize';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -5225,12 +5423,16 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Specifies the instance template to use when creating new instances in this
|
| - * group. The templates for existing instances in the group do not change
|
| - * unless you recreate them.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| + * Schedules a group action to delete the specified instances in the managed
|
| + * instance group. The instances are also removed from any target pools of
|
| + * which they were a member. This method reduces the targetSize of the managed
|
| + * instance group by the number of instances that you delete. This operation
|
| + * is marked as DONE when the action is scheduled even if the instances are
|
| + * still being deleted. You must separately verify the status of the deleting
|
| + * action with the listmanagedinstances method.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| * Request parameters:
|
| *
|
| * [project] - Project ID for this request.
|
| @@ -5249,7 +5451,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5270,7 +5472,7 @@ class InstanceGroupManagersResourceApi {
|
| throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5283,14 +5485,8 @@ class InstanceGroupManagersResourceApi {
|
| }
|
|
|
| /**
|
| - * Modifies the target pools to which all instances in this managed instance
|
| - * group are assigned. The target pools automatically apply to all of the
|
| - * instances in the managed instance group. This operation is marked DONE when
|
| - * you make the request even if the instances have not yet been added to their
|
| - * target pools. The change might take some time to apply to all of the
|
| - * instances in the group depending on the size of the group.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns all of the details about the specified managed instance group. Get
|
| + * a list of available managed instance groups by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5302,7 +5498,7 @@ class InstanceGroupManagersResourceApi {
|
| *
|
| * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [Operation].
|
| + * Completes with a [InstanceGroupManager].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5310,7 +5506,7 @@ class InstanceGroupManagersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| + async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5318,9 +5514,6 @@ class InstanceGroupManagersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -5331,31 +5524,25 @@ class InstanceGroupManagersResourceApi {
|
| throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupManager.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class InstanceGroupsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - InstanceGroupsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Adds a list of instances to the specified instance group. All of the
|
| - * instances in the instance group must be in the same network/subnetwork.
|
| - * Read Adding instances for more information.
|
| + * Creates a managed instance group using the information that you specify in
|
| + * the request. After the group is created, it schedules an action to create
|
| + * instances in the group using the specified instance template. This
|
| + * operation is marked as DONE when the group is created even if the instances
|
| + * in the group have not yet been created. You must separately verify the
|
| + * status of the individual instances with the listmanagedinstances method.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -5365,10 +5552,8 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| - *
|
| - * [instanceGroup] - The name of the instance group where you are adding
|
| - * instances.
|
| + * [zone] - The name of the zone where you want to create the managed instance
|
| + * group.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -5378,7 +5563,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> addInstances(InstanceGroupsAddInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| + async.Future<Operation> insert(InstanceGroupManager request, core.String project, core.String zone) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5395,11 +5580,8 @@ class InstanceGroupsResourceApi {
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instanceGroup == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/addInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5412,7 +5594,8 @@ class InstanceGroupsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of instance groups and sorts them by zone.
|
| + * Retrieves a list of managed instance groups that are contained within the
|
| + * specified project and zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5420,6 +5603,8 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| + *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -5451,11 +5636,22 @@ class InstanceGroupsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [InstanceGroupAggregatedList].
|
| + * Completes with a [InstanceGroupManagerList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5463,7 +5659,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5474,17 +5670,23 @@ class InstanceGroupsResourceApi {
|
| 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 (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroups';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -5493,13 +5695,15 @@ class InstanceGroupsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupAggregatedList.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupManagerList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified instance group. The instances in the group are not
|
| - * deleted. Note that instance group must not belong to a backend service.
|
| - * Read Deleting an instance group for more information.
|
| + * Lists all of the instances in the managed instance group. Each instance in
|
| + * the list has a currentAction, which indicates the action that the managed
|
| + * instance group is performing on the instance. For example, if the group is
|
| + * still creating an instance, the currentAction is CREATING. If a previous
|
| + * action failed, the list displays the errors for that failed action.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5507,11 +5711,18 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| *
|
| - * [instanceGroup] - The name of the instance group to delete.
|
| + * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [Operation].
|
| + * [filter] - null
|
| + *
|
| + * [maxResults] - null
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [pageToken] - null
|
| + *
|
| + * Completes with a [InstanceGroupManagersListManagedInstancesResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5519,7 +5730,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroup) {
|
| + async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5533,25 +5744,40 @@ class InstanceGroupsResourceApi {
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instanceGroup == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| + if (instanceGroupManager == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + }
|
| + 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') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupManagersListManagedInstancesResponse.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified instance group. Get a list of available instance
|
| - * groups by making a list() request.
|
| + * Schedules a group action to recreate the specified instances in the managed
|
| + * instance group. The instances are deleted and recreated using the current
|
| + * instance template for the managed instance group. This operation is marked
|
| + * as DONE when the action is scheduled even if the instances have not yet
|
| + * been recreated. You must separately verify the status of the recreating
|
| + * action with the listmanagedinstances method.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5559,11 +5785,11 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| *
|
| - * [instanceGroup] - The name of the instance group.
|
| + * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [InstanceGroup].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5571,7 +5797,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroup> get(core.String project, core.String zone, core.String instanceGroup) {
|
| + async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5579,33 +5805,38 @@ class InstanceGroupsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instanceGroup == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| + if (instanceGroupManager == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroup.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates an instance group in the specified project using the parameters
|
| - * that are included in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Resizes the managed instance group. If you increase the size, the group
|
| + * creates new instances using the current instance template. If you decrease
|
| + * the size, the group deletes instances. The resize operation is marked DONE
|
| + * when the resize actions are scheduled even if the group has not yet added
|
| + * or deleted any instances. You must separately verify the status of the
|
| + * creating or deleting actions with the listmanagedinstances method.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5613,7 +5844,13 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where you want to create the instance group.
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| + *
|
| + * [instanceGroupManager] - The name of the managed instance group.
|
| + *
|
| + * [size] - The number of running instances that the managed instance group
|
| + * should maintain at any given time. The group automatically adds or removes
|
| + * instances to maintain the number of instances specified by this parameter.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -5623,7 +5860,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(InstanceGroup request, core.String project, core.String zone) {
|
| + async.Future<Operation> resize(core.String project, core.String zone, core.String instanceGroupManager, core.int size) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5631,17 +5868,21 @@ class InstanceGroupsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| + if (instanceGroupManager == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| + }
|
| + if (size == null) {
|
| + throw new core.ArgumentError("Parameter size is required.");
|
| + }
|
| + _queryParams["size"] = ["${size}"];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/resize';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5654,8 +5895,11 @@ class InstanceGroupsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of instance groups that are located in the specified
|
| - * project and zone.
|
| + * Specifies the instance template to use when creating new instances in this
|
| + * group. The templates for existing instances in the group do not change
|
| + * unless you recreate them.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5663,44 +5907,11 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| - *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [InstanceGroupList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5708,7 +5919,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5716,38 +5927,40 @@ class InstanceGroupsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (instanceGroupManager == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Lists the instances in the specified instance group.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Modifies the target pools to which all instances in this managed instance
|
| + * group are assigned. The target pools automatically apply to all of the
|
| + * instances in the managed instance group. This operation is marked DONE when
|
| + * you make the request even if the instances have not yet been added to their
|
| + * target pools. The change might take some time to apply to all of the
|
| + * instances in the group depending on the size of the group.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5755,47 +5968,11 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| - *
|
| - * [instanceGroup] - The name of the instance group from which you want to
|
| - * generate a list of included instances.
|
| - *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [zone] - The name of the zone where the managed instance group is located.
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [instanceGroupManager] - The name of the managed instance group.
|
| *
|
| - * Completes with a [InstanceGroupsListInstances].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5803,7 +5980,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, core.String instanceGroup, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5820,20 +5997,11 @@ class InstanceGroupsResourceApi {
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instanceGroup == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| - }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (instanceGroupManager == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroupManager is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/listInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5842,12 +6010,22 @@ class InstanceGroupsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceGroupsListInstances.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class InstanceGroupsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + InstanceGroupsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Removes one or more instances from the specified instance group, but does
|
| - * not delete those instances.
|
| + * Adds a list of instances to the specified instance group. All of the
|
| + * instances in the instance group must be in the same network/subnetwork.
|
| + * Read Adding instances for more information.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -5859,8 +6037,8 @@ class InstanceGroupsResourceApi {
|
| *
|
| * [zone] - The name of the zone where the instance group is located.
|
| *
|
| - * [instanceGroup] - The name of the instance group where the specified
|
| - * instances will be removed.
|
| + * [instanceGroup] - The name of the instance group where you are adding
|
| + * instances.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -5870,7 +6048,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> removeInstances(InstanceGroupsRemoveInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| + async.Future<Operation> addInstances(InstanceGroupsAddInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5891,7 +6069,7 @@ class InstanceGroupsResourceApi {
|
| throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/removeInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/addInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -5904,9 +6082,7 @@ class InstanceGroupsResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets the named ports for the specified instance group.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves the list of instance groups and sorts them by zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5914,12 +6090,53 @@ class InstanceGroupsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone where the instance group is located.
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [instanceGroup] - The name of the instance group where the named ports are
|
| - * updated.
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * Completes with a [Operation].
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [InstanceGroupAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -5927,7 +6144,7 @@ class InstanceGroupsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setNamedPorts(InstanceGroupsSetNamedPortsRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| + async.Future<InstanceGroupAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -5935,45 +6152,38 @@ class InstanceGroupsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (instanceGroup == null) {
|
| - throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/setNamedPorts';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instanceGroups';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupAggregatedList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class InstanceTemplatesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - InstanceTemplatesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified instance template. If you delete an instance template
|
| - * that is being referenced from another instance group, the instance group
|
| - * will not be able to create or recreate virtual machine instances. Deleting
|
| - * an instance template is permanent and cannot be undone.
|
| + * Deletes the specified instance group. The instances in the group are not
|
| + * deleted. Note that instance group must not belong to a backend service.
|
| + * Read Deleting an instance group for more information.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -5981,8 +6191,9 @@ class InstanceTemplatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [instanceTemplate] - The name of the instance template to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [zone] - The name of the zone where the instance group is located.
|
| + *
|
| + * [instanceGroup] - The name of the instance group to delete.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -5992,7 +6203,7 @@ class InstanceTemplatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String instanceTemplate) {
|
| + async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroup) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6003,11 +6214,14 @@ class InstanceTemplatesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (instanceTemplate == null) {
|
| - throw new core.ArgumentError("Parameter instanceTemplate is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instanceGroup == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -6020,8 +6234,8 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified instance template. Get a list of available instance
|
| - * templates by making a list() request.
|
| + * Returns the specified instance group. Get a list of available instance
|
| + * groups by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6029,10 +6243,11 @@ class InstanceTemplatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [instanceTemplate] - The name of the instance template.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [zone] - The name of the zone where the instance group is located.
|
| *
|
| - * Completes with a [InstanceTemplate].
|
| + * [instanceGroup] - The name of the instance group.
|
| + *
|
| + * Completes with a [InstanceGroup].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6040,7 +6255,7 @@ class InstanceTemplatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceTemplate> get(core.String project, core.String instanceTemplate) {
|
| + async.Future<InstanceGroup> get(core.String project, core.String zone, core.String instanceGroup) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6051,11 +6266,14 @@ class InstanceTemplatesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (instanceTemplate == null) {
|
| - throw new core.ArgumentError("Parameter instanceTemplate is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instanceGroup == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6064,14 +6282,12 @@ class InstanceTemplatesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceTemplate.fromJson(data));
|
| + return _response.then((data) => new InstanceGroup.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates an instance template in the specified project using the data that
|
| - * is included in the request. If you are creating a new template to update an
|
| - * existing instance group, your new instance template must use the same
|
| - * network or, if applicable, the same subnetwork as the original template.
|
| + * Creates an instance group in the specified project using the parameters
|
| + * that are included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -6081,6 +6297,8 @@ class InstanceTemplatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [zone] - The name of the zone where you want to create the instance group.
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -6089,7 +6307,7 @@ class InstanceTemplatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(InstanceTemplate request, core.String project) {
|
| + async.Future<Operation> insert(InstanceGroup request, core.String project, core.String zone) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6103,8 +6321,11 @@ class InstanceTemplatesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6117,8 +6338,8 @@ class InstanceTemplatesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of instance templates that are contained within the
|
| - * specified project and zone.
|
| + * Retrieves the list of instance groups that are located in the specified
|
| + * project and zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6126,6 +6347,8 @@ class InstanceTemplatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [zone] - The name of the zone where the instance group is located.
|
| + *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -6157,11 +6380,22 @@ class InstanceTemplatesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [InstanceTemplateList].
|
| + * Completes with a [InstanceGroupList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6169,7 +6403,7 @@ class InstanceTemplatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceTemplateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6180,17 +6414,23 @@ class InstanceTemplatesResourceApi {
|
| 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 (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6199,20 +6439,11 @@ class InstanceTemplatesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceTemplateList.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class InstancesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - InstancesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Adds an access config to an instance's network interface.
|
| + * Lists the instances in the specified instance group.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -6222,68 +6453,10 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [instance] - The instance name for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [networkInterface] - The name of the network interface to add to this
|
| - * instance.
|
| - *
|
| - * 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> addAccessConfig(AccessConfig request, core.String project, core.String zone, core.String instance, core.String networkInterface) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (project == null) {
|
| - throw new core.ArgumentError("Parameter project is required.");
|
| - }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| - }
|
| - if (networkInterface == null) {
|
| - throw new core.ArgumentError("Parameter networkInterface is required.");
|
| - }
|
| - _queryParams["networkInterface"] = [networkInterface];
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/addAccessConfig';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves aggregated list of instances.
|
| - *
|
| - * Request parameters:
|
| + * [zone] - The name of the zone where the instance group is located.
|
| *
|
| - * [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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + * [instanceGroup] - The name of the instance group from which you want to
|
| + * generate a list of included instances.
|
| *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| @@ -6316,11 +6489,22 @@ class InstancesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [InstanceAggregatedList].
|
| + * Completes with a [InstanceGroupsListInstances].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6328,7 +6512,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, core.String instanceGroup, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6336,33 +6520,46 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instanceGroup == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| + }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/listInstances';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceAggregatedList.fromJson(data));
|
| + return _response.then((data) => new InstanceGroupsListInstances.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Attaches a Disk resource to an instance.
|
| + * Removes one or more instances from the specified instance group, but does
|
| + * not delete those instances.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -6372,11 +6569,10 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [zone] - The name of the zone where the instance group is located.
|
| *
|
| - * [instance] - The instance name for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [instanceGroup] - The name of the instance group where the specified
|
| + * instances will be removed.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -6386,7 +6582,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> attachDisk(AttachedDisk request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> removeInstances(InstanceGroupsRemoveInstancesRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6403,11 +6599,11 @@ class InstancesResourceApi {
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| + if (instanceGroup == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/attachDisk';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/removeInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6420,8 +6616,9 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Deletes the specified Instance resource. For more information, see Stopping
|
| - * or Deleting an Instance.
|
| + * Sets the named ports for the specified instance group.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6429,11 +6626,10 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [zone] - The name of the zone where the instance group is located.
|
| *
|
| - * [instance] - Name of the instance resource to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [instanceGroup] - The name of the instance group where the named ports are
|
| + * updated.
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -6443,7 +6639,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> setNamedPorts(InstanceGroupsSetNamedPortsRequest request, core.String project, core.String zone, core.String instanceGroup) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6451,20 +6647,23 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| + if (instanceGroup == null) {
|
| + throw new core.ArgumentError("Parameter instanceGroup is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/setNamedPorts';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -6473,8 +6672,20 @@ class InstancesResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class InstanceTemplatesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + InstanceTemplatesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Deletes an access config from an instance's network interface.
|
| + * Deletes the specified instance template. If you delete an instance template
|
| + * that is being referenced from another instance group, the instance group
|
| + * will not be able to create or recreate virtual machine instances. Deleting
|
| + * an instance template is permanent and cannot be undone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6482,16 +6693,9 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [instance] - The instance name for this request.
|
| + * [instanceTemplate] - The name of the instance template to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [accessConfig] - The name of the access config to delete.
|
| - *
|
| - * [networkInterface] - The name of the network interface.
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -6500,7 +6704,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> deleteAccessConfig(core.String project, core.String zone, core.String instance, core.String accessConfig, core.String networkInterface) {
|
| + async.Future<Operation> delete(core.String project, core.String instanceTemplate) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6511,25 +6715,14 @@ class InstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| - }
|
| - if (accessConfig == null) {
|
| - throw new core.ArgumentError("Parameter accessConfig is required.");
|
| - }
|
| - _queryParams["accessConfig"] = [accessConfig];
|
| - if (networkInterface == null) {
|
| - throw new core.ArgumentError("Parameter networkInterface is required.");
|
| + if (instanceTemplate == null) {
|
| + throw new core.ArgumentError("Parameter instanceTemplate is required.");
|
| }
|
| - _queryParams["networkInterface"] = [networkInterface];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -6539,7 +6732,8 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Detaches a disk from an instance.
|
| + * Returns the specified instance template. Get a list of available instance
|
| + * templates by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6547,15 +6741,10 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [instance] - Instance name.
|
| + * [instanceTemplate] - The name of the instance template.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [deviceName] - Disk device name to detach.
|
| - *
|
| - * Completes with a [Operation].
|
| + * Completes with a [InstanceTemplate].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6563,7 +6752,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> detachDisk(core.String project, core.String zone, core.String instance, core.String deviceName) {
|
| + async.Future<InstanceTemplate> get(core.String project, core.String instanceTemplate) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6574,32 +6763,29 @@ class InstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| - }
|
| - if (deviceName == null) {
|
| - throw new core.ArgumentError("Parameter deviceName is required.");
|
| + if (instanceTemplate == null) {
|
| + throw new core.ArgumentError("Parameter instanceTemplate is required.");
|
| }
|
| - _queryParams["deviceName"] = [deviceName];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/detachDisk';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates/' + commons.Escaper.ecapeVariable('$instanceTemplate');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceTemplate.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified Instance resource. Get a list of available instances
|
| - * by making a list() request.
|
| + * Creates an instance template in the specified project using the data that
|
| + * is included in the request. If you are creating a new template to update an
|
| + * existing instance group, your new instance template must use the same
|
| + * network or, if applicable, the same subnetwork as the original template.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6607,13 +6793,7 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [instance] - Name of the instance resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [Instance].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6621,7 +6801,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Instance> get(core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> insert(InstanceTemplate request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6629,30 +6809,28 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Instance.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified instance's serial port output.
|
| + * Retrieves a list of instance templates that are contained within the
|
| + * specified project and zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6660,16 +6838,53 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [instance] - Name of the instance scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * [port] - Specifies which COM or serial port to retrieve data from.
|
| - * Value must be between "1" and "4".
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| *
|
| - * Completes with a [SerialPortOutput].
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [InstanceTemplateList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6677,7 +6892,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port}) {
|
| + async.Future<InstanceTemplateList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6688,17 +6903,20 @@ class InstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| - if (port != null) {
|
| - _queryParams["port"] = ["${port}"];
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplates';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6707,12 +6925,20 @@ class InstancesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SerialPortOutput.fromJson(data));
|
| + return _response.then((data) => new InstanceTemplateList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class InstancesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + InstancesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Creates an instance resource in the specified project using the data
|
| - * included in the request.
|
| + * Adds an access config to an instance's network interface.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -6725,6 +6951,12 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| + * [instance] - The instance name for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [networkInterface] - The name of the network interface to add to this
|
| + * instance.
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -6733,7 +6965,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(Instance request, core.String project, core.String zone) {
|
| + async.Future<Operation> addAccessConfig(AccessConfig request, core.String project, core.String zone, core.String instance, core.String networkInterface) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6750,8 +6982,15 @@ class InstancesResourceApi {
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| + }
|
| + if (networkInterface == null) {
|
| + throw new core.ArgumentError("Parameter networkInterface is required.");
|
| + }
|
| + _queryParams["networkInterface"] = [networkInterface];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/addAccessConfig';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6764,7 +7003,7 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of instances contained within the specified zone.
|
| + * Retrieves aggregated list of instances.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6772,9 +7011,6 @@ class InstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - The name of the zone for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -6806,11 +7042,22 @@ class InstancesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [InstanceList].
|
| + * Completes with a [InstanceAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -6818,7 +7065,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6829,20 +7076,20 @@ class InstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -6851,11 +7098,13 @@ class InstancesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InstanceList.fromJson(data));
|
| + return _response.then((data) => new InstanceAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Performs a hard reset on the instance.
|
| + * Attaches a Disk resource to an instance.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6866,7 +7115,7 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance scoping this request.
|
| + * [instance] - The instance name for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -6877,7 +7126,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> reset(core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> attachDisk(AttachedDisk request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6885,6 +7134,9 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -6895,7 +7147,7 @@ class InstancesResourceApi {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/reset';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/attachDisk';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -6908,7 +7160,8 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets the auto-delete flag for a disk attached to an instance.
|
| + * Deletes the specified Instance resource. For more information, see Stopping
|
| + * or Deleting an Instance.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6919,15 +7172,9 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - The instance name.
|
| + * [instance] - Name of the instance resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [autoDelete] - Whether to auto-delete the disk when the instance is
|
| - * deleted.
|
| - *
|
| - * [deviceName] - The device name of the disk to modify.
|
| - * Value must have pattern "\w[\w.-]{0,254}".
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -6936,7 +7183,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setDiskAutoDelete(core.String project, core.String zone, core.String instance, core.bool autoDelete, core.String deviceName) {
|
| + async.Future<Operation> delete(core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -6953,19 +7200,11 @@ class InstancesResourceApi {
|
| if (instance == null) {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
| - if (autoDelete == null) {
|
| - throw new core.ArgumentError("Parameter autoDelete is required.");
|
| - }
|
| - _queryParams["autoDelete"] = ["${autoDelete}"];
|
| - if (deviceName == null) {
|
| - throw new core.ArgumentError("Parameter deviceName is required.");
|
| - }
|
| - _queryParams["deviceName"] = [deviceName];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -6975,10 +7214,7 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Changes the machine type for a stopped instance to the machine type
|
| - * specified in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Deletes an access config from an instance's network interface.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -6989,9 +7225,13 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance scoping this request.
|
| + * [instance] - The instance name for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| + * [accessConfig] - The name of the access config to delete.
|
| + *
|
| + * [networkInterface] - The name of the network interface.
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -7000,7 +7240,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setMachineType(InstancesSetMachineTypeRequest request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> deleteAccessConfig(core.String project, core.String zone, core.String instance, core.String accessConfig, core.String networkInterface) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7008,9 +7248,6 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -7020,8 +7257,16 @@ class InstancesResourceApi {
|
| if (instance == null) {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
| + if (accessConfig == null) {
|
| + throw new core.ArgumentError("Parameter accessConfig is required.");
|
| + }
|
| + _queryParams["accessConfig"] = [accessConfig];
|
| + if (networkInterface == null) {
|
| + throw new core.ArgumentError("Parameter networkInterface is required.");
|
| + }
|
| + _queryParams["networkInterface"] = [networkInterface];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMachineType';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/deleteAccessConfig';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7034,10 +7279,7 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets metadata for the specified instance to the data included in the
|
| - * request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Detaches a disk from an instance.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7048,9 +7290,11 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance scoping this request.
|
| + * [instance] - Instance name.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| + * [deviceName] - Disk device name to detach.
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -7059,7 +7303,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setMetadata(Metadata request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> detachDisk(core.String project, core.String zone, core.String instance, core.String deviceName) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7067,9 +7311,6 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -7079,8 +7320,12 @@ class InstancesResourceApi {
|
| if (instance == null) {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
| + if (deviceName == null) {
|
| + throw new core.ArgumentError("Parameter deviceName is required.");
|
| + }
|
| + _queryParams["deviceName"] = [deviceName];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMetadata';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/detachDisk';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7093,9 +7338,8 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Sets an instance's scheduling options.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified Instance resource. Get a list of available instances
|
| + * by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7106,10 +7350,10 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Instance name.
|
| + * [instance] - Name of the instance resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Operation].
|
| + * Completes with a [Instance].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7117,7 +7361,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setScheduling(Scheduling request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<Instance> get(core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7125,9 +7369,6 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -7138,22 +7379,20 @@ class InstancesResourceApi {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setScheduling';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new Instance.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Sets tags for the specified instance to the data included in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified instance's serial port output.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7167,7 +7406,10 @@ class InstancesResourceApi {
|
| * [instance] - Name of the instance scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Operation].
|
| + * [port] - Specifies which COM or serial port to retrieve data from.
|
| + * Value must be between "1" and "4".
|
| + *
|
| + * Completes with a [SerialPortOutput].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7175,7 +7417,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setTags(Tags request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7183,9 +7425,6 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| @@ -7195,22 +7434,27 @@ class InstancesResourceApi {
|
| if (instance == null) {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
| + if (port != null) {
|
| + _queryParams["port"] = ["${port}"];
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setTags';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new SerialPortOutput.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Starts an instance that was stopped using the using the instances().stop
|
| - * method. For more information, see Restart an instance.
|
| + * Creates an instance resource in the specified project using the data
|
| + * included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7221,9 +7465,6 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance resource to start.
|
| - * 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
|
| @@ -7232,7 +7473,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> start(core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> insert(Instance request, core.String project, core.String zone) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7240,17 +7481,17 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/start';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7263,10 +7504,7 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Starts an instance that was stopped using the using the instances().stop
|
| - * method. For more information, see Restart an instance.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves the list of instances contained within the specified zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7277,18 +7515,61 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance resource to start.
|
| - * 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.
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [InstanceList].
|
| + *
|
| + * 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> startWithEncryptionKey(InstancesStartWithEncryptionKeyRequest request, core.String project, core.String zone, core.String instance) {
|
| + async.Future<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7296,38 +7577,39 @@ class InstancesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (instance == null) {
|
| - throw new core.ArgumentError("Parameter instance is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/startWithEncryptionKey';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new InstanceList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * 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.
|
| + * Performs a hard reset on the instance.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7338,7 +7620,7 @@ class InstancesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [instance] - Name of the instance resource to stop.
|
| + * [instance] - Name of the instance scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -7349,7 +7631,7 @@ class InstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> stop(core.String project, core.String zone, core.String instance) {
|
| + async.Future<Operation> reset(core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7367,7 +7649,7 @@ class InstancesResourceApi {
|
| throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/stop';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/reset';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7379,18 +7661,8 @@ class InstancesResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class LicensesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - LicensesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Returns the specified License resource. Get a list of available licenses by
|
| - * making a list() request.
|
| + * Sets the auto-delete flag for a disk attached to an instance.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7398,10 +7670,19 @@ class LicensesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [license] - Name of the License resource to return.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [License].
|
| + * [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] - The device name of the disk to modify.
|
| + * Value must have pattern "\w[\w.-]{0,254}".
|
| + *
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7409,7 +7690,7 @@ class LicensesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<License> get(core.String project, core.String license) {
|
| + async.Future<Operation> setDiskAutoDelete(core.String project, core.String zone, core.String instance, core.bool autoDelete, core.String deviceName) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7420,33 +7701,38 @@ class LicensesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (license == null) {
|
| - throw new core.ArgumentError("Parameter license is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| + }
|
| + if (autoDelete == null) {
|
| + throw new core.ArgumentError("Parameter autoDelete is required.");
|
| }
|
| + _queryParams["autoDelete"] = ["${autoDelete}"];
|
| + if (deviceName == null) {
|
| + throw new core.ArgumentError("Parameter deviceName is required.");
|
| + }
|
| + _queryParams["deviceName"] = [deviceName];
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + commons.Escaper.ecapeVariable('$license');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setDiskAutoDelete';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new License.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class MachineTypesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - MachineTypesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Retrieves an aggregated list of machine types.
|
| + * Changes the machine type for a stopped instance to the machine type
|
| + * specified in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7454,42 +7740,13 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [instance] - Name of the instance scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [MachineTypeAggregatedList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7497,7 +7754,7 @@ class MachineTypesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> setMachineType(InstancesSetMachineTypeRequest request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7505,34 +7762,36 @@ class MachineTypesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMachineType';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new MachineTypeAggregatedList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified machine type. Get a list of available machine types
|
| - * by making a list() request.
|
| + * Sets metadata for the specified instance to the data included in the
|
| + * request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7543,10 +7802,10 @@ class MachineTypesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [machineType] - Name of the machine type to return.
|
| + * [instance] - Name of the instance scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [MachineType].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7554,7 +7813,7 @@ class MachineTypesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<MachineType> get(core.String project, core.String zone, core.String machineType) {
|
| + async.Future<Operation> setMetadata(Metadata request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7562,30 +7821,35 @@ class MachineTypesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (zone == null) {
|
| throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (machineType == null) {
|
| - throw new core.ArgumentError("Parameter machineType is required.");
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$machineType');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setMetadata';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new MachineType.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves a list of machine types available to the specified project.
|
| + * Sets an instance's scheduling options.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7596,50 +7860,18 @@ class MachineTypesResourceApi {
|
| * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| + * [instance] - Instance name.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| + * Completes with a [Operation].
|
| *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| - *
|
| - * Completes with a [MachineTypeList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| + * 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<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> setScheduling(Scheduling request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7647,45 +7879,35 @@ class MachineTypesResourceApi {
|
| 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 (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setScheduling';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new MachineTypeList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class NetworksResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - NetworksResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified network.
|
| + * Sets tags for the specified instance to the data included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7693,7 +7915,10 @@ class NetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [network] - Name of the network to delete.
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [instance] - Name of the instance scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -7704,7 +7929,7 @@ class NetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String network) {
|
| + async.Future<Operation> setTags(Tags request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7712,17 +7937,23 @@ class NetworksResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (network == null) {
|
| - throw new core.ArgumentError("Parameter network is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setTags';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -7732,8 +7963,8 @@ class NetworksResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified network. Get a list of available networks by making a
|
| - * list() request.
|
| + * Starts an instance that was stopped using the using the instances().stop
|
| + * method. For more information, see Restart an instance.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7741,10 +7972,13 @@ class NetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [network] - Name of the network to return.
|
| + * [zone] - The name of the zone for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Network].
|
| + * [instance] - Name of the instance resource to start.
|
| + * 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.
|
| @@ -7752,7 +7986,7 @@ class NetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Network> get(core.String project, core.String network) {
|
| + async.Future<Operation> start(core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7763,25 +7997,28 @@ class NetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (network == null) {
|
| - throw new core.ArgumentError("Parameter network is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/start';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Network.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a network in the specified project using the data included in the
|
| - * request.
|
| + * Starts an instance that was stopped using the using the instances().stop
|
| + * method. For more information, see Restart an instance.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -7791,6 +8028,12 @@ class NetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [instance] - Name of the instance resource to start.
|
| + * 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
|
| @@ -7799,7 +8042,7 @@ class NetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(Network request, core.String project) {
|
| + async.Future<Operation> startWithEncryptionKey(InstancesStartWithEncryptionKeyRequest request, core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7813,8 +8056,14 @@ class NetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/startWithEncryptionKey';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -7827,7 +8076,12 @@ class NetworksResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of networks available to the specified project.
|
| + * 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:
|
| *
|
| @@ -7835,42 +8089,13 @@ class NetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [instance] - Name of the instance resource to stop.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [NetworkList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7878,7 +8103,7 @@ class NetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<NetworkList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> stop(core.String project, core.String zone, core.String instance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7889,39 +8114,37 @@ class NetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/stop';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new NetworkList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class ProjectsResourceApi {
|
| +class LicensesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsResourceApi(commons.ApiRequester client) :
|
| + LicensesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Returns the specified Project resource.
|
| + * Returns the specified License resource. Get a list of available licenses by
|
| + * making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7929,7 +8152,10 @@ class ProjectsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * Completes with a [Project].
|
| + * [license] - Name of the License resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [License].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7937,7 +8163,7 @@ class ProjectsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Project> get(core.String project) {
|
| + async.Future<License> get(core.String project, core.String license) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7948,8 +8174,11 @@ class ProjectsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (license == null) {
|
| + throw new core.ArgumentError("Parameter license is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + commons.Escaper.ecapeVariable('$license');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -7958,13 +8187,20 @@ class ProjectsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Project.fromJson(data));
|
| + return _response.then((data) => new License.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class MachineTypesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + MachineTypesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Moves a persistent disk from one zone to another.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves an aggregated list of machine types.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -7972,7 +8208,53 @@ class ProjectsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * Completes with a [Operation].
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [MachineTypeAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -7980,7 +8262,7 @@ class ProjectsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> moveDisk(DiskMoveRequest request, core.String project) {
|
| + async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -7988,30 +8270,37 @@ class ProjectsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/moveDisk';
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new MachineTypeAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Moves an instance and its attached persistent disks from one zone to
|
| - * another.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified machine type. Get a list of available machine types
|
| + * by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8019,7 +8308,13 @@ class ProjectsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * Completes with a [Operation].
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [machineType] - Name of the machine type to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [MachineType].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8027,7 +8322,7 @@ class ProjectsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> moveInstance(InstanceMoveRequest request, core.String project) {
|
| + async.Future<MachineType> get(core.String project, core.String zone, core.String machineType) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8035,30 +8330,30 @@ class ProjectsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (machineType == null) {
|
| + throw new core.ArgumentError("Parameter machineType is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/moveInstance';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$machineType');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new MachineType.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Sets metadata common to all instances within the specified project using
|
| - * the data included in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves a list of machine types available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8066,7 +8361,56 @@ class ProjectsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * Completes with a [Operation].
|
| + * [zone] - The name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [MachineTypeList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8074,7 +8418,7 @@ class ProjectsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.String project) {
|
| + async.Future<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8082,31 +8426,48 @@ class ProjectsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/machineTypes';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new MachineTypeList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class NetworksResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + NetworksResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * 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.
|
| + * Deletes the specified network.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8114,6 +8475,9 @@ class ProjectsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [network] - Name of the network 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
|
| @@ -8122,7 +8486,7 @@ class ProjectsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core.String project) {
|
| + async.Future<Operation> delete(core.String project, core.String network) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8130,17 +8494,17 @@ class ProjectsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (network == null) {
|
| + throw new core.ArgumentError("Parameter network is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -8149,17 +8513,9 @@ class ProjectsResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class RegionOperationsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - RegionOperationsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified region-specific Operations resource.
|
| + * Returns the specified network. Get a list of available networks by making a
|
| + * list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8167,11 +8523,10 @@ class RegionOperationsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [network] - Name of the network to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [operation] - Name of the Operations resource to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * Completes with a [Network].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8179,7 +8534,7 @@ class RegionOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future delete(core.String project, core.String region, core.String operation) {
|
| + async.Future<Network> get(core.String project, core.String network) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8190,29 +8545,27 @@ class RegionOperationsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (operation == null) {
|
| - throw new core.ArgumentError("Parameter operation is required.");
|
| + if (network == null) {
|
| + throw new core.ArgumentError("Parameter network is required.");
|
| }
|
|
|
| - _downloadOptions = null;
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network');
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => null);
|
| + return _response.then((data) => new Network.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves the specified region-specific Operations resource.
|
| + * Creates a network in the specified project using the data included in the
|
| + * request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8220,12 +8573,6 @@ class RegionOperationsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [operation] - Name of the Operations resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -8234,7 +8581,7 @@ class RegionOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> get(core.String project, core.String region, core.String operation) {
|
| + async.Future<Operation> insert(Network request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8242,20 +8589,17 @@ class RegionOperationsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (operation == null) {
|
| - throw new core.ArgumentError("Parameter operation is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -8265,8 +8609,7 @@ class RegionOperationsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of Operation resources contained within the specified
|
| - * region.
|
| + * Retrieves the list of networks available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8274,9 +8617,6 @@ class RegionOperationsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -8308,11 +8648,22 @@ class RegionOperationsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [OperationList].
|
| + * Completes with a [NetworkList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8320,7 +8671,7 @@ class RegionOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<OperationList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<NetworkList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8331,20 +8682,20 @@ class RegionOperationsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -8353,21 +8704,11 @@ class RegionOperationsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new OperationList.fromJson(data));
|
| + return _response.then((data) => new NetworkList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class RegionsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - RegionsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Returns the specified Region resource. Get a list of available regions by
|
| - * making a list() request.
|
| + * Switches the network mode from auto subnet mode to custom subnet mode.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8375,10 +8716,10 @@ class RegionsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region resource to return.
|
| + * [network] - Name of the network to be updated.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Region].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8386,7 +8727,7 @@ class RegionsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Region> get(core.String project, core.String region) {
|
| + async.Future<Operation> switchToCustomMode(core.String project, core.String network) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8397,67 +8738,41 @@ class RegionsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (network == null) {
|
| + throw new core.ArgumentError("Parameter network is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network') + '/switchToCustomMode';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Region.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves the list of region resources available to the specified project.
|
| - *
|
| - * Request parameters:
|
| - *
|
| +}
|
| +
|
| +
|
| +class ProjectsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ProjectsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Returns the specified Project 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| - *
|
| - * Completes with a [RegionList].
|
| + * Completes with a [Project].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8465,7 +8780,7 @@ class RegionsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RegionList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Project> get(core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8476,17 +8791,8 @@ class RegionsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions';
|
| + _url = commons.Escaper.ecapeVariable('$project');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -8495,20 +8801,13 @@ class RegionsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RegionList.fromJson(data));
|
| + return _response.then((data) => new Project.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class RoutersResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - RoutersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Retrieves an aggregated list of routers.
|
| + * Moves a persistent disk from one zone to another.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8516,42 +8815,7 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| - *
|
| - * Completes with a [RouterAggregatedList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8559,7 +8823,7 @@ class RoutersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RouterAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> moveDisk(DiskMoveRequest request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8567,33 +8831,30 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/routers';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/moveDisk';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RouterAggregatedList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified Router resource.
|
| + * Moves an instance and its attached persistent disks from one zone to
|
| + * another.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8601,12 +8862,6 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [router] - Name of the Router 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
|
| @@ -8615,7 +8870,7 @@ class RoutersResourceApi {
|
| * 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 router) {
|
| + async.Future<Operation> moveInstance(InstanceMoveRequest request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8623,20 +8878,17 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/moveInstance';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -8646,8 +8898,10 @@ class RoutersResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified Router resource. Get a list of available routers by
|
| - * making a list() request.
|
| + * Sets metadata common to all instances within the specified project using
|
| + * the data included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8655,13 +8909,7 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [router] - Name of the Router resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [Router].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8669,7 +8917,7 @@ class RoutersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Router> get(core.String project, core.String region, core.String router) {
|
| + async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8677,30 +8925,31 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetadata';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Router.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves runtime information of the specified router.
|
| + * 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:
|
| *
|
| @@ -8708,13 +8957,7 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [router] - Name of the Router resource to query.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [RouterStatusResponse].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8722,7 +8965,7 @@ class RoutersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RouterStatusResponse> getRouterStatus(core.String project, core.String region, core.String router) {
|
| + async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8730,33 +8973,36 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router') + '/getRouterStatus';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RouterStatusResponse.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class RegionOperationsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + RegionOperationsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Creates a Router resource in the specified project and region using the
|
| - * data included in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Deletes the specified region-specific Operations resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8767,7 +9013,8 @@ class RoutersResourceApi {
|
| * [region] - 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].
|
| + * [operation] - Name of the Operations resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8775,7 +9022,7 @@ class RoutersResourceApi {
|
| * 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(Router request, core.String project, core.String region) {
|
| + async.Future delete(core.String project, core.String region, core.String operation) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8783,30 +9030,86 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| + if (operation == null) {
|
| + throw new core.ArgumentError("Parameter operation is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers';
|
| + _downloadOptions = null;
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => null);
|
| }
|
|
|
| /**
|
| - * Retrieves a list of Router resources available to the specified project.
|
| + * Retrieves the specified region-specific Operations resource.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [operation] - Name of the Operations resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Operation> get(core.String project, core.String region, 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 (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (operation == null) {
|
| + throw new core.ArgumentError("Parameter operation is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/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 a list of Operation resources contained within the specified
|
| + * region.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8848,11 +9151,22 @@ class RoutersResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [RouterList].
|
| + * Completes with a [OperationList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8860,7 +9174,7 @@ class RoutersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RouterList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<OperationList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8880,11 +9194,14 @@ class RoutersResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/operations';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -8893,14 +9210,21 @@ class RoutersResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RouterList.fromJson(data));
|
| + return _response.then((data) => new OperationList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class RegionsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + RegionsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Updates the entire content of the Router resource. This method supports
|
| - * patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified Region resource. Get a list of available regions by
|
| + * making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8908,13 +9232,10 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [router] - Name of the Router resource to update.
|
| + * [region] - Name of the region resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Operation].
|
| + * Completes with a [Region].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8922,7 +9243,7 @@ class RoutersResourceApi {
|
| * 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(Router request, core.String project, core.String region, core.String router) {
|
| + async.Future<Region> get(core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8930,36 +9251,27 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region');
|
|
|
| var _response = _requester.request(_url,
|
| - "PATCH",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new Region.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Preview fields auto-generated during router create and update operations.
|
| - * Calling this method does NOT create or update the router.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves the list of region resources available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -8967,13 +9279,53 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [router] - Name of the Router resource to query.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * Completes with a [RoutersPreviewResponse].
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [RegionList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -8981,7 +9333,7 @@ class RoutersResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RoutersPreviewResponse> preview(Router request, core.String project, core.String region, core.String router) {
|
| + async.Future<RegionList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -8989,35 +9341,45 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router') + '/preview';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RoutersPreviewResponse.fromJson(data));
|
| + return _response.then((data) => new RegionList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class RoutersResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + RoutersResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Updates the entire content of the Router resource.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves an aggregated list of routers.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9025,13 +9387,53 @@ class RoutersResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [router] - Name of the Router resource to update.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * Completes with a [Operation].
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [RouterAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9039,7 +9441,7 @@ class RoutersResourceApi {
|
| * 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(Router request, core.String project, core.String region, core.String router) {
|
| + async.Future<RouterAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9047,42 +9449,36 @@ class RoutersResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (router == null) {
|
| - throw new core.ArgumentError("Parameter router is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/routers';
|
|
|
| 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 RouterAggregatedList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class RoutesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - RoutesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified Route resource.
|
| + * Deletes the specified Router resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9090,7 +9486,10 @@ class RoutesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [route] - Name of the Route resource to delete.
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [router] - Name of the Router resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -9101,7 +9500,7 @@ class RoutesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String route) {
|
| + async.Future<Operation> delete(core.String project, core.String region, core.String router) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9112,11 +9511,14 @@ class RoutesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (route == null) {
|
| - throw new core.ArgumentError("Parameter route is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -9129,7 +9531,7 @@ class RoutesResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified Route resource. Get a list of available routes by
|
| + * Returns the specified Router resource. Get a list of available routers by
|
| * making a list() request.
|
| *
|
| * Request parameters:
|
| @@ -9138,10 +9540,13 @@ class RoutesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [route] - Name of the Route resource to return.
|
| + * [region] - Name of the region for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Route].
|
| + * [router] - Name of the Router resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Router].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9149,7 +9554,7 @@ class RoutesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Route> get(core.String project, core.String route) {
|
| + async.Future<Router> get(core.String project, core.String region, core.String router) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9160,11 +9565,14 @@ class RoutesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (route == null) {
|
| - throw new core.ArgumentError("Parameter route is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9173,12 +9581,65 @@ class RoutesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Route.fromJson(data));
|
| + return _response.then((data) => new Router.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a Route resource in the specified project using the data included
|
| - * in the request.
|
| + * Retrieves runtime information of the specified router.
|
| + *
|
| + * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [router] - Name of the Router resource to query.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [RouterStatusResponse].
|
| + *
|
| + * 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<RouterStatusResponse> getRouterStatus(core.String project, core.String region, core.String router) {
|
| + 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 (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router') + '/getRouterStatus';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new RouterStatusResponse.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Creates a Router resource in the specified project and region using the
|
| + * data included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -9188,6 +9649,9 @@ class RoutesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [region] - 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
|
| @@ -9196,7 +9660,7 @@ class RoutesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(Route request, core.String project) {
|
| + async.Future<Operation> insert(Router request, core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9210,8 +9674,11 @@ class RoutesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -9224,7 +9691,7 @@ class RoutesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of Route resources available to the specified project.
|
| + * Retrieves a list of Router resources available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9232,6 +9699,9 @@ class RoutesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -9263,11 +9733,22 @@ class RoutesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [RouteList].
|
| + * Completes with a [RouterList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9275,7 +9756,7 @@ class RoutesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<RouteList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<RouterList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9286,17 +9767,23 @@ class RoutesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9305,26 +9792,14 @@ class RoutesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RouteList.fromJson(data));
|
| + return _response.then((data) => new RouterList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class SnapshotsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - SnapshotsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified Snapshot resource. Keep in mind that deleting a
|
| - * single snapshot might not necessarily delete all the data on that snapshot.
|
| - * If any data on the snapshot that is marked for deletion is needed for
|
| - * subsequent snapshots, the data will be moved to the next corresponding
|
| - * snapshot.
|
| + * Updates the specified Router resource with the data included in the
|
| + * request. This method supports patch semantics.
|
| *
|
| - * For more information, see Deleting snaphots.
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9332,7 +9807,10 @@ class SnapshotsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [snapshot] - Name of the Snapshot resource to delete.
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [router] - Name of the Router resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -9343,7 +9821,7 @@ class SnapshotsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String snapshot) {
|
| + async.Future<Operation> patch(Router request, core.String project, core.String region, core.String router) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9351,17 +9829,23 @@ class SnapshotsResourceApi {
|
| 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 (snapshot == null) {
|
| - throw new core.ArgumentError("Parameter snapshot is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "PATCH",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -9371,8 +9855,10 @@ class SnapshotsResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified Snapshot resource. Get a list of available snapshots
|
| - * by making a list() request.
|
| + * Preview fields auto-generated during router create and update operations.
|
| + * Calling this method does NOT create or update the router.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9380,10 +9866,13 @@ class SnapshotsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [snapshot] - Name of the Snapshot resource to return.
|
| + * [region] - Name of the region for this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Snapshot].
|
| + * [router] - Name of the Router resource to query.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [RoutersPreviewResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9391,7 +9880,7 @@ class SnapshotsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Snapshot> get(core.String project, core.String snapshot) {
|
| + async.Future<RoutersPreviewResponse> preview(Router request, core.String project, core.String region, core.String router) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9399,28 +9888,36 @@ class SnapshotsResourceApi {
|
| 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 (snapshot == null) {
|
| - throw new core.ArgumentError("Parameter snapshot is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router') + '/preview';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Snapshot.fromJson(data));
|
| + return _response.then((data) => new RoutersPreviewResponse.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves the list of Snapshot resources contained within the specified
|
| - * project.
|
| + * Updates the specified Router resource with the data included in the
|
| + * request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9428,42 +9925,13 @@ class SnapshotsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [router] - Name of the Router resource to update.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [SnapshotList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9471,7 +9939,7 @@ class SnapshotsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SnapshotList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> update(Router request, core.String project, core.String region, core.String router) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9479,42 +9947,42 @@ class SnapshotsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (router == null) {
|
| + throw new core.ArgumentError("Parameter router is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/routers/' + commons.Escaper.ecapeVariable('$router');
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "PUT",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SnapshotList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class SslCertificatesResourceApi {
|
| +class RoutesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - SslCertificatesResourceApi(commons.ApiRequester client) :
|
| + RoutesResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified SslCertificate resource.
|
| + * Deletes the specified Route resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9522,7 +9990,7 @@ class SslCertificatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [sslCertificate] - Name of the SslCertificate resource to delete.
|
| + * [route] - Name of the Route resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -9533,7 +10001,7 @@ class SslCertificatesResourceApi {
|
| * 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 sslCertificate) {
|
| + async.Future<Operation> delete(core.String project, core.String route) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9544,11 +10012,11 @@ class SslCertificatesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (sslCertificate == null) {
|
| - throw new core.ArgumentError("Parameter sslCertificate is required.");
|
| + if (route == null) {
|
| + throw new core.ArgumentError("Parameter route is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates/' + commons.Escaper.ecapeVariable('$sslCertificate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -9561,8 +10029,8 @@ class SslCertificatesResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified SslCertificate resource. Get a list of available SSL
|
| - * certificates by making a list() request.
|
| + * Returns the specified Route resource. Get a list of available routes by
|
| + * making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9570,10 +10038,10 @@ class SslCertificatesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [sslCertificate] - Name of the SslCertificate resource to return.
|
| + * [route] - Name of the Route resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [SslCertificate].
|
| + * Completes with a [Route].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9581,7 +10049,7 @@ class SslCertificatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SslCertificate> get(core.String project, core.String sslCertificate) {
|
| + async.Future<Route> get(core.String project, core.String route) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9592,11 +10060,11 @@ class SslCertificatesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (sslCertificate == null) {
|
| - throw new core.ArgumentError("Parameter sslCertificate is required.");
|
| + if (route == null) {
|
| + throw new core.ArgumentError("Parameter route is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates/' + commons.Escaper.ecapeVariable('$sslCertificate');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commons.Escaper.ecapeVariable('$route');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9605,12 +10073,12 @@ class SslCertificatesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SslCertificate.fromJson(data));
|
| + return _response.then((data) => new Route.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a SslCertificate resource in the specified project using the data
|
| - * included in the request.
|
| + * Creates a Route resource in the specified project using the data included
|
| + * in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -9628,7 +10096,7 @@ class SslCertificatesResourceApi {
|
| * 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(SslCertificate request, core.String project) {
|
| + async.Future<Operation> insert(Route request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9643,7 +10111,7 @@ class SslCertificatesResourceApi {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -9656,8 +10124,7 @@ class SslCertificatesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of SslCertificate resources available to the specified
|
| - * project.
|
| + * Retrieves the list of Route resources available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9696,11 +10163,22 @@ class SslCertificatesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [SslCertificateList].
|
| + * Completes with a [RouteList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9708,7 +10186,7 @@ class SslCertificatesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SslCertificateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<RouteList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9725,11 +10203,14 @@ class SslCertificatesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/routes';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9738,20 +10219,122 @@ class SslCertificatesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SslCertificateList.fromJson(data));
|
| + return _response.then((data) => new RouteList.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class SubnetworksResourceApi {
|
| +class SnapshotsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - SubnetworksResourceApi(commons.ApiRequester client) :
|
| + SnapshotsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Retrieves an aggregated list of subnetworks.
|
| + * Deletes the specified Snapshot resource. Keep in mind that deleting a
|
| + * single snapshot might not necessarily delete all the data on that snapshot.
|
| + * If any data on the snapshot that is marked for deletion is needed for
|
| + * subsequent snapshots, the data will be moved to the next corresponding
|
| + * snapshot.
|
| + *
|
| + * For more information, see Deleting snaphots.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [snapshot] - Name of the Snapshot resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * 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 snapshot) {
|
| + 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 (snapshot == null) {
|
| + throw new core.ArgumentError("Parameter snapshot is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Returns the specified Snapshot resource. Get a list of available snapshots
|
| + * by making a list() request.
|
| + *
|
| + * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [snapshot] - Name of the Snapshot resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Snapshot].
|
| + *
|
| + * 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<Snapshot> get(core.String project, core.String snapshot) {
|
| + 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 (snapshot == null) {
|
| + throw new core.ArgumentError("Parameter snapshot is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + commons.Escaper.ecapeVariable('$snapshot');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Snapshot.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Retrieves the list of Snapshot resources contained within the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9790,11 +10373,22 @@ class SubnetworksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [SubnetworkAggregatedList].
|
| + * Completes with a [SnapshotList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9802,7 +10396,7 @@ class SubnetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SubnetworkAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<SnapshotList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9819,11 +10413,14 @@ class SubnetworksResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/subnetworks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9832,11 +10429,20 @@ class SubnetworksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SubnetworkAggregatedList.fromJson(data));
|
| + return _response.then((data) => new SnapshotList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class SslCertificatesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + SslCertificatesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Deletes the specified subnetwork.
|
| + * Deletes the specified SslCertificate resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9844,10 +10450,7 @@ class SubnetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [subnetwork] - Name of the Subnetwork resource to delete.
|
| + * [sslCertificate] - Name of the SslCertificate resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -9858,7 +10461,7 @@ class SubnetworksResourceApi {
|
| * 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 subnetwork) {
|
| + async.Future<Operation> delete(core.String project, core.String sslCertificate) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9869,14 +10472,11 @@ class SubnetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (subnetwork == null) {
|
| - throw new core.ArgumentError("Parameter subnetwork is required.");
|
| + if (sslCertificate == null) {
|
| + throw new core.ArgumentError("Parameter sslCertificate is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates/' + commons.Escaper.ecapeVariable('$sslCertificate');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -9889,8 +10489,8 @@ class SubnetworksResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified subnetwork. Get a list of available subnetworks
|
| - * list() request.
|
| + * Returns the specified SslCertificate resource. Get a list of available SSL
|
| + * certificates by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -9898,13 +10498,10 @@ class SubnetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [subnetwork] - Name of the Subnetwork resource to return.
|
| + * [sslCertificate] - Name of the SslCertificate resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Subnetwork].
|
| + * Completes with a [SslCertificate].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -9912,7 +10509,7 @@ class SubnetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Subnetwork> get(core.String project, core.String region, core.String subnetwork) {
|
| + async.Future<SslCertificate> get(core.String project, core.String sslCertificate) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9923,14 +10520,11 @@ class SubnetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (subnetwork == null) {
|
| - throw new core.ArgumentError("Parameter subnetwork is required.");
|
| + if (sslCertificate == null) {
|
| + throw new core.ArgumentError("Parameter sslCertificate is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates/' + commons.Escaper.ecapeVariable('$sslCertificate');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -9939,12 +10533,12 @@ class SubnetworksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Subnetwork.fromJson(data));
|
| + return _response.then((data) => new SslCertificate.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a subnetwork in the specified project using the data included in
|
| - * the request.
|
| + * Creates a SslCertificate resource in the specified project using the data
|
| + * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -9954,9 +10548,6 @@ class SubnetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -9965,7 +10556,7 @@ class SubnetworksResourceApi {
|
| * 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(Subnetwork request, core.String project, core.String region) {
|
| + async.Future<Operation> insert(SslCertificate request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -9979,11 +10570,8 @@ class SubnetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -9996,7 +10584,8 @@ class SubnetworksResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of subnetworks available to the specified project.
|
| + * Retrieves the list of SslCertificate resources available to the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10004,9 +10593,6 @@ class SubnetworksResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -10038,11 +10624,22 @@ class SubnetworksResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [SubnetworkList].
|
| + * Completes with a [SslCertificateList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10050,7 +10647,7 @@ class SubnetworksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<SubnetworkList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<SslCertificateList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10061,20 +10658,20 @@ class SubnetworksResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslCertificates';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10083,163 +10680,20 @@ class SubnetworksResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new SubnetworkList.fromJson(data));
|
| + return _response.then((data) => new SslCertificateList.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class TargetHttpProxiesResourceApi {
|
| +class SubnetworksResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - TargetHttpProxiesResourceApi(commons.ApiRequester client) :
|
| + SubnetworksResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified TargetHttpProxy 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| - *
|
| - * [targetHttpProxy] - Name of the TargetHttpProxy 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 targetHttpProxy) {
|
| - 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 (targetHttpProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Returns the specified TargetHttpProxy resource. Get a list of available
|
| - * target HTTP proxies by making a list() request.
|
| - *
|
| - * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| - *
|
| - * [targetHttpProxy] - Name of the TargetHttpProxy resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [TargetHttpProxy].
|
| - *
|
| - * 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<TargetHttpProxy> get(core.String project, core.String targetHttpProxy) {
|
| - 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 (targetHttpProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetHttpProxy.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Creates a TargetHttpProxy resource in the specified project using the data
|
| - * included in the request.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [project] - Project ID for this request.
|
| - * Value must have pattern
|
| - * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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(TargetHttpProxy request, core.String project) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (project == null) {
|
| - throw new core.ArgumentError("Parameter project is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the list of TargetHttpProxy resources available to the specified
|
| - * project.
|
| + * Retrieves an aggregated list of subnetworks.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10278,11 +10732,22 @@ class TargetHttpProxiesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetHttpProxyList].
|
| + * Completes with a [SubnetworkAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10290,7 +10755,7 @@ class TargetHttpProxiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetHttpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<SubnetworkAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10307,11 +10772,14 @@ class TargetHttpProxiesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/subnetworks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10320,13 +10788,11 @@ class TargetHttpProxiesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetHttpProxyList.fromJson(data));
|
| + return _response.then((data) => new SubnetworkAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Changes the URL map for TargetHttpProxy.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Deletes the specified subnetwork.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10334,7 +10800,10 @@ class TargetHttpProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [targetHttpProxy] - Name of the TargetHttpProxy to set a URL map for.
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [subnetwork] - Name of the Subnetwork resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -10345,7 +10814,7 @@ class TargetHttpProxiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpProxy) {
|
| + async.Future<Operation> delete(core.String project, core.String region, core.String subnetwork) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10353,20 +10822,20 @@ class TargetHttpProxiesResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (targetHttpProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (subnetwork == null) {
|
| + throw new core.ArgumentError("Parameter subnetwork is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -10375,17 +10844,10 @@ class TargetHttpProxiesResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class TargetHttpsProxiesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - TargetHttpsProxiesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified TargetHttpsProxy resource.
|
| + * Expands the IP CIDR range of the subnetwork to a specified value.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10393,7 +10855,10 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to delete.
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [subnetwork] - Name of the Subnetwork resource to update.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -10404,7 +10869,7 @@ class TargetHttpsProxiesResourceApi {
|
| * 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 targetHttpsProxy) {
|
| + async.Future<Operation> expandIpCidrRange(SubnetworksExpandIpCidrRangeRequest request, core.String project, core.String region, core.String subnetwork) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10412,17 +10877,23 @@ class TargetHttpsProxiesResourceApi {
|
| 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 (targetHttpsProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (subnetwork == null) {
|
| + throw new core.ArgumentError("Parameter subnetwork is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork') + '/expandIpCidrRange';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -10432,8 +10903,8 @@ class TargetHttpsProxiesResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified TargetHttpsProxy resource. Get a list of available
|
| - * target HTTPS proxies by making a list() request.
|
| + * Returns the specified subnetwork. Get a list of available subnetworks
|
| + * list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10441,10 +10912,13 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to return.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [TargetHttpsProxy].
|
| + * [subnetwork] - Name of the Subnetwork resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Subnetwork].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10452,7 +10926,7 @@ class TargetHttpsProxiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetHttpsProxy> get(core.String project, core.String targetHttpsProxy) {
|
| + async.Future<Subnetwork> get(core.String project, core.String region, core.String subnetwork) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10463,11 +10937,14 @@ class TargetHttpsProxiesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (targetHttpsProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (subnetwork == null) {
|
| + throw new core.ArgumentError("Parameter subnetwork is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10476,12 +10953,12 @@ class TargetHttpsProxiesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetHttpsProxy.fromJson(data));
|
| + return _response.then((data) => new Subnetwork.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a TargetHttpsProxy resource in the specified project using the data
|
| - * included in the request.
|
| + * Creates a subnetwork in the specified project using the data included in
|
| + * the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -10491,6 +10968,9 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -10499,7 +10979,7 @@ class TargetHttpsProxiesResourceApi {
|
| * 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(TargetHttpsProxy request, core.String project) {
|
| + async.Future<Operation> insert(Subnetwork request, core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10513,8 +10993,11 @@ class TargetHttpsProxiesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -10527,8 +11010,7 @@ class TargetHttpsProxiesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of TargetHttpsProxy resources available to the specified
|
| - * project.
|
| + * Retrieves a list of subnetworks available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10536,7 +11018,10 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| *
|
| @@ -10567,11 +11052,22 @@ class TargetHttpsProxiesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetHttpsProxyList].
|
| + * Completes with a [SubnetworkList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10579,7 +11075,7 @@ class TargetHttpsProxiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetHttpsProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<SubnetworkList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10590,17 +11086,23 @@ class TargetHttpsProxiesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10609,13 +11111,20 @@ class TargetHttpsProxiesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetHttpsProxyList.fromJson(data));
|
| + return _response.then((data) => new SubnetworkList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class TargetHttpProxiesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + TargetHttpProxiesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Replaces SslCertificates for TargetHttpsProxy.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Deletes the specified TargetHttpProxy resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10623,8 +11132,7 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to set an
|
| - * SslCertificates resource for.
|
| + * [targetHttpProxy] - Name of the TargetHttpProxy resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -10635,7 +11143,7 @@ class TargetHttpsProxiesResourceApi {
|
| * 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> setSslCertificates(TargetHttpsProxiesSetSslCertificatesRequest request, core.String project, core.String targetHttpsProxy) {
|
| + async.Future<Operation> delete(core.String project, core.String targetHttpProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10643,20 +11151,17 @@ class TargetHttpsProxiesResourceApi {
|
| 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 (targetHttpsProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| + if (targetHttpProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy') + '/setSslCertificates';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -10666,9 +11171,8 @@ class TargetHttpsProxiesResourceApi {
|
| }
|
|
|
| /**
|
| - * Changes the URL map for TargetHttpsProxy.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Returns the specified TargetHttpProxy resource. Get a list of available
|
| + * target HTTP proxies by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10676,10 +11180,56 @@ class TargetHttpsProxiesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [targetHttpsProxy] - Name of the TargetHttpsProxy resource whose URL map is
|
| - * to be set.
|
| + * [targetHttpProxy] - Name of the TargetHttpProxy resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| + * Completes with a [TargetHttpProxy].
|
| + *
|
| + * 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<TargetHttpProxy> get(core.String project, core.String targetHttpProxy) {
|
| + 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 (targetHttpProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new TargetHttpProxy.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Creates a TargetHttpProxy resource in the specified project using the data
|
| + * included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -10688,7 +11238,7 @@ class TargetHttpsProxiesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpsProxy) {
|
| + async.Future<Operation> insert(TargetHttpProxy request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10702,11 +11252,8 @@ class TargetHttpsProxiesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (targetHttpsProxy == null) {
|
| - throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy') + '/setUrlMap';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -10718,17 +11265,9 @@ class TargetHttpsProxiesResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class TargetInstancesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - TargetInstancesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Retrieves an aggregated list of target instances.
|
| + * Retrieves the list of TargetHttpProxy resources available to the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10767,11 +11306,22 @@ class TargetInstancesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetInstanceAggregatedList].
|
| + * Completes with a [TargetHttpProxyList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10779,7 +11329,7 @@ class TargetInstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetHttpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10796,11 +11346,14 @@ class TargetInstancesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10809,11 +11362,13 @@ class TargetInstancesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetInstanceAggregatedList.fromJson(data));
|
| + return _response.then((data) => new TargetHttpProxyList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified TargetInstance resource.
|
| + * Changes the URL map for TargetHttpProxy.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10821,10 +11376,66 @@ class TargetInstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| + * [targetHttpProxy] - Name of the TargetHttpProxy to set a URL map for.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetInstance] - Name of the TargetInstance resource to delete.
|
| + * 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> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpProxy) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (targetHttpProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpProxy is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + commons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +class TargetHttpsProxiesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + TargetHttpsProxiesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Deletes the specified TargetHttpsProxy 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -10835,7 +11446,7 @@ class TargetInstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String zone, core.String targetInstance) {
|
| + async.Future<Operation> delete(core.String project, core.String targetHttpsProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10846,14 +11457,11 @@ class TargetInstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (targetInstance == null) {
|
| - throw new core.ArgumentError("Parameter targetInstance is required.");
|
| + if (targetHttpsProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -10866,8 +11474,8 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified TargetInstance resource. Get a list of available
|
| - * target instances by making a list() request.
|
| + * Returns the specified TargetHttpsProxy resource. Get a list of available
|
| + * target HTTPS proxies by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10875,13 +11483,10 @@ class TargetInstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [targetInstance] - Name of the TargetInstance resource to return.
|
| + * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [TargetInstance].
|
| + * Completes with a [TargetHttpsProxy].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -10889,7 +11494,7 @@ class TargetInstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetInstance> get(core.String project, core.String zone, core.String targetInstance) {
|
| + async.Future<TargetHttpsProxy> get(core.String project, core.String targetHttpsProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10900,14 +11505,11 @@ class TargetInstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (targetInstance == null) {
|
| - throw new core.ArgumentError("Parameter targetInstance is required.");
|
| + if (targetHttpsProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -10916,12 +11518,12 @@ class TargetInstancesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetInstance.fromJson(data));
|
| + return _response.then((data) => new TargetHttpsProxy.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a TargetInstance resource in the specified project and zone using
|
| - * the data included in the request.
|
| + * Creates a TargetHttpsProxy resource in the specified project using the data
|
| + * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -10931,9 +11533,6 @@ class TargetInstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -10942,7 +11541,7 @@ class TargetInstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(TargetInstance request, core.String project, core.String zone) {
|
| + async.Future<Operation> insert(TargetHttpsProxy request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -10956,11 +11555,8 @@ class TargetInstancesResourceApi {
|
| 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') + '/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -10973,8 +11569,8 @@ class TargetInstancesResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of TargetInstance resources available to the specified
|
| - * project and zone.
|
| + * Retrieves the list of TargetHttpsProxy resources available to the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -10982,9 +11578,6 @@ class TargetInstancesResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| * form filter={expression}. Your {expression} must be in the format:
|
| * field_name comparison_string literal_string.
|
| @@ -11016,11 +11609,22 @@ class TargetInstancesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetInstanceList].
|
| + * Completes with a [TargetHttpsProxyList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11028,7 +11632,7 @@ class TargetInstancesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetHttpsProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11039,20 +11643,20 @@ class TargetInstancesResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpsProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -11061,20 +11665,11 @@ class TargetInstancesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetInstanceList.fromJson(data));
|
| + return _response.then((data) => new TargetHttpsProxyList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class TargetPoolsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - TargetPoolsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Adds health check URLs to a target pool.
|
| + * Replaces SslCertificates for TargetHttpsProxy.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11084,10 +11679,8 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [targetPool] - Name of the target pool to add a health check to.
|
| + * [targetHttpsProxy] - Name of the TargetHttpsProxy resource to set an
|
| + * SslCertificates resource for.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11098,7 +11691,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest request, core.String project, core.String region, core.String targetPool) {
|
| + async.Future<Operation> setSslCertificates(TargetHttpsProxiesSetSslCertificatesRequest request, core.String project, core.String targetHttpsProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11112,14 +11705,11 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| + if (targetHttpsProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy') + '/setSslCertificates';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -11132,7 +11722,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
| /**
|
| - * Adds an instance to a target pool.
|
| + * Changes the URL map for TargetHttpsProxy.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11142,10 +11732,8 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [targetPool] - Name of the TargetPool resource to add instances to.
|
| + * [targetHttpsProxy] - Name of the TargetHttpsProxy resource whose URL map is
|
| + * to be set.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11156,7 +11744,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, core.String project, core.String region, core.String targetPool) {
|
| + async.Future<Operation> setUrlMap(UrlMapReference request, core.String project, core.String targetHttpsProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11170,14 +11758,11 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| + if (targetHttpsProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetHttpsProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addInstance';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpsProxies/' + commons.Escaper.ecapeVariable('$targetHttpsProxy') + '/setUrlMap';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -11189,8 +11774,17 @@ class TargetPoolsResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class TargetInstancesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + TargetInstancesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Retrieves an aggregated list of target pools.
|
| + * Retrieves an aggregated list of target instances.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11229,11 +11823,22 @@ class TargetPoolsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetPoolAggregatedList].
|
| + * Completes with a [TargetInstanceAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11241,7 +11846,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11258,11 +11863,14 @@ class TargetPoolsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -11271,11 +11879,11 @@ class TargetPoolsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetPoolAggregatedList.fromJson(data));
|
| + return _response.then((data) => new TargetInstanceAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified target pool.
|
| + * Deletes the specified TargetInstance resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11283,10 +11891,10 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| + * [zone] - Name of the zone scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetPool] - Name of the TargetPool resource to delete.
|
| + * [targetInstance] - Name of the TargetInstance resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11297,7 +11905,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String region, core.String targetPool) {
|
| + async.Future<Operation> delete(core.String project, core.String zone, core.String targetInstance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11308,14 +11916,14 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| + if (targetInstance == null) {
|
| + throw new core.ArgumentError("Parameter targetInstance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -11328,8 +11936,8 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified target pool. Get a list of available target pools by
|
| - * making a list() request.
|
| + * Returns the specified TargetInstance resource. Get a list of available
|
| + * target instances by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11337,13 +11945,13 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| + * [zone] - Name of the zone scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetPool] - Name of the TargetPool resource to return.
|
| + * [targetInstance] - Name of the TargetInstance resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [TargetPool].
|
| + * Completes with a [TargetInstance].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11351,7 +11959,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetPool> get(core.String project, core.String region, core.String targetPool) {
|
| + async.Future<TargetInstance> get(core.String project, core.String zone, core.String targetInstance) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11362,14 +11970,14 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| + if (targetInstance == null) {
|
| + throw new core.ArgumentError("Parameter targetInstance is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable('$targetInstance');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -11378,72 +11986,12 @@ class TargetPoolsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetPool.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Gets the most recent health check results for each IP for the instance that
|
| - * is referenced by the given target pool.
|
| - *
|
| - * [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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| - *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [targetPool] - Name of the TargetPool resource to which the queried
|
| - * instance belongs.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [TargetPoolInstanceHealth].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, core.String project, core.String region, core.String targetPool) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (project == null) {
|
| - throw new core.ArgumentError("Parameter project is required.");
|
| - }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| - }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/getHealth';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data));
|
| + return _response.then((data) => new TargetInstance.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a target pool in the specified project and region using the data
|
| - * included in the request.
|
| + * Creates a TargetInstance resource in the specified project and zone using
|
| + * the data included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11453,7 +12001,7 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| + * [zone] - Name of the zone scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11464,7 +12012,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(TargetPool request, core.String project, core.String region) {
|
| + async.Future<Operation> insert(TargetInstance request, core.String project, core.String zone) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11478,11 +12026,11 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -11495,8 +12043,8 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of target pools available to the specified project and
|
| - * region.
|
| + * Retrieves a list of TargetInstance resources available to the specified
|
| + * project and zone.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11504,7 +12052,7 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| + * [zone] - Name of the zone scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| @@ -11538,11 +12086,22 @@ class TargetPoolsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetPoolList].
|
| + * Completes with a [TargetInstanceList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11550,7 +12109,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetPoolList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11561,8 +12120,8 @@ class TargetPoolsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| @@ -11570,11 +12129,14 @@ class TargetPoolsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/targetInstances';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -11583,11 +12145,20 @@ class TargetPoolsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetPoolList.fromJson(data));
|
| + return _response.then((data) => new TargetInstanceList.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class TargetPoolsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + TargetPoolsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Removes health check URL from a target pool.
|
| + * Adds health check URLs to a target pool.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11597,10 +12168,10 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetPool] - Name of the target pool to remove health checks from.
|
| + * [targetPool] - Name of the target pool to add a health check to.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11611,7 +12182,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest request, core.String project, core.String region, core.String targetPool) {
|
| + async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest request, core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11632,7 +12203,7 @@ class TargetPoolsResourceApi {
|
| throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -11645,7 +12216,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
| /**
|
| - * Removes instance URL from a target pool.
|
| + * Adds an instance to a target pool.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11658,7 +12229,7 @@ class TargetPoolsResourceApi {
|
| * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetPool] - Name of the TargetPool resource to remove instances from.
|
| + * [targetPool] - Name of the TargetPool resource to add instances to.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11669,7 +12240,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest request, core.String project, core.String region, core.String targetPool) {
|
| + async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11690,7 +12261,7 @@ class TargetPoolsResourceApi {
|
| throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeInstance';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/addInstance';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -11703,9 +12274,7 @@ class TargetPoolsResourceApi {
|
| }
|
|
|
| /**
|
| - * Changes a backup target pool's configurations.
|
| - *
|
| - * [request] - The metadata request object.
|
| + * Retrieves an aggregated list of target pools.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11713,15 +12282,53 @@ class TargetPoolsResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region scoping this request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| *
|
| - * [targetPool] - Name of the TargetPool resource to set a backup pool for.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| *
|
| - * [failoverRatio] - New failoverRatio value for the target pool.
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| *
|
| - * Completes with a [Operation].
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [TargetPoolAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11729,7 +12336,7 @@ class TargetPoolsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> setBackup(TargetReference request, core.String project, core.String region, core.String targetPool, {core.double failoverRatio}) {
|
| + async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11737,45 +12344,36 @@ class TargetPoolsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (region == null) {
|
| - throw new core.ArgumentError("Parameter region is required.");
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| - if (targetPool == null) {
|
| - throw new core.ArgumentError("Parameter targetPool is required.");
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| - if (failoverRatio != null) {
|
| - _queryParams["failoverRatio"] = ["${failoverRatio}"];
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/setBackup';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| - "POST",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new TargetPoolAggregatedList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class TargetVpnGatewaysResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - TargetVpnGatewaysResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Retrieves an aggregated list of target VPN gateways.
|
| + * Deletes the specified target pool.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11783,42 +12381,13 @@ class TargetVpnGatewaysResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| + * [targetPool] - Name of the TargetPool resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [TargetVpnGatewayAggregatedList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11826,7 +12395,7 @@ class TargetVpnGatewaysResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetVpnGatewayAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> delete(core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11837,30 +12406,28 @@ class TargetVpnGatewaysResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetVpnGateways';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "DELETE",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified target VPN gateway.
|
| + * Returns the specified target pool. Get a list of available target pools by
|
| + * making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11868,13 +12435,13 @@ class TargetVpnGatewaysResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetVpnGateway] - Name of the target VPN gateway to delete.
|
| + * [targetPool] - Name of the TargetPool resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Operation].
|
| + * Completes with a [TargetPool].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11882,7 +12449,7 @@ class TargetVpnGatewaysResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String region, core.String targetVpnGateway) {
|
| + async.Future<TargetPool> get(core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11896,25 +12463,27 @@ class TargetVpnGatewaysResourceApi {
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (targetVpnGateway == null) {
|
| - throw new core.ArgumentError("Parameter targetVpnGateway is required.");
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool');
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "GET",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new TargetPool.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Returns the specified target VPN gateway. Get a list of available target
|
| - * VPN gateways by making a list() request.
|
| + * Gets the most recent health check results for each IP for the instance that
|
| + * is referenced by the given target pool.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -11922,13 +12491,14 @@ class TargetVpnGatewaysResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [targetVpnGateway] - Name of the target VPN gateway to return.
|
| + * [targetPool] - Name of the TargetPool resource to which the queried
|
| + * instance belongs.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [TargetVpnGateway].
|
| + * Completes with a [TargetPoolInstanceHealth].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -11936,7 +12506,7 @@ class TargetVpnGatewaysResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetVpnGateway> get(core.String project, core.String region, core.String targetVpnGateway) {
|
| + async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -11944,31 +12514,34 @@ class TargetVpnGatewaysResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (targetVpnGateway == null) {
|
| - throw new core.ArgumentError("Parameter targetVpnGateway is required.");
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/getHealth';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetVpnGateway.fromJson(data));
|
| + return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a target VPN gateway in the specified project and region using the
|
| - * data included in the request.
|
| + * Creates a target pool in the specified project and region using the data
|
| + * included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -11978,7 +12551,7 @@ class TargetVpnGatewaysResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -11989,7 +12562,7 @@ class TargetVpnGatewaysResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(TargetVpnGateway request, core.String project, core.String region) {
|
| + async.Future<Operation> insert(TargetPool request, core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12007,7 +12580,7 @@ class TargetVpnGatewaysResourceApi {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -12020,8 +12593,8 @@ class TargetVpnGatewaysResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of target VPN gateways available to the specified project
|
| - * and region.
|
| + * Retrieves a list of target pools available to the specified project and
|
| + * region.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12029,7 +12602,7 @@ class TargetVpnGatewaysResourceApi {
|
| * Value must have pattern
|
| * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [region] - Name of the region for this request.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * [filter] - Sets a filter expression for filtering listed resources, in the
|
| @@ -12063,11 +12636,22 @@ class TargetVpnGatewaysResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [TargetVpnGatewayList].
|
| + * Completes with a [TargetPoolList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12075,7 +12659,7 @@ class TargetVpnGatewaysResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<TargetVpnGatewayList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetPoolList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12095,11 +12679,14 @@ class TargetVpnGatewaysResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -12108,20 +12695,13 @@ class TargetVpnGatewaysResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new TargetVpnGatewayList.fromJson(data));
|
| + return _response.then((data) => new TargetPoolList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class UrlMapsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - UrlMapsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Deletes the specified UrlMap resource.
|
| + * Removes health check URL from a target pool.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12129,7 +12709,10 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to delete.
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [targetPool] - Name of the target pool to remove health checks from.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -12140,7 +12723,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String urlMap) {
|
| + async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest request, core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12148,17 +12731,23 @@ class UrlMapsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck';
|
|
|
| var _response = _requester.request(_url,
|
| - "DELETE",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -12168,8 +12757,9 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified UrlMap resource. Get a list of available URL maps by
|
| - * making a list() request.
|
| + * Removes instance URL from a target pool.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12177,10 +12767,13 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to return.
|
| + * [region] - Name of the region scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [UrlMap].
|
| + * [targetPool] - Name of the TargetPool resource to remove instances from.
|
| + * 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.
|
| @@ -12188,7 +12781,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<UrlMap> get(core.String project, core.String urlMap) {
|
| + async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest request, core.String project, core.String region, core.String targetPool) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12196,28 +12789,33 @@ class UrlMapsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/removeInstance';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMap.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a UrlMap resource in the specified project using the data included
|
| - * in the request.
|
| + * Changes a backup target pool's configurations.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -12227,6 +12825,14 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| + * [region] - Name of the region scoping this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [targetPool] - Name of the TargetPool resource to set a backup pool for.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [failoverRatio] - New failoverRatio value for the target pool.
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -12235,7 +12841,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(UrlMap request, core.String project) {
|
| + async.Future<Operation> setBackup(TargetReference request, core.String project, core.String region, core.String targetPool, {core.double failoverRatio}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12249,8 +12855,17 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (targetPool == null) {
|
| + throw new core.ArgumentError("Parameter targetPool is required.");
|
| + }
|
| + if (failoverRatio != null) {
|
| + _queryParams["failoverRatio"] = ["${failoverRatio}"];
|
| + }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable('$targetPool') + '/setBackup';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -12262,11 +12877,65 @@ class UrlMapsResourceApi {
|
| return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| +}
|
| +
|
| +
|
| +class TargetSslProxiesResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + TargetSslProxiesResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| /**
|
| - * Initiates a cache invalidation operation, invalidating the specified path,
|
| - * scoped to the specified UrlMap.
|
| + * Deletes the specified TargetSslProxy resource.
|
| *
|
| - * [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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [targetSslProxy] - Name of the TargetSslProxy 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 targetSslProxy) {
|
| + 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 (targetSslProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetSslProxy is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Returns the specified TargetSslProxy resource. Get a list of available
|
| + * target SSL proxies by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12274,9 +12943,56 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap scoping this request.
|
| + * [targetSslProxy] - Name of the TargetSslProxy resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| + * Completes with a [TargetSslProxy].
|
| + *
|
| + * 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<TargetSslProxy> get(core.String project, core.String targetSslProxy) {
|
| + 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 (targetSslProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetSslProxy is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new TargetSslProxy.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Creates a TargetSslProxy resource in the specified project using the data
|
| + * included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -12285,7 +13001,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> invalidateCache(CacheInvalidationRule request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> insert(TargetSslProxy request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12299,11 +13015,8 @@ 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 = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/invalidateCache';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -12316,7 +13029,8 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves the list of UrlMap resources available to the specified project.
|
| + * Retrieves the list of TargetSslProxy resources available to the specified
|
| + * project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12355,11 +13069,22 @@ class UrlMapsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [UrlMapList].
|
| + * Completes with a [TargetSslProxyList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12367,7 +13092,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<UrlMapList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetSslProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12384,11 +13109,14 @@ class UrlMapsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -12397,12 +13125,11 @@ class UrlMapsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMapList.fromJson(data));
|
| + return _response.then((data) => new TargetSslProxyList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Updates the entire content of the UrlMap resource. This method supports
|
| - * patch semantics.
|
| + * Changes the BackendService for TargetSslProxy.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -12412,7 +13139,8 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to update.
|
| + * [targetSslProxy] - Name of the TargetSslProxy resource whose BackendService
|
| + * resource is to be set.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -12423,7 +13151,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> patch(UrlMap request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> setBackendService(TargetSslProxiesSetBackendServiceRequest request, core.String project, core.String targetSslProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12437,14 +13165,14 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| + if (targetSslProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetSslProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setBackendService';
|
|
|
| var _response = _requester.request(_url,
|
| - "PATCH",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -12454,7 +13182,7 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Updates the entire content of the UrlMap resource.
|
| + * Changes the ProxyHeaderType for TargetSslProxy.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -12464,7 +13192,8 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to update.
|
| + * [targetSslProxy] - Name of the TargetSslProxy resource whose ProxyHeader is
|
| + * to be set.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -12475,7 +13204,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> update(UrlMap request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> setProxyHeader(TargetSslProxiesSetProxyHeaderRequest request, core.String project, core.String targetSslProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12489,14 +13218,14 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| + if (targetSslProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetSslProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setProxyHeader';
|
|
|
| var _response = _requester.request(_url,
|
| - "PUT",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| @@ -12506,9 +13235,7 @@ class UrlMapsResourceApi {
|
| }
|
|
|
| /**
|
| - * Runs static validation for the UrlMap. In particular, the tests of the
|
| - * provided UrlMap will be run. Calling this method does NOT create the
|
| - * UrlMap.
|
| + * Changes SslCertificates for TargetSslProxy.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -12518,10 +13245,11 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [urlMap] - Name of the UrlMap resource to be validated as.
|
| + * [targetSslProxy] - Name of the TargetSslProxy resource whose SslCertificate
|
| + * resource is to be set.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [UrlMapsValidateResponse].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12529,7 +13257,7 @@ class UrlMapsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request, core.String project, core.String urlMap) {
|
| + async.Future<Operation> setSslCertificates(TargetSslProxiesSetSslCertificatesRequest request, core.String project, core.String targetSslProxy) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12543,11 +13271,11 @@ class UrlMapsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (urlMap == null) {
|
| - throw new core.ArgumentError("Parameter urlMap is required.");
|
| + if (targetSslProxy == null) {
|
| + throw new core.ArgumentError("Parameter targetSslProxy is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/validate';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setSslCertificates';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -12556,20 +13284,20 @@ class UrlMapsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UrlMapsValidateResponse.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class VpnTunnelsResourceApi {
|
| +class TargetVpnGatewaysResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - VpnTunnelsResourceApi(commons.ApiRequester client) :
|
| + TargetVpnGatewaysResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Retrieves an aggregated list of VPN tunnels.
|
| + * Retrieves an aggregated list of target VPN gateways.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12608,11 +13336,22 @@ class VpnTunnelsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [VpnTunnelAggregatedList].
|
| + * Completes with a [TargetVpnGatewayAggregatedList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12620,7 +13359,7 @@ class VpnTunnelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<VpnTunnelAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetVpnGatewayAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12637,11 +13376,14 @@ class VpnTunnelsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetVpnGateways';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -12650,11 +13392,11 @@ class VpnTunnelsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new VpnTunnelAggregatedList.fromJson(data));
|
| + return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Deletes the specified VpnTunnel resource.
|
| + * Deletes the specified target VPN gateway.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12665,7 +13407,7 @@ class VpnTunnelsResourceApi {
|
| * [region] - 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.
|
| + * [targetVpnGateway] - Name of the target VPN gateway to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| * Completes with a [Operation].
|
| @@ -12676,7 +13418,7 @@ class VpnTunnelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> delete(core.String project, core.String region, core.String vpnTunnel) {
|
| + async.Future<Operation> delete(core.String project, core.String region, core.String targetVpnGateway) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12690,11 +13432,11 @@ class VpnTunnelsResourceApi {
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (vpnTunnel == null) {
|
| - throw new core.ArgumentError("Parameter vpnTunnel is required.");
|
| + if (targetVpnGateway == null) {
|
| + throw new core.ArgumentError("Parameter targetVpnGateway is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -12707,8 +13449,8 @@ class VpnTunnelsResourceApi {
|
| }
|
|
|
| /**
|
| - * Returns the specified VpnTunnel resource. Get a list of available VPN
|
| - * tunnels by making a list() request.
|
| + * Returns the specified target VPN gateway. Get a list of available target
|
| + * VPN gateways by making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12719,10 +13461,10 @@ class VpnTunnelsResourceApi {
|
| * [region] - 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.
|
| + * [targetVpnGateway] - Name of the target VPN gateway to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [VpnTunnel].
|
| + * Completes with a [TargetVpnGateway].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12730,7 +13472,7 @@ class VpnTunnelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<VpnTunnel> get(core.String project, core.String region, core.String vpnTunnel) {
|
| + async.Future<TargetVpnGateway> get(core.String project, core.String region, core.String targetVpnGateway) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12744,11 +13486,11 @@ class VpnTunnelsResourceApi {
|
| if (region == null) {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
| - if (vpnTunnel == null) {
|
| - throw new core.ArgumentError("Parameter vpnTunnel is required.");
|
| + if (targetVpnGateway == null) {
|
| + throw new core.ArgumentError("Parameter targetVpnGateway is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVariable('$targetVpnGateway');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -12757,11 +13499,11 @@ class VpnTunnelsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new VpnTunnel.fromJson(data));
|
| + return _response.then((data) => new TargetVpnGateway.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Creates a VpnTunnel resource in the specified project and region using the
|
| + * Creates a target VPN gateway in the specified project and region using the
|
| * data included in the request.
|
| *
|
| * [request] - The metadata request object.
|
| @@ -12783,7 +13525,7 @@ class VpnTunnelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> insert(VpnTunnel request, core.String project, core.String region) {
|
| + async.Future<Operation> insert(TargetVpnGateway request, core.String project, core.String region) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12801,7 +13543,7 @@ class VpnTunnelsResourceApi {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -12814,7 +13556,7 @@ class VpnTunnelsResourceApi {
|
| }
|
|
|
| /**
|
| - * Retrieves a list of VpnTunnel resources contained in the specified project
|
| + * Retrieves a list of target VPN gateways available to the specified project
|
| * and region.
|
| *
|
| * Request parameters:
|
| @@ -12857,11 +13599,22 @@ class VpnTunnelsResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [VpnTunnelList].
|
| + * Completes with a [TargetVpnGatewayList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12869,7 +13622,7 @@ class VpnTunnelsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<VpnTunnelList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<TargetVpnGatewayList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12889,11 +13642,14 @@ class VpnTunnelsResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/targetVpnGateways';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -12902,20 +13658,20 @@ class VpnTunnelsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new VpnTunnelList.fromJson(data));
|
| + return _response.then((data) => new TargetVpnGatewayList.fromJson(data));
|
| }
|
|
|
| }
|
|
|
|
|
| -class ZoneOperationsResourceApi {
|
| +class UrlMapsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ZoneOperationsResourceApi(commons.ApiRequester client) :
|
| + UrlMapsResourceApi(commons.ApiRequester client) :
|
| _requester = client;
|
|
|
| /**
|
| - * Deletes the specified zone-specific Operations resource.
|
| + * Deletes the specified UrlMap resource.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12923,11 +13679,10 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone for this request.
|
| + * [urlMap] - Name of the UrlMap resource to delete.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [operation] - Name of the Operations resource to delete.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12935,7 +13690,7 @@ class ZoneOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future delete(core.String project, core.String zone, core.String operation) {
|
| + async.Future<Operation> delete(core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -12946,16 +13701,11 @@ class ZoneOperationsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (operation == null) {
|
| - throw new core.ArgumentError("Parameter operation is required.");
|
| + if (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| }
|
|
|
| - _downloadOptions = null;
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -12964,11 +13714,12 @@ class ZoneOperationsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => null);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves the specified zone-specific Operations resource.
|
| + * Returns the specified UrlMap resource. Get a list of available URL maps by
|
| + * making a list() request.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -12976,13 +13727,10 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone for this request.
|
| + * [urlMap] - Name of the UrlMap resource to return.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * [operation] - Name of the Operations resource to return.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * Completes with a [Operation].
|
| + * Completes with a [UrlMap].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -12990,7 +13738,7 @@ class ZoneOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Operation> get(core.String project, core.String zone, core.String operation) {
|
| + async.Future<UrlMap> get(core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -13001,14 +13749,11 @@ class ZoneOperationsResourceApi {
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (operation == null) {
|
| - throw new core.ArgumentError("Parameter operation is required.");
|
| + if (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -13017,12 +13762,14 @@ class ZoneOperationsResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Operation.fromJson(data));
|
| + return _response.then((data) => new UrlMap.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves a list of Operation resources contained within the specified
|
| - * zone.
|
| + * Creates a UrlMap resource in the specified project using the data included
|
| + * in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -13030,45 +13777,7 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone for request.
|
| - * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| - *
|
| - * [filter] - Sets a filter expression for filtering listed resources, in the
|
| - * form filter={expression}. Your {expression} must be in the format:
|
| - * field_name comparison_string literal_string.
|
| - *
|
| - * The field_name is the name of the field you want to compare. Only atomic
|
| - * field types are supported (string, number, boolean). The comparison_string
|
| - * must be either eq (equals) or ne (not equals). The literal_string is the
|
| - * string value to filter to. The literal value must be valid for the type of
|
| - * field you are filtering by (string, number, boolean). For string fields,
|
| - * the literal value is interpreted as a regular expression using RE2 syntax.
|
| - * The literal value must match the entire field.
|
| - *
|
| - * For example, to filter for instances that do not have a name of
|
| - * example-instance, you would use filter=name ne example-instance.
|
| - *
|
| - * You can filter on nested fields. For example, you could filter on instances
|
| - * that have set the scheduling.automaticRestart field to true. Use filtering
|
| - * on nested fields to take advantage of labels to organize and search for
|
| - * results based on label values.
|
| - *
|
| - * To filter on multiple expressions, provide each separate expression within
|
| - * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| - * us-central1-f). Multiple expressions are treated as AND expressions,
|
| - * meaning that resources must match all expressions to pass the filters.
|
| - *
|
| - * [maxResults] - The maximum number of results per page that should be
|
| - * returned. If the number of available results is larger than maxResults,
|
| - * Compute Engine returns a nextPageToken that can be used to get the next
|
| - * page of results in subsequent list requests.
|
| - * Value must be between "0" and "500".
|
| - *
|
| - * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| - * nextPageToken returned by a previous list request to get the next page of
|
| - * results.
|
| - *
|
| - * Completes with a [OperationList].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -13076,7 +13785,7 @@ class ZoneOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<Operation> insert(UrlMap request, core.String project) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -13084,46 +13793,30 @@ class ZoneOperationsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| if (project == null) {
|
| throw new core.ArgumentError("Parameter project is required.");
|
| }
|
| - if (zone == null) {
|
| - throw new core.ArgumentError("Parameter zone is required.");
|
| - }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
|
|
| var _response = _requester.request(_url,
|
| - "GET",
|
| + "POST",
|
| body: _body,
|
| queryParams: _queryParams,
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new OperationList.fromJson(data));
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -class ZonesResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - ZonesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| /**
|
| - * Returns the specified Zone resource. Get a list of available zones by
|
| - * making a list() request.
|
| + * Initiates a cache invalidation operation, invalidating the specified path,
|
| + * scoped to the specified UrlMap.
|
| + *
|
| + * [request] - The metadata request object.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -13131,10 +13824,10 @@ 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| *
|
| - * [zone] - Name of the zone resource to return.
|
| + * [urlMap] - Name of the UrlMap scoping this request.
|
| * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| *
|
| - * Completes with a [Zone].
|
| + * Completes with a [Operation].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -13142,7 +13835,7 @@ class ZonesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Zone> get(core.String project, core.String zone) {
|
| + async.Future<Operation> invalidateCache(CacheInvalidationRule request, core.String project, core.String urlMap) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -13150,27 +13843,30 @@ class ZonesResourceApi {
|
| 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 = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone');
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/invalidateCache';
|
|
|
| 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 Operation.fromJson(data));
|
| }
|
|
|
| /**
|
| - * Retrieves the list of Zone resources available to the specified project.
|
| + * Retrieves the list of UrlMap resources available to the specified project.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -13209,11 +13905,22 @@ class ZonesResourceApi {
|
| * page of results in subsequent list requests.
|
| * Value must be between "0" and "500".
|
| *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| * nextPageToken returned by a previous list request to get the next page of
|
| * results.
|
| *
|
| - * Completes with a [ZoneList].
|
| + * Completes with a [UrlMapList].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| * error.
|
| @@ -13221,7 +13928,7 @@ class ZonesResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ZoneList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
|
| + async.Future<UrlMapList> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -13238,11 +13945,14 @@ class ZonesResourceApi {
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$project') + '/zones';
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -13251,84 +13961,1693 @@ class ZonesResourceApi {
|
| uploadOptions: _uploadOptions,
|
| uploadMedia: _uploadMedia,
|
| downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ZoneList.fromJson(data));
|
| + return _response.then((data) => new UrlMapList.fromJson(data));
|
| }
|
|
|
| -}
|
| -
|
| -
|
| -
|
| -/**
|
| - * An access configuration attached to an instance's network interface. Only one
|
| - * access config per instance is supported.
|
| - */
|
| -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"
|
| + * Updates the specified UrlMap resource with the data included in the
|
| + * request. This method supports patch semantics.
|
| + *
|
| + * [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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [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 [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| */
|
| - core.String type;
|
| -
|
| - AccessConfig();
|
| + async.Future<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 = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
|
|
| - AccessConfig.fromJson(core.Map _json) {
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + 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 (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| }
|
| - }
|
|
|
| - 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;
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| }
|
| -}
|
|
|
| -/** 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 description of this resource. Provide this property when you
|
| - * create the resource.
|
| + * Updates the specified UrlMap resource with 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [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 [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) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Runs static validation for the UrlMap. In particular, the tests of the
|
| + * provided UrlMap will be run. Calling this method does NOT create the
|
| + * UrlMap.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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 [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) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (urlMap == null) {
|
| + throw new core.ArgumentError("Parameter urlMap is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + commons.Escaper.ecapeVariable('$urlMap') + '/validate';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new UrlMapsValidateResponse.fromJson(data));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +class VpnTunnelsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + VpnTunnelsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Retrieves an aggregated list of VPN tunnels.
|
| + *
|
| + * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * Completes with a [VpnTunnelAggregatedList].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<VpnTunnelAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, 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 (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [vpnTunnel] - Name of the VpnTunnel resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Operation> delete(core.String project, core.String region, core.String vpnTunnel) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (vpnTunnel == null) {
|
| + throw new core.ArgumentError("Parameter vpnTunnel is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Returns the specified VpnTunnel resource. Get a list of available VPN
|
| + * tunnels by making a list() request.
|
| + *
|
| + * 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [vpnTunnel] - Name of the VpnTunnel resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [VpnTunnel].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<VpnTunnel> get(core.String project, core.String region, core.String vpnTunnel) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (vpnTunnel == null) {
|
| + throw new core.ArgumentError("Parameter vpnTunnel is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('$vpnTunnel');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new VpnTunnel.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Creates a VpnTunnel resource in the specified project and region using the
|
| + * data included in the request.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Operation> insert(VpnTunnel request, core.String project, core.String region) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/vpnTunnels';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Retrieves a 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [region] - Name of the region for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * 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 orderBy, core.String pageToken}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (region == null) {
|
| + throw new core.ArgumentError("Parameter region is required.");
|
| + }
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + 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));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +class ZoneOperationsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ZoneOperationsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Deletes the specified zone-specific Operations resource.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [zone] - Name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [operation] - Name of the Operations resource to delete.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future delete(core.String project, core.String zone, core.String operation) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (operation == null) {
|
| + throw new core.ArgumentError("Parameter operation is required.");
|
| + }
|
| +
|
| + _downloadOptions = null;
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => null);
|
| + }
|
| +
|
| + /**
|
| + * Retrieves the specified zone-specific Operations resource.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID for this request.
|
| + * Value must have pattern
|
| + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [zone] - Name of the zone for this request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [operation] - Name of the Operations resource to return.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Operation> get(core.String project, core.String zone, core.String operation) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (zone == null) {
|
| + throw new core.ArgumentError("Parameter zone is required.");
|
| + }
|
| + if (operation == null) {
|
| + throw new core.ArgumentError("Parameter operation is required.");
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Retrieves a 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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [zone] - Name of the zone for request.
|
| + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * 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 orderBy, 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 (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + 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. Get a list of available zones by
|
| + * making a list() request.
|
| + *
|
| + * 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-z0-9](?:[-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-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
|
| + *
|
| + * [filter] - Sets a filter expression for filtering listed resources, in the
|
| + * form filter={expression}. Your {expression} must be in the format:
|
| + * field_name comparison_string literal_string.
|
| + *
|
| + * The field_name is the name of the field you want to compare. Only atomic
|
| + * field types are supported (string, number, boolean). The comparison_string
|
| + * must be either eq (equals) or ne (not equals). The literal_string is the
|
| + * string value to filter to. The literal value must be valid for the type of
|
| + * field you are filtering by (string, number, boolean). For string fields,
|
| + * the literal value is interpreted as a regular expression using RE2 syntax.
|
| + * The literal value must match the entire field.
|
| + *
|
| + * For example, to filter for instances that do not have a name of
|
| + * example-instance, you would use filter=name ne example-instance.
|
| + *
|
| + * You can filter on nested fields. For example, you could filter on instances
|
| + * that have set the scheduling.automaticRestart field to true. Use filtering
|
| + * on nested fields to take advantage of labels to organize and search for
|
| + * results based on label values.
|
| + *
|
| + * To filter on multiple expressions, provide each separate expression within
|
| + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
|
| + * us-central1-f). Multiple expressions are treated as AND expressions,
|
| + * meaning that resources must match all expressions to pass the filters.
|
| + *
|
| + * [maxResults] - The maximum number of results per page that should be
|
| + * returned. If the number of available results is larger than maxResults,
|
| + * Compute Engine returns a nextPageToken that can be used to get the next
|
| + * page of results in subsequent list requests.
|
| + * Value must be between "0" and "500".
|
| + *
|
| + * [orderBy] - Sorts list results by a certain order. By default, results are
|
| + * returned in alphanumerical order based on the resource name.
|
| + *
|
| + * You can also sort results in descending order based on the creation
|
| + * timestamp using orderBy="creationTimestamp desc". This sorts results based
|
| + * on the creationTimestamp field in reverse chronological order (newest
|
| + * result first). Use this to sort resources like operations so that the
|
| + * newest operation is returned first.
|
| + *
|
| + * Currently, only sorting by name or creationTimestamp desc is supported.
|
| + *
|
| + * [pageToken] - Specifies a page token to use. Set pageToken to the
|
| + * nextPageToken returned by a previous list request to get the next page of
|
| + * results.
|
| + *
|
| + * 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 orderBy, 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 (orderBy != null) {
|
| + _queryParams["orderBy"] = [orderBy];
|
| + }
|
| + 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. Only one
|
| + * access config per instance is supported.
|
| + */
|
| +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 description of this resource. Provide this property when you
|
| + * create the resource.
|
| + */
|
| + core.String description;
|
| + /**
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * 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] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| + */
|
| + 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 addresses. */
|
| +class AddressList {
|
| + /**
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| + */
|
| + core.String id;
|
| + /** [Output Only] A list of addresses. */
|
| + core.List<Address> items;
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#addressList for lists of
|
| + * addresses.
|
| + */
|
| + core.String kind;
|
| + /**
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| + */
|
| + 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 that provides more detail on the warning being
|
| + * returned. For example, for warnings where there are no results in a list
|
| + * request for a particular zone, this key might be scope and the key value
|
| + * might be the zone name. Other examples might be a key indicating a
|
| + * deprecated resource and a suggested replacement, or a warning about invalid
|
| + * network settings (for example, if an instance attempts to perform IP
|
| + * forwarding but is not enabled for IP forwarding).
|
| + */
|
| + 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] A warning code, if applicable. For example, Compute Engine
|
| + * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| + * Possible string values are:
|
| + * - "CLEANUP_FAILED"
|
| + * - "DEPRECATED_RESOURCE_USED"
|
| + * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| + * - "FIELD_VALUE_OVERRIDEN"
|
| + * - "INJECTED_KERNELS_DEPRECATED"
|
| + * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| + * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| + * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| + * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| + * - "NEXT_HOP_NOT_RUNNING"
|
| + * - "NOT_CRITICAL_ERROR"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| + */
|
| + core.String code;
|
| + /**
|
| + * [Output Only] Metadata about this warning in key: value format. For
|
| + * example:
|
| + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| + */
|
| + core.List<AddressesScopedListWarningData> data;
|
| + /** [Output Only] A human-readable description of the warning code. */
|
| + 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/disk/by-id/google-* 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;
|
| + /**
|
| + * Encrypts or decrypts a disk using a customer-supplied encryption key.
|
| + *
|
| + * If you are creating a new disk, this field encrypts the new disk using an
|
| + * encryption key that you provide. If you are attaching an existing disk that
|
| + * is already encrypted, this field decrypts the disk using the
|
| + * customer-supplied encryption key.
|
| + *
|
| + * If you encrypt a disk using a customer-supplied key, you must provide the
|
| + * same key again when you attempt to use this resource at a later time. For
|
| + * example, you must provide the key when you create a snapshot or an image
|
| + * from the disk or when you attach the disk to a virtual machine instance.
|
| + *
|
| + * If you do not provide an encryption key, then the disk will be encrypted
|
| + * using an automatically generated key and you do not need to provide a key
|
| + * to use the disk later.
|
| + *
|
| + * Instance templates do not store customer-supplied encryption keys, so you
|
| + * cannot use your own keys to encrypt disks in a managed instance group.
|
| + */
|
| + CustomerEncryptionKey diskEncryptionKey;
|
| + /**
|
| + * 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;
|
| + /**
|
| + * Specifies the disk interface to use for attaching this disk, which is
|
| + * either SCSI or NVME. The default is SCSI. Persistent disks must always use
|
| + * SCSI and the request will fail if you attempt to attach a persistent disk
|
| + * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For
|
| + * performance characteristics of SCSI over NVMe, see Local SSD performance.
|
| + * 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. When creating a new instance, one of initializeParams.sourceImage
|
| + * or disks.source is required.
|
| + *
|
| + * If desired, you can also attach existing non-root persistent disks using
|
| + * this property. This field is only applicable for persistent disks.
|
| + *
|
| + * Note that for InstanceTemplate, specify the disk name, not the URL for the
|
| + * disk.
|
| + */
|
| + 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("diskEncryptionKey")) {
|
| + diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| + }
|
| + 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 (diskEncryptionKey != null) {
|
| + _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| + }
|
| + 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 Note that for InstanceTemplate, this is
|
| + * the name of the disk type, not URL.
|
| + */
|
| + core.String diskType;
|
| + /**
|
| + * The source image to create this disk. When creating a new instance, one of
|
| + * initializeParams.sourceImage or disks.source is required.
|
| + *
|
| + * To create a disk with one of the public operating system images, specify
|
| + * the image by its family name. For example, specify family/debian-8 to use
|
| + * the latest Debian 8 image:
|
| + *
|
| + * projects/debian-cloud/global/images/family/debian-8
|
| + *
|
| + * Alternatively, use a specific version of a public operating system image:
|
| + *
|
| + * projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
|
| + *
|
| + * To create a disk with a private image that you created, specify the image
|
| + * name in the following format:
|
| + *
|
| + * global/images/my-private-image
|
| + *
|
| + * You can also specify a private image by its image family, which returns the
|
| + * latest version of the image in that family. Replace the image name with
|
| + * family/family-name:
|
| + *
|
| + * global/images/family/my-private-family
|
| + *
|
| + * If the source image is deleted later, this field will not be set.
|
| + */
|
| + core.String sourceImage;
|
| + /**
|
| + * The customer-supplied encryption key of the source image. Required if the
|
| + * source image is protected by a customer-supplied encryption key.
|
| + *
|
| + * Instance templates do not store customer-supplied encryption keys, so you
|
| + * cannot create disks for instances in a managed instance group if the source
|
| + * images are encrypted with your own keys.
|
| + */
|
| + CustomerEncryptionKey sourceImageEncryptionKey;
|
| +
|
| + 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"];
|
| + }
|
| + if (_json.containsKey("sourceImageEncryptionKey")) {
|
| + sourceImageEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceImageEncryptionKey"]);
|
| + }
|
| + }
|
| +
|
| + 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;
|
| + }
|
| + if (sourceImageEncryptionKey != null) {
|
| + _json["sourceImageEncryptionKey"] = (sourceImageEncryptionKey).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * Represents an Autoscaler resource. Autoscalers allow you to automatically
|
| + * scale virtual machine instances in managed instance groups according to an
|
| + * autoscaling policy that you define. For more information, read Autoscaling
|
| + * Groups of Instances.
|
| + */
|
| +class Autoscaler {
|
| + /**
|
| + * The configuration parameters for the autoscaling algorithm. You can define
|
| + * one or more of the policies for an autoscaler: cpuUtilization,
|
| + * customMetricUtilizations, and loadBalancingUtilization.
|
| + *
|
| + * If none of these are specified, the default will be to autoscale based on
|
| + * cpuUtilization to 0.6 or 60%.
|
| + */
|
| + AutoscalingPolicy autoscalingPolicy;
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
| + /**
|
| + * An optional description of this resource. Provide this property when you
|
| + * create the resource.
|
| */
|
| core.String description;
|
| /**
|
| @@ -13337,7 +15656,8 @@ class Address {
|
| */
|
| core.String id;
|
| /**
|
| - * [Output Only] Type of the resource. Always compute#address for addresses.
|
| + * [Output Only] Type of the resource. Always compute#autoscaler for
|
| + * autoscalers.
|
| */
|
| core.String kind;
|
| /**
|
| @@ -13351,30 +15671,25 @@ class Address {
|
| */
|
| core.String name;
|
| /**
|
| - * [Output Only] URL of the region where the regional address resides. This
|
| - * field is not applicable to global addresses.
|
| + * [Output Only] URL of the region where the instance group resides (for
|
| + * autoscalers living in regional scope).
|
| */
|
| core.String region;
|
| /** [Output Only] Server-defined URL for the resource. */
|
| core.String selfLink;
|
| + /** URL of the managed instance group that this autoscaler will scale. */
|
| + core.String target;
|
| /**
|
| - * [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"
|
| + * [Output Only] URL of the zone where the instance group resides (for
|
| + * autoscalers living in zonal scope).
|
| */
|
| - core.String status;
|
| - /** [Output Only] The URLs of the resources that are using this address. */
|
| - core.List<core.String> users;
|
| + core.String zone;
|
|
|
| - Address();
|
| + Autoscaler();
|
|
|
| - Address.fromJson(core.Map _json) {
|
| - if (_json.containsKey("address")) {
|
| - address = _json["address"];
|
| + Autoscaler.fromJson(core.Map _json) {
|
| + if (_json.containsKey("autoscalingPolicy")) {
|
| + autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolicy"]);
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| @@ -13397,18 +15712,18 @@ class Address {
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| + if (_json.containsKey("target")) {
|
| + target = _json["target"];
|
| }
|
| - if (_json.containsKey("users")) {
|
| - users = _json["users"];
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (address != null) {
|
| - _json["address"] = address;
|
| + if (autoscalingPolicy != null) {
|
| + _json["autoscalingPolicy"] = (autoscalingPolicy).toJson();
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| @@ -13431,26 +15746,27 @@ class Address {
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| + if (target != null) {
|
| + _json["target"] = target;
|
| }
|
| - if (users != null) {
|
| - _json["users"] = users;
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -class AddressAggregatedList {
|
| +class AutoscalerAggregatedList {
|
| /**
|
| - * [Output Only] Unique identifier for the resource; defined by the server.
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| */
|
| core.String id;
|
| - /** [Output Only] A map of scoped address lists. */
|
| - core.Map<core.String, AddressesScopedList> items;
|
| + /** A map of scoped autoscaler lists. */
|
| + core.Map<core.String, AutoscalersScopedList> items;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#addressAggregatedList for
|
| - * aggregated lists of addresses.
|
| + * [Output Only] Type of resource. Always compute#autoscalerAggregatedList for
|
| + * aggregated lists of autoscalers.
|
| */
|
| core.String kind;
|
| /**
|
| @@ -13464,14 +15780,14 @@ class AddressAggregatedList {
|
| /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| - AddressAggregatedList();
|
| + AutoscalerAggregatedList();
|
|
|
| - AddressAggregatedList.fromJson(core.Map _json) {
|
| + AutoscalerAggregatedList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = commons.mapMap(_json["items"], (item) => new AddressesScopedList.fromJson(item));
|
| + items = commons.mapMap(_json["items"], (item) => new AutoscalersScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -13505,18 +15821,18 @@ class AddressAggregatedList {
|
| }
|
| }
|
|
|
| -/** Contains a list of addresses. */
|
| -class AddressList {
|
| +/** Contains a list of Autoscaler resources. */
|
| +class AutoscalerList {
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| - /** [Output Only] A list of addresses. */
|
| - core.List<Address> items;
|
| + /** A list of Autoscaler resources. */
|
| + core.List<Autoscaler> items;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#addressList for lists of
|
| - * addresses.
|
| + * [Output Only] Type of resource. Always compute#autoscalerList for lists of
|
| + * autoscalers.
|
| */
|
| core.String kind;
|
| /**
|
| @@ -13527,17 +15843,17 @@ class AddressList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| - AddressList();
|
| + AutoscalerList();
|
|
|
| - AddressList.fromJson(core.Map _json) {
|
| + AutoscalerList.fromJson(core.Map _json) {
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Address.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -13571,7 +15887,7 @@ class AddressList {
|
| }
|
| }
|
|
|
| -class AddressesScopedListWarningData {
|
| +class AutoscalersScopedListWarningData {
|
| /**
|
| * [Output Only] A key that provides more detail on the warning being
|
| * returned. For example, for warnings where there are no results in a list
|
| @@ -13585,9 +15901,9 @@ class AddressesScopedListWarningData {
|
| /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
| - AddressesScopedListWarningData();
|
| + AutoscalersScopedListWarningData();
|
|
|
| - AddressesScopedListWarningData.fromJson(core.Map _json) {
|
| + AutoscalersScopedListWarningData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -13609,10 +15925,10 @@ class AddressesScopedListWarningData {
|
| }
|
|
|
| /**
|
| - * [Output Only] Informational warning which replaces the list of addresses when
|
| - * the list is empty.
|
| + * [Output Only] Informational warning which replaces the list of autoscalers
|
| + * when the list is empty.
|
| */
|
| -class AddressesScopedListWarning {
|
| +class AutoscalersScopedListWarning {
|
| /**
|
| * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| @@ -13640,18 +15956,18 @@ class AddressesScopedListWarning {
|
| * example:
|
| * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| */
|
| - core.List<AddressesScopedListWarningData> data;
|
| + core.List<AutoscalersScopedListWarningData> data;
|
| /** [Output Only] A human-readable description of the warning code. */
|
| core.String message;
|
|
|
| - AddressesScopedListWarning();
|
| + AutoscalersScopedListWarning();
|
|
|
| - AddressesScopedListWarning.fromJson(core.Map _json) {
|
| + AutoscalersScopedListWarning.fromJson(core.Map _json) {
|
| if (_json.containsKey("code")) {
|
| code = _json["code"];
|
| }
|
| if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new AddressesScopedListWarningData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new AutoscalersScopedListWarningData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -13673,30 +15989,30 @@ class AddressesScopedListWarning {
|
| }
|
| }
|
|
|
| -class AddressesScopedList {
|
| - /** [Output Only] List of addresses contained in this scope. */
|
| - core.List<Address> addresses;
|
| +class AutoscalersScopedList {
|
| + /** [Output Only] List of autoscalers contained in this scope. */
|
| + core.List<Autoscaler> autoscalers;
|
| /**
|
| - * [Output Only] Informational warning which replaces the list of addresses
|
| + * [Output Only] Informational warning which replaces the list of autoscalers
|
| * when the list is empty.
|
| */
|
| - AddressesScopedListWarning warning;
|
| + AutoscalersScopedListWarning warning;
|
|
|
| - AddressesScopedList();
|
| + AutoscalersScopedList();
|
|
|
| - AddressesScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("addresses")) {
|
| - addresses = _json["addresses"].map((value) => new Address.fromJson(value)).toList();
|
| + AutoscalersScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("autoscalers")) {
|
| + autoscalers = _json["autoscalers"].map((value) => new Autoscaler.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("warning")) {
|
| - warning = new AddressesScopedListWarning.fromJson(_json["warning"]);
|
| + warning = new AutoscalersScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (addresses != null) {
|
| - _json["addresses"] = addresses.map((value) => (value).toJson()).toList();
|
| + if (autoscalers != null) {
|
| + _json["autoscalers"] = autoscalers.map((value) => (value).toJson()).toList();
|
| }
|
| if (warning != null) {
|
| _json["warning"] = (warning).toJson();
|
| @@ -13705,315 +16021,379 @@ class AddressesScopedList {
|
| }
|
| }
|
|
|
| -/** An instance-attached disk resource. */
|
| -class AttachedDisk {
|
| - /**
|
| - * Specifies whether the disk will be auto-deleted when the instance is
|
| - * deleted (but not when the disk is detached from the instance).
|
| - */
|
| - core.bool autoDelete;
|
| - /**
|
| - * Indicates that this is a boot disk. The virtual machine will use the first
|
| - * partition of the disk for its root filesystem.
|
| - */
|
| - core.bool boot;
|
| - /**
|
| - * Specifies a unique device name of your choice that is reflected into the
|
| - * /dev/disk/by-id/google-* 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;
|
| +/** Cloud Autoscaler policy. */
|
| +class AutoscalingPolicy {
|
| /**
|
| - * Encrypts or decrypts a disk using a customer-supplied encryption key.
|
| - *
|
| - * If you are creating a new disk, this field encrypts the new disk using an
|
| - * encryption key that you provide. If you are attaching an existing disk that
|
| - * is already encrypted, this field decrypts the disk using the
|
| - * customer-supplied encryption key.
|
| - *
|
| - * If you encrypt a disk using a customer-supplied key, you must provide the
|
| - * same key again when you attempt to use this resource at a later time. For
|
| - * example, you must provide the key when you create a snapshot or an image
|
| - * from the disk or when you attach the disk to a virtual machine instance.
|
| - *
|
| - * If you do not provide an encryption key, then the disk will be encrypted
|
| - * using an automatically generated key and you do not need to provide a key
|
| - * to use the disk later.
|
| + * The number of seconds that the autoscaler should wait before it starts
|
| + * collecting information from a new instance. This prevents the autoscaler
|
| + * from collecting information when the instance is initializing, during which
|
| + * the collected usage would not be reliable. The default time autoscaler
|
| + * waits is 60 seconds.
|
| *
|
| - * Instance templates do not store customer-supplied encryption keys, so you
|
| - * cannot use your own keys to encrypt disks in a managed instance group.
|
| + * Virtual machine initialization times might vary because of numerous
|
| + * factors. We recommend that you test how long an instance may take to
|
| + * initialize. To do this, create an instance and time the startup process.
|
| */
|
| - CustomerEncryptionKey diskEncryptionKey;
|
| + core.int coolDownPeriodSec;
|
| /**
|
| - * 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.
|
| + * Defines the CPU utilization policy that allows the autoscaler to scale
|
| + * based on the average CPU utilization of a managed instance group.
|
| */
|
| - core.int index;
|
| + AutoscalingPolicyCpuUtilization cpuUtilization;
|
| + /** Configuration parameters of autoscaling based on a custom metric. */
|
| + core.List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations;
|
| + /** Configuration parameters of autoscaling based on load balancer. */
|
| + AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization;
|
| /**
|
| - * [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.
|
| + * The maximum number of instances that the autoscaler can scale up to. This
|
| + * is required when creating or updating an autoscaler. The maximum number of
|
| + * replicas should not be lower than minimal number of replicas.
|
| */
|
| - AttachedDiskInitializeParams initializeParams;
|
| + core.int maxNumReplicas;
|
| /**
|
| - * Specifies the disk interface to use for attaching this disk, which is
|
| - * either SCSI or NVME. The default is SCSI. Persistent disks must always use
|
| - * SCSI and the request will fail if you attempt to attach a persistent disk
|
| - * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For
|
| - * performance characteristics of SCSI over NVMe, see Local SSD performance.
|
| - * Possible string values are:
|
| - * - "NVME"
|
| - * - "SCSI"
|
| + * The minimum number of replicas that the autoscaler can scale down to. This
|
| + * cannot be less than 0. If not provided, autoscaler will choose a default
|
| + * value depending on maximum number of instances allowed.
|
| */
|
| - core.String interface;
|
| + core.int minNumReplicas;
|
| +
|
| + AutoscalingPolicy();
|
| +
|
| + AutoscalingPolicy.fromJson(core.Map _json) {
|
| + if (_json.containsKey("coolDownPeriodSec")) {
|
| + coolDownPeriodSec = _json["coolDownPeriodSec"];
|
| + }
|
| + if (_json.containsKey("cpuUtilization")) {
|
| + cpuUtilization = new AutoscalingPolicyCpuUtilization.fromJson(_json["cpuUtilization"]);
|
| + }
|
| + if (_json.containsKey("customMetricUtilizations")) {
|
| + customMetricUtilizations = _json["customMetricUtilizations"].map((value) => new AutoscalingPolicyCustomMetricUtilization.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("loadBalancingUtilization")) {
|
| + loadBalancingUtilization = new AutoscalingPolicyLoadBalancingUtilization.fromJson(_json["loadBalancingUtilization"]);
|
| + }
|
| + if (_json.containsKey("maxNumReplicas")) {
|
| + maxNumReplicas = _json["maxNumReplicas"];
|
| + }
|
| + if (_json.containsKey("minNumReplicas")) {
|
| + minNumReplicas = _json["minNumReplicas"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (coolDownPeriodSec != null) {
|
| + _json["coolDownPeriodSec"] = coolDownPeriodSec;
|
| + }
|
| + if (cpuUtilization != null) {
|
| + _json["cpuUtilization"] = (cpuUtilization).toJson();
|
| + }
|
| + if (customMetricUtilizations != null) {
|
| + _json["customMetricUtilizations"] = customMetricUtilizations.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (loadBalancingUtilization != null) {
|
| + _json["loadBalancingUtilization"] = (loadBalancingUtilization).toJson();
|
| + }
|
| + if (maxNumReplicas != null) {
|
| + _json["maxNumReplicas"] = maxNumReplicas;
|
| + }
|
| + if (minNumReplicas != null) {
|
| + _json["minNumReplicas"] = minNumReplicas;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** CPU utilization policy. */
|
| +class AutoscalingPolicyCpuUtilization {
|
| /**
|
| - * [Output Only] Type of the resource. Always compute#attachedDisk for
|
| - * attached disks.
|
| + * The target CPU utilization that the autoscaler should maintain. Must be a
|
| + * float value in the range (0, 1]. If not specified, the default is 0.6.
|
| + *
|
| + * If the CPU level is below the target utilization, the autoscaler scales
|
| + * down the number of instances until it reaches the minimum number of
|
| + * instances you specified or until the average CPU of your instances reaches
|
| + * the target utilization.
|
| + *
|
| + * If the average CPU is above the target utilization, the autoscaler scales
|
| + * up until it reaches the maximum number of instances you specified or until
|
| + * the average utilization reaches the target utilization.
|
| */
|
| - 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.double utilizationTarget;
|
| +
|
| + AutoscalingPolicyCpuUtilization();
|
| +
|
| + AutoscalingPolicyCpuUtilization.fromJson(core.Map _json) {
|
| + if (_json.containsKey("utilizationTarget")) {
|
| + utilizationTarget = _json["utilizationTarget"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (utilizationTarget != null) {
|
| + _json["utilizationTarget"] = utilizationTarget;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** Custom utilization metric policy. */
|
| +class AutoscalingPolicyCustomMetricUtilization {
|
| + /**
|
| + * The identifier of the Stackdriver Monitoring metric. The metric cannot have
|
| + * negative values and should be a utilization metric, which means that the
|
| + * number of virtual machines handling requests should increase or decrease
|
| + * proportionally to the metric. The metric must also have a label of
|
| + * compute.googleapis.com/resource_id with the value of the instance's unique
|
| + * ID, although this alone does not guarantee that the metric is valid.
|
| + *
|
| + * For example, the following is a valid metric:
|
| + * compute.googleapis.com/instance/network/received_bytes_count
|
| + * The following is not a valid metric because it does not increase or
|
| + * decrease based on usage:
|
| + * compute.googleapis.com/instance/cpu/reserved_cores
|
| */
|
| - core.String mode;
|
| + core.String metric;
|
| /**
|
| - * Specifies a valid partial or full URL to an existing Persistent Disk
|
| - * resource. This field is only applicable for persistent disks. Note that for
|
| - * InstanceTemplate, it is just disk name, not URL for the disk.
|
| + * Target value of the metric which autoscaler should maintain. Must be a
|
| + * positive value.
|
| */
|
| - core.String source;
|
| + core.double utilizationTarget;
|
| /**
|
| - * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
|
| - * specified, the default is PERSISTENT.
|
| + * Defines how target utilization value is expressed for a Stackdriver
|
| + * Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If
|
| + * not specified, the default is GAUGE.
|
| * Possible string values are:
|
| - * - "PERSISTENT"
|
| - * - "SCRATCH"
|
| + * - "DELTA_PER_MINUTE"
|
| + * - "DELTA_PER_SECOND"
|
| + * - "GAUGE"
|
| */
|
| - core.String type;
|
| + core.String utilizationTargetType;
|
|
|
| - AttachedDisk();
|
| + AutoscalingPolicyCustomMetricUtilization();
|
|
|
| - 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("diskEncryptionKey")) {
|
| - diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| - }
|
| - 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"];
|
| + AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) {
|
| + if (_json.containsKey("metric")) {
|
| + metric = _json["metric"];
|
| }
|
| - if (_json.containsKey("source")) {
|
| - source = _json["source"];
|
| + if (_json.containsKey("utilizationTarget")) {
|
| + utilizationTarget = _json["utilizationTarget"];
|
| }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| + if (_json.containsKey("utilizationTargetType")) {
|
| + utilizationTargetType = _json["utilizationTargetType"];
|
| }
|
| }
|
|
|
| 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 (diskEncryptionKey != null) {
|
| - _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| - }
|
| - 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 (metric != null) {
|
| + _json["metric"] = metric;
|
| }
|
| - if (licenses != null) {
|
| - _json["licenses"] = licenses;
|
| + if (utilizationTarget != null) {
|
| + _json["utilizationTarget"] = utilizationTarget;
|
| }
|
| - if (mode != null) {
|
| - _json["mode"] = mode;
|
| + if (utilizationTargetType != null) {
|
| + _json["utilizationTargetType"] = utilizationTargetType;
|
| }
|
| - if (source != null) {
|
| - _json["source"] = source;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** Configuration parameters of autoscaling based on load balancing. */
|
| +class AutoscalingPolicyLoadBalancingUtilization {
|
| + /**
|
| + * Fraction of backend capacity utilization (set in HTTP(s) load balancing
|
| + * configuration) that autoscaler should maintain. Must be a positive float
|
| + * value. If not defined, the default is 0.8.
|
| + */
|
| + core.double utilizationTarget;
|
| +
|
| + AutoscalingPolicyLoadBalancingUtilization();
|
| +
|
| + AutoscalingPolicyLoadBalancingUtilization.fromJson(core.Map _json) {
|
| + if (_json.containsKey("utilizationTarget")) {
|
| + utilizationTarget = _json["utilizationTarget"];
|
| }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (utilizationTarget != null) {
|
| + _json["utilizationTarget"] = utilizationTarget;
|
| }
|
| 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 {
|
| +/** Message containing information of one individual backend. */
|
| +class Backend {
|
| /**
|
| - * Specifies the disk name. If not specified, the default is to use the name
|
| - * of the instance.
|
| + * Specifies the balancing mode for this backend. For global HTTP(S) or
|
| + * TCP/SSL load balancing, the default is UTILIZATION. Valid values are
|
| + * UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
|
| + *
|
| + * This cannot be used for internal load balancing.
|
| + * Possible string values are:
|
| + * - "CONNECTION"
|
| + * - "RATE"
|
| + * - "UTILIZATION"
|
| */
|
| - core.String diskName;
|
| - /** Specifies the size of the disk in base-2 GB. */
|
| - core.String diskSizeGb;
|
| + core.String balancingMode;
|
| /**
|
| - * 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
|
| + * A multiplier applied to the group's maximum servicing capacity (based on
|
| + * UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group
|
| + * will serve up to 100% of its configured capacity (depending on
|
| + * balancingMode). A setting of 0 means the group is completely drained,
|
| + * offering 0% of its available Capacity. Valid range is [0.0,1.0].
|
| *
|
| - * 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 Note that for InstanceTemplate, this is
|
| - * the name of the disk type, not URL.
|
| + * This cannot be used for internal load balancing.
|
| */
|
| - core.String diskType;
|
| + core.double capacityScaler;
|
| /**
|
| - * The source image used to create this disk. If the source image is deleted,
|
| - * this field will not be set.
|
| - *
|
| - * To create a disk with one of the public operating system images, specify
|
| - * the image by its family name. For example, specify family/debian-8 to use
|
| - * the latest Debian 8 image:
|
| - *
|
| - * projects/debian-cloud/global/images/family/debian-8
|
| + * An optional description of this resource. Provide this property when you
|
| + * create the resource.
|
| + */
|
| + core.String description;
|
| + /**
|
| + * The fully-qualified URL of a zonal Instance Group resource. This instance
|
| + * group defines the list of instances that serve traffic. Member virtual
|
| + * machine instances from each instance group must live in the same zone as
|
| + * the instance group itself. No two backends in a backend service are allowed
|
| + * to use same Instance Group resource.
|
| *
|
| - * Alternatively, use a specific version of a public operating system image:
|
| + * Note that you must specify an Instance Group resource using the
|
| + * fully-qualified URL, rather than a partial URL.
|
| *
|
| - * projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
|
| + * When the BackendService has load balancing scheme INTERNAL, the instance
|
| + * group must be in a zone within the same region as the BackendService.
|
| + */
|
| + core.String group;
|
| + /**
|
| + * The max number of simultaneous connections for the group. Can be used with
|
| + * either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode,
|
| + * either maxConnections or maxConnectionsPerInstance must be set.
|
| *
|
| - * To create a disk with a private image that you created, specify the image
|
| - * name in the following format:
|
| + * This cannot be used for internal load balancing.
|
| + */
|
| + core.int maxConnections;
|
| + /**
|
| + * The max number of simultaneous connections that a single backend instance
|
| + * can handle. This is used to calculate the capacity of the group. Can be
|
| + * used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION
|
| + * mode, either maxConnections or maxConnectionsPerInstance must be set.
|
| *
|
| - * global/images/my-private-image
|
| + * This cannot be used for internal load balancing.
|
| + */
|
| + core.int maxConnectionsPerInstance;
|
| + /**
|
| + * The max requests per second (RPS) of the group. Can be used with either
|
| + * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE
|
| + * mode, either maxRate or maxRatePerInstance must be set.
|
| *
|
| - * You can also specify a private image by its image family, which returns the
|
| - * latest version of the image in that family. Replace the image name with
|
| - * family/family-name:
|
| + * This cannot be used for internal load balancing.
|
| + */
|
| + core.int maxRate;
|
| + /**
|
| + * The max requests per second (RPS) that a single backend 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.
|
| *
|
| - * global/images/family/my-private-family
|
| + * This cannot be used for internal load balancing.
|
| */
|
| - core.String sourceImage;
|
| + core.double maxRatePerInstance;
|
| /**
|
| - * The customer-supplied encryption key of the source image. Required if the
|
| - * source image is protected by a customer-supplied encryption key.
|
| + * Used when balancingMode is UTILIZATION. This ratio defines the CPU
|
| + * utilization target for the group. The default is 0.8. Valid range is [0.0,
|
| + * 1.0].
|
| *
|
| - * Instance templates do not store customer-supplied encryption keys, so you
|
| - * cannot create disks for instances in a managed instance group if the source
|
| - * images are encrypted with your own keys.
|
| + * This cannot be used for internal load balancing.
|
| */
|
| - CustomerEncryptionKey sourceImageEncryptionKey;
|
| + core.double maxUtilization;
|
|
|
| - AttachedDiskInitializeParams();
|
| + Backend();
|
|
|
| - AttachedDiskInitializeParams.fromJson(core.Map _json) {
|
| - if (_json.containsKey("diskName")) {
|
| - diskName = _json["diskName"];
|
| + Backend.fromJson(core.Map _json) {
|
| + if (_json.containsKey("balancingMode")) {
|
| + balancingMode = _json["balancingMode"];
|
| }
|
| - if (_json.containsKey("diskSizeGb")) {
|
| - diskSizeGb = _json["diskSizeGb"];
|
| + if (_json.containsKey("capacityScaler")) {
|
| + capacityScaler = _json["capacityScaler"];
|
| }
|
| - if (_json.containsKey("diskType")) {
|
| - diskType = _json["diskType"];
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("group")) {
|
| + group = _json["group"];
|
| + }
|
| + if (_json.containsKey("maxConnections")) {
|
| + maxConnections = _json["maxConnections"];
|
| + }
|
| + if (_json.containsKey("maxConnectionsPerInstance")) {
|
| + maxConnectionsPerInstance = _json["maxConnectionsPerInstance"];
|
| }
|
| - if (_json.containsKey("sourceImage")) {
|
| - sourceImage = _json["sourceImage"];
|
| + if (_json.containsKey("maxRate")) {
|
| + maxRate = _json["maxRate"];
|
| }
|
| - if (_json.containsKey("sourceImageEncryptionKey")) {
|
| - sourceImageEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceImageEncryptionKey"]);
|
| + if (_json.containsKey("maxRatePerInstance")) {
|
| + maxRatePerInstance = _json["maxRatePerInstance"];
|
| + }
|
| + if (_json.containsKey("maxUtilization")) {
|
| + maxUtilization = _json["maxUtilization"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (diskName != null) {
|
| - _json["diskName"] = diskName;
|
| + if (balancingMode != null) {
|
| + _json["balancingMode"] = balancingMode;
|
| }
|
| - if (diskSizeGb != null) {
|
| - _json["diskSizeGb"] = diskSizeGb;
|
| + if (capacityScaler != null) {
|
| + _json["capacityScaler"] = capacityScaler;
|
| }
|
| - if (diskType != null) {
|
| - _json["diskType"] = diskType;
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| }
|
| - if (sourceImage != null) {
|
| - _json["sourceImage"] = sourceImage;
|
| + if (group != null) {
|
| + _json["group"] = group;
|
| }
|
| - if (sourceImageEncryptionKey != null) {
|
| - _json["sourceImageEncryptionKey"] = (sourceImageEncryptionKey).toJson();
|
| + if (maxConnections != null) {
|
| + _json["maxConnections"] = maxConnections;
|
| + }
|
| + if (maxConnectionsPerInstance != null) {
|
| + _json["maxConnectionsPerInstance"] = maxConnectionsPerInstance;
|
| + }
|
| + if (maxRate != null) {
|
| + _json["maxRate"] = maxRate;
|
| + }
|
| + if (maxRatePerInstance != null) {
|
| + _json["maxRatePerInstance"] = maxRatePerInstance;
|
| + }
|
| + if (maxUtilization != null) {
|
| + _json["maxUtilization"] = maxUtilization;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| /**
|
| - * Represents an Autoscaler resource. Autoscalers allow you to automatically
|
| - * scale virtual machine instances in managed instance groups according to an
|
| - * autoscaling policy that you define. For more information, read Autoscaling
|
| - * Groups of Instances.
|
| + * A BackendService resource. This resource defines a group of backend virtual
|
| + * machines and their serving capacity.
|
| */
|
| -class Autoscaler {
|
| +class BackendService {
|
| /**
|
| - * The configuration parameters for the autoscaling algorithm. You can define
|
| - * one or more of the policies for an autoscaler: cpuUtilization,
|
| - * customMetricUtilizations, and loadBalancingUtilization.
|
| + * Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If
|
| + * set to 0, the cookie is non-persistent and lasts only until the end of the
|
| + * browser session (or equivalent). The maximum allowed value for TTL is one
|
| + * day.
|
| *
|
| - * If none of these are specified, the default will be to autoscale based on
|
| - * cpuUtilization to 0.6 or 60%.
|
| + * When the load balancing scheme is INTERNAL, this field is not used.
|
| */
|
| - AutoscalingPolicy autoscalingPolicy;
|
| + core.int affinityCookieTtlSec;
|
| + /** The list of backends that serve this BackendService. */
|
| + core.List<Backend> backends;
|
| + ConnectionDraining connectionDraining;
|
| /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
| /**
|
| @@ -14022,13 +16402,42 @@ class Autoscaler {
|
| */
|
| core.String description;
|
| /**
|
| + * If true, enable Cloud CDN for this BackendService.
|
| + *
|
| + * When the load balancing scheme is INTERNAL, this field is not used.
|
| + */
|
| + core.bool enableCDN;
|
| + /**
|
| + * 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 convert.BASE64.decode(fingerprint);
|
| + }
|
| +
|
| + void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| + fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + }
|
| + /**
|
| + * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for
|
| + * health checking this BackendService. Currently at most one health check can
|
| + * be specified, and a health check is required.
|
| + *
|
| + * For internal load balancing, a URL to a HealthCheck resource must be
|
| + * specified instead.
|
| + */
|
| + core.List<core.String> healthChecks;
|
| + /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| /**
|
| - * [Output Only] Type of the resource. Always compute#autoscaler for
|
| - * autoscalers.
|
| + * [Output Only] Type of resource. Always compute#backendService for backend
|
| + * services.
|
| */
|
| core.String kind;
|
| /**
|
| @@ -14041,21 +16450,76 @@ class Autoscaler {
|
| * dash.
|
| */
|
| core.String name;
|
| + /**
|
| + * Deprecated in favor of portName. The TCP port to connect on the backend.
|
| + * The default value is 80.
|
| + *
|
| + * This cannot be used for internal load balancing.
|
| + */
|
| + core.int port;
|
| + /**
|
| + * Name of backend port. The same name should appear in the instance groups
|
| + * referenced by this service. Required when the load balancing scheme is
|
| + * EXTERNAL.
|
| + *
|
| + * When the load balancing scheme is INTERNAL, this field is not used.
|
| + */
|
| + core.String portName;
|
| + /**
|
| + * The protocol this BackendService uses to communicate with backends.
|
| + *
|
| + * Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
|
| + *
|
| + * For internal load balancing, the possible values are TCP and UDP, and the
|
| + * default is TCP.
|
| + * Possible string values are:
|
| + * - "HTTP"
|
| + * - "HTTPS"
|
| + * - "SSL"
|
| + * - "TCP"
|
| + */
|
| + core.String protocol;
|
| + /**
|
| + * [Output Only] URL of the region where the regional backend service resides.
|
| + * This field is not applicable to global backend services.
|
| + */
|
| + core.String region;
|
| /** [Output Only] Server-defined URL for the resource. */
|
| core.String selfLink;
|
| - /** URL of the managed instance group that this autoscaler will scale. */
|
| - core.String target;
|
| /**
|
| - * [Output Only] URL of the zone where the instance group resides (for
|
| - * autoscalers living in zonal scope).
|
| + * Type of session affinity to use. The default is NONE.
|
| + *
|
| + * When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or
|
| + * GENERATED_COOKIE.
|
| + *
|
| + * When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP,
|
| + * CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
|
| + *
|
| + * When the protocol is UDP, this field is not used.
|
| + * Possible string values are:
|
| + * - "CLIENT_IP"
|
| + * - "CLIENT_IP_PROTO"
|
| + * - "GENERATED_COOKIE"
|
| + * - "NONE"
|
| */
|
| - core.String zone;
|
| + core.String sessionAffinity;
|
| + /**
|
| + * How many seconds to wait for the backend before considering it a failed
|
| + * request. Default is 30 seconds.
|
| + */
|
| + core.int timeoutSec;
|
|
|
| - Autoscaler();
|
| + BackendService();
|
|
|
| - Autoscaler.fromJson(core.Map _json) {
|
| - if (_json.containsKey("autoscalingPolicy")) {
|
| - autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolicy"]);
|
| + BackendService.fromJson(core.Map _json) {
|
| + if (_json.containsKey("affinityCookieTtlSec")) {
|
| + affinityCookieTtlSec = _json["affinityCookieTtlSec"];
|
| + }
|
| + if (_json.containsKey("backends")) {
|
| + backends = _json["backends"].map((value) => new Backend.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("connectionDraining")) {
|
| + connectionDraining = new ConnectionDraining.fromJson(_json["connectionDraining"]);
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| @@ -14063,6 +16527,15 @@ class Autoscaler {
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("enableCDN")) {
|
| + enableCDN = _json["enableCDN"];
|
| + }
|
| + if (_json.containsKey("fingerprint")) {
|
| + fingerprint = _json["fingerprint"];
|
| + }
|
| + if (_json.containsKey("healthChecks")) {
|
| + healthChecks = _json["healthChecks"];
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -14072,21 +16545,39 @@ class Autoscaler {
|
| 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("region")) {
|
| + region = _json["region"];
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("target")) {
|
| - target = _json["target"];
|
| + if (_json.containsKey("sessionAffinity")) {
|
| + sessionAffinity = _json["sessionAffinity"];
|
| }
|
| - if (_json.containsKey("zone")) {
|
| - zone = _json["zone"];
|
| + if (_json.containsKey("timeoutSec")) {
|
| + timeoutSec = _json["timeoutSec"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (autoscalingPolicy != null) {
|
| - _json["autoscalingPolicy"] = (autoscalingPolicy).toJson();
|
| + if (affinityCookieTtlSec != null) {
|
| + _json["affinityCookieTtlSec"] = affinityCookieTtlSec;
|
| + }
|
| + if (backends != null) {
|
| + _json["backends"] = backends.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (connectionDraining != null) {
|
| + _json["connectionDraining"] = (connectionDraining).toJson();
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| @@ -14094,6 +16585,15 @@ class Autoscaler {
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| + if (enableCDN != null) {
|
| + _json["enableCDN"] = enableCDN;
|
| + }
|
| + if (fingerprint != null) {
|
| + _json["fingerprint"] = fingerprint;
|
| + }
|
| + if (healthChecks != null) {
|
| + _json["healthChecks"] = healthChecks;
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
| @@ -14103,117 +16603,88 @@ class Autoscaler {
|
| 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 (region != null) {
|
| + _json["region"] = region;
|
| + }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (target != null) {
|
| - _json["target"] = target;
|
| + if (sessionAffinity != null) {
|
| + _json["sessionAffinity"] = sessionAffinity;
|
| }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (timeoutSec != null) {
|
| + _json["timeoutSec"] = timeoutSec;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -class AutoscalerAggregatedList {
|
| - /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| - */
|
| - core.String id;
|
| - /** A map of scoped autoscaler lists. */
|
| - core.Map<core.String, AutoscalersScopedList> items;
|
| - /**
|
| - * [Output Only] Type of resource. Always compute#autoscalerAggregatedList for
|
| - * aggregated lists of autoscalers.
|
| - */
|
| - core.String kind;
|
| +class BackendServiceGroupHealth {
|
| + core.List<HealthStatus> healthStatus;
|
| /**
|
| - * [Output Only] This token allows you to get the next page of results for
|
| - * list requests. If the number of results is larger than maxResults, use the
|
| - * nextPageToken as a value for the query parameter pageToken in the next list
|
| - * request. Subsequent list requests will have their own nextPageToken to
|
| - * continue paging through the results.
|
| - */
|
| - core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for this resource. */
|
| - core.String selfLink;
|
| + * [Output Only] Type of resource. Always compute#backendServiceGroupHealth
|
| + * for the health of backend services.
|
| + */
|
| + core.String kind;
|
|
|
| - AutoscalerAggregatedList();
|
| + BackendServiceGroupHealth();
|
|
|
| - AutoscalerAggregatedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = commons.mapMap(_json["items"], (item) => new AutoscalersScopedList.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"] = commons.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 Autoscaler resources. */
|
| -class AutoscalerList {
|
| +/** Contains a list of BackendService resources. */
|
| +class BackendServiceList {
|
| /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| + * [Output Only] Unique identifier for the resource; defined by the server.
|
| */
|
| core.String id;
|
| - /** A list of Autoscaler resources. */
|
| - core.List<Autoscaler> items;
|
| + /** A list of BackendService resources. */
|
| + core.List<BackendService> items;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#autoscalerList for lists of
|
| - * autoscalers.
|
| + * [Output Only] Type of resource. Always compute#backendServiceList for lists
|
| + * of backend services.
|
| */
|
| core.String kind;
|
| - /**
|
| - * [Output Only] This token allows you to get the next page of results for
|
| - * list requests. If the number of results is larger than maxResults, use the
|
| - * nextPageToken as a value for the query parameter pageToken in the next list
|
| - * request. Subsequent list requests will have their own nextPageToken to
|
| - * continue paging through the results.
|
| - */
|
| + /** [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;
|
|
|
| - AutoscalerList();
|
| + BackendServiceList();
|
|
|
| - AutoscalerList.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 Autoscaler.fromJson(value)).toList();
|
| + items = _json["items"].map((value) => new BackendService.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -14243,488 +16714,208 @@ class AutoscalerList {
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class AutoscalersScopedListWarningData {
|
| - /**
|
| - * [Output Only] A key that provides more detail on the warning being
|
| - * returned. For example, for warnings where there are no results in a list
|
| - * request for a particular zone, this key might be scope and the key value
|
| - * might be the zone name. Other examples might be a key indicating a
|
| - * deprecated resource and a suggested replacement, or a warning about invalid
|
| - * network settings (for example, if an instance attempts to perform IP
|
| - * forwarding but is not enabled for IP forwarding).
|
| - */
|
| - core.String key;
|
| - /** [Output Only] A warning data value corresponding to the key. */
|
| - core.String value;
|
| -
|
| - AutoscalersScopedListWarningData();
|
| -
|
| - AutoscalersScopedListWarningData.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 autoscalers
|
| - * when the list is empty.
|
| - */
|
| -class AutoscalersScopedListWarning {
|
| - /**
|
| - * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| - * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| - * Possible string values are:
|
| - * - "CLEANUP_FAILED"
|
| - * - "DEPRECATED_RESOURCE_USED"
|
| - * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| - * - "FIELD_VALUE_OVERRIDEN"
|
| - * - "INJECTED_KERNELS_DEPRECATED"
|
| - * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| - * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| - * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| - * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| - * - "NEXT_HOP_NOT_RUNNING"
|
| - * - "NOT_CRITICAL_ERROR"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| - * - "UNREACHABLE"
|
| - */
|
| - core.String code;
|
| - /**
|
| - * [Output Only] Metadata about this warning in key: value format. For
|
| - * example:
|
| - * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| - */
|
| - core.List<AutoscalersScopedListWarningData> data;
|
| - /** [Output Only] A human-readable description of the warning code. */
|
| - core.String message;
|
| -
|
| - AutoscalersScopedListWarning();
|
| -
|
| - AutoscalersScopedListWarning.fromJson(core.Map _json) {
|
| - if (_json.containsKey("code")) {
|
| - code = _json["code"];
|
| - }
|
| - if (_json.containsKey("data")) {
|
| - data = _json["data"].map((value) => new AutoscalersScopedListWarningData.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 AutoscalersScopedList {
|
| - /** [Output Only] List of autoscalers contained in this scope. */
|
| - core.List<Autoscaler> autoscalers;
|
| - /**
|
| - * [Output Only] Informational warning which replaces the list of autoscalers
|
| - * when the list is empty.
|
| - */
|
| - AutoscalersScopedListWarning warning;
|
| -
|
| - AutoscalersScopedList();
|
| -
|
| - AutoscalersScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("autoscalers")) {
|
| - autoscalers = _json["autoscalers"].map((value) => new Autoscaler.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("warning")) {
|
| - warning = new AutoscalersScopedListWarning.fromJson(_json["warning"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (autoscalers != null) {
|
| - _json["autoscalers"] = autoscalers.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (warning != null) {
|
| - _json["warning"] = (warning).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Cloud Autoscaler policy. */
|
| -class AutoscalingPolicy {
|
| - /**
|
| - * The number of seconds that the autoscaler should wait before it starts
|
| - * collecting information from a new instance. This prevents the autoscaler
|
| - * from collecting information when the instance is initializing, during which
|
| - * the collected usage would not be reliable. The default time autoscaler
|
| - * waits is 60 seconds.
|
| - *
|
| - * Virtual machine initialization times might vary because of numerous
|
| - * factors. We recommend that you test how long an instance may take to
|
| - * initialize. To do this, create an instance and time the startup process.
|
| - */
|
| - core.int coolDownPeriodSec;
|
| - /**
|
| - * Defines the CPU utilization policy that allows the autoscaler to scale
|
| - * based on the average CPU utilization of a managed instance group.
|
| - */
|
| - AutoscalingPolicyCpuUtilization cpuUtilization;
|
| - /** Configuration parameters of autoscaling based on a custom metric. */
|
| - core.List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations;
|
| - /** Configuration parameters of autoscaling based on load balancer. */
|
| - AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization;
|
| - /**
|
| - * The maximum number of instances that the autoscaler can scale up to. This
|
| - * is required when creating or updating an autoscaler. The maximum number of
|
| - * replicas should not be lower than minimal number of replicas.
|
| - */
|
| - core.int maxNumReplicas;
|
| - /**
|
| - * The minimum number of replicas that the autoscaler can scale down to. This
|
| - * cannot be less than 0. If not provided, autoscaler will choose a default
|
| - * value depending on maximum number of instances allowed.
|
| - */
|
| - core.int minNumReplicas;
|
| -
|
| - AutoscalingPolicy();
|
| -
|
| - AutoscalingPolicy.fromJson(core.Map _json) {
|
| - if (_json.containsKey("coolDownPeriodSec")) {
|
| - coolDownPeriodSec = _json["coolDownPeriodSec"];
|
| - }
|
| - if (_json.containsKey("cpuUtilization")) {
|
| - cpuUtilization = new AutoscalingPolicyCpuUtilization.fromJson(_json["cpuUtilization"]);
|
| - }
|
| - if (_json.containsKey("customMetricUtilizations")) {
|
| - customMetricUtilizations = _json["customMetricUtilizations"].map((value) => new AutoscalingPolicyCustomMetricUtilization.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("loadBalancingUtilization")) {
|
| - loadBalancingUtilization = new AutoscalingPolicyLoadBalancingUtilization.fromJson(_json["loadBalancingUtilization"]);
|
| - }
|
| - if (_json.containsKey("maxNumReplicas")) {
|
| - maxNumReplicas = _json["maxNumReplicas"];
|
| - }
|
| - if (_json.containsKey("minNumReplicas")) {
|
| - minNumReplicas = _json["minNumReplicas"];
|
| - }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class CacheInvalidationRule {
|
| + core.String path;
|
| +
|
| + CacheInvalidationRule();
|
| +
|
| + CacheInvalidationRule.fromJson(core.Map _json) {
|
| + if (_json.containsKey("path")) {
|
| + path = _json["path"];
|
| + }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (coolDownPeriodSec != null) {
|
| - _json["coolDownPeriodSec"] = coolDownPeriodSec;
|
| - }
|
| - if (cpuUtilization != null) {
|
| - _json["cpuUtilization"] = (cpuUtilization).toJson();
|
| - }
|
| - if (customMetricUtilizations != null) {
|
| - _json["customMetricUtilizations"] = customMetricUtilizations.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (loadBalancingUtilization != null) {
|
| - _json["loadBalancingUtilization"] = (loadBalancingUtilization).toJson();
|
| - }
|
| - if (maxNumReplicas != null) {
|
| - _json["maxNumReplicas"] = maxNumReplicas;
|
| - }
|
| - if (minNumReplicas != null) {
|
| - _json["minNumReplicas"] = minNumReplicas;
|
| + if (path != null) {
|
| + _json["path"] = path;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** CPU utilization policy. */
|
| -class AutoscalingPolicyCpuUtilization {
|
| +/** Message containing connection draining configuration. */
|
| +class ConnectionDraining {
|
| /**
|
| - * The target CPU utilization that the autoscaler should maintain. Must be a
|
| - * float value in the range (0, 1]. If not specified, the default is 0.6.
|
| - *
|
| - * If the CPU level is below the target utilization, the autoscaler scales
|
| - * down the number of instances until it reaches the minimum number of
|
| - * instances you specified or until the average CPU of your instances reaches
|
| - * the target utilization.
|
| - *
|
| - * If the average CPU is above the target utilization, the autoscaler scales
|
| - * up until it reaches the maximum number of instances you specified or until
|
| - * the average utilization reaches the target utilization.
|
| + * Time for which instance will be drained (not accept new connections, but
|
| + * still work to finish started).
|
| */
|
| - core.double utilizationTarget;
|
| + core.int drainingTimeoutSec;
|
|
|
| - AutoscalingPolicyCpuUtilization();
|
| + ConnectionDraining();
|
|
|
| - AutoscalingPolicyCpuUtilization.fromJson(core.Map _json) {
|
| - if (_json.containsKey("utilizationTarget")) {
|
| - utilizationTarget = _json["utilizationTarget"];
|
| + ConnectionDraining.fromJson(core.Map _json) {
|
| + if (_json.containsKey("drainingTimeoutSec")) {
|
| + drainingTimeoutSec = _json["drainingTimeoutSec"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (utilizationTarget != null) {
|
| - _json["utilizationTarget"] = utilizationTarget;
|
| + if (drainingTimeoutSec != null) {
|
| + _json["drainingTimeoutSec"] = drainingTimeoutSec;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Custom utilization metric policy. */
|
| -class AutoscalingPolicyCustomMetricUtilization {
|
| - /**
|
| - * The identifier of the Cloud Monitoring metric. The metric cannot have
|
| - * negative values and should be a utilization metric, which means that the
|
| - * number of virtual machines handling requests should increase or decrease
|
| - * proportionally to the metric. The metric must also have a label of
|
| - * compute.googleapis.com/resource_id with the value of the instance's unique
|
| - * ID, although this alone does not guarantee that the metric is valid.
|
| - *
|
| - * For example, the following is a valid metric:
|
| - * compute.googleapis.com/instance/network/received_bytes_count
|
| - *
|
| - *
|
| - * The following is not a valid metric because it does not increase or
|
| - * decrease based on usage:
|
| - * compute.googleapis.com/instance/cpu/reserved_cores
|
| - */
|
| - core.String metric;
|
| +/** Represents a customer-supplied encryption key */
|
| +class CustomerEncryptionKey {
|
| /**
|
| - * Target value of the metric which autoscaler should maintain. Must be a
|
| - * positive value.
|
| + * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
|
| + * base64 to either encrypt or decrypt this resource.
|
| */
|
| - core.double utilizationTarget;
|
| + core.String rawKey;
|
| /**
|
| - * Defines how target utilization value is expressed for a Cloud Monitoring
|
| - * metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not
|
| - * specified, the default is GAUGE.
|
| - * Possible string values are:
|
| - * - "DELTA_PER_MINUTE"
|
| - * - "DELTA_PER_SECOND"
|
| - * - "GAUGE"
|
| + * [Output only] The RFC 4648 base64 encoded SHA-256 hash of the
|
| + * customer-supplied encryption key that protects this resource.
|
| */
|
| - core.String utilizationTargetType;
|
| + core.String sha256;
|
|
|
| - AutoscalingPolicyCustomMetricUtilization();
|
| + CustomerEncryptionKey();
|
|
|
| - AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) {
|
| - if (_json.containsKey("metric")) {
|
| - metric = _json["metric"];
|
| - }
|
| - if (_json.containsKey("utilizationTarget")) {
|
| - utilizationTarget = _json["utilizationTarget"];
|
| + CustomerEncryptionKey.fromJson(core.Map _json) {
|
| + if (_json.containsKey("rawKey")) {
|
| + rawKey = _json["rawKey"];
|
| }
|
| - if (_json.containsKey("utilizationTargetType")) {
|
| - utilizationTargetType = _json["utilizationTargetType"];
|
| + if (_json.containsKey("sha256")) {
|
| + sha256 = _json["sha256"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (metric != null) {
|
| - _json["metric"] = metric;
|
| - }
|
| - if (utilizationTarget != null) {
|
| - _json["utilizationTarget"] = utilizationTarget;
|
| + if (rawKey != null) {
|
| + _json["rawKey"] = rawKey;
|
| }
|
| - if (utilizationTargetType != null) {
|
| - _json["utilizationTargetType"] = utilizationTargetType;
|
| + if (sha256 != null) {
|
| + _json["sha256"] = sha256;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Configuration parameters of autoscaling based on load balancing. */
|
| -class AutoscalingPolicyLoadBalancingUtilization {
|
| +class CustomerEncryptionKeyProtectedDisk {
|
| /**
|
| - * Fraction of backend capacity utilization (set in HTTP(s) load balancing
|
| - * configuration) that autoscaler should maintain. Must be a positive float
|
| - * value. If not defined, the default is 0.8.
|
| + * Decrypts data associated with the disk with a customer-supplied encryption
|
| + * key.
|
| */
|
| - core.double utilizationTarget;
|
| + CustomerEncryptionKey diskEncryptionKey;
|
| + /**
|
| + * Specifies a valid partial or full URL to an existing Persistent Disk
|
| + * resource. This field is only applicable for persistent disks.
|
| + */
|
| + core.String source;
|
|
|
| - AutoscalingPolicyLoadBalancingUtilization();
|
| + CustomerEncryptionKeyProtectedDisk();
|
|
|
| - AutoscalingPolicyLoadBalancingUtilization.fromJson(core.Map _json) {
|
| - if (_json.containsKey("utilizationTarget")) {
|
| - utilizationTarget = _json["utilizationTarget"];
|
| + CustomerEncryptionKeyProtectedDisk.fromJson(core.Map _json) {
|
| + if (_json.containsKey("diskEncryptionKey")) {
|
| + diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| + }
|
| + if (_json.containsKey("source")) {
|
| + source = _json["source"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (utilizationTarget != null) {
|
| - _json["utilizationTarget"] = utilizationTarget;
|
| + if (diskEncryptionKey != null) {
|
| + _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| + }
|
| + if (source != null) {
|
| + _json["source"] = source;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Message containing information of one individual backend. */
|
| -class Backend {
|
| - /**
|
| - * Specifies the balancing mode for this backend. For global HTTP(S) load
|
| - * balancing, the default is UTILIZATION. Valid values are UTILIZATION and
|
| - * RATE.
|
| - *
|
| - * This cannot be used for internal load balancing.
|
| - * Possible string values are:
|
| - * - "RATE"
|
| - * - "UTILIZATION"
|
| - */
|
| - core.String balancingMode;
|
| - /**
|
| - * A multiplier applied to the group's maximum servicing capacity (either
|
| - * UTILIZATION or RATE). Default value is 1, which means the group will serve
|
| - * up to 100% of its configured CPU or RPS (depending on balancingMode). A
|
| - * setting of 0 means the group is completely drained, offering 0% of its
|
| - * available CPU or RPS. Valid range is [0.0,1.0].
|
| - *
|
| - * This cannot be used for internal load balancing.
|
| - */
|
| - core.double capacityScaler;
|
| +/** Deprecation status for a public resource. */
|
| +class DeprecationStatus {
|
| /**
|
| - * An optional description of this resource. Provide this property when you
|
| - * create the resource.
|
| + * An optional RFC3339 timestamp on or after which the state of this resource
|
| + * is intended to change to DELETED. This is only informational and the status
|
| + * will not change unless the client explicitly changes it.
|
| */
|
| - core.String description;
|
| + core.String deleted;
|
| /**
|
| - * The fully-qualified URL of a zonal Instance Group resource. This instance
|
| - * group defines the list of instances that serve traffic. Member virtual
|
| - * machine instances from each instance group must live in the same zone as
|
| - * the instance group itself. No two backends in a backend service are allowed
|
| - * to use same Instance Group resource.
|
| - *
|
| - * Note that you must specify an Instance Group resource using the
|
| - * fully-qualified URL, rather than a partial URL.
|
| - *
|
| - * When the BackendService has load balancing scheme INTERNAL, the instance
|
| - * group must be in a zone within the same region as the BackendService.
|
| + * An optional RFC3339 timestamp on or after which the state of this resource
|
| + * is intended to change to DEPRECATED. This is only informational and the
|
| + * status will not change unless the client explicitly changes it.
|
| */
|
| - core.String group;
|
| + core.String deprecated;
|
| /**
|
| - * The max requests per second (RPS) of the group. Can be used with either
|
| - * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE
|
| - * mode, either maxRate or maxRatePerInstance must be set.
|
| - *
|
| - * This cannot be used for internal load balancing.
|
| + * An optional RFC3339 timestamp on or after which the state of this resource
|
| + * is intended to change to OBSOLETE. This is only informational and the
|
| + * status will not change unless the client explicitly changes it.
|
| */
|
| - core.int maxRate;
|
| + core.String obsolete;
|
| /**
|
| - * The max requests per second (RPS) that a single backend 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.
|
| - *
|
| - * This cannot be used for internal load balancing.
|
| + * 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.double maxRatePerInstance;
|
| + core.String replacement;
|
| /**
|
| - * Used when balancingMode is UTILIZATION. This ratio defines the CPU
|
| - * utilization target for the group. The default is 0.8. Valid range is [0.0,
|
| - * 1.0].
|
| - *
|
| - * This cannot be used for internal load balancing.
|
| + * 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:
|
| + * - "DELETED"
|
| + * - "DEPRECATED"
|
| + * - "OBSOLETE"
|
| */
|
| - core.double maxUtilization;
|
| + core.String state;
|
|
|
| - Backend();
|
| + DeprecationStatus();
|
|
|
| - 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"];
|
| + DeprecationStatus.fromJson(core.Map _json) {
|
| + if (_json.containsKey("deleted")) {
|
| + deleted = _json["deleted"];
|
| }
|
| - if (_json.containsKey("maxUtilization")) {
|
| - maxUtilization = _json["maxUtilization"];
|
| + if (_json.containsKey("deprecated")) {
|
| + deprecated = _json["deprecated"];
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (balancingMode != null) {
|
| - _json["balancingMode"] = balancingMode;
|
| + if (_json.containsKey("obsolete")) {
|
| + obsolete = _json["obsolete"];
|
| }
|
| - if (capacityScaler != null) {
|
| - _json["capacityScaler"] = capacityScaler;
|
| + if (_json.containsKey("replacement")) {
|
| + replacement = _json["replacement"];
|
| }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| + if (_json.containsKey("state")) {
|
| + state = _json["state"];
|
| }
|
| - if (group != null) {
|
| - _json["group"] = group;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (deleted != null) {
|
| + _json["deleted"] = deleted;
|
| }
|
| - if (maxRate != null) {
|
| - _json["maxRate"] = maxRate;
|
| + if (deprecated != null) {
|
| + _json["deprecated"] = deprecated;
|
| }
|
| - if (maxRatePerInstance != null) {
|
| - _json["maxRatePerInstance"] = maxRatePerInstance;
|
| + if (obsolete != null) {
|
| + _json["obsolete"] = obsolete;
|
| }
|
| - if (maxUtilization != null) {
|
| - _json["maxUtilization"] = maxUtilization;
|
| + if (replacement != null) {
|
| + _json["replacement"] = replacement;
|
| + }
|
| + if (state != null) {
|
| + _json["state"] = state;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * A BackendService resource. This resource defines a group of backend virtual
|
| - * machines and their serving capacity.
|
| - */
|
| -class BackendService {
|
| - /**
|
| - * Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If
|
| - * set to 0, the cookie is non-persistent and lasts only until the end of the
|
| - * browser session (or equivalent). The maximum allowed value for TTL is one
|
| - * day.
|
| - *
|
| - * When the load balancing scheme is INTERNAL, this field is not used.
|
| - */
|
| - core.int affinityCookieTtlSec;
|
| - /** The list of backends that serve this BackendService. */
|
| - core.List<Backend> backends;
|
| +/** A Disk resource. */
|
| +class Disk {
|
| /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
| /**
|
| @@ -14733,44 +16924,33 @@ class BackendService {
|
| */
|
| core.String description;
|
| /**
|
| - * If true, enable Cloud CDN for this BackendService.
|
| + * Encrypts the disk using a customer-supplied encryption key.
|
| *
|
| - * When the load balancing scheme is INTERNAL, this field is not used.
|
| - */
|
| - core.bool enableCDN;
|
| - /**
|
| - * 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 convert.BASE64.decode(fingerprint);
|
| - }
|
| -
|
| - void set fingerprintAsBytes(core.List<core.int> _bytes) {
|
| - fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| - }
|
| - /**
|
| - * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for
|
| - * health checking this BackendService. Currently at most one health check can
|
| - * be specified, and a health check is required.
|
| + * After you encrypt a disk with a customer-supplied key, you must provide the
|
| + * same key if you use the disk later (e.g. to create a disk snapshot or an
|
| + * image, or to attach the disk to a virtual machine).
|
| *
|
| - * For internal load balancing, a URL to a HealthCheck resource must be
|
| - * specified instead.
|
| + * Customer-supplied encryption keys do not protect access to metadata of the
|
| + * disk.
|
| + *
|
| + * If you do not provide an encryption key when creating the disk, then the
|
| + * disk will be encrypted using an automatically generated key and you do not
|
| + * need to provide a key to use the disk later.
|
| */
|
| - core.List<core.String> healthChecks;
|
| + CustomerEncryptionKey diskEncryptionKey;
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| - /**
|
| - * [Output Only] Type of resource. Always compute#backendService for backend
|
| - * services.
|
| - */
|
| + /** [Output Only] Type of the resource. Always compute#disk for disks. */
|
| core.String kind;
|
| + /** [Output Only] Last attach timestamp in RFC3339 text format. */
|
| + core.String lastAttachTimestamp;
|
| + /** [Output Only] Last detach timestamp in RFC3339 text format. */
|
| + core.String lastDetachTimestamp;
|
| + /** 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.
|
| @@ -14781,86 +16961,115 @@ class BackendService {
|
| * dash.
|
| */
|
| core.String name;
|
| + /** Internal use only. */
|
| + core.String options;
|
| + /** [Output Only] Server-defined fully-qualified URL for this resource. */
|
| + core.String selfLink;
|
| /**
|
| - * Deprecated in favor of portName. The TCP port to connect on the backend.
|
| - * The default value is 80.
|
| + * 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.
|
| *
|
| - * This cannot be used for internal load balancing.
|
| + * 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 port;
|
| + core.String sizeGb;
|
| /**
|
| - * Name of backend port. The same name should appear in the instance groups
|
| - * referenced by this service. Required when the load balancing scheme is
|
| - * EXTERNAL.
|
| + * The source image used to create this disk. If the source image is deleted,
|
| + * this field will not be set.
|
| *
|
| - * When the load balancing scheme is INTERNAL, this field is not used.
|
| - */
|
| - core.String portName;
|
| - /**
|
| - * The protocol this BackendService uses to communicate with backends.
|
| + * To create a disk with one of the public operating system images, specify
|
| + * the image by its family name. For example, specify family/debian-8 to use
|
| + * the latest Debian 8 image:
|
| *
|
| - * Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
|
| + * projects/debian-cloud/global/images/family/debian-8
|
| *
|
| - * For internal load balancing, the possible values are TCP and UDP, and the
|
| - * default is TCP.
|
| - * Possible string values are:
|
| - * - "HTTP"
|
| - * - "HTTPS"
|
| + * Alternatively, use a specific version of a public operating system image:
|
| + *
|
| + * projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
|
| + *
|
| + * To create a disk with a private image that you created, specify the image
|
| + * name in the following format:
|
| + *
|
| + * global/images/my-private-image
|
| + *
|
| + * You can also specify a private image by its image family, which returns the
|
| + * latest version of the image in that family. Replace the image name with
|
| + * family/family-name:
|
| + *
|
| + * global/images/family/my-private-family
|
| */
|
| - core.String protocol;
|
| + core.String sourceImage;
|
| /**
|
| - * [Output Only] URL of the region where the regional backend service resides.
|
| - * This field is not applicable to global backend services.
|
| + * The customer-supplied encryption key of the source image. Required if the
|
| + * source image is protected by a customer-supplied encryption key.
|
| */
|
| - core.String region;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| - core.String selfLink;
|
| + CustomerEncryptionKey sourceImageEncryptionKey;
|
| /**
|
| - * Type of session affinity to use. The default is NONE.
|
| - *
|
| - * When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or
|
| - * GENERATED_COOKIE.
|
| - *
|
| - * When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP,
|
| - * CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
|
| - *
|
| - * When the protocol is UDP, this field is not used.
|
| + * [Output Only] 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 sourceImageId;
|
| + /**
|
| + * 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;
|
| + /**
|
| + * The customer-supplied encryption key of the source snapshot. Required if
|
| + * the source snapshot is protected by a customer-supplied encryption key.
|
| + */
|
| + CustomerEncryptionKey sourceSnapshotEncryptionKey;
|
| + /**
|
| + * [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;
|
| + /**
|
| + * [Output Only] The status of disk creation.
|
| * Possible string values are:
|
| - * - "CLIENT_IP"
|
| - * - "CLIENT_IP_PROTO"
|
| - * - "GENERATED_COOKIE"
|
| - * - "NONE"
|
| + * - "CREATING"
|
| + * - "FAILED"
|
| + * - "READY"
|
| + * - "RESTORING"
|
| */
|
| - core.String sessionAffinity;
|
| + core.String status;
|
| /**
|
| - * How many seconds to wait for the backend before considering it a failed
|
| - * request. Default is 30 seconds.
|
| + * URL of the disk type resource describing which disk type to use to create
|
| + * the disk. Provide this when creating the disk.
|
| */
|
| - core.int timeoutSec;
|
| + core.String type;
|
| + /**
|
| + * [Output Only] Links to the users of the disk (attached instances) in form:
|
| + * project/zones/zone/instances/instance
|
| + */
|
| + core.List<core.String> users;
|
| + /** [Output Only] URL of the zone where the disk resides. */
|
| + core.String zone;
|
|
|
| - BackendService();
|
| + Disk();
|
|
|
| - BackendService.fromJson(core.Map _json) {
|
| - if (_json.containsKey("affinityCookieTtlSec")) {
|
| - affinityCookieTtlSec = _json["affinityCookieTtlSec"];
|
| - }
|
| - if (_json.containsKey("backends")) {
|
| - backends = _json["backends"].map((value) => new Backend.fromJson(value)).toList();
|
| - }
|
| + Disk.fromJson(core.Map _json) {
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| - if (_json.containsKey("enableCDN")) {
|
| - enableCDN = _json["enableCDN"];
|
| - }
|
| - if (_json.containsKey("fingerprint")) {
|
| - fingerprint = _json["fingerprint"];
|
| - }
|
| - if (_json.containsKey("healthChecks")) {
|
| - healthChecks = _json["healthChecks"];
|
| + if (_json.containsKey("diskEncryptionKey")) {
|
| + diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -14868,54 +17077,69 @@ class BackendService {
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + if (_json.containsKey("lastAttachTimestamp")) {
|
| + lastAttachTimestamp = _json["lastAttachTimestamp"];
|
| + }
|
| + if (_json.containsKey("lastDetachTimestamp")) {
|
| + lastDetachTimestamp = _json["lastDetachTimestamp"];
|
| + }
|
| + 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("sourceImageEncryptionKey")) {
|
| + sourceImageEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceImageEncryptionKey"]);
|
| + }
|
| + if (_json.containsKey("sourceImageId")) {
|
| + sourceImageId = _json["sourceImageId"];
|
| }
|
| - if (_json.containsKey("port")) {
|
| - port = _json["port"];
|
| + if (_json.containsKey("sourceSnapshot")) {
|
| + sourceSnapshot = _json["sourceSnapshot"];
|
| }
|
| - if (_json.containsKey("portName")) {
|
| - portName = _json["portName"];
|
| + if (_json.containsKey("sourceSnapshotEncryptionKey")) {
|
| + sourceSnapshotEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceSnapshotEncryptionKey"]);
|
| }
|
| - if (_json.containsKey("protocol")) {
|
| - protocol = _json["protocol"];
|
| + if (_json.containsKey("sourceSnapshotId")) {
|
| + sourceSnapshotId = _json["sourceSnapshotId"];
|
| }
|
| - if (_json.containsKey("region")) {
|
| - region = _json["region"];
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| }
|
| - if (_json.containsKey("sessionAffinity")) {
|
| - sessionAffinity = _json["sessionAffinity"];
|
| + if (_json.containsKey("users")) {
|
| + users = _json["users"];
|
| }
|
| - if (_json.containsKey("timeoutSec")) {
|
| - timeoutSec = _json["timeoutSec"];
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (affinityCookieTtlSec != null) {
|
| - _json["affinityCookieTtlSec"] = affinityCookieTtlSec;
|
| - }
|
| - if (backends != null) {
|
| - _json["backends"] = backends.map((value) => (value).toJson()).toList();
|
| - }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| }
|
| if (description != null) {
|
| _json["description"] = description;
|
| }
|
| - if (enableCDN != null) {
|
| - _json["enableCDN"] = enableCDN;
|
| - }
|
| - if (fingerprint != null) {
|
| - _json["fingerprint"] = fingerprint;
|
| - }
|
| - if (healthChecks != null) {
|
| - _json["healthChecks"] = healthChecks;
|
| + if (diskEncryptionKey != null) {
|
| + _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -14923,91 +17147,93 @@ class BackendService {
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + if (lastAttachTimestamp != null) {
|
| + _json["lastAttachTimestamp"] = lastAttachTimestamp;
|
| }
|
| - if (port != null) {
|
| - _json["port"] = port;
|
| + if (lastDetachTimestamp != null) {
|
| + _json["lastDetachTimestamp"] = lastDetachTimestamp;
|
| }
|
| - if (portName != null) {
|
| - _json["portName"] = portName;
|
| + if (licenses != null) {
|
| + _json["licenses"] = licenses;
|
| }
|
| - if (protocol != null) {
|
| - _json["protocol"] = protocol;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| + if (options != null) {
|
| + _json["options"] = options;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| - if (sessionAffinity != null) {
|
| - _json["sessionAffinity"] = sessionAffinity;
|
| + if (sizeGb != null) {
|
| + _json["sizeGb"] = sizeGb;
|
| }
|
| - if (timeoutSec != null) {
|
| - _json["timeoutSec"] = timeoutSec;
|
| + if (sourceImage != null) {
|
| + _json["sourceImage"] = sourceImage;
|
| }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class BackendServiceGroupHealth {
|
| - core.List<HealthStatus> healthStatus;
|
| - /**
|
| - * [Output Only] Type of resource. Always compute#backendServiceGroupHealth
|
| - * for the health of backend services.
|
| - */
|
| - core.String kind;
|
| -
|
| - BackendServiceGroupHealth();
|
| -
|
| - BackendServiceGroupHealth.fromJson(core.Map _json) {
|
| - if (_json.containsKey("healthStatus")) {
|
| - healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJson(value)).toList();
|
| + if (sourceImageEncryptionKey != null) {
|
| + _json["sourceImageEncryptionKey"] = (sourceImageEncryptionKey).toJson();
|
| }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (sourceImageId != null) {
|
| + _json["sourceImageId"] = sourceImageId;
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (healthStatus != null) {
|
| - _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toList();
|
| + if (sourceSnapshot != null) {
|
| + _json["sourceSnapshot"] = sourceSnapshot;
|
| }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + if (sourceSnapshotEncryptionKey != null) {
|
| + _json["sourceSnapshotEncryptionKey"] = (sourceSnapshotEncryptionKey).toJson();
|
| + }
|
| + if (sourceSnapshotId != null) {
|
| + _json["sourceSnapshotId"] = sourceSnapshotId;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + if (users != null) {
|
| + _json["users"] = users;
|
| + }
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Contains a list of BackendService resources. */
|
| -class BackendServiceList {
|
| +class DiskAggregatedList {
|
| /**
|
| - * [Output Only] Unique identifier for the resource; defined by the server.
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| */
|
| core.String id;
|
| - /** A list of BackendService resources. */
|
| - core.List<BackendService> items;
|
| + /** [Output Only] A map of scoped disk lists. */
|
| + core.Map<core.String, DisksScopedList> items;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#backendServiceList for lists
|
| - * of backend services.
|
| + * [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. */
|
| + /**
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| + */
|
| core.String nextPageToken;
|
| /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| - BackendServiceList();
|
| + DiskAggregatedList();
|
|
|
| - BackendServiceList.fromJson(core.Map _json) {
|
| + DiskAggregatedList.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 = commons.mapMap(_json["items"], (item) => new DisksScopedList.fromJson(item));
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -15026,7 +17252,7 @@ class BackendServiceList {
|
| _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;
|
| @@ -15041,539 +17267,839 @@ class BackendServiceList {
|
| }
|
| }
|
|
|
| -class CacheInvalidationRule {
|
| - core.String path;
|
| -
|
| - CacheInvalidationRule();
|
| -
|
| - CacheInvalidationRule.fromJson(core.Map _json) {
|
| - if (_json.containsKey("path")) {
|
| - path = _json["path"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (path != null) {
|
| - _json["path"] = path;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Represents a customer-supplied encryption key */
|
| -class CustomerEncryptionKey {
|
| +/** A list of Disk resources. */
|
| +class DiskList {
|
| /**
|
| - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
|
| - * base64 to either encrypt or decrypt this resource.
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| */
|
| - core.String rawKey;
|
| + core.String id;
|
| + /** [Output Only] A list of persistent disks. */
|
| + core.List<Disk> items;
|
| /**
|
| - * [Output only] The RFC 4648 base64 encoded SHA-256 hash of the
|
| - * customer-supplied encryption key that protects this resource.
|
| + * [Output Only] Type of resource. Always compute#diskList for lists of disks.
|
| */
|
| - core.String sha256;
|
| + core.String kind;
|
| + /**
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| + */
|
| + core.String nextPageToken;
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| + core.String selfLink;
|
|
|
| - CustomerEncryptionKey();
|
| + DiskList();
|
|
|
| - CustomerEncryptionKey.fromJson(core.Map _json) {
|
| - if (_json.containsKey("rawKey")) {
|
| - rawKey = _json["rawKey"];
|
| + DiskList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("sha256")) {
|
| - sha256 = _json["sha256"];
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new Disk.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 (rawKey != null) {
|
| - _json["rawKey"] = rawKey;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (sha256 != null) {
|
| - _json["sha256"] = sha256;
|
| + 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 CustomerEncryptionKeyProtectedDisk {
|
| +class DiskMoveRequest {
|
| /**
|
| - * Decrypts data associated with the disk with a customer-supplied encryption
|
| - * key.
|
| + * The URL of the destination zone to move the disk. 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
|
| */
|
| - CustomerEncryptionKey diskEncryptionKey;
|
| + core.String destinationZone;
|
| /**
|
| - * Specifies a valid partial or full URL to an existing Persistent Disk
|
| - * resource. This field is only applicable for persistent disks.
|
| + * 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.String source;
|
| + core.String targetDisk;
|
|
|
| - CustomerEncryptionKeyProtectedDisk();
|
| + DiskMoveRequest();
|
|
|
| - CustomerEncryptionKeyProtectedDisk.fromJson(core.Map _json) {
|
| - if (_json.containsKey("diskEncryptionKey")) {
|
| - diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| + DiskMoveRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("destinationZone")) {
|
| + destinationZone = _json["destinationZone"];
|
| }
|
| - if (_json.containsKey("source")) {
|
| - source = _json["source"];
|
| + if (_json.containsKey("targetDisk")) {
|
| + targetDisk = _json["targetDisk"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (diskEncryptionKey != null) {
|
| - _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| + if (destinationZone != null) {
|
| + _json["destinationZone"] = destinationZone;
|
| }
|
| - if (source != null) {
|
| - _json["source"] = source;
|
| + if (targetDisk != null) {
|
| + _json["targetDisk"] = targetDisk;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** 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;
|
| - /**
|
| - * An optional RFC3339 timestamp on or after which the deprecation state of
|
| - * this resource will be changed to DEPRECATED.
|
| - */
|
| - core.String deprecated;
|
| +/** A DiskType resource. */
|
| +class DiskType {
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
| + /** [Output Only] Server-defined default disk size in GB. */
|
| + core.String defaultDiskSizeGb;
|
| + /** [Output Only] The deprecation status associated with this disk type. */
|
| + DeprecationStatus deprecated;
|
| + /** [Output Only] An optional description of this resource. */
|
| + core.String description;
|
| /**
|
| - * An optional RFC3339 timestamp on or after which the deprecation state of
|
| - * this resource will be changed to OBSOLETE.
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| */
|
| - core.String obsolete;
|
| + core.String id;
|
| /**
|
| - * 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.
|
| + * [Output Only] Type of the resource. Always compute#diskType for disk types.
|
| */
|
| - core.String replacement;
|
| + core.String kind;
|
| + /** [Output Only] Name of the resource. */
|
| + core.String name;
|
| + /** [Output Only] Server-defined URL for the resource. */
|
| + core.String selfLink;
|
| /**
|
| - * 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:
|
| - * - "DELETED"
|
| - * - "DEPRECATED"
|
| - * - "OBSOLETE"
|
| + * [Output Only] An optional textual description of the valid disk size, such
|
| + * as "10GB-10TB".
|
| */
|
| - core.String state;
|
| + core.String validDiskSize;
|
| + /** [Output Only] URL of the zone where the disk type resides. */
|
| + core.String zone;
|
|
|
| - DeprecationStatus();
|
| + DiskType();
|
|
|
| - DeprecationStatus.fromJson(core.Map _json) {
|
| - if (_json.containsKey("deleted")) {
|
| - deleted = _json["deleted"];
|
| + DiskType.fromJson(core.Map _json) {
|
| + if (_json.containsKey("creationTimestamp")) {
|
| + creationTimestamp = _json["creationTimestamp"];
|
| + }
|
| + if (_json.containsKey("defaultDiskSizeGb")) {
|
| + defaultDiskSizeGb = _json["defaultDiskSizeGb"];
|
| }
|
| if (_json.containsKey("deprecated")) {
|
| - deprecated = _json["deprecated"];
|
| + deprecated = new DeprecationStatus.fromJson(_json["deprecated"]);
|
| }
|
| - if (_json.containsKey("obsolete")) {
|
| - obsolete = _json["obsolete"];
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| }
|
| - if (_json.containsKey("replacement")) {
|
| - replacement = _json["replacement"];
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| }
|
| - if (_json.containsKey("state")) {
|
| - state = _json["state"];
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("validDiskSize")) {
|
| + validDiskSize = _json["validDiskSize"];
|
| + }
|
| + if (_json.containsKey("zone")) {
|
| + zone = _json["zone"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (deleted != null) {
|
| - _json["deleted"] = deleted;
|
| + if (creationTimestamp != null) {
|
| + _json["creationTimestamp"] = creationTimestamp;
|
| + }
|
| + if (defaultDiskSizeGb != null) {
|
| + _json["defaultDiskSizeGb"] = defaultDiskSizeGb;
|
| }
|
| if (deprecated != null) {
|
| - _json["deprecated"] = deprecated;
|
| + _json["deprecated"] = (deprecated).toJson();
|
| }
|
| - if (obsolete != null) {
|
| - _json["obsolete"] = obsolete;
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| }
|
| - if (replacement != null) {
|
| - _json["replacement"] = replacement;
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (state != null) {
|
| - _json["state"] = state;
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (validDiskSize != null) {
|
| + _json["validDiskSize"] = validDiskSize;
|
| + }
|
| + if (zone != null) {
|
| + _json["zone"] = zone;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** A Disk resource. */
|
| -class Disk {
|
| - /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| - core.String creationTimestamp;
|
| - /**
|
| - * An optional description of this resource. Provide this property when you
|
| - * create the resource.
|
| - */
|
| - core.String description;
|
| - /**
|
| - * Encrypts the disk using a customer-supplied encryption key.
|
| - *
|
| - * After you encrypt a disk with a customer-supplied key, you must provide the
|
| - * same key if you use the disk later (e.g. to create a disk snapshot or an
|
| - * image, or to attach the disk to a virtual machine).
|
| - *
|
| - * Customer-supplied encryption keys do not protect access to metadata of the
|
| - * disk.
|
| - *
|
| - * If you do not provide an encryption key when creating the disk, then the
|
| - * disk will be encrypted using an automatically generated key and you do not
|
| - * need to provide a key to use the disk later.
|
| - */
|
| - CustomerEncryptionKey diskEncryptionKey;
|
| +class DiskTypeAggregatedList {
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| - core.String id;
|
| - /** [Output Only] Type of the resource. Always compute#disk for disks. */
|
| - core.String kind;
|
| - /** [Output Only] Last attach timestamp in RFC3339 text format. */
|
| - core.String lastAttachTimestamp;
|
| - /** [Output Only] Last detach timestamp in RFC3339 text format. */
|
| - core.String lastDetachTimestamp;
|
| - /** 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;
|
| - /** Internal use only. */
|
| - core.String options;
|
| - /** [Output Only] Server-defined fully-qualified URL for this resource. */
|
| - core.String selfLink;
|
| - /**
|
| - * 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.String sizeGb;
|
| - /**
|
| - * The source image used to create this disk. If the source image is deleted,
|
| - * this field will not be set.
|
| - *
|
| - * To create a disk with one of the public operating system images, specify
|
| - * the image by its family name. For example, specify family/debian-8 to use
|
| - * the latest Debian 8 image:
|
| - *
|
| - * projects/debian-cloud/global/images/family/debian-8
|
| - *
|
| - * Alternatively, use a specific version of a public operating system image:
|
| - *
|
| - * projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
|
| - *
|
| - * To create a disk with a private image that you created, specify the image
|
| - * name in the following format:
|
| - *
|
| - * global/images/my-private-image
|
| - *
|
| - * You can also specify a private image by its image family, which returns the
|
| - * latest version of the image in that family. Replace the image name with
|
| - * family/family-name:
|
| - *
|
| - * global/images/family/my-private-family
|
| - */
|
| - core.String sourceImage;
|
| - /**
|
| - * The customer-supplied encryption key of the source image. Required if the
|
| - * source image is protected by a customer-supplied encryption key.
|
| - */
|
| - CustomerEncryptionKey sourceImageEncryptionKey;
|
| - /**
|
| - * [Output Only] 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 sourceImageId;
|
| - /**
|
| - * 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;
|
| - /**
|
| - * The customer-supplied encryption key of the source snapshot. Required if
|
| - * the source snapshot is protected by a customer-supplied encryption key.
|
| - */
|
| - CustomerEncryptionKey sourceSnapshotEncryptionKey;
|
| + core.String id;
|
| + /** [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] 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.
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| */
|
| - core.String sourceSnapshotId;
|
| + core.String nextPageToken;
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| + core.String selfLink;
|
| +
|
| + 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 (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 disk types. */
|
| +class DiskTypeList {
|
| /**
|
| - * [Output Only] The status of disk creation. Applicable statuses includes:
|
| - * CREATING, FAILED, READY, RESTORING.
|
| - * Possible string values are:
|
| - * - "CREATING"
|
| - * - "FAILED"
|
| - * - "READY"
|
| - * - "RESTORING"
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| */
|
| - core.String status;
|
| + core.String id;
|
| + /** [Output Only] A list of Disk Type resources. */
|
| + core.List<DiskType> items;
|
| /**
|
| - * URL of the disk type resource describing which disk type to use to create
|
| - * the disk. Provide this when creating the disk.
|
| + * [Output Only] Type of resource. Always compute#diskTypeList for disk types.
|
| */
|
| - core.String type;
|
| + core.String kind;
|
| /**
|
| - * [Output Only] Links to the users of the disk (attached instances) in form:
|
| - * project/zones/zone/instances/instance
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| */
|
| - core.List<core.String> users;
|
| - /** [Output Only] URL of the zone where the disk resides. */
|
| - core.String zone;
|
| + core.String nextPageToken;
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| + core.String selfLink;
|
|
|
| - Disk();
|
| + DiskTypeList();
|
|
|
| - Disk.fromJson(core.Map _json) {
|
| - if (_json.containsKey("creationTimestamp")) {
|
| - creationTimestamp = _json["creationTimestamp"];
|
| - }
|
| - if (_json.containsKey("description")) {
|
| - description = _json["description"];
|
| - }
|
| - if (_json.containsKey("diskEncryptionKey")) {
|
| - diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]);
|
| - }
|
| + DiskTypeList.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();
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| - if (_json.containsKey("lastAttachTimestamp")) {
|
| - lastAttachTimestamp = _json["lastAttachTimestamp"];
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| }
|
| - if (_json.containsKey("lastDetachTimestamp")) {
|
| - lastDetachTimestamp = _json["lastDetachTimestamp"];
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| }
|
| - if (_json.containsKey("licenses")) {
|
| - licenses = _json["licenses"];
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| + if (items != null) {
|
| + _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| - if (_json.containsKey("options")) {
|
| - options = _json["options"];
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| }
|
| - if (_json.containsKey("sizeGb")) {
|
| - sizeGb = _json["sizeGb"];
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| }
|
| - if (_json.containsKey("sourceImage")) {
|
| - sourceImage = _json["sourceImage"];
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class DiskTypesScopedListWarningData {
|
| + /**
|
| + * [Output Only] A key that provides more detail on the warning being
|
| + * returned. For example, for warnings where there are no results in a list
|
| + * request for a particular zone, this key might be scope and the key value
|
| + * might be the zone name. Other examples might be a key indicating a
|
| + * deprecated resource and a suggested replacement, or a warning about invalid
|
| + * network settings (for example, if an instance attempts to perform IP
|
| + * forwarding but is not enabled for IP forwarding).
|
| + */
|
| + 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("sourceImageEncryptionKey")) {
|
| - sourceImageEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceImageEncryptionKey"]);
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| - if (_json.containsKey("sourceImageId")) {
|
| - sourceImageId = _json["sourceImageId"];
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (_json.containsKey("sourceSnapshot")) {
|
| - sourceSnapshot = _json["sourceSnapshot"];
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| - if (_json.containsKey("sourceSnapshotEncryptionKey")) {
|
| - sourceSnapshotEncryptionKey = new CustomerEncryptionKey.fromJson(_json["sourceSnapshotEncryptionKey"]);
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * [Output Only] Informational warning which replaces the list of disk types
|
| + * when the list is empty.
|
| + */
|
| +class DiskTypesScopedListWarning {
|
| + /**
|
| + * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| + * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| + * Possible string values are:
|
| + * - "CLEANUP_FAILED"
|
| + * - "DEPRECATED_RESOURCE_USED"
|
| + * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| + * - "FIELD_VALUE_OVERRIDEN"
|
| + * - "INJECTED_KERNELS_DEPRECATED"
|
| + * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| + * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| + * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| + * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| + * - "NEXT_HOP_NOT_RUNNING"
|
| + * - "NOT_CRITICAL_ERROR"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| + */
|
| + core.String code;
|
| + /**
|
| + * [Output Only] Metadata about this warning in key: value format. For
|
| + * example:
|
| + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| + */
|
| + core.List<DiskTypesScopedListWarningData> data;
|
| + /** [Output Only] A human-readable description of the warning code. */
|
| + core.String message;
|
| +
|
| + DiskTypesScopedListWarning();
|
| +
|
| + DiskTypesScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (_json.containsKey("sourceSnapshotId")) {
|
| - sourceSnapshotId = _json["sourceSnapshotId"];
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new DiskTypesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (_json.containsKey("users")) {
|
| - users = _json["users"];
|
| + 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("zone")) {
|
| - zone = _json["zone"];
|
| + if (_json.containsKey("warning")) {
|
| + warning = new DiskTypesScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (creationTimestamp != null) {
|
| - _json["creationTimestamp"] = creationTimestamp;
|
| + if (diskTypes != null) {
|
| + _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList();
|
| }
|
| - if (description != null) {
|
| - _json["description"] = description;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| - if (diskEncryptionKey != null) {
|
| - _json["diskEncryptionKey"] = (diskEncryptionKey).toJson();
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class DisksResizeRequest {
|
| + /** The new size of the persistent disk, which is specified in GB. */
|
| + core.String sizeGb;
|
| +
|
| + DisksResizeRequest();
|
| +
|
| + DisksResizeRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("sizeGb")) {
|
| + sizeGb = _json["sizeGb"];
|
| }
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (sizeGb != null) {
|
| + _json["sizeGb"] = sizeGb;
|
| }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class DisksScopedListWarningData {
|
| + /**
|
| + * [Output Only] A key that provides more detail on the warning being
|
| + * returned. For example, for warnings where there are no results in a list
|
| + * request for a particular zone, this key might be scope and the key value
|
| + * might be the zone name. Other examples might be a key indicating a
|
| + * deprecated resource and a suggested replacement, or a warning about invalid
|
| + * network settings (for example, if an instance attempts to perform IP
|
| + * forwarding but is not enabled for IP forwarding).
|
| + */
|
| + 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 (lastAttachTimestamp != null) {
|
| - _json["lastAttachTimestamp"] = lastAttachTimestamp;
|
| + if (_json.containsKey("value")) {
|
| + value = _json["value"];
|
| }
|
| - if (lastDetachTimestamp != null) {
|
| - _json["lastDetachTimestamp"] = lastDetachTimestamp;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (key != null) {
|
| + _json["key"] = key;
|
| }
|
| - if (licenses != null) {
|
| - _json["licenses"] = licenses;
|
| + if (value != null) {
|
| + _json["value"] = value;
|
| }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * [Output Only] Informational warning which replaces the list of disks when the
|
| + * list is empty.
|
| + */
|
| +class DisksScopedListWarning {
|
| + /**
|
| + * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| + * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| + * Possible string values are:
|
| + * - "CLEANUP_FAILED"
|
| + * - "DEPRECATED_RESOURCE_USED"
|
| + * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| + * - "FIELD_VALUE_OVERRIDEN"
|
| + * - "INJECTED_KERNELS_DEPRECATED"
|
| + * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| + * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| + * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| + * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| + * - "NEXT_HOP_NOT_RUNNING"
|
| + * - "NOT_CRITICAL_ERROR"
|
| + * - "NO_RESULTS_ON_PAGE"
|
| + * - "REQUIRED_TOS_AGREEMENT"
|
| + * - "RESOURCE_NOT_DELETED"
|
| + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| + * - "UNREACHABLE"
|
| + */
|
| + core.String code;
|
| + /**
|
| + * [Output Only] Metadata about this warning in key: value format. For
|
| + * example:
|
| + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| + */
|
| + core.List<DisksScopedListWarningData> data;
|
| + /** [Output Only] A human-readable description of the warning code. */
|
| + core.String message;
|
| +
|
| + DisksScopedListWarning();
|
| +
|
| + DisksScopedListWarning.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| }
|
| - if (options != null) {
|
| - _json["options"] = options;
|
| + if (_json.containsKey("data")) {
|
| + data = _json["data"].map((value) => new DisksScopedListWarningData.fromJson(value)).toList();
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| }
|
| - if (sizeGb != null) {
|
| - _json["sizeGb"] = sizeGb;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| }
|
| - if (sourceImage != null) {
|
| - _json["sourceImage"] = sourceImage;
|
| + if (data != null) {
|
| + _json["data"] = data.map((value) => (value).toJson()).toList();
|
| }
|
| - if (sourceImageEncryptionKey != null) {
|
| - _json["sourceImageEncryptionKey"] = (sourceImageEncryptionKey).toJson();
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| }
|
| - if (sourceImageId != null) {
|
| - _json["sourceImageId"] = sourceImageId;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class DisksScopedList {
|
| + /** [Output Only] List of disks contained in this scope. */
|
| + core.List<Disk> disks;
|
| + /**
|
| + * [Output Only] Informational warning which replaces the list of disks when
|
| + * the list is empty.
|
| + */
|
| + DisksScopedListWarning warning;
|
| +
|
| + DisksScopedList();
|
| +
|
| + DisksScopedList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("disks")) {
|
| + disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList();
|
| }
|
| - if (sourceSnapshot != null) {
|
| - _json["sourceSnapshot"] = sourceSnapshot;
|
| + if (_json.containsKey("warning")) {
|
| + warning = new DisksScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| - if (sourceSnapshotEncryptionKey != null) {
|
| - _json["sourceSnapshotEncryptionKey"] = (sourceSnapshotEncryptionKey).toJson();
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (disks != null) {
|
| + _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| }
|
| - if (sourceSnapshotId != null) {
|
| - _json["sourceSnapshotId"] = sourceSnapshotId;
|
| + if (warning != null) {
|
| + _json["warning"] = (warning).toJson();
|
| }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class FirewallAllowed {
|
| + /**
|
| + * The IP protocol to which this rule applies. The protocol type is required
|
| + * when creating a firewall rule. 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 IPProtocol;
|
| + /**
|
| + * An optional list of ports to which this rule applies. This field is only
|
| + * applicable for UDP or TCP protocol. Each entry must be either an integer or
|
| + * a range. If not specified, this rule applies to connections through any
|
| + * port.
|
| + *
|
| + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
|
| + */
|
| + core.List<core.String> ports;
|
| +
|
| + FirewallAllowed();
|
| +
|
| + FirewallAllowed.fromJson(core.Map _json) {
|
| + if (_json.containsKey("IPProtocol")) {
|
| + IPProtocol = _json["IPProtocol"];
|
| }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| + if (_json.containsKey("ports")) {
|
| + ports = _json["ports"];
|
| }
|
| - if (users != null) {
|
| - _json["users"] = users;
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (IPProtocol != null) {
|
| + _json["IPProtocol"] = IPProtocol;
|
| }
|
| - if (zone != null) {
|
| - _json["zone"] = zone;
|
| + if (ports != null) {
|
| + _json["ports"] = ports;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -class DiskAggregatedList {
|
| +/** Represents a Firewall resource. */
|
| +class Firewall {
|
| + /**
|
| + * The list of ALLOW rules specified by this firewall. Each rule specifies a
|
| + * protocol and port-range tuple that describes a permitted connection.
|
| + */
|
| + core.List<FirewallAllowed> allowed;
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
| + /**
|
| + * An optional description of this resource. Provide this property when you
|
| + * create the resource.
|
| + */
|
| + core.String description;
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * 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.
|
| + * [Output Ony] Type of the resource. Always compute#firewall for firewall
|
| + * rules.
|
| */
|
| core.String kind;
|
| /**
|
| - * [Output Only] This token allows you to get the next page of results for
|
| - * list requests. If the number of results is larger than maxResults, use the
|
| - * nextPageToken as a value for the query parameter pageToken in the next list
|
| - * request. Subsequent list requests will have their own nextPageToken to
|
| - * continue paging through the results.
|
| + * 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 nextPageToken;
|
| - /** [Output Only] Server-defined URL for this resource. */
|
| + core.String name;
|
| + /**
|
| + * URL of the network resource for this 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;
|
| + /**
|
| + * If source ranges are specified, the firewall will apply only to traffic
|
| + * that has source IP address in these ranges. These ranges must be expressed
|
| + * in CIDR format. One or both of sourceRanges and sourceTags may be set. If
|
| + * both properties are set, the firewall will apply to traffic that has source
|
| + * IP address within sourceRanges OR the source IP that belongs to a tag
|
| + * listed in the sourceTags property. The connection does not need to match
|
| + * both properties for the firewall to apply.
|
| + */
|
| + core.List<core.String> sourceRanges;
|
| + /**
|
| + * If source tags are specified, the firewall will apply only to traffic with
|
| + * source IP that belongs to a tag listed in source tags. Source tags cannot
|
| + * be used to control traffic to an instance's external IP address. Because
|
| + * tags are associated with an instance, not an IP address. One or both of
|
| + * sourceRanges and sourceTags may be set. If both properties are set, the
|
| + * firewall will apply to traffic that has source IP address within
|
| + * sourceRanges OR the source IP that belongs to a tag listed in the
|
| + * sourceTags property. The connection does not need to match both properties
|
| + * for the firewall to apply.
|
| + */
|
| + core.List<core.String> sourceTags;
|
| + /**
|
| + * A list of instance tags indicating sets of instances located in the network
|
| + * that may make network connections as specified in allowed[]. If no
|
| + * targetTags are specified, the firewall rule applies to all instances on the
|
| + * specified network.
|
| + */
|
| + core.List<core.String> targetTags;
|
|
|
| - DiskAggregatedList();
|
| + Firewall();
|
|
|
| - DiskAggregatedList.fromJson(core.Map _json) {
|
| + 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 = 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("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"] = commons.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;
|
| }
|
| }
|
|
|
| -/** A list of Disk resources. */
|
| -class DiskList {
|
| +/** Contains a list of firewalls. */
|
| +class FirewallList {
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| - /** [Output Only] A list of persistent disks. */
|
| - core.List<Disk> items;
|
| + /** [Output Only] A list of Firewall resources. */
|
| + core.List<Firewall> items;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#diskList for lists of disks.
|
| + * [Output Only] Type of resource. Always compute#firewallList for lists of
|
| + * firewalls.
|
| */
|
| core.String kind;
|
| /**
|
| @@ -15587,14 +18113,14 @@ class DiskList {
|
| /** [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"];
|
| @@ -15628,57 +18154,47 @@ class DiskList {
|
| }
|
| }
|
|
|
| -class DiskMoveRequest {
|
| +/**
|
| + * A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
| + * target virtual machines to forward a packet to if it matches the given
|
| + * [IPAddress, IPProtocol, portRange] tuple.
|
| + */
|
| +class ForwardingRule {
|
| /**
|
| - * The URL of the destination zone to move the disk. 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
|
| + * The 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. By default, this field is empty and an ephemeral IP from
|
| + * the same scope (global or regional) will be assigned.
|
| + *
|
| + * When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
|
| + * address belonging to the network/subnetwork configured for the forwarding
|
| + * rule. A reserved address cannot be used. If the field is empty, the IP
|
| + * address will be automatically allocated from the internal IP range of the
|
| + * subnetwork or network configured for this forwarding rule.
|
| */
|
| - core.String destinationZone;
|
| + core.String IPAddress;
|
| /**
|
| - * 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
|
| + * The IP protocol to which this rule applies. Valid options are TCP, UDP,
|
| + * ESP, AH, SCTP or ICMP.
|
| + *
|
| + * When the load balancing scheme is INTERNAL</code, only TCP and UDP are
|
| + * valid.
|
| + * Possible string values are:
|
| + * - "AH"
|
| + * - "ESP"
|
| + * - "SCTP"
|
| + * - "TCP"
|
| + * - "UDP"
|
| */
|
| - core.String targetDisk;
|
| -
|
| - DiskMoveRequest();
|
| -
|
| - DiskMoveRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("destinationZone")) {
|
| - destinationZone = _json["destinationZone"];
|
| - }
|
| - if (_json.containsKey("targetDisk")) {
|
| - targetDisk = _json["targetDisk"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (destinationZone != null) {
|
| - _json["destinationZone"] = destinationZone;
|
| - }
|
| - if (targetDisk != null) {
|
| - _json["targetDisk"] = targetDisk;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** A DiskType resource. */
|
| -class DiskType {
|
| + core.String IPProtocol;
|
| /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| core.String creationTimestamp;
|
| - /** [Output Only] Server-defined default disk size in GB. */
|
| - core.String defaultDiskSizeGb;
|
| - /** [Output Only] The deprecation status associated with this disk type. */
|
| - DeprecationStatus deprecated;
|
| - /** [Output Only] An optional description of this resource. */
|
| + /**
|
| + * An optional description of this resource. Provide this property when you
|
| + * create the resource.
|
| + */
|
| core.String description;
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| @@ -15686,32 +18202,59 @@ class DiskType {
|
| */
|
| core.String id;
|
| /**
|
| - * [Output Only] Type of the resource. Always compute#diskType for disk types.
|
| + * [Output Only] Type of the resource. Always compute#forwardingRule for
|
| + * Forwarding Rule resources.
|
| */
|
| core.String kind;
|
| - /** [Output Only] 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.
|
| + * 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.
|
| + * Forwarding rules with the same [IPAddress, IPProtocol] pair must have
|
| + * disjoint port ranges.
|
| + *
|
| + * This field is not used for internal load balancing.
|
| + */
|
| + core.String portRange;
|
| + /**
|
| + * [Output Only] URL of the region where the regional forwarding rule resides.
|
| + * This field is not applicable to global forwarding rules.
|
| + */
|
| + core.String region;
|
| /** [Output Only] Server-defined URL for the resource. */
|
| core.String selfLink;
|
| /**
|
| - * [Output Only] An optional textual description of the valid disk size, such
|
| - * as "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 or TargetHttpsProxy resource. The forwarded traffic must be
|
| + * of a type appropriate to the target object. For example, TargetHttpProxy
|
| + * requires HTTP traffic, and TargetHttpsProxy requires HTTPS traffic.
|
| + *
|
| + * This field is not used for internal load balancing.
|
| */
|
| - core.String validDiskSize;
|
| - /** [Output Only] URL of the zone where the disk type resides. */
|
| - 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"];
|
| @@ -15725,27 +18268,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;
|
| @@ -15759,28 +18305,34 @@ 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;
|
| }
|
| }
|
|
|
| -class DiskTypeAggregatedList {
|
| +class ForwardingRuleAggregatedList {
|
| /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| - /** [Output Only] A map of scoped disk type lists. */
|
| - core.Map<core.String, DiskTypesScopedList> items;
|
| - /** [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */
|
| + /** A map of scoped forwarding rule lists. */
|
| + core.Map<core.String, ForwardingRulesScopedList> items;
|
| + /**
|
| + * [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList
|
| + * for lists of forwarding rules.
|
| + */
|
| core.String kind;
|
| /**
|
| * [Output Only] This token allows you to get the next page of results for
|
| @@ -15793,14 +18345,14 @@ class DiskTypeAggregatedList {
|
| /** [Output Only] Server-defined URL for this resource. */
|
| 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 = commons.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"];
|
| @@ -15834,18 +18386,13 @@ class DiskTypeAggregatedList {
|
| }
|
| }
|
|
|
| -/** Contains a list of disk types. */
|
| -class DiskTypeList {
|
| - /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| - */
|
| +/** Contains a list of ForwardingRule resources. */
|
| +class ForwardingRuleList {
|
| + /** [Output Only] Unique identifier for the resource. Set by the server. */
|
| core.String id;
|
| - /** [Output Only] A list of Disk Type resources. */
|
| - core.List<DiskType> items;
|
| - /**
|
| - * [Output Only] Type of resource. Always compute#diskTypeList for disk types.
|
| - */
|
| + /** A list of ForwardingRule resources. */
|
| + core.List<ForwardingRule> items;
|
| + /** Type of resource. */
|
| core.String kind;
|
| /**
|
| * [Output Only] This token allows you to get the next page of results for
|
| @@ -15858,14 +18405,14 @@ class DiskTypeList {
|
| /** [Output Only] Server-defined URL for this resource. */
|
| 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"];
|
| @@ -15899,162 +18446,7 @@ class DiskTypeList {
|
| }
|
| }
|
|
|
| -class DiskTypesScopedListWarningData {
|
| - /**
|
| - * [Output Only] A key that provides more detail on the warning being
|
| - * returned. For example, for warnings where there are no results in a list
|
| - * request for a particular zone, this key might be scope and the key value
|
| - * might be the zone name. Other examples might be a key indicating a
|
| - * deprecated resource and a suggested replacement, or a warning about invalid
|
| - * network settings (for example, if an instance attempts to perform IP
|
| - * forwarding but is not enabled for IP forwarding).
|
| - */
|
| - 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 {
|
| - /**
|
| - * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| - * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| - * Possible string values are:
|
| - * - "CLEANUP_FAILED"
|
| - * - "DEPRECATED_RESOURCE_USED"
|
| - * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| - * - "FIELD_VALUE_OVERRIDEN"
|
| - * - "INJECTED_KERNELS_DEPRECATED"
|
| - * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| - * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| - * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| - * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| - * - "NEXT_HOP_NOT_RUNNING"
|
| - * - "NOT_CRITICAL_ERROR"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| - * - "UNREACHABLE"
|
| - */
|
| - core.String code;
|
| - /**
|
| - * [Output Only] Metadata about this warning in key: value format. For
|
| - * example:
|
| - * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| - */
|
| - core.List<DiskTypesScopedListWarningData> data;
|
| - /** [Output Only] A human-readable description of the warning code. */
|
| - 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 DisksResizeRequest {
|
| - /** The new size of the persistent disk, which is specified in GB. */
|
| - core.String sizeGb;
|
| -
|
| - DisksResizeRequest();
|
| -
|
| - DisksResizeRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("sizeGb")) {
|
| - sizeGb = _json["sizeGb"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (sizeGb != null) {
|
| - _json["sizeGb"] = sizeGb;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class DisksScopedListWarningData {
|
| +class ForwardingRulesScopedListWarningData {
|
| /**
|
| * [Output Only] A key that provides more detail on the warning being
|
| * returned. For example, for warnings where there are no results in a list
|
| @@ -16068,9 +18460,9 @@ class DisksScopedListWarningData {
|
| /** [Output Only] A warning data value corresponding to the key. */
|
| core.String value;
|
|
|
| - DisksScopedListWarningData();
|
| + ForwardingRulesScopedListWarningData();
|
|
|
| - DisksScopedListWarningData.fromJson(core.Map _json) {
|
| + ForwardingRulesScopedListWarningData.fromJson(core.Map _json) {
|
| if (_json.containsKey("key")) {
|
| key = _json["key"];
|
| }
|
| @@ -16092,10 +18484,10 @@ class DisksScopedListWarningData {
|
| }
|
|
|
| /**
|
| - * [Output Only] Informational warning which replaces the list of disks when the
|
| + * Informational warning which replaces the list of forwarding rules when the
|
| * list is empty.
|
| */
|
| -class DisksScopedListWarning {
|
| +class ForwardingRulesScopedListWarning {
|
| /**
|
| * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| @@ -16123,18 +18515,18 @@ class DisksScopedListWarning {
|
| * example:
|
| * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| */
|
| - core.List<DisksScopedListWarningData> data;
|
| + core.List<ForwardingRulesScopedListWarningData> data;
|
| /** [Output Only] A human-readable description of the warning code. */
|
| core.String message;
|
|
|
| - DisksScopedListWarning();
|
| + ForwardingRulesScopedListWarning();
|
|
|
| - DisksScopedListWarning.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 DisksScopedListWarningData.fromJson(value)).toList();
|
| + data = _json["data"].map((value) => new ForwardingRulesScopedListWarningData.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -16156,30 +18548,30 @@ class DisksScopedListWarning {
|
| }
|
| }
|
|
|
| -class DisksScopedList {
|
| - /** [Output Only] List of disks contained in this scope. */
|
| - core.List<Disk> disks;
|
| +class ForwardingRulesScopedList {
|
| + /** List of forwarding rules contained in this scope. */
|
| + core.List<ForwardingRule> forwardingRules;
|
| /**
|
| - * [Output Only] Informational warning which replaces the list of disks when
|
| - * the list is empty.
|
| + * Informational warning which replaces the list of forwarding rules when the
|
| + * list is empty.
|
| */
|
| - DisksScopedListWarning warning;
|
| + ForwardingRulesScopedListWarning warning;
|
|
|
| - DisksScopedList();
|
| + ForwardingRulesScopedList();
|
|
|
| - DisksScopedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("disks")) {
|
| - disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList();
|
| + 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 DisksScopedListWarning.fromJson(_json["warning"]);
|
| + warning = new ForwardingRulesScopedListWarning.fromJson(_json["warning"]);
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (disks != null) {
|
| - _json["disks"] = disks.map((value) => (value).toJson()).toList();
|
| + if (forwardingRules != null) {
|
| + _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()).toList();
|
| }
|
| if (warning != null) {
|
| _json["warning"] = (warning).toJson();
|
| @@ -16188,304 +18580,229 @@ class DisksScopedList {
|
| }
|
| }
|
|
|
| -class FirewallAllowed {
|
| +class HTTP2HealthCheck {
|
| /**
|
| - * The IP protocol to which this rule applies. The protocol type is required
|
| - * when creating a firewall rule. This value can either be one of the
|
| - * following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or
|
| - * the IP protocol number.
|
| + * The value of the host header in the HTTP/2 health check request. If left
|
| + * empty (default value), the IP on behalf of which this health check is
|
| + * performed will be used.
|
| */
|
| - core.String IPProtocol;
|
| + core.String host;
|
| /**
|
| - * An optional list of ports to which this rule applies. This field is only
|
| - * applicable for UDP or TCP protocol. Each entry must be either an integer or
|
| - * a range. If not specified, this rule applies to connections through any
|
| - * port.
|
| - *
|
| - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
|
| + * The TCP port number for the health check request. The default value is 443.
|
| */
|
| - core.List<core.String> ports;
|
| + core.int port;
|
| + /**
|
| + * Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
| + * port_name are defined, port takes precedence.
|
| + */
|
| + core.String portName;
|
| + /**
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| + */
|
| + core.String proxyHeader;
|
| + /**
|
| + * The request path of the HTTP/2 health check request. The default value is
|
| + * /.
|
| + */
|
| + core.String requestPath;
|
|
|
| - FirewallAllowed();
|
| + HTTP2HealthCheck();
|
|
|
| - FirewallAllowed.fromJson(core.Map _json) {
|
| - if (_json.containsKey("IPProtocol")) {
|
| - IPProtocol = _json["IPProtocol"];
|
| + HTTP2HealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - if (_json.containsKey("ports")) {
|
| - ports = _json["ports"];
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| + }
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| + }
|
| + if (_json.containsKey("requestPath")) {
|
| + requestPath = _json["requestPath"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (IPProtocol != null) {
|
| - _json["IPProtocol"] = IPProtocol;
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| }
|
| - if (ports != null) {
|
| - _json["ports"] = ports;
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| + }
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| + }
|
| + if (requestPath != null) {
|
| + _json["requestPath"] = requestPath;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Represents a Firewall resource. */
|
| -class Firewall {
|
| - /**
|
| - * The list of ALLOW rules specified by this firewall. Each rule specifies a
|
| - * protocol and port-range tuple that describes a permitted connection.
|
| - */
|
| - core.List<FirewallAllowed> allowed;
|
| - /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| - core.String creationTimestamp;
|
| - /**
|
| - * An optional description of this resource. Provide this property when you
|
| - * create the resource.
|
| - */
|
| - core.String description;
|
| - /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| - */
|
| - core.String id;
|
| - /**
|
| - * [Output Ony] Type of the resource. Always compute#firewall for firewall
|
| - * rules.
|
| - */
|
| - core.String kind;
|
| +class HTTPHealthCheck {
|
| /**
|
| - * 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.
|
| + * The value of the host header in the HTTP health check request. If left
|
| + * empty (default value), the IP on behalf of which this health check is
|
| + * performed will be used.
|
| */
|
| - core.String name;
|
| + core.String host;
|
| /**
|
| - * URL of the network resource for this 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
|
| + * The TCP port number for the health check request. The default value is 80.
|
| */
|
| - core.String network;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| - core.String selfLink;
|
| + core.int port;
|
| /**
|
| - * If source ranges are specified, the firewall will apply only to traffic
|
| - * that has source IP address in these ranges. These ranges must be expressed
|
| - * in CIDR format. One or both of sourceRanges and sourceTags may be set. If
|
| - * both properties are set, the firewall will apply to traffic that has source
|
| - * IP address within sourceRanges OR the source IP that belongs to a tag
|
| - * listed in the sourceTags property. The connection does not need to match
|
| - * both properties for the firewall to apply.
|
| + * Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
| + * port_name are defined, port takes precedence.
|
| */
|
| - core.List<core.String> sourceRanges;
|
| + core.String portName;
|
| /**
|
| - * If source tags are specified, the firewall will apply only to traffic with
|
| - * source IP that belongs to a tag listed in source tags. Source tags cannot
|
| - * be used to control traffic to an instance's external IP address. Because
|
| - * tags are associated with an instance, not an IP address. One or both of
|
| - * sourceRanges and sourceTags may be set. If both properties are set, the
|
| - * firewall will apply to traffic that has source IP address within
|
| - * sourceRanges OR the source IP that belongs to a tag listed in the
|
| - * sourceTags property. The connection does not need to match both properties
|
| - * for the firewall to apply.
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| */
|
| - core.List<core.String> sourceTags;
|
| + core.String proxyHeader;
|
| /**
|
| - * A list of instance tags indicating sets of instances located in the network
|
| - * that may make network connections as specified in allowed[]. If no
|
| - * targetTags are specified, the firewall rule applies to all instances on the
|
| - * specified network.
|
| + * The request path of the HTTP health check request. The default value is /.
|
| */
|
| - core.List<core.String> targetTags;
|
| + core.String requestPath;
|
|
|
| - Firewall();
|
| + HTTPHealthCheck();
|
|
|
| - 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("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("network")) {
|
| - network = _json["network"];
|
| + HTTPHealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| }
|
| - if (_json.containsKey("sourceRanges")) {
|
| - sourceRanges = _json["sourceRanges"];
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| }
|
| - if (_json.containsKey("sourceTags")) {
|
| - sourceTags = _json["sourceTags"];
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| }
|
| - if (_json.containsKey("targetTags")) {
|
| - targetTags = _json["targetTags"];
|
| + if (_json.containsKey("requestPath")) {
|
| + requestPath = _json["requestPath"];
|
| }
|
| }
|
|
|
| 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 (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (network != null) {
|
| - _json["network"] = network;
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| }
|
| - if (sourceRanges != null) {
|
| - _json["sourceRanges"] = sourceRanges;
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| }
|
| - if (sourceTags != null) {
|
| - _json["sourceTags"] = sourceTags;
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| }
|
| - if (targetTags != null) {
|
| - _json["targetTags"] = targetTags;
|
| + if (requestPath != null) {
|
| + _json["requestPath"] = requestPath;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Contains a list of firewalls. */
|
| -class FirewallList {
|
| +class HTTPSHealthCheck {
|
| + /**
|
| + * The value of the host header in the HTTPS health check request. If left
|
| + * empty (default value), the IP on behalf of which this health check is
|
| + * performed will be used.
|
| + */
|
| + core.String host;
|
| + /**
|
| + * The TCP port number for the health check request. The default value is 443.
|
| + */
|
| + core.int port;
|
| /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| + * Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
| + * port_name are defined, port takes precedence.
|
| */
|
| - core.String id;
|
| - /** [Output Only] A list of Firewall resources. */
|
| - core.List<Firewall> items;
|
| + core.String portName;
|
| /**
|
| - * [Output Only] Type of resource. Always compute#firewallList for lists of
|
| - * firewalls.
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| */
|
| - core.String kind;
|
| + core.String proxyHeader;
|
| /**
|
| - * [Output Only] This token allows you to get the next page of results for
|
| - * list requests. If the number of results is larger than maxResults, use the
|
| - * nextPageToken as a value for the query parameter pageToken in the next list
|
| - * request. Subsequent list requests will have their own nextPageToken to
|
| - * continue paging through the results.
|
| + * The request path of the HTTPS health check request. The default value is /.
|
| */
|
| - core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for this resource. */
|
| - core.String selfLink;
|
| + core.String requestPath;
|
|
|
| - FirewallList();
|
| + HTTPSHealthCheck();
|
|
|
| - FirewallList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| + HTTPSHealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("host")) {
|
| + host = _json["host"];
|
| }
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Firewall.fromJson(value)).toList();
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (_json.containsKey("requestPath")) {
|
| + requestPath = _json["requestPath"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| + if (host != null) {
|
| + _json["host"] = host;
|
| }
|
| - if (items != null) {
|
| - _json["items"] = items.map((value) => (value).toJson()).toList();
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| + if (requestPath != null) {
|
| + _json["requestPath"] = requestPath;
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| /**
|
| - * A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
| - * target virtual machines to forward a packet to if it matches the given
|
| - * [IPAddress, IPProtocol, portRange] tuple.
|
| + * An HealthCheck resource. This resource defines a template for how individual
|
| + * virtual machines should be checked for health, via one of the supported
|
| + * protocols.
|
| */
|
| -class ForwardingRule {
|
| +class HealthCheck {
|
| /**
|
| - * The 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. By default, this field is empty and an ephemeral IP from
|
| - * the same scope (global or regional) will be assigned.
|
| - *
|
| - * When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
|
| - * address belonging to the network/subnetwork configured for the forwarding
|
| - * rule. A reserved address cannot be used. If the field is empty, the IP
|
| - * address will be automatically allocated from the internal IP range of the
|
| - * subnetwork or network configured for this forwarding rule.
|
| - */
|
| - core.String IPAddress;
|
| - /**
|
| - * The IP protocol to which this rule applies. Valid options are TCP, UDP,
|
| - * ESP, AH, SCTP or ICMP.
|
| - *
|
| - * When the load balancing scheme is INTERNAL</code, only TCP and UDP are
|
| - * valid.
|
| - * Possible string values are:
|
| - * - "AH"
|
| - * - "ESP"
|
| - * - "SCTP"
|
| - * - "TCP"
|
| - * - "UDP"
|
| + * How often (in seconds) to send a health check. The default value is 5
|
| + * seconds.
|
| */
|
| - core.String IPProtocol;
|
| - /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.int checkIntervalSec;
|
| + /** [Output Only] Creation timestamp in 3339 text format. */
|
| core.String creationTimestamp;
|
| /**
|
| * An optional description of this resource. Provide this property when you
|
| @@ -16493,17 +18810,22 @@ class ForwardingRule {
|
| */
|
| core.String description;
|
| /**
|
| + * A so-far unhealthy instance will be marked healthy after this many
|
| + * consecutive successes. The default value is 2.
|
| + */
|
| + core.int healthyThreshold;
|
| + HTTP2HealthCheck http2HealthCheck;
|
| + HTTPHealthCheck httpHealthCheck;
|
| + HTTPSHealthCheck httpsHealthCheck;
|
| + /**
|
| * [Output Only] The unique identifier for the resource. This identifier is
|
| * defined by the server.
|
| */
|
| core.String id;
|
| - /**
|
| - * [Output Only] Type of the resource. Always compute#forwardingRule for
|
| - * Forwarding Rule resources.
|
| - */
|
| + /** Type of the resource. */
|
| core.String kind;
|
| /**
|
| - * Name of the resource; provided by the client when the resource is created.
|
| + * Name of the resource. Provided by the client when the resource is created.
|
| * The name must be 1-63 characters long, and comply with RFC1035.
|
| * Specifically, the name must be 1-63 characters long and match the regular
|
| * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must
|
| @@ -16512,42 +18834,41 @@ class ForwardingRule {
|
| * dash.
|
| */
|
| core.String name;
|
| + /** [Output Only] Server-defined URL for the resource. */
|
| + core.String selfLink;
|
| + SSLHealthCheck sslHealthCheck;
|
| + TCPHealthCheck tcpHealthCheck;
|
| /**
|
| - * Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets
|
| - * addressed to ports in the specified range will be forwarded to target.
|
| - * Forwarding rules with the same [IPAddress, IPProtocol] pair must have
|
| - * disjoint port ranges.
|
| - *
|
| - * This field is not used for internal load balancing.
|
| + * 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.String portRange;
|
| + core.int timeoutSec;
|
| /**
|
| - * [Output Only] URL of the region where the regional forwarding rule resides.
|
| - * This field is not applicable to global forwarding rules.
|
| + * Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or
|
| + * HTTP2. If not specified, the default is TCP. Exactly one of the
|
| + * protocol-specific health check field must be specified, which must match
|
| + * type field.
|
| + * Possible string values are:
|
| + * - "HTTP"
|
| + * - "HTTP2"
|
| + * - "HTTPS"
|
| + * - "INVALID"
|
| + * - "SSL"
|
| + * - "TCP"
|
| */
|
| - core.String region;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| - core.String selfLink;
|
| + core.String type;
|
| /**
|
| - * 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 or TargetHttpsProxy resource. The forwarded traffic must be
|
| - * of a type appropriate to the target object. For example, TargetHttpProxy
|
| - * requires HTTP traffic, and TargetHttpsProxy requires HTTPS traffic.
|
| - *
|
| - * This field is not used for internal load balancing.
|
| + * A so-far healthy instance will be marked unhealthy after this many
|
| + * consecutive failures. The default value is 2.
|
| */
|
| - core.String target;
|
| + core.int unhealthyThreshold;
|
|
|
| - ForwardingRule();
|
| + HealthCheck();
|
|
|
| - ForwardingRule.fromJson(core.Map _json) {
|
| - if (_json.containsKey("IPAddress")) {
|
| - IPAddress = _json["IPAddress"];
|
| - }
|
| - if (_json.containsKey("IPProtocol")) {
|
| - IPProtocol = _json["IPProtocol"];
|
| + HealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("checkIntervalSec")) {
|
| + checkIntervalSec = _json["checkIntervalSec"];
|
| }
|
| if (_json.containsKey("creationTimestamp")) {
|
| creationTimestamp = _json["creationTimestamp"];
|
| @@ -16555,6 +18876,18 @@ class ForwardingRule {
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| }
|
| + if (_json.containsKey("healthyThreshold")) {
|
| + healthyThreshold = _json["healthyThreshold"];
|
| + }
|
| + if (_json.containsKey("http2HealthCheck")) {
|
| + http2HealthCheck = new HTTP2HealthCheck.fromJson(_json["http2HealthCheck"]);
|
| + }
|
| + if (_json.containsKey("httpHealthCheck")) {
|
| + httpHealthCheck = new HTTPHealthCheck.fromJson(_json["httpHealthCheck"]);
|
| + }
|
| + if (_json.containsKey("httpsHealthCheck")) {
|
| + httpsHealthCheck = new HTTPSHealthCheck.fromJson(_json["httpsHealthCheck"]);
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -16564,27 +18897,30 @@ class ForwardingRule {
|
| 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("target")) {
|
| - target = _json["target"];
|
| + if (_json.containsKey("sslHealthCheck")) {
|
| + sslHealthCheck = new SSLHealthCheck.fromJson(_json["sslHealthCheck"]);
|
| + }
|
| + if (_json.containsKey("tcpHealthCheck")) {
|
| + tcpHealthCheck = new TCPHealthCheck.fromJson(_json["tcpHealthCheck"]);
|
| + }
|
| + if (_json.containsKey("timeoutSec")) {
|
| + timeoutSec = _json["timeoutSec"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + if (_json.containsKey("unhealthyThreshold")) {
|
| + unhealthyThreshold = _json["unhealthyThreshold"];
|
| }
|
| }
|
|
|
| core.Map toJson() {
|
| var _json = new core.Map();
|
| - if (IPAddress != null) {
|
| - _json["IPAddress"] = IPAddress;
|
| - }
|
| - if (IPProtocol != null) {
|
| - _json["IPProtocol"] = IPProtocol;
|
| + if (checkIntervalSec != null) {
|
| + _json["checkIntervalSec"] = checkIntervalSec;
|
| }
|
| if (creationTimestamp != null) {
|
| _json["creationTimestamp"] = creationTimestamp;
|
| @@ -16592,102 +18928,58 @@ class ForwardingRule {
|
| 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 (portRange != null) {
|
| - _json["portRange"] = portRange;
|
| - }
|
| - if (region != null) {
|
| - _json["region"] = region;
|
| - }
|
| - if (selfLink != null) {
|
| - _json["selfLink"] = selfLink;
|
| - }
|
| - if (target != null) {
|
| - _json["target"] = target;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class ForwardingRuleAggregatedList {
|
| - /**
|
| - * [Output Only] The unique identifier for the resource. This identifier is
|
| - * defined by the server.
|
| - */
|
| - core.String id;
|
| - /** A map of scoped forwarding rule lists. */
|
| - core.Map<core.String, ForwardingRulesScopedList> items;
|
| - /**
|
| - * [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList
|
| - * for lists of forwarding rules.
|
| - */
|
| - core.String kind;
|
| - /**
|
| - * [Output Only] This token allows you to get the next page of results for
|
| - * list requests. If the number of results is larger than maxResults, use the
|
| - * nextPageToken as a value for the query parameter pageToken in the next list
|
| - * request. Subsequent list requests will have their own nextPageToken to
|
| - * continue paging through the results.
|
| - */
|
| - core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for this resource. */
|
| - core.String selfLink;
|
| -
|
| - ForwardingRuleAggregatedList();
|
| -
|
| - ForwardingRuleAggregatedList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("items")) {
|
| - items = commons.mapMap(_json["items"], (item) => new ForwardingRulesScopedList.fromJson(item));
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| + if (healthyThreshold != null) {
|
| + _json["healthyThreshold"] = healthyThreshold;
|
| }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| + if (http2HealthCheck != null) {
|
| + _json["http2HealthCheck"] = (http2HealthCheck).toJson();
|
| }
|
| - if (_json.containsKey("selfLink")) {
|
| - selfLink = _json["selfLink"];
|
| + if (httpHealthCheck != null) {
|
| + _json["httpHealthCheck"] = (httpHealthCheck).toJson();
|
| }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| + if (httpsHealthCheck != null) {
|
| + _json["httpsHealthCheck"] = (httpsHealthCheck).toJson();
|
| }
|
| - if (items != null) {
|
| - _json["items"] = commons.mapMap(items, (item) => (item).toJson());
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| + if (sslHealthCheck != null) {
|
| + _json["sslHealthCheck"] = (sslHealthCheck).toJson();
|
| + }
|
| + if (tcpHealthCheck != null) {
|
| + _json["tcpHealthCheck"] = (tcpHealthCheck).toJson();
|
| + }
|
| + if (timeoutSec != null) {
|
| + _json["timeoutSec"] = timeoutSec;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + if (unhealthyThreshold != null) {
|
| + _json["unhealthyThreshold"] = unhealthyThreshold;
|
| + }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Contains a list of ForwardingRule resources. */
|
| -class ForwardingRuleList {
|
| - /** [Output Only] Unique identifier for the resource. Set by the server. */
|
| +/** Contains a list of HealthCheck resources. */
|
| +class HealthCheckList {
|
| + /**
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| + */
|
| core.String id;
|
| - /** A list of ForwardingRule resources. */
|
| - core.List<ForwardingRule> items;
|
| + /** A list of HealthCheck resources. */
|
| + core.List<HealthCheck> items;
|
| /** Type of resource. */
|
| core.String kind;
|
| /**
|
| @@ -16701,14 +18993,14 @@ class ForwardingRuleList {
|
| /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| - ForwardingRuleList();
|
| + HealthCheckList();
|
|
|
| - ForwardingRuleList.fromJson(core.Map _json) {
|
| + HealthCheckList.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 HealthCheck.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -16742,140 +19034,6 @@ class ForwardingRuleList {
|
| }
|
| }
|
|
|
| -class ForwardingRulesScopedListWarningData {
|
| - /**
|
| - * [Output Only] A key that provides more detail on the warning being
|
| - * returned. For example, for warnings where there are no results in a list
|
| - * request for a particular zone, this key might be scope and the key value
|
| - * might be the zone name. Other examples might be a key indicating a
|
| - * deprecated resource and a suggested replacement, or a warning about invalid
|
| - * network settings (for example, if an instance attempts to perform IP
|
| - * forwarding but is not enabled for IP forwarding).
|
| - */
|
| - core.String key;
|
| - /** [Output Only] 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 {
|
| - /**
|
| - * [Output Only] A warning code, if applicable. For example, Compute Engine
|
| - * returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
| - * Possible string values are:
|
| - * - "CLEANUP_FAILED"
|
| - * - "DEPRECATED_RESOURCE_USED"
|
| - * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
|
| - * - "FIELD_VALUE_OVERRIDEN"
|
| - * - "INJECTED_KERNELS_DEPRECATED"
|
| - * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
|
| - * - "NEXT_HOP_CANNOT_IP_FORWARD"
|
| - * - "NEXT_HOP_INSTANCE_NOT_FOUND"
|
| - * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
|
| - * - "NEXT_HOP_NOT_RUNNING"
|
| - * - "NOT_CRITICAL_ERROR"
|
| - * - "NO_RESULTS_ON_PAGE"
|
| - * - "REQUIRED_TOS_AGREEMENT"
|
| - * - "RESOURCE_NOT_DELETED"
|
| - * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
|
| - * - "UNREACHABLE"
|
| - */
|
| - core.String code;
|
| - /**
|
| - * [Output Only] Metadata about this warning in key: value format. For
|
| - * example:
|
| - * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
|
| - */
|
| - core.List<ForwardingRulesScopedListWarningData> data;
|
| - /** [Output Only] A human-readable description of the warning code. */
|
| - 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;
|
| - }
|
| -}
|
| -
|
| -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;
|
| - }
|
| -}
|
| -
|
| /**
|
| * A full or valid partial URL to a health check. For example, the following are
|
| * valid URLs:
|
| @@ -17565,8 +19723,8 @@ class Image {
|
| * 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
|
| + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
|
| + * - projects/project/zones/zone/disks/disk
|
| * - zones/zone/disks/disk
|
| */
|
| core.String sourceDisk;
|
| @@ -17870,7 +20028,7 @@ class Instance {
|
| core.List<ServiceAccount> serviceAccounts;
|
| /**
|
| * [Output Only] The status of the instance. One of the following values:
|
| - * PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and
|
| + * PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and
|
| * TERMINATED.
|
| * Possible string values are:
|
| * - "PROVISIONING"
|
| @@ -18104,8 +20262,8 @@ class InstanceGroup {
|
| fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /**
|
| - * [Output Only] A unique identifier for this resource type. The server
|
| - * generates this identifier.
|
| + * [Output Only] A unique identifier for this instance group, generated by the
|
| + * server.
|
| */
|
| core.String id;
|
| /**
|
| @@ -18133,6 +20291,11 @@ class InstanceGroup {
|
| */
|
| core.String network;
|
| /**
|
| + * The URL of the region where the instance group is located (for regional
|
| + * resources).
|
| + */
|
| + core.String region;
|
| + /**
|
| * [Output Only] The URL for this instance group. The server generates this
|
| * URL.
|
| */
|
| @@ -18177,6 +20340,9 @@ class InstanceGroup {
|
| if (_json.containsKey("network")) {
|
| network = _json["network"];
|
| }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| @@ -18217,6 +20383,9 @@ class InstanceGroup {
|
| if (network != null) {
|
| _json["network"] = network;
|
| }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| + }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| @@ -18436,6 +20605,11 @@ class InstanceGroupManager {
|
| */
|
| core.List<NamedPort> namedPorts;
|
| /**
|
| + * [Output Only] The URL of the region where the managed instance group
|
| + * resides (for regional resources).
|
| + */
|
| + core.String region;
|
| + /**
|
| * [Output Only] The URL for this managed instance group. The server defines
|
| * this URL.
|
| */
|
| @@ -18494,6 +20668,9 @@ class InstanceGroupManager {
|
| if (_json.containsKey("namedPorts")) {
|
| namedPorts = _json["namedPorts"].map((value) => new NamedPort.fromJson(value)).toList();
|
| }
|
| + if (_json.containsKey("region")) {
|
| + region = _json["region"];
|
| + }
|
| if (_json.containsKey("selfLink")) {
|
| selfLink = _json["selfLink"];
|
| }
|
| @@ -18543,6 +20720,9 @@ class InstanceGroupManager {
|
| if (namedPorts != null) {
|
| _json["namedPorts"] = namedPorts.map((value) => (value).toJson()).toList();
|
| }
|
| + if (region != null) {
|
| + _json["region"] = region;
|
| + }
|
| if (selfLink != null) {
|
| _json["selfLink"] = selfLink;
|
| }
|
| @@ -18580,7 +20760,7 @@ class InstanceGroupManagerActionsSummary {
|
| * [Output Only] The number of instances that the managed instance group will
|
| * attempt to create. The group attempts to create each instance only once. If
|
| * the group fails to create any of these instances, it decreases the group's
|
| - * target_size value accordingly.
|
| + * targetSize value accordingly.
|
| */
|
| core.int creatingWithoutRetries;
|
| /**
|
| @@ -18763,10 +20943,7 @@ class InstanceGroupManagerList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /**
|
| - * [Output Only] The URL for this resource type. The server generates this
|
| - * URL.
|
| - */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| InstanceGroupManagerList();
|
| @@ -21135,7 +23312,7 @@ class NetworkList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for this resource . */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| NetworkList();
|
| @@ -21438,7 +23615,11 @@ class Operation {
|
| * of the target resource.
|
| */
|
| core.String targetId;
|
| - /** [Output Only] The URL of the resource that the operation modifies. */
|
| + /**
|
| + * [Output Only] The URL of the resource that the operation modifies. For
|
| + * operations related to creating a snapshot, this points to the persistent
|
| + * disk that the snapshot was created from.
|
| + */
|
| core.String targetLink;
|
| /**
|
| * [Output Only] User who requested the operation, for example:
|
| @@ -22114,6 +24295,9 @@ class Quota {
|
| * - "IN_USE_ADDRESSES"
|
| * - "LOCAL_SSD_TOTAL_GB"
|
| * - "NETWORKS"
|
| + * - "PREEMPTIBLE_CPUS"
|
| + * - "REGIONAL_AUTOSCALERS"
|
| + * - "REGIONAL_INSTANCE_GROUP_MANAGERS"
|
| * - "ROUTERS"
|
| * - "ROUTES"
|
| * - "SNAPSHOTS"
|
| @@ -22336,7 +24520,7 @@ class RegionList {
|
|
|
| class ResourceGroupReference {
|
| /**
|
| - * A URI referencing one of the resource views listed in the backend service.
|
| + * A URI referencing one of the instance groups listed in the backend service.
|
| */
|
| core.String group;
|
|
|
| @@ -22735,7 +24919,8 @@ class Router {
|
| core.String id;
|
| /**
|
| * Router interfaces. Each interface requires either one linked resource (e.g.
|
| - * linkedVpnTunnel) or IP address and IP address range (e.g. ipRange).
|
| + * linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or
|
| + * both.
|
| */
|
| core.List<RouterInterface> interfaces;
|
| /** [Output Only] Type of resource. Always compute#router for routers. */
|
| @@ -23060,7 +25245,7 @@ class RouterList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| RouterList();
|
| @@ -23425,6 +25610,79 @@ class RoutersScopedList {
|
| }
|
| }
|
|
|
| +class SSLHealthCheck {
|
| + /**
|
| + * The TCP port number for the health check request. The default value is 443.
|
| + */
|
| + core.int port;
|
| + /**
|
| + * Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
| + * port_name are defined, port takes precedence.
|
| + */
|
| + core.String portName;
|
| + /**
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| + */
|
| + core.String proxyHeader;
|
| + /**
|
| + * The application data to send once the SSL connection has been established
|
| + * (default value is empty). If both request and response are empty, the
|
| + * connection establishment alone will indicate health. The request data can
|
| + * only be ASCII.
|
| + */
|
| + core.String request;
|
| + /**
|
| + * The bytes to match against the beginning of the response data. If left
|
| + * empty (the default value), any response will indicate health. The response
|
| + * data can only be ASCII.
|
| + */
|
| + core.String response;
|
| +
|
| + SSLHealthCheck();
|
| +
|
| + SSLHealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| + }
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| + }
|
| + if (_json.containsKey("request")) {
|
| + request = _json["request"];
|
| + }
|
| + if (_json.containsKey("response")) {
|
| + response = _json["response"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| + }
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| + }
|
| + if (request != null) {
|
| + _json["request"] = request;
|
| + }
|
| + if (response != null) {
|
| + _json["response"] = response;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| /** Sets the scheduling options for an Instance. */
|
| class Scheduling {
|
| /**
|
| @@ -23485,7 +25743,7 @@ class SerialPortOutput {
|
| * serial port output.
|
| */
|
| core.String kind;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| SerialPortOutput();
|
| @@ -24228,6 +26486,32 @@ class SubnetworkList {
|
| }
|
| }
|
|
|
| +class SubnetworksExpandIpCidrRangeRequest {
|
| + /**
|
| + * The IP (in CIDR format or netmask) of internal addresses that are legal on
|
| + * this Subnetwork. This range should be disjoint from other subnetworks
|
| + * within this network. This range can only be larger than (i.e. a superset
|
| + * of) the range previously defined before the update.
|
| + */
|
| + core.String ipCidrRange;
|
| +
|
| + SubnetworksExpandIpCidrRangeRequest();
|
| +
|
| + SubnetworksExpandIpCidrRangeRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("ipCidrRange")) {
|
| + ipCidrRange = _json["ipCidrRange"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (ipCidrRange != null) {
|
| + _json["ipCidrRange"] = ipCidrRange;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| class SubnetworksScopedListWarningData {
|
| /**
|
| * [Output Only] A key that provides more detail on the warning being
|
| @@ -24360,6 +26644,79 @@ class SubnetworksScopedList {
|
| }
|
| }
|
|
|
| +class TCPHealthCheck {
|
| + /**
|
| + * The TCP port number for the health check request. The default value is 80.
|
| + */
|
| + core.int port;
|
| + /**
|
| + * Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
| + * port_name are defined, port takes precedence.
|
| + */
|
| + core.String portName;
|
| + /**
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| + */
|
| + core.String proxyHeader;
|
| + /**
|
| + * The application data to send once the TCP connection has been established
|
| + * (default value is empty). If both request and response are empty, the
|
| + * connection establishment alone will indicate health. The request data can
|
| + * only be ASCII.
|
| + */
|
| + core.String request;
|
| + /**
|
| + * The bytes to match against the beginning of the response data. If left
|
| + * empty (the default value), any response will indicate health. The response
|
| + * data can only be ASCII.
|
| + */
|
| + core.String response;
|
| +
|
| + TCPHealthCheck();
|
| +
|
| + TCPHealthCheck.fromJson(core.Map _json) {
|
| + if (_json.containsKey("port")) {
|
| + port = _json["port"];
|
| + }
|
| + if (_json.containsKey("portName")) {
|
| + portName = _json["portName"];
|
| + }
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| + }
|
| + if (_json.containsKey("request")) {
|
| + request = _json["request"];
|
| + }
|
| + if (_json.containsKey("response")) {
|
| + response = _json["response"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (port != null) {
|
| + _json["port"] = port;
|
| + }
|
| + if (portName != null) {
|
| + _json["portName"] = portName;
|
| + }
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| + }
|
| + if (request != null) {
|
| + _json["request"] = request;
|
| + }
|
| + if (response != null) {
|
| + _json["response"] = response;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| /** A set of instance tags. */
|
| class Tags {
|
| /**
|
| @@ -25731,6 +28088,253 @@ class TargetReference {
|
| }
|
| }
|
|
|
| +class TargetSslProxiesSetBackendServiceRequest {
|
| + /** The URL of the new BackendService resource for the targetSslProxy. */
|
| + core.String service;
|
| +
|
| + TargetSslProxiesSetBackendServiceRequest();
|
| +
|
| + TargetSslProxiesSetBackendServiceRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("service")) {
|
| + service = _json["service"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (service != null) {
|
| + _json["service"] = service;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class TargetSslProxiesSetProxyHeaderRequest {
|
| + /**
|
| + * The new type of proxy header to append before sending data to the backend.
|
| + * NONE or PROXY_V1 are allowed.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| + */
|
| + core.String proxyHeader;
|
| +
|
| + TargetSslProxiesSetProxyHeaderRequest();
|
| +
|
| + TargetSslProxiesSetProxyHeaderRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class TargetSslProxiesSetSslCertificatesRequest {
|
| + /**
|
| + * New set of URLs to SslCertificate resources to associate with this
|
| + * TargetSslProxy. Currently exactly one ssl certificate must be specified.
|
| + */
|
| + core.List<core.String> sslCertificates;
|
| +
|
| + TargetSslProxiesSetSslCertificatesRequest();
|
| +
|
| + TargetSslProxiesSetSslCertificatesRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("sslCertificates")) {
|
| + sslCertificates = _json["sslCertificates"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (sslCertificates != null) {
|
| + _json["sslCertificates"] = sslCertificates;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** A TargetSslProxy resource. This resource defines an SSL proxy. */
|
| +class TargetSslProxy {
|
| + /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| + core.String creationTimestamp;
|
| + /**
|
| + * An optional description of this resource. Provide this property when you
|
| + * create the resource.
|
| + */
|
| + core.String description;
|
| + /**
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| + */
|
| + core.String id;
|
| + /**
|
| + * [Output Only] Type of the resource. Always compute#targetSslProxy for
|
| + * target SSL proxies.
|
| + */
|
| + 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;
|
| + /**
|
| + * Specifies the type of proxy header to append before sending data to the
|
| + * backend, either NONE or PROXY_V1. The default is NONE.
|
| + * Possible string values are:
|
| + * - "NONE"
|
| + * - "PROXY_V1"
|
| + */
|
| + core.String proxyHeader;
|
| + /** [Output Only] Server-defined URL for the resource. */
|
| + core.String selfLink;
|
| + /** URL to the BackendService resource. */
|
| + core.String service;
|
| + /**
|
| + * URLs to SslCertificate resources that are used to authenticate connections
|
| + * to Backends. Currently exactly one SSL certificate must be specified.
|
| + */
|
| + core.List<core.String> sslCertificates;
|
| +
|
| + TargetSslProxy();
|
| +
|
| + TargetSslProxy.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("proxyHeader")) {
|
| + proxyHeader = _json["proxyHeader"];
|
| + }
|
| + if (_json.containsKey("selfLink")) {
|
| + selfLink = _json["selfLink"];
|
| + }
|
| + if (_json.containsKey("service")) {
|
| + service = _json["service"];
|
| + }
|
| + if (_json.containsKey("sslCertificates")) {
|
| + sslCertificates = _json["sslCertificates"];
|
| + }
|
| + }
|
| +
|
| + 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 (proxyHeader != null) {
|
| + _json["proxyHeader"] = proxyHeader;
|
| + }
|
| + if (selfLink != null) {
|
| + _json["selfLink"] = selfLink;
|
| + }
|
| + if (service != null) {
|
| + _json["service"] = service;
|
| + }
|
| + if (sslCertificates != null) {
|
| + _json["sslCertificates"] = sslCertificates;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** Contains a list of TargetSslProxy resources. */
|
| +class TargetSslProxyList {
|
| + /**
|
| + * [Output Only] The unique identifier for the resource. This identifier is
|
| + * defined by the server.
|
| + */
|
| + core.String id;
|
| + /** A list of TargetSslProxy resources. */
|
| + core.List<TargetSslProxy> items;
|
| + /** Type of resource. */
|
| + core.String kind;
|
| + /**
|
| + * [Output Only] This token allows you to get the next page of results for
|
| + * list requests. If the number of results is larger than maxResults, use the
|
| + * nextPageToken as a value for the query parameter pageToken in the next list
|
| + * request. Subsequent list requests will have their own nextPageToken to
|
| + * continue paging through the results.
|
| + */
|
| + core.String nextPageToken;
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| + core.String selfLink;
|
| +
|
| + TargetSslProxyList();
|
| +
|
| + TargetSslProxyList.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("items")) {
|
| + items = _json["items"].map((value) => new TargetSslProxy.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;
|
| + }
|
| +}
|
| +
|
| /** Represents a Target VPN gateway resource. */
|
| class TargetVpnGateway {
|
| /** [Output Only] Creation timestamp in RFC3339 text format. */
|
| @@ -25888,7 +28492,7 @@ class TargetVpnGatewayAggregatedList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| TargetVpnGatewayAggregatedList();
|
| @@ -25954,7 +28558,7 @@ class TargetVpnGatewayList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| TargetVpnGatewayList();
|
| @@ -26855,7 +29459,7 @@ class VpnTunnelList {
|
| * continue paging through the results.
|
| */
|
| core.String nextPageToken;
|
| - /** [Output Only] Server-defined URL for the resource. */
|
| + /** [Output Only] Server-defined URL for this resource. */
|
| core.String selfLink;
|
|
|
| VpnTunnelList();
|
|
|