| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.compute.v1; | 3 library googleapis.compute.v1; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client compute/v1'; |
| 15 | 18 |
| 16 /** API for the Google Compute Engine service. */ | 19 /** API for the Google Compute Engine service. */ |
| 17 class ComputeApi { | 20 class ComputeApi { |
| 18 /** View and manage your data across Google Cloud Platform services */ | 21 /** View and manage your data across Google Cloud Platform services */ |
| 19 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 20 | 23 |
| 21 /** View and manage your Google Compute Engine resources */ | 24 /** View and manage your Google Compute Engine resources */ |
| 22 static const ComputeScope = "https://www.googleapis.com/auth/compute"; | 25 static const ComputeScope = "https://www.googleapis.com/auth/compute"; |
| 23 | 26 |
| 24 /** View your Google Compute Engine resources */ | 27 /** View your Google Compute Engine resources */ |
| 25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; | 28 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; |
| 26 | 29 |
| 27 /** Manage your data and permissions in Google Cloud Storage */ | 30 /** Manage your data and permissions in Google Cloud Storage */ |
| 28 static const DevstorageFullControlScope = "https://www.googleapis.com/auth/dev
storage.full_control"; | 31 static const DevstorageFullControlScope = "https://www.googleapis.com/auth/dev
storage.full_control"; |
| 29 | 32 |
| 30 /** View your data in Google Cloud Storage */ | 33 /** View your data in Google Cloud Storage */ |
| 31 static const DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devsto
rage.read_only"; | 34 static const DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devsto
rage.read_only"; |
| 32 | 35 |
| 33 /** Manage your data in Google Cloud Storage */ | 36 /** Manage your data in Google Cloud Storage */ |
| 34 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; | 37 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; |
| 35 | 38 |
| 36 | 39 |
| 37 final common_internal.ApiRequester _requester; | 40 final commons.ApiRequester _requester; |
| 38 | 41 |
| 39 AddressesResourceApi get addresses => new AddressesResourceApi(_requester); | 42 AddressesResourceApi get addresses => new AddressesResourceApi(_requester); |
| 40 BackendServicesResourceApi get backendServices => new BackendServicesResourceA
pi(_requester); | 43 BackendServicesResourceApi get backendServices => new BackendServicesResourceA
pi(_requester); |
| 41 DiskTypesResourceApi get diskTypes => new DiskTypesResourceApi(_requester); | 44 DiskTypesResourceApi get diskTypes => new DiskTypesResourceApi(_requester); |
| 42 DisksResourceApi get disks => new DisksResourceApi(_requester); | 45 DisksResourceApi get disks => new DisksResourceApi(_requester); |
| 43 FirewallsResourceApi get firewalls => new FirewallsResourceApi(_requester); | 46 FirewallsResourceApi get firewalls => new FirewallsResourceApi(_requester); |
| 44 ForwardingRulesResourceApi get forwardingRules => new ForwardingRulesResourceA
pi(_requester); | 47 ForwardingRulesResourceApi get forwardingRules => new ForwardingRulesResourceA
pi(_requester); |
| 45 GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceA
pi(_requester); | 48 GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceA
pi(_requester); |
| 46 GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwar
dingRulesResourceApi(_requester); | 49 GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwar
dingRulesResourceApi(_requester); |
| 47 GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResour
ceApi(_requester); | 50 GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResour
ceApi(_requester); |
| 48 HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResour
ceApi(_requester); | 51 HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResour
ceApi(_requester); |
| 49 ImagesResourceApi get images => new ImagesResourceApi(_requester); | 52 ImagesResourceApi get images => new ImagesResourceApi(_requester); |
| 50 InstanceTemplatesResourceApi get instanceTemplates => new InstanceTemplatesRes
ourceApi(_requester); | 53 InstanceTemplatesResourceApi get instanceTemplates => new InstanceTemplatesRes
ourceApi(_requester); |
| 51 InstancesResourceApi get instances => new InstancesResourceApi(_requester); | 54 InstancesResourceApi get instances => new InstancesResourceApi(_requester); |
| 52 LicensesResourceApi get licenses => new LicensesResourceApi(_requester); | 55 LicensesResourceApi get licenses => new LicensesResourceApi(_requester); |
| 53 MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_reque
ster); | 56 MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_reque
ster); |
| 54 NetworksResourceApi get networks => new NetworksResourceApi(_requester); | 57 NetworksResourceApi get networks => new NetworksResourceApi(_requester); |
| 55 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 58 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 56 RegionOperationsResourceApi get regionOperations => new RegionOperationsResour
ceApi(_requester); | 59 RegionOperationsResourceApi get regionOperations => new RegionOperationsResour
ceApi(_requester); |
| 57 RegionsResourceApi get regions => new RegionsResourceApi(_requester); | 60 RegionsResourceApi get regions => new RegionsResourceApi(_requester); |
| 58 RoutesResourceApi get routes => new RoutesResourceApi(_requester); | 61 RoutesResourceApi get routes => new RoutesResourceApi(_requester); |
| 59 SnapshotsResourceApi get snapshots => new SnapshotsResourceApi(_requester); | 62 SnapshotsResourceApi get snapshots => new SnapshotsResourceApi(_requester); |
| 60 TargetHttpProxiesResourceApi get targetHttpProxies => new TargetHttpProxiesRes
ourceApi(_requester); | 63 TargetHttpProxiesResourceApi get targetHttpProxies => new TargetHttpProxiesRes
ourceApi(_requester); |
| 61 TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceA
pi(_requester); | 64 TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceA
pi(_requester); |
| 62 TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requeste
r); | 65 TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requeste
r); |
| 66 TargetVpnGatewaysResourceApi get targetVpnGateways => new TargetVpnGatewaysRes
ourceApi(_requester); |
| 63 UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester); | 67 UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester); |
| 68 VpnTunnelsResourceApi get vpnTunnels => new VpnTunnelsResourceApi(_requester); |
| 64 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 69 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); |
| 65 ZonesResourceApi get zones => new ZonesResourceApi(_requester); | 70 ZonesResourceApi get zones => new ZonesResourceApi(_requester); |
| 66 | 71 |
| 67 ComputeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "compute/v1/projects/"}) : | 72 ComputeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "compute/v1/projects/"}) : |
| 68 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 73 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 69 } | 74 } |
| 70 | 75 |
| 71 | 76 |
| 72 /** Not documented yet. */ | |
| 73 class AddressesResourceApi { | 77 class AddressesResourceApi { |
| 74 final common_internal.ApiRequester _requester; | 78 final commons.ApiRequester _requester; |
| 75 | 79 |
| 76 AddressesResourceApi(common_internal.ApiRequester client) : | 80 AddressesResourceApi(commons.ApiRequester client) : |
| 77 _requester = client; | 81 _requester = client; |
| 78 | 82 |
| 79 /** | 83 /** |
| 80 * Retrieves the list of addresses grouped by scope. | 84 * Retrieves the list of addresses grouped by scope. |
| 81 * | 85 * |
| 82 * Request parameters: | 86 * Request parameters: |
| 83 * | 87 * |
| 84 * [project] - Name of the project scoping this request. | 88 * [project] - Project ID for this request. |
| 85 * Value must have pattern | 89 * Value must have pattern |
| 86 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 90 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 87 * | 91 * |
| 88 * [filter] - Optional. Filter expression for filtering listed resources. | 92 * [filter] - Optional. Filter expression for filtering listed resources. |
| 89 * | 93 * |
| 90 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 94 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 91 * value is 500 and default value is 500. | 95 * value is 500 and default value is 500. |
| 92 * Value must be between "0" and "500". | 96 * Value must be between "0" and "500". |
| 93 * | 97 * |
| 94 * [pageToken] - Optional. Tag returned by a previous list request truncated | 98 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 95 * by maxResults. Used to continue a previous list request. | 99 * by maxResults. Used to continue a previous list request. |
| 96 * | 100 * |
| 97 * Completes with a [AddressAggregatedList]. | 101 * Completes with a [AddressAggregatedList]. |
| 98 * | 102 * |
| 99 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 100 * error. | 104 * error. |
| 101 * | 105 * |
| 102 * If the used [http.Client] completes with an error when making a REST call, | 106 * If the used [http.Client] completes with an error when making a REST call, |
| 103 * this method will complete with the same error. | 107 * this method will complete with the same error. |
| 104 */ | 108 */ |
| 105 async.Future<AddressAggregatedList> aggregatedList(core.String project, {core.
String filter, core.int maxResults, core.String pageToken}) { | 109 async.Future<AddressAggregatedList> aggregatedList(core.String project, {core.
String filter, core.int maxResults, core.String pageToken}) { |
| 106 var _url = null; | 110 var _url = null; |
| 107 var _queryParams = new core.Map(); | 111 var _queryParams = new core.Map(); |
| 108 var _uploadMedia = null; | 112 var _uploadMedia = null; |
| 109 var _uploadOptions = null; | 113 var _uploadOptions = null; |
| 110 var _downloadOptions = common.DownloadOptions.Metadata; | 114 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 111 var _body = null; | 115 var _body = null; |
| 112 | 116 |
| 113 if (project == null) { | 117 if (project == null) { |
| 114 throw new core.ArgumentError("Parameter project is required."); | 118 throw new core.ArgumentError("Parameter project is required."); |
| 115 } | 119 } |
| 116 if (filter != null) { | 120 if (filter != null) { |
| 117 _queryParams["filter"] = [filter]; | 121 _queryParams["filter"] = [filter]; |
| 118 } | 122 } |
| 119 if (maxResults != null) { | 123 if (maxResults != null) { |
| 120 _queryParams["maxResults"] = ["${maxResults}"]; | 124 _queryParams["maxResults"] = ["${maxResults}"]; |
| 121 } | 125 } |
| 122 if (pageToken != null) { | 126 if (pageToken != null) { |
| 123 _queryParams["pageToken"] = [pageToken]; | 127 _queryParams["pageToken"] = [pageToken]; |
| 124 } | 128 } |
| 125 | 129 |
| 126 | 130 |
| 127 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/addr
esses'; | 131 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/addresses'; |
| 128 | 132 |
| 129 var _response = _requester.request(_url, | 133 var _response = _requester.request(_url, |
| 130 "GET", | 134 "GET", |
| 131 body: _body, | 135 body: _body, |
| 132 queryParams: _queryParams, | 136 queryParams: _queryParams, |
| 133 uploadOptions: _uploadOptions, | 137 uploadOptions: _uploadOptions, |
| 134 uploadMedia: _uploadMedia, | 138 uploadMedia: _uploadMedia, |
| 135 downloadOptions: _downloadOptions); | 139 downloadOptions: _downloadOptions); |
| 136 return _response.then((data) => new AddressAggregatedList.fromJson(data)); | 140 return _response.then((data) => new AddressAggregatedList.fromJson(data)); |
| 137 } | 141 } |
| 138 | 142 |
| 139 /** | 143 /** |
| 140 * Deletes the specified address resource. | 144 * Deletes the specified address resource. |
| 141 * | 145 * |
| 142 * Request parameters: | 146 * Request parameters: |
| 143 * | 147 * |
| 144 * [project] - Name of the project scoping this request. | 148 * [project] - Project ID for this request. |
| 145 * Value must have pattern | 149 * Value must have pattern |
| 146 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 150 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 147 * | 151 * |
| 148 * [region] - Name of the region scoping this request. | 152 * [region] - The name of the region for this request. |
| 149 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 153 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 150 * | 154 * |
| 151 * [address] - Name of the address resource to delete. | 155 * [address] - Name of the address resource to delete. |
| 152 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 156 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 153 * | 157 * |
| 154 * Completes with a [Operation]. | 158 * Completes with a [Operation]. |
| 155 * | 159 * |
| 156 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 157 * error. | 161 * error. |
| 158 * | 162 * |
| 159 * If the used [http.Client] completes with an error when making a REST call, | 163 * If the used [http.Client] completes with an error when making a REST call, |
| 160 * this method will complete with the same error. | 164 * this method will complete with the same error. |
| 161 */ | 165 */ |
| 162 async.Future<Operation> delete(core.String project, core.String region, core.S
tring address) { | 166 async.Future<Operation> delete(core.String project, core.String region, core.S
tring address) { |
| 163 var _url = null; | 167 var _url = null; |
| 164 var _queryParams = new core.Map(); | 168 var _queryParams = new core.Map(); |
| 165 var _uploadMedia = null; | 169 var _uploadMedia = null; |
| 166 var _uploadOptions = null; | 170 var _uploadOptions = null; |
| 167 var _downloadOptions = common.DownloadOptions.Metadata; | 171 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 168 var _body = null; | 172 var _body = null; |
| 169 | 173 |
| 170 if (project == null) { | 174 if (project == null) { |
| 171 throw new core.ArgumentError("Parameter project is required."); | 175 throw new core.ArgumentError("Parameter project is required."); |
| 172 } | 176 } |
| 173 if (region == null) { | 177 if (region == null) { |
| 174 throw new core.ArgumentError("Parameter region is required."); | 178 throw new core.ArgumentError("Parameter region is required."); |
| 175 } | 179 } |
| 176 if (address == null) { | 180 if (address == null) { |
| 177 throw new core.ArgumentError("Parameter address is required."); | 181 throw new core.ArgumentError("Parameter address is required."); |
| 178 } | 182 } |
| 179 | 183 |
| 180 | 184 |
| 181 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/addresses/' + common_internal.
Escaper.ecapeVariable('$address'); | 185 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/addresses/' + commons.Escaper.ecapeVariable('$
address'); |
| 182 | 186 |
| 183 var _response = _requester.request(_url, | 187 var _response = _requester.request(_url, |
| 184 "DELETE", | 188 "DELETE", |
| 185 body: _body, | 189 body: _body, |
| 186 queryParams: _queryParams, | 190 queryParams: _queryParams, |
| 187 uploadOptions: _uploadOptions, | 191 uploadOptions: _uploadOptions, |
| 188 uploadMedia: _uploadMedia, | 192 uploadMedia: _uploadMedia, |
| 189 downloadOptions: _downloadOptions); | 193 downloadOptions: _downloadOptions); |
| 190 return _response.then((data) => new Operation.fromJson(data)); | 194 return _response.then((data) => new Operation.fromJson(data)); |
| 191 } | 195 } |
| 192 | 196 |
| 193 /** | 197 /** |
| 194 * Returns the specified address resource. | 198 * Returns the specified address resource. |
| 195 * | 199 * |
| 196 * Request parameters: | 200 * Request parameters: |
| 197 * | 201 * |
| 198 * [project] - Name of the project scoping this request. | 202 * [project] - Project ID for this request. |
| 199 * Value must have pattern | 203 * Value must have pattern |
| 200 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 204 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 201 * | 205 * |
| 202 * [region] - Name of the region scoping this request. | 206 * [region] - The name of the region for this request. |
| 203 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 207 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 204 * | 208 * |
| 205 * [address] - Name of the address resource to return. | 209 * [address] - Name of the address resource to return. |
| 206 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 210 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 207 * | 211 * |
| 208 * Completes with a [Address]. | 212 * Completes with a [Address]. |
| 209 * | 213 * |
| 210 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 211 * error. | 215 * error. |
| 212 * | 216 * |
| 213 * If the used [http.Client] completes with an error when making a REST call, | 217 * If the used [http.Client] completes with an error when making a REST call, |
| 214 * this method will complete with the same error. | 218 * this method will complete with the same error. |
| 215 */ | 219 */ |
| 216 async.Future<Address> get(core.String project, core.String region, core.String
address) { | 220 async.Future<Address> get(core.String project, core.String region, core.String
address) { |
| 217 var _url = null; | 221 var _url = null; |
| 218 var _queryParams = new core.Map(); | 222 var _queryParams = new core.Map(); |
| 219 var _uploadMedia = null; | 223 var _uploadMedia = null; |
| 220 var _uploadOptions = null; | 224 var _uploadOptions = null; |
| 221 var _downloadOptions = common.DownloadOptions.Metadata; | 225 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 222 var _body = null; | 226 var _body = null; |
| 223 | 227 |
| 224 if (project == null) { | 228 if (project == null) { |
| 225 throw new core.ArgumentError("Parameter project is required."); | 229 throw new core.ArgumentError("Parameter project is required."); |
| 226 } | 230 } |
| 227 if (region == null) { | 231 if (region == null) { |
| 228 throw new core.ArgumentError("Parameter region is required."); | 232 throw new core.ArgumentError("Parameter region is required."); |
| 229 } | 233 } |
| 230 if (address == null) { | 234 if (address == null) { |
| 231 throw new core.ArgumentError("Parameter address is required."); | 235 throw new core.ArgumentError("Parameter address is required."); |
| 232 } | 236 } |
| 233 | 237 |
| 234 | 238 |
| 235 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/addresses/' + common_internal.
Escaper.ecapeVariable('$address'); | 239 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/addresses/' + commons.Escaper.ecapeVariable('$
address'); |
| 236 | 240 |
| 237 var _response = _requester.request(_url, | 241 var _response = _requester.request(_url, |
| 238 "GET", | 242 "GET", |
| 239 body: _body, | 243 body: _body, |
| 240 queryParams: _queryParams, | 244 queryParams: _queryParams, |
| 241 uploadOptions: _uploadOptions, | 245 uploadOptions: _uploadOptions, |
| 242 uploadMedia: _uploadMedia, | 246 uploadMedia: _uploadMedia, |
| 243 downloadOptions: _downloadOptions); | 247 downloadOptions: _downloadOptions); |
| 244 return _response.then((data) => new Address.fromJson(data)); | 248 return _response.then((data) => new Address.fromJson(data)); |
| 245 } | 249 } |
| 246 | 250 |
| 247 /** | 251 /** |
| 248 * Creates an address resource in the specified project using the data | 252 * Creates an address resource in the specified project using the data |
| 249 * included in the request. | 253 * included in the request. |
| 250 * | 254 * |
| 251 * [request] - The metadata request object. | 255 * [request] - The metadata request object. |
| 252 * | 256 * |
| 253 * Request parameters: | 257 * Request parameters: |
| 254 * | 258 * |
| 255 * [project] - Name of the project scoping this request. | 259 * [project] - Project ID for this request. |
| 256 * Value must have pattern | 260 * Value must have pattern |
| 257 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 261 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 258 * | 262 * |
| 259 * [region] - Name of the region scoping this request. | 263 * [region] - The name of the region for this request. |
| 260 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 264 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 261 * | 265 * |
| 262 * Completes with a [Operation]. | 266 * Completes with a [Operation]. |
| 263 * | 267 * |
| 264 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 268 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 265 * error. | 269 * error. |
| 266 * | 270 * |
| 267 * If the used [http.Client] completes with an error when making a REST call, | 271 * If the used [http.Client] completes with an error when making a REST call, |
| 268 * this method will complete with the same error. | 272 * this method will complete with the same error. |
| 269 */ | 273 */ |
| 270 async.Future<Operation> insert(Address request, core.String project, core.Stri
ng region) { | 274 async.Future<Operation> insert(Address request, core.String project, core.Stri
ng region) { |
| 271 var _url = null; | 275 var _url = null; |
| 272 var _queryParams = new core.Map(); | 276 var _queryParams = new core.Map(); |
| 273 var _uploadMedia = null; | 277 var _uploadMedia = null; |
| 274 var _uploadOptions = null; | 278 var _uploadOptions = null; |
| 275 var _downloadOptions = common.DownloadOptions.Metadata; | 279 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 276 var _body = null; | 280 var _body = null; |
| 277 | 281 |
| 278 if (request != null) { | 282 if (request != null) { |
| 279 _body = convert.JSON.encode((request).toJson()); | 283 _body = convert.JSON.encode((request).toJson()); |
| 280 } | 284 } |
| 281 if (project == null) { | 285 if (project == null) { |
| 282 throw new core.ArgumentError("Parameter project is required."); | 286 throw new core.ArgumentError("Parameter project is required."); |
| 283 } | 287 } |
| 284 if (region == null) { | 288 if (region == null) { |
| 285 throw new core.ArgumentError("Parameter region is required."); | 289 throw new core.ArgumentError("Parameter region is required."); |
| 286 } | 290 } |
| 287 | 291 |
| 288 | 292 |
| 289 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/addresses'; | 293 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/addresses'; |
| 290 | 294 |
| 291 var _response = _requester.request(_url, | 295 var _response = _requester.request(_url, |
| 292 "POST", | 296 "POST", |
| 293 body: _body, | 297 body: _body, |
| 294 queryParams: _queryParams, | 298 queryParams: _queryParams, |
| 295 uploadOptions: _uploadOptions, | 299 uploadOptions: _uploadOptions, |
| 296 uploadMedia: _uploadMedia, | 300 uploadMedia: _uploadMedia, |
| 297 downloadOptions: _downloadOptions); | 301 downloadOptions: _downloadOptions); |
| 298 return _response.then((data) => new Operation.fromJson(data)); | 302 return _response.then((data) => new Operation.fromJson(data)); |
| 299 } | 303 } |
| 300 | 304 |
| 301 /** | 305 /** |
| 302 * Retrieves the list of address resources contained within the specified | 306 * Retrieves the list of address resources contained within the specified |
| 303 * region. | 307 * region. |
| 304 * | 308 * |
| 305 * Request parameters: | 309 * Request parameters: |
| 306 * | 310 * |
| 307 * [project] - Name of the project scoping this request. | 311 * [project] - Project ID for this request. |
| 308 * Value must have pattern | 312 * Value must have pattern |
| 309 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 313 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 310 * | 314 * |
| 311 * [region] - Name of the region scoping this request. | 315 * [region] - The name of the region for this request. |
| 312 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 316 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 313 * | 317 * |
| 314 * [filter] - Optional. Filter expression for filtering listed resources. | 318 * [filter] - Optional. Filter expression for filtering listed resources. |
| 315 * | 319 * |
| 316 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 320 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 317 * value is 500 and default value is 500. | 321 * value is 500 and default value is 500. |
| 318 * Value must be between "0" and "500". | 322 * Value must be between "0" and "500". |
| 319 * | 323 * |
| 320 * [pageToken] - Optional. Tag returned by a previous list request truncated | 324 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 321 * by maxResults. Used to continue a previous list request. | 325 * by maxResults. Used to continue a previous list request. |
| 322 * | 326 * |
| 323 * Completes with a [AddressList]. | 327 * Completes with a [AddressList]. |
| 324 * | 328 * |
| 325 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 326 * error. | 330 * error. |
| 327 * | 331 * |
| 328 * If the used [http.Client] completes with an error when making a REST call, | 332 * If the used [http.Client] completes with an error when making a REST call, |
| 329 * this method will complete with the same error. | 333 * this method will complete with the same error. |
| 330 */ | 334 */ |
| 331 async.Future<AddressList> list(core.String project, core.String region, {core.
String filter, core.int maxResults, core.String pageToken}) { | 335 async.Future<AddressList> list(core.String project, core.String region, {core.
String filter, core.int maxResults, core.String pageToken}) { |
| 332 var _url = null; | 336 var _url = null; |
| 333 var _queryParams = new core.Map(); | 337 var _queryParams = new core.Map(); |
| 334 var _uploadMedia = null; | 338 var _uploadMedia = null; |
| 335 var _uploadOptions = null; | 339 var _uploadOptions = null; |
| 336 var _downloadOptions = common.DownloadOptions.Metadata; | 340 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 337 var _body = null; | 341 var _body = null; |
| 338 | 342 |
| 339 if (project == null) { | 343 if (project == null) { |
| 340 throw new core.ArgumentError("Parameter project is required."); | 344 throw new core.ArgumentError("Parameter project is required."); |
| 341 } | 345 } |
| 342 if (region == null) { | 346 if (region == null) { |
| 343 throw new core.ArgumentError("Parameter region is required."); | 347 throw new core.ArgumentError("Parameter region is required."); |
| 344 } | 348 } |
| 345 if (filter != null) { | 349 if (filter != null) { |
| 346 _queryParams["filter"] = [filter]; | 350 _queryParams["filter"] = [filter]; |
| 347 } | 351 } |
| 348 if (maxResults != null) { | 352 if (maxResults != null) { |
| 349 _queryParams["maxResults"] = ["${maxResults}"]; | 353 _queryParams["maxResults"] = ["${maxResults}"]; |
| 350 } | 354 } |
| 351 if (pageToken != null) { | 355 if (pageToken != null) { |
| 352 _queryParams["pageToken"] = [pageToken]; | 356 _queryParams["pageToken"] = [pageToken]; |
| 353 } | 357 } |
| 354 | 358 |
| 355 | 359 |
| 356 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/addresses'; | 360 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/addresses'; |
| 357 | 361 |
| 358 var _response = _requester.request(_url, | 362 var _response = _requester.request(_url, |
| 359 "GET", | 363 "GET", |
| 360 body: _body, | 364 body: _body, |
| 361 queryParams: _queryParams, | 365 queryParams: _queryParams, |
| 362 uploadOptions: _uploadOptions, | 366 uploadOptions: _uploadOptions, |
| 363 uploadMedia: _uploadMedia, | 367 uploadMedia: _uploadMedia, |
| 364 downloadOptions: _downloadOptions); | 368 downloadOptions: _downloadOptions); |
| 365 return _response.then((data) => new AddressList.fromJson(data)); | 369 return _response.then((data) => new AddressList.fromJson(data)); |
| 366 } | 370 } |
| 367 | 371 |
| 368 } | 372 } |
| 369 | 373 |
| 370 | 374 |
| 371 /** Not documented yet. */ | |
| 372 class BackendServicesResourceApi { | 375 class BackendServicesResourceApi { |
| 373 final common_internal.ApiRequester _requester; | 376 final commons.ApiRequester _requester; |
| 374 | 377 |
| 375 BackendServicesResourceApi(common_internal.ApiRequester client) : | 378 BackendServicesResourceApi(commons.ApiRequester client) : |
| 376 _requester = client; | 379 _requester = client; |
| 377 | 380 |
| 378 /** | 381 /** |
| 379 * Deletes the specified BackendService resource. | 382 * Deletes the specified BackendService resource. |
| 380 * | 383 * |
| 381 * Request parameters: | 384 * Request parameters: |
| 382 * | 385 * |
| 383 * [project] - Name of the project scoping this request. | 386 * [project] - Name of the project scoping this request. |
| 384 * Value must have pattern | 387 * Value must have pattern |
| 385 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 388 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 386 * | 389 * |
| 387 * [backendService] - Name of the BackendService resource to delete. | 390 * [backendService] - Name of the BackendService resource to delete. |
| 388 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 391 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 389 * | 392 * |
| 390 * Completes with a [Operation]. | 393 * Completes with a [Operation]. |
| 391 * | 394 * |
| 392 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 393 * error. | 396 * error. |
| 394 * | 397 * |
| 395 * If the used [http.Client] completes with an error when making a REST call, | 398 * If the used [http.Client] completes with an error when making a REST call, |
| 396 * this method will complete with the same error. | 399 * this method will complete with the same error. |
| 397 */ | 400 */ |
| 398 async.Future<Operation> delete(core.String project, core.String backendService
) { | 401 async.Future<Operation> delete(core.String project, core.String backendService
) { |
| 399 var _url = null; | 402 var _url = null; |
| 400 var _queryParams = new core.Map(); | 403 var _queryParams = new core.Map(); |
| 401 var _uploadMedia = null; | 404 var _uploadMedia = null; |
| 402 var _uploadOptions = null; | 405 var _uploadOptions = null; |
| 403 var _downloadOptions = common.DownloadOptions.Metadata; | 406 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 404 var _body = null; | 407 var _body = null; |
| 405 | 408 |
| 406 if (project == null) { | 409 if (project == null) { |
| 407 throw new core.ArgumentError("Parameter project is required."); | 410 throw new core.ArgumentError("Parameter project is required."); |
| 408 } | 411 } |
| 409 if (backendService == null) { | 412 if (backendService == null) { |
| 410 throw new core.ArgumentError("Parameter backendService is required."); | 413 throw new core.ArgumentError("Parameter backendService is required."); |
| 411 } | 414 } |
| 412 | 415 |
| 413 | 416 |
| 414 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices/' + common_internal.Escaper.ecapeVariable('$backendService'); | 417 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/
' + commons.Escaper.ecapeVariable('$backendService'); |
| 415 | 418 |
| 416 var _response = _requester.request(_url, | 419 var _response = _requester.request(_url, |
| 417 "DELETE", | 420 "DELETE", |
| 418 body: _body, | 421 body: _body, |
| 419 queryParams: _queryParams, | 422 queryParams: _queryParams, |
| 420 uploadOptions: _uploadOptions, | 423 uploadOptions: _uploadOptions, |
| 421 uploadMedia: _uploadMedia, | 424 uploadMedia: _uploadMedia, |
| 422 downloadOptions: _downloadOptions); | 425 downloadOptions: _downloadOptions); |
| 423 return _response.then((data) => new Operation.fromJson(data)); | 426 return _response.then((data) => new Operation.fromJson(data)); |
| 424 } | 427 } |
| 425 | 428 |
| 426 /** | 429 /** |
| 427 * Returns the specified BackendService resource. | 430 * Returns the specified BackendService resource. |
| 428 * | 431 * |
| 429 * Request parameters: | 432 * Request parameters: |
| 430 * | 433 * |
| 431 * [project] - Name of the project scoping this request. | 434 * [project] - Name of the project scoping this request. |
| 432 * Value must have pattern | 435 * Value must have pattern |
| 433 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 436 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 434 * | 437 * |
| 435 * [backendService] - Name of the BackendService resource to return. | 438 * [backendService] - Name of the BackendService resource to return. |
| 436 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 439 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 437 * | 440 * |
| 438 * Completes with a [BackendService]. | 441 * Completes with a [BackendService]. |
| 439 * | 442 * |
| 440 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 443 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 441 * error. | 444 * error. |
| 442 * | 445 * |
| 443 * If the used [http.Client] completes with an error when making a REST call, | 446 * If the used [http.Client] completes with an error when making a REST call, |
| 444 * this method will complete with the same error. | 447 * this method will complete with the same error. |
| 445 */ | 448 */ |
| 446 async.Future<BackendService> get(core.String project, core.String backendServi
ce) { | 449 async.Future<BackendService> get(core.String project, core.String backendServi
ce) { |
| 447 var _url = null; | 450 var _url = null; |
| 448 var _queryParams = new core.Map(); | 451 var _queryParams = new core.Map(); |
| 449 var _uploadMedia = null; | 452 var _uploadMedia = null; |
| 450 var _uploadOptions = null; | 453 var _uploadOptions = null; |
| 451 var _downloadOptions = common.DownloadOptions.Metadata; | 454 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 452 var _body = null; | 455 var _body = null; |
| 453 | 456 |
| 454 if (project == null) { | 457 if (project == null) { |
| 455 throw new core.ArgumentError("Parameter project is required."); | 458 throw new core.ArgumentError("Parameter project is required."); |
| 456 } | 459 } |
| 457 if (backendService == null) { | 460 if (backendService == null) { |
| 458 throw new core.ArgumentError("Parameter backendService is required."); | 461 throw new core.ArgumentError("Parameter backendService is required."); |
| 459 } | 462 } |
| 460 | 463 |
| 461 | 464 |
| 462 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices/' + common_internal.Escaper.ecapeVariable('$backendService'); | 465 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/
' + commons.Escaper.ecapeVariable('$backendService'); |
| 463 | 466 |
| 464 var _response = _requester.request(_url, | 467 var _response = _requester.request(_url, |
| 465 "GET", | 468 "GET", |
| 466 body: _body, | 469 body: _body, |
| 467 queryParams: _queryParams, | 470 queryParams: _queryParams, |
| 468 uploadOptions: _uploadOptions, | 471 uploadOptions: _uploadOptions, |
| 469 uploadMedia: _uploadMedia, | 472 uploadMedia: _uploadMedia, |
| 470 downloadOptions: _downloadOptions); | 473 downloadOptions: _downloadOptions); |
| 471 return _response.then((data) => new BackendService.fromJson(data)); | 474 return _response.then((data) => new BackendService.fromJson(data)); |
| 472 } | 475 } |
| 473 | 476 |
| 474 /** | 477 /** |
| 475 * Gets the most recent health check results for this BackendService. | 478 * Gets the most recent health check results for this BackendService. |
| 476 * | 479 * |
| 477 * [request] - The metadata request object. | 480 * [request] - The metadata request object. |
| 478 * | 481 * |
| 479 * Request parameters: | 482 * Request parameters: |
| 480 * | 483 * |
| 481 * [project] - null | 484 * [project] - null |
| 482 * Value must have pattern | 485 * Value must have pattern |
| 483 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 486 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 484 * | 487 * |
| 485 * [backendService] - Name of the BackendService resource to which the queried | 488 * [backendService] - Name of the BackendService resource to which the queried |
| 486 * instance belongs. | 489 * instance belongs. |
| 487 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 490 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 488 * | 491 * |
| 489 * Completes with a [BackendServiceGroupHealth]. | 492 * Completes with a [BackendServiceGroupHealth]. |
| 490 * | 493 * |
| 491 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 494 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 492 * error. | 495 * error. |
| 493 * | 496 * |
| 494 * If the used [http.Client] completes with an error when making a REST call, | 497 * If the used [http.Client] completes with an error when making a REST call, |
| 495 * this method will complete with the same error. | 498 * this method will complete with the same error. |
| 496 */ | 499 */ |
| 497 async.Future<BackendServiceGroupHealth> getHealth(ResourceGroupReference reque
st, core.String project, core.String backendService) { | 500 async.Future<BackendServiceGroupHealth> getHealth(ResourceGroupReference reque
st, core.String project, core.String backendService) { |
| 498 var _url = null; | 501 var _url = null; |
| 499 var _queryParams = new core.Map(); | 502 var _queryParams = new core.Map(); |
| 500 var _uploadMedia = null; | 503 var _uploadMedia = null; |
| 501 var _uploadOptions = null; | 504 var _uploadOptions = null; |
| 502 var _downloadOptions = common.DownloadOptions.Metadata; | 505 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 503 var _body = null; | 506 var _body = null; |
| 504 | 507 |
| 505 if (request != null) { | 508 if (request != null) { |
| 506 _body = convert.JSON.encode((request).toJson()); | 509 _body = convert.JSON.encode((request).toJson()); |
| 507 } | 510 } |
| 508 if (project == null) { | 511 if (project == null) { |
| 509 throw new core.ArgumentError("Parameter project is required."); | 512 throw new core.ArgumentError("Parameter project is required."); |
| 510 } | 513 } |
| 511 if (backendService == null) { | 514 if (backendService == null) { |
| 512 throw new core.ArgumentError("Parameter backendService is required."); | 515 throw new core.ArgumentError("Parameter backendService is required."); |
| 513 } | 516 } |
| 514 | 517 |
| 515 | 518 |
| 516 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices/' + common_internal.Escaper.ecapeVariable('$backendService') + '/getHeal
th'; | 519 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/
' + commons.Escaper.ecapeVariable('$backendService') + '/getHealth'; |
| 517 | 520 |
| 518 var _response = _requester.request(_url, | 521 var _response = _requester.request(_url, |
| 519 "POST", | 522 "POST", |
| 520 body: _body, | 523 body: _body, |
| 521 queryParams: _queryParams, | 524 queryParams: _queryParams, |
| 522 uploadOptions: _uploadOptions, | 525 uploadOptions: _uploadOptions, |
| 523 uploadMedia: _uploadMedia, | 526 uploadMedia: _uploadMedia, |
| 524 downloadOptions: _downloadOptions); | 527 downloadOptions: _downloadOptions); |
| 525 return _response.then((data) => new BackendServiceGroupHealth.fromJson(data)
); | 528 return _response.then((data) => new BackendServiceGroupHealth.fromJson(data)
); |
| 526 } | 529 } |
| 527 | 530 |
| 528 /** | 531 /** |
| 529 * Creates a BackendService resource in the specified project using the data | 532 * Creates a BackendService resource in the specified project using the data |
| 530 * included in the request. | 533 * included in the request. |
| 531 * | 534 * |
| 532 * [request] - The metadata request object. | 535 * [request] - The metadata request object. |
| 533 * | 536 * |
| 534 * Request parameters: | 537 * Request parameters: |
| 535 * | 538 * |
| 536 * [project] - Name of the project scoping this request. | 539 * [project] - Name of the project scoping this request. |
| 537 * Value must have pattern | 540 * Value must have pattern |
| 538 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 541 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 539 * | 542 * |
| 540 * Completes with a [Operation]. | 543 * Completes with a [Operation]. |
| 541 * | 544 * |
| 542 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 545 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 543 * error. | 546 * error. |
| 544 * | 547 * |
| 545 * If the used [http.Client] completes with an error when making a REST call, | 548 * If the used [http.Client] completes with an error when making a REST call, |
| 546 * this method will complete with the same error. | 549 * this method will complete with the same error. |
| 547 */ | 550 */ |
| 548 async.Future<Operation> insert(BackendService request, core.String project) { | 551 async.Future<Operation> insert(BackendService request, core.String project) { |
| 549 var _url = null; | 552 var _url = null; |
| 550 var _queryParams = new core.Map(); | 553 var _queryParams = new core.Map(); |
| 551 var _uploadMedia = null; | 554 var _uploadMedia = null; |
| 552 var _uploadOptions = null; | 555 var _uploadOptions = null; |
| 553 var _downloadOptions = common.DownloadOptions.Metadata; | 556 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 554 var _body = null; | 557 var _body = null; |
| 555 | 558 |
| 556 if (request != null) { | 559 if (request != null) { |
| 557 _body = convert.JSON.encode((request).toJson()); | 560 _body = convert.JSON.encode((request).toJson()); |
| 558 } | 561 } |
| 559 if (project == null) { | 562 if (project == null) { |
| 560 throw new core.ArgumentError("Parameter project is required."); | 563 throw new core.ArgumentError("Parameter project is required."); |
| 561 } | 564 } |
| 562 | 565 |
| 563 | 566 |
| 564 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices'; | 567 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'
; |
| 565 | 568 |
| 566 var _response = _requester.request(_url, | 569 var _response = _requester.request(_url, |
| 567 "POST", | 570 "POST", |
| 568 body: _body, | 571 body: _body, |
| 569 queryParams: _queryParams, | 572 queryParams: _queryParams, |
| 570 uploadOptions: _uploadOptions, | 573 uploadOptions: _uploadOptions, |
| 571 uploadMedia: _uploadMedia, | 574 uploadMedia: _uploadMedia, |
| 572 downloadOptions: _downloadOptions); | 575 downloadOptions: _downloadOptions); |
| 573 return _response.then((data) => new Operation.fromJson(data)); | 576 return _response.then((data) => new Operation.fromJson(data)); |
| 574 } | 577 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 587 * | 590 * |
| 588 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 591 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 589 * value is 500 and default value is 500. | 592 * value is 500 and default value is 500. |
| 590 * Value must be between "0" and "500". | 593 * Value must be between "0" and "500". |
| 591 * | 594 * |
| 592 * [pageToken] - Optional. Tag returned by a previous list request truncated | 595 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 593 * by maxResults. Used to continue a previous list request. | 596 * by maxResults. Used to continue a previous list request. |
| 594 * | 597 * |
| 595 * Completes with a [BackendServiceList]. | 598 * Completes with a [BackendServiceList]. |
| 596 * | 599 * |
| 597 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 598 * error. | 601 * error. |
| 599 * | 602 * |
| 600 * If the used [http.Client] completes with an error when making a REST call, | 603 * If the used [http.Client] completes with an error when making a REST call, |
| 601 * this method will complete with the same error. | 604 * this method will complete with the same error. |
| 602 */ | 605 */ |
| 603 async.Future<BackendServiceList> list(core.String project, {core.String filter
, core.int maxResults, core.String pageToken}) { | 606 async.Future<BackendServiceList> list(core.String project, {core.String filter
, core.int maxResults, core.String pageToken}) { |
| 604 var _url = null; | 607 var _url = null; |
| 605 var _queryParams = new core.Map(); | 608 var _queryParams = new core.Map(); |
| 606 var _uploadMedia = null; | 609 var _uploadMedia = null; |
| 607 var _uploadOptions = null; | 610 var _uploadOptions = null; |
| 608 var _downloadOptions = common.DownloadOptions.Metadata; | 611 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 609 var _body = null; | 612 var _body = null; |
| 610 | 613 |
| 611 if (project == null) { | 614 if (project == null) { |
| 612 throw new core.ArgumentError("Parameter project is required."); | 615 throw new core.ArgumentError("Parameter project is required."); |
| 613 } | 616 } |
| 614 if (filter != null) { | 617 if (filter != null) { |
| 615 _queryParams["filter"] = [filter]; | 618 _queryParams["filter"] = [filter]; |
| 616 } | 619 } |
| 617 if (maxResults != null) { | 620 if (maxResults != null) { |
| 618 _queryParams["maxResults"] = ["${maxResults}"]; | 621 _queryParams["maxResults"] = ["${maxResults}"]; |
| 619 } | 622 } |
| 620 if (pageToken != null) { | 623 if (pageToken != null) { |
| 621 _queryParams["pageToken"] = [pageToken]; | 624 _queryParams["pageToken"] = [pageToken]; |
| 622 } | 625 } |
| 623 | 626 |
| 624 | 627 |
| 625 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices'; | 628 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices'
; |
| 626 | 629 |
| 627 var _response = _requester.request(_url, | 630 var _response = _requester.request(_url, |
| 628 "GET", | 631 "GET", |
| 629 body: _body, | 632 body: _body, |
| 630 queryParams: _queryParams, | 633 queryParams: _queryParams, |
| 631 uploadOptions: _uploadOptions, | 634 uploadOptions: _uploadOptions, |
| 632 uploadMedia: _uploadMedia, | 635 uploadMedia: _uploadMedia, |
| 633 downloadOptions: _downloadOptions); | 636 downloadOptions: _downloadOptions); |
| 634 return _response.then((data) => new BackendServiceList.fromJson(data)); | 637 return _response.then((data) => new BackendServiceList.fromJson(data)); |
| 635 } | 638 } |
| 636 | 639 |
| 637 /** | 640 /** |
| 638 * Update the entire content of the BackendService resource. This method | 641 * Update the entire content of the BackendService resource. This method |
| 639 * supports patch semantics. | 642 * supports patch semantics. |
| 640 * | 643 * |
| 641 * [request] - The metadata request object. | 644 * [request] - The metadata request object. |
| 642 * | 645 * |
| 643 * Request parameters: | 646 * Request parameters: |
| 644 * | 647 * |
| 645 * [project] - Name of the project scoping this request. | 648 * [project] - Name of the project scoping this request. |
| 646 * Value must have pattern | 649 * Value must have pattern |
| 647 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 650 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 648 * | 651 * |
| 649 * [backendService] - Name of the BackendService resource to update. | 652 * [backendService] - Name of the BackendService resource to update. |
| 650 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 653 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 651 * | 654 * |
| 652 * Completes with a [Operation]. | 655 * Completes with a [Operation]. |
| 653 * | 656 * |
| 654 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 657 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 655 * error. | 658 * error. |
| 656 * | 659 * |
| 657 * If the used [http.Client] completes with an error when making a REST call, | 660 * If the used [http.Client] completes with an error when making a REST call, |
| 658 * this method will complete with the same error. | 661 * this method will complete with the same error. |
| 659 */ | 662 */ |
| 660 async.Future<Operation> patch(BackendService request, core.String project, cor
e.String backendService) { | 663 async.Future<Operation> patch(BackendService request, core.String project, cor
e.String backendService) { |
| 661 var _url = null; | 664 var _url = null; |
| 662 var _queryParams = new core.Map(); | 665 var _queryParams = new core.Map(); |
| 663 var _uploadMedia = null; | 666 var _uploadMedia = null; |
| 664 var _uploadOptions = null; | 667 var _uploadOptions = null; |
| 665 var _downloadOptions = common.DownloadOptions.Metadata; | 668 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 666 var _body = null; | 669 var _body = null; |
| 667 | 670 |
| 668 if (request != null) { | 671 if (request != null) { |
| 669 _body = convert.JSON.encode((request).toJson()); | 672 _body = convert.JSON.encode((request).toJson()); |
| 670 } | 673 } |
| 671 if (project == null) { | 674 if (project == null) { |
| 672 throw new core.ArgumentError("Parameter project is required."); | 675 throw new core.ArgumentError("Parameter project is required."); |
| 673 } | 676 } |
| 674 if (backendService == null) { | 677 if (backendService == null) { |
| 675 throw new core.ArgumentError("Parameter backendService is required."); | 678 throw new core.ArgumentError("Parameter backendService is required."); |
| 676 } | 679 } |
| 677 | 680 |
| 678 | 681 |
| 679 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices/' + common_internal.Escaper.ecapeVariable('$backendService'); | 682 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/
' + commons.Escaper.ecapeVariable('$backendService'); |
| 680 | 683 |
| 681 var _response = _requester.request(_url, | 684 var _response = _requester.request(_url, |
| 682 "PATCH", | 685 "PATCH", |
| 683 body: _body, | 686 body: _body, |
| 684 queryParams: _queryParams, | 687 queryParams: _queryParams, |
| 685 uploadOptions: _uploadOptions, | 688 uploadOptions: _uploadOptions, |
| 686 uploadMedia: _uploadMedia, | 689 uploadMedia: _uploadMedia, |
| 687 downloadOptions: _downloadOptions); | 690 downloadOptions: _downloadOptions); |
| 688 return _response.then((data) => new Operation.fromJson(data)); | 691 return _response.then((data) => new Operation.fromJson(data)); |
| 689 } | 692 } |
| 690 | 693 |
| 691 /** | 694 /** |
| 692 * Update the entire content of the BackendService resource. | 695 * Update the entire content of the BackendService resource. |
| 693 * | 696 * |
| 694 * [request] - The metadata request object. | 697 * [request] - The metadata request object. |
| 695 * | 698 * |
| 696 * Request parameters: | 699 * Request parameters: |
| 697 * | 700 * |
| 698 * [project] - Name of the project scoping this request. | 701 * [project] - Name of the project scoping this request. |
| 699 * Value must have pattern | 702 * Value must have pattern |
| 700 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 703 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 701 * | 704 * |
| 702 * [backendService] - Name of the BackendService resource to update. | 705 * [backendService] - Name of the BackendService resource to update. |
| 703 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 706 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 704 * | 707 * |
| 705 * Completes with a [Operation]. | 708 * Completes with a [Operation]. |
| 706 * | 709 * |
| 707 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 710 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 708 * error. | 711 * error. |
| 709 * | 712 * |
| 710 * If the used [http.Client] completes with an error when making a REST call, | 713 * If the used [http.Client] completes with an error when making a REST call, |
| 711 * this method will complete with the same error. | 714 * this method will complete with the same error. |
| 712 */ | 715 */ |
| 713 async.Future<Operation> update(BackendService request, core.String project, co
re.String backendService) { | 716 async.Future<Operation> update(BackendService request, core.String project, co
re.String backendService) { |
| 714 var _url = null; | 717 var _url = null; |
| 715 var _queryParams = new core.Map(); | 718 var _queryParams = new core.Map(); |
| 716 var _uploadMedia = null; | 719 var _uploadMedia = null; |
| 717 var _uploadOptions = null; | 720 var _uploadOptions = null; |
| 718 var _downloadOptions = common.DownloadOptions.Metadata; | 721 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 719 var _body = null; | 722 var _body = null; |
| 720 | 723 |
| 721 if (request != null) { | 724 if (request != null) { |
| 722 _body = convert.JSON.encode((request).toJson()); | 725 _body = convert.JSON.encode((request).toJson()); |
| 723 } | 726 } |
| 724 if (project == null) { | 727 if (project == null) { |
| 725 throw new core.ArgumentError("Parameter project is required."); | 728 throw new core.ArgumentError("Parameter project is required."); |
| 726 } | 729 } |
| 727 if (backendService == null) { | 730 if (backendService == null) { |
| 728 throw new core.ArgumentError("Parameter backendService is required."); | 731 throw new core.ArgumentError("Parameter backendService is required."); |
| 729 } | 732 } |
| 730 | 733 |
| 731 | 734 |
| 732 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/backendS
ervices/' + common_internal.Escaper.ecapeVariable('$backendService'); | 735 _url = commons.Escaper.ecapeVariable('$project') + '/global/backendServices/
' + commons.Escaper.ecapeVariable('$backendService'); |
| 733 | 736 |
| 734 var _response = _requester.request(_url, | 737 var _response = _requester.request(_url, |
| 735 "PUT", | 738 "PUT", |
| 736 body: _body, | 739 body: _body, |
| 737 queryParams: _queryParams, | 740 queryParams: _queryParams, |
| 738 uploadOptions: _uploadOptions, | 741 uploadOptions: _uploadOptions, |
| 739 uploadMedia: _uploadMedia, | 742 uploadMedia: _uploadMedia, |
| 740 downloadOptions: _downloadOptions); | 743 downloadOptions: _downloadOptions); |
| 741 return _response.then((data) => new Operation.fromJson(data)); | 744 return _response.then((data) => new Operation.fromJson(data)); |
| 742 } | 745 } |
| 743 | 746 |
| 744 } | 747 } |
| 745 | 748 |
| 746 | 749 |
| 747 /** Not documented yet. */ | |
| 748 class DiskTypesResourceApi { | 750 class DiskTypesResourceApi { |
| 749 final common_internal.ApiRequester _requester; | 751 final commons.ApiRequester _requester; |
| 750 | 752 |
| 751 DiskTypesResourceApi(common_internal.ApiRequester client) : | 753 DiskTypesResourceApi(commons.ApiRequester client) : |
| 752 _requester = client; | 754 _requester = client; |
| 753 | 755 |
| 754 /** | 756 /** |
| 755 * Retrieves the list of disk type resources grouped by scope. | 757 * Retrieves the list of disk type resources grouped by scope. |
| 756 * | 758 * |
| 757 * Request parameters: | 759 * Request parameters: |
| 758 * | 760 * |
| 759 * [project] - Name of the project scoping this request. | 761 * [project] - Project ID for this request. |
| 760 * Value must have pattern | 762 * Value must have pattern |
| 761 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 763 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 762 * | 764 * |
| 763 * [filter] - Optional. Filter expression for filtering listed resources. | 765 * [filter] - Optional. Filter expression for filtering listed resources. |
| 764 * | 766 * |
| 765 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 767 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 766 * value is 500 and default value is 500. | 768 * value is 500 and default value is 500. |
| 767 * Value must be between "0" and "500". | 769 * Value must be between "0" and "500". |
| 768 * | 770 * |
| 769 * [pageToken] - Optional. Tag returned by a previous list request truncated | 771 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 770 * by maxResults. Used to continue a previous list request. | 772 * by maxResults. Used to continue a previous list request. |
| 771 * | 773 * |
| 772 * Completes with a [DiskTypeAggregatedList]. | 774 * Completes with a [DiskTypeAggregatedList]. |
| 773 * | 775 * |
| 774 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 776 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 775 * error. | 777 * error. |
| 776 * | 778 * |
| 777 * If the used [http.Client] completes with an error when making a REST call, | 779 * If the used [http.Client] completes with an error when making a REST call, |
| 778 * this method will complete with the same error. | 780 * this method will complete with the same error. |
| 779 */ | 781 */ |
| 780 async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core
.String filter, core.int maxResults, core.String pageToken}) { | 782 async.Future<DiskTypeAggregatedList> aggregatedList(core.String project, {core
.String filter, core.int maxResults, core.String pageToken}) { |
| 781 var _url = null; | 783 var _url = null; |
| 782 var _queryParams = new core.Map(); | 784 var _queryParams = new core.Map(); |
| 783 var _uploadMedia = null; | 785 var _uploadMedia = null; |
| 784 var _uploadOptions = null; | 786 var _uploadOptions = null; |
| 785 var _downloadOptions = common.DownloadOptions.Metadata; | 787 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 786 var _body = null; | 788 var _body = null; |
| 787 | 789 |
| 788 if (project == null) { | 790 if (project == null) { |
| 789 throw new core.ArgumentError("Parameter project is required."); | 791 throw new core.ArgumentError("Parameter project is required."); |
| 790 } | 792 } |
| 791 if (filter != null) { | 793 if (filter != null) { |
| 792 _queryParams["filter"] = [filter]; | 794 _queryParams["filter"] = [filter]; |
| 793 } | 795 } |
| 794 if (maxResults != null) { | 796 if (maxResults != null) { |
| 795 _queryParams["maxResults"] = ["${maxResults}"]; | 797 _queryParams["maxResults"] = ["${maxResults}"]; |
| 796 } | 798 } |
| 797 if (pageToken != null) { | 799 if (pageToken != null) { |
| 798 _queryParams["pageToken"] = [pageToken]; | 800 _queryParams["pageToken"] = [pageToken]; |
| 799 } | 801 } |
| 800 | 802 |
| 801 | 803 |
| 802 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/disk
Types'; | 804 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/diskTypes'; |
| 803 | 805 |
| 804 var _response = _requester.request(_url, | 806 var _response = _requester.request(_url, |
| 805 "GET", | 807 "GET", |
| 806 body: _body, | 808 body: _body, |
| 807 queryParams: _queryParams, | 809 queryParams: _queryParams, |
| 808 uploadOptions: _uploadOptions, | 810 uploadOptions: _uploadOptions, |
| 809 uploadMedia: _uploadMedia, | 811 uploadMedia: _uploadMedia, |
| 810 downloadOptions: _downloadOptions); | 812 downloadOptions: _downloadOptions); |
| 811 return _response.then((data) => new DiskTypeAggregatedList.fromJson(data)); | 813 return _response.then((data) => new DiskTypeAggregatedList.fromJson(data)); |
| 812 } | 814 } |
| 813 | 815 |
| 814 /** | 816 /** |
| 815 * Returns the specified disk type resource. | 817 * Returns the specified disk type resource. |
| 816 * | 818 * |
| 817 * Request parameters: | 819 * Request parameters: |
| 818 * | 820 * |
| 819 * [project] - Name of the project scoping this request. | 821 * [project] - Project ID for this request. |
| 820 * Value must have pattern | 822 * Value must have pattern |
| 821 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 823 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 822 * | 824 * |
| 823 * [zone] - Name of the zone scoping this request. | 825 * [zone] - The name of the zone for this request. |
| 824 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 826 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 825 * | 827 * |
| 826 * [diskType] - Name of the disk type resource to return. | 828 * [diskType] - Name of the disk type resource to return. |
| 827 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 829 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 828 * | 830 * |
| 829 * Completes with a [DiskType]. | 831 * Completes with a [DiskType]. |
| 830 * | 832 * |
| 831 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 833 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 832 * error. | 834 * error. |
| 833 * | 835 * |
| 834 * If the used [http.Client] completes with an error when making a REST call, | 836 * If the used [http.Client] completes with an error when making a REST call, |
| 835 * this method will complete with the same error. | 837 * this method will complete with the same error. |
| 836 */ | 838 */ |
| 837 async.Future<DiskType> get(core.String project, core.String zone, core.String
diskType) { | 839 async.Future<DiskType> get(core.String project, core.String zone, core.String
diskType) { |
| 838 var _url = null; | 840 var _url = null; |
| 839 var _queryParams = new core.Map(); | 841 var _queryParams = new core.Map(); |
| 840 var _uploadMedia = null; | 842 var _uploadMedia = null; |
| 841 var _uploadOptions = null; | 843 var _uploadOptions = null; |
| 842 var _downloadOptions = common.DownloadOptions.Metadata; | 844 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 843 var _body = null; | 845 var _body = null; |
| 844 | 846 |
| 845 if (project == null) { | 847 if (project == null) { |
| 846 throw new core.ArgumentError("Parameter project is required."); | 848 throw new core.ArgumentError("Parameter project is required."); |
| 847 } | 849 } |
| 848 if (zone == null) { | 850 if (zone == null) { |
| 849 throw new core.ArgumentError("Parameter zone is required."); | 851 throw new core.ArgumentError("Parameter zone is required."); |
| 850 } | 852 } |
| 851 if (diskType == null) { | 853 if (diskType == null) { |
| 852 throw new core.ArgumentError("Parameter diskType is required."); | 854 throw new core.ArgumentError("Parameter diskType is required."); |
| 853 } | 855 } |
| 854 | 856 |
| 855 | 857 |
| 856 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/diskTypes/' + common_internal.Esca
per.ecapeVariable('$diskType'); | 858 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/diskTypes/' + commons.Escaper.ecapeVariable('$disk
Type'); |
| 857 | 859 |
| 858 var _response = _requester.request(_url, | 860 var _response = _requester.request(_url, |
| 859 "GET", | 861 "GET", |
| 860 body: _body, | 862 body: _body, |
| 861 queryParams: _queryParams, | 863 queryParams: _queryParams, |
| 862 uploadOptions: _uploadOptions, | 864 uploadOptions: _uploadOptions, |
| 863 uploadMedia: _uploadMedia, | 865 uploadMedia: _uploadMedia, |
| 864 downloadOptions: _downloadOptions); | 866 downloadOptions: _downloadOptions); |
| 865 return _response.then((data) => new DiskType.fromJson(data)); | 867 return _response.then((data) => new DiskType.fromJson(data)); |
| 866 } | 868 } |
| 867 | 869 |
| 868 /** | 870 /** |
| 869 * Retrieves the list of disk type resources available to the specified | 871 * Retrieves the list of disk type resources available to the specified |
| 870 * project. | 872 * project. |
| 871 * | 873 * |
| 872 * Request parameters: | 874 * Request parameters: |
| 873 * | 875 * |
| 874 * [project] - Name of the project scoping this request. | 876 * [project] - Project ID for this request. |
| 875 * Value must have pattern | 877 * Value must have pattern |
| 876 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 878 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 877 * | 879 * |
| 878 * [zone] - Name of the zone scoping this request. | 880 * [zone] - The name of the zone for this request. |
| 879 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 881 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 880 * | 882 * |
| 881 * [filter] - Optional. Filter expression for filtering listed resources. | 883 * [filter] - Optional. Filter expression for filtering listed resources. |
| 882 * | 884 * |
| 883 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 885 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 884 * value is 500 and default value is 500. | 886 * value is 500 and default value is 500. |
| 885 * Value must be between "0" and "500". | 887 * Value must be between "0" and "500". |
| 886 * | 888 * |
| 887 * [pageToken] - Optional. Tag returned by a previous list request truncated | 889 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 888 * by maxResults. Used to continue a previous list request. | 890 * by maxResults. Used to continue a previous list request. |
| 889 * | 891 * |
| 890 * Completes with a [DiskTypeList]. | 892 * Completes with a [DiskTypeList]. |
| 891 * | 893 * |
| 892 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 894 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 893 * error. | 895 * error. |
| 894 * | 896 * |
| 895 * If the used [http.Client] completes with an error when making a REST call, | 897 * If the used [http.Client] completes with an error when making a REST call, |
| 896 * this method will complete with the same error. | 898 * this method will complete with the same error. |
| 897 */ | 899 */ |
| 898 async.Future<DiskTypeList> list(core.String project, core.String zone, {core.S
tring filter, core.int maxResults, core.String pageToken}) { | 900 async.Future<DiskTypeList> list(core.String project, core.String zone, {core.S
tring filter, core.int maxResults, core.String pageToken}) { |
| 899 var _url = null; | 901 var _url = null; |
| 900 var _queryParams = new core.Map(); | 902 var _queryParams = new core.Map(); |
| 901 var _uploadMedia = null; | 903 var _uploadMedia = null; |
| 902 var _uploadOptions = null; | 904 var _uploadOptions = null; |
| 903 var _downloadOptions = common.DownloadOptions.Metadata; | 905 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 904 var _body = null; | 906 var _body = null; |
| 905 | 907 |
| 906 if (project == null) { | 908 if (project == null) { |
| 907 throw new core.ArgumentError("Parameter project is required."); | 909 throw new core.ArgumentError("Parameter project is required."); |
| 908 } | 910 } |
| 909 if (zone == null) { | 911 if (zone == null) { |
| 910 throw new core.ArgumentError("Parameter zone is required."); | 912 throw new core.ArgumentError("Parameter zone is required."); |
| 911 } | 913 } |
| 912 if (filter != null) { | 914 if (filter != null) { |
| 913 _queryParams["filter"] = [filter]; | 915 _queryParams["filter"] = [filter]; |
| 914 } | 916 } |
| 915 if (maxResults != null) { | 917 if (maxResults != null) { |
| 916 _queryParams["maxResults"] = ["${maxResults}"]; | 918 _queryParams["maxResults"] = ["${maxResults}"]; |
| 917 } | 919 } |
| 918 if (pageToken != null) { | 920 if (pageToken != null) { |
| 919 _queryParams["pageToken"] = [pageToken]; | 921 _queryParams["pageToken"] = [pageToken]; |
| 920 } | 922 } |
| 921 | 923 |
| 922 | 924 |
| 923 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/diskTypes'; | 925 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/diskTypes'; |
| 924 | 926 |
| 925 var _response = _requester.request(_url, | 927 var _response = _requester.request(_url, |
| 926 "GET", | 928 "GET", |
| 927 body: _body, | 929 body: _body, |
| 928 queryParams: _queryParams, | 930 queryParams: _queryParams, |
| 929 uploadOptions: _uploadOptions, | 931 uploadOptions: _uploadOptions, |
| 930 uploadMedia: _uploadMedia, | 932 uploadMedia: _uploadMedia, |
| 931 downloadOptions: _downloadOptions); | 933 downloadOptions: _downloadOptions); |
| 932 return _response.then((data) => new DiskTypeList.fromJson(data)); | 934 return _response.then((data) => new DiskTypeList.fromJson(data)); |
| 933 } | 935 } |
| 934 | 936 |
| 935 } | 937 } |
| 936 | 938 |
| 937 | 939 |
| 938 /** Not documented yet. */ | |
| 939 class DisksResourceApi { | 940 class DisksResourceApi { |
| 940 final common_internal.ApiRequester _requester; | 941 final commons.ApiRequester _requester; |
| 941 | 942 |
| 942 DisksResourceApi(common_internal.ApiRequester client) : | 943 DisksResourceApi(commons.ApiRequester client) : |
| 943 _requester = client; | 944 _requester = client; |
| 944 | 945 |
| 945 /** | 946 /** |
| 946 * Retrieves the list of disks grouped by scope. | 947 * Retrieves the list of disks grouped by scope. |
| 947 * | 948 * |
| 948 * Request parameters: | 949 * Request parameters: |
| 949 * | 950 * |
| 950 * [project] - Name of the project scoping this request. | 951 * [project] - Project ID for this request. |
| 951 * Value must have pattern | 952 * Value must have pattern |
| 952 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 953 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 953 * | 954 * |
| 954 * [filter] - Optional. Filter expression for filtering listed resources. | 955 * [filter] - Optional. Filter expression for filtering listed resources. |
| 955 * | 956 * |
| 956 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 957 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 957 * value is 500 and default value is 500. | 958 * value is 500 and default value is 500. |
| 958 * Value must be between "0" and "500". | 959 * Value must be between "0" and "500". |
| 959 * | 960 * |
| 960 * [pageToken] - Optional. Tag returned by a previous list request truncated | 961 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 961 * by maxResults. Used to continue a previous list request. | 962 * by maxResults. Used to continue a previous list request. |
| 962 * | 963 * |
| 963 * Completes with a [DiskAggregatedList]. | 964 * Completes with a [DiskAggregatedList]. |
| 964 * | 965 * |
| 965 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 966 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 966 * error. | 967 * error. |
| 967 * | 968 * |
| 968 * If the used [http.Client] completes with an error when making a REST call, | 969 * If the used [http.Client] completes with an error when making a REST call, |
| 969 * this method will complete with the same error. | 970 * this method will complete with the same error. |
| 970 */ | 971 */ |
| 971 async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.Str
ing filter, core.int maxResults, core.String pageToken}) { | 972 async.Future<DiskAggregatedList> aggregatedList(core.String project, {core.Str
ing filter, core.int maxResults, core.String pageToken}) { |
| 972 var _url = null; | 973 var _url = null; |
| 973 var _queryParams = new core.Map(); | 974 var _queryParams = new core.Map(); |
| 974 var _uploadMedia = null; | 975 var _uploadMedia = null; |
| 975 var _uploadOptions = null; | 976 var _uploadOptions = null; |
| 976 var _downloadOptions = common.DownloadOptions.Metadata; | 977 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 977 var _body = null; | 978 var _body = null; |
| 978 | 979 |
| 979 if (project == null) { | 980 if (project == null) { |
| 980 throw new core.ArgumentError("Parameter project is required."); | 981 throw new core.ArgumentError("Parameter project is required."); |
| 981 } | 982 } |
| 982 if (filter != null) { | 983 if (filter != null) { |
| 983 _queryParams["filter"] = [filter]; | 984 _queryParams["filter"] = [filter]; |
| 984 } | 985 } |
| 985 if (maxResults != null) { | 986 if (maxResults != null) { |
| 986 _queryParams["maxResults"] = ["${maxResults}"]; | 987 _queryParams["maxResults"] = ["${maxResults}"]; |
| 987 } | 988 } |
| 988 if (pageToken != null) { | 989 if (pageToken != null) { |
| 989 _queryParams["pageToken"] = [pageToken]; | 990 _queryParams["pageToken"] = [pageToken]; |
| 990 } | 991 } |
| 991 | 992 |
| 992 | 993 |
| 993 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/disk
s'; | 994 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/disks'; |
| 994 | 995 |
| 995 var _response = _requester.request(_url, | 996 var _response = _requester.request(_url, |
| 996 "GET", | 997 "GET", |
| 997 body: _body, | 998 body: _body, |
| 998 queryParams: _queryParams, | 999 queryParams: _queryParams, |
| 999 uploadOptions: _uploadOptions, | 1000 uploadOptions: _uploadOptions, |
| 1000 uploadMedia: _uploadMedia, | 1001 uploadMedia: _uploadMedia, |
| 1001 downloadOptions: _downloadOptions); | 1002 downloadOptions: _downloadOptions); |
| 1002 return _response.then((data) => new DiskAggregatedList.fromJson(data)); | 1003 return _response.then((data) => new DiskAggregatedList.fromJson(data)); |
| 1003 } | 1004 } |
| 1004 | 1005 |
| 1005 /** | 1006 /** |
| 1006 * Not documented yet. | 1007 * Creates a snapshot of this disk. |
| 1007 * | 1008 * |
| 1008 * [request] - The metadata request object. | 1009 * [request] - The metadata request object. |
| 1009 * | 1010 * |
| 1010 * Request parameters: | 1011 * Request parameters: |
| 1011 * | 1012 * |
| 1012 * [project] - Name of the project scoping this request. | 1013 * [project] - Project ID for this request. |
| 1013 * Value must have pattern | 1014 * Value must have pattern |
| 1014 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1015 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1015 * | 1016 * |
| 1016 * [zone] - Name of the zone scoping this request. | 1017 * [zone] - The name of the zone for this request. |
| 1017 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1018 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1018 * | 1019 * |
| 1019 * [disk] - Name of the persistent disk resource to snapshot. | 1020 * [disk] - Name of the persistent disk to snapshot. |
| 1020 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1021 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1021 * | 1022 * |
| 1022 * Completes with a [Operation]. | 1023 * Completes with a [Operation]. |
| 1023 * | 1024 * |
| 1024 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1025 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1025 * error. | 1026 * error. |
| 1026 * | 1027 * |
| 1027 * If the used [http.Client] completes with an error when making a REST call, | 1028 * If the used [http.Client] completes with an error when making a REST call, |
| 1028 * this method will complete with the same error. | 1029 * this method will complete with the same error. |
| 1029 */ | 1030 */ |
| 1030 async.Future<Operation> createSnapshot(Snapshot request, core.String project,
core.String zone, core.String disk) { | 1031 async.Future<Operation> createSnapshot(Snapshot request, core.String project,
core.String zone, core.String disk) { |
| 1031 var _url = null; | 1032 var _url = null; |
| 1032 var _queryParams = new core.Map(); | 1033 var _queryParams = new core.Map(); |
| 1033 var _uploadMedia = null; | 1034 var _uploadMedia = null; |
| 1034 var _uploadOptions = null; | 1035 var _uploadOptions = null; |
| 1035 var _downloadOptions = common.DownloadOptions.Metadata; | 1036 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1036 var _body = null; | 1037 var _body = null; |
| 1037 | 1038 |
| 1038 if (request != null) { | 1039 if (request != null) { |
| 1039 _body = convert.JSON.encode((request).toJson()); | 1040 _body = convert.JSON.encode((request).toJson()); |
| 1040 } | 1041 } |
| 1041 if (project == null) { | 1042 if (project == null) { |
| 1042 throw new core.ArgumentError("Parameter project is required."); | 1043 throw new core.ArgumentError("Parameter project is required."); |
| 1043 } | 1044 } |
| 1044 if (zone == null) { | 1045 if (zone == null) { |
| 1045 throw new core.ArgumentError("Parameter zone is required."); | 1046 throw new core.ArgumentError("Parameter zone is required."); |
| 1046 } | 1047 } |
| 1047 if (disk == null) { | 1048 if (disk == null) { |
| 1048 throw new core.ArgumentError("Parameter disk is required."); | 1049 throw new core.ArgumentError("Parameter disk is required."); |
| 1049 } | 1050 } |
| 1050 | 1051 |
| 1051 | 1052 |
| 1052 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.
ecapeVariable('$disk') + '/createSnapshot'; | 1053 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk') +
'/createSnapshot'; |
| 1053 | 1054 |
| 1054 var _response = _requester.request(_url, | 1055 var _response = _requester.request(_url, |
| 1055 "POST", | 1056 "POST", |
| 1056 body: _body, | 1057 body: _body, |
| 1057 queryParams: _queryParams, | 1058 queryParams: _queryParams, |
| 1058 uploadOptions: _uploadOptions, | 1059 uploadOptions: _uploadOptions, |
| 1059 uploadMedia: _uploadMedia, | 1060 uploadMedia: _uploadMedia, |
| 1060 downloadOptions: _downloadOptions); | 1061 downloadOptions: _downloadOptions); |
| 1061 return _response.then((data) => new Operation.fromJson(data)); | 1062 return _response.then((data) => new Operation.fromJson(data)); |
| 1062 } | 1063 } |
| 1063 | 1064 |
| 1064 /** | 1065 /** |
| 1065 * Deletes the specified persistent disk resource. | 1066 * Deletes the specified persistent disk. |
| 1066 * | 1067 * |
| 1067 * Request parameters: | 1068 * Request parameters: |
| 1068 * | 1069 * |
| 1069 * [project] - Name of the project scoping this request. | 1070 * [project] - Project ID for this request. |
| 1070 * Value must have pattern | 1071 * Value must have pattern |
| 1071 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1072 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1072 * | 1073 * |
| 1073 * [zone] - Name of the zone scoping this request. | 1074 * [zone] - The name of the zone for this request. |
| 1074 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1075 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1075 * | 1076 * |
| 1076 * [disk] - Name of the persistent disk resource to delete. | 1077 * [disk] - Name of the persistent disk to delete. |
| 1077 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1078 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1078 * | 1079 * |
| 1079 * Completes with a [Operation]. | 1080 * Completes with a [Operation]. |
| 1080 * | 1081 * |
| 1081 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1082 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1082 * error. | 1083 * error. |
| 1083 * | 1084 * |
| 1084 * If the used [http.Client] completes with an error when making a REST call, | 1085 * If the used [http.Client] completes with an error when making a REST call, |
| 1085 * this method will complete with the same error. | 1086 * this method will complete with the same error. |
| 1086 */ | 1087 */ |
| 1087 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing disk) { | 1088 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing disk) { |
| 1088 var _url = null; | 1089 var _url = null; |
| 1089 var _queryParams = new core.Map(); | 1090 var _queryParams = new core.Map(); |
| 1090 var _uploadMedia = null; | 1091 var _uploadMedia = null; |
| 1091 var _uploadOptions = null; | 1092 var _uploadOptions = null; |
| 1092 var _downloadOptions = common.DownloadOptions.Metadata; | 1093 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1093 var _body = null; | 1094 var _body = null; |
| 1094 | 1095 |
| 1095 if (project == null) { | 1096 if (project == null) { |
| 1096 throw new core.ArgumentError("Parameter project is required."); | 1097 throw new core.ArgumentError("Parameter project is required."); |
| 1097 } | 1098 } |
| 1098 if (zone == null) { | 1099 if (zone == null) { |
| 1099 throw new core.ArgumentError("Parameter zone is required."); | 1100 throw new core.ArgumentError("Parameter zone is required."); |
| 1100 } | 1101 } |
| 1101 if (disk == null) { | 1102 if (disk == null) { |
| 1102 throw new core.ArgumentError("Parameter disk is required."); | 1103 throw new core.ArgumentError("Parameter disk is required."); |
| 1103 } | 1104 } |
| 1104 | 1105 |
| 1105 | 1106 |
| 1106 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.
ecapeVariable('$disk'); | 1107 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
| 1107 | 1108 |
| 1108 var _response = _requester.request(_url, | 1109 var _response = _requester.request(_url, |
| 1109 "DELETE", | 1110 "DELETE", |
| 1110 body: _body, | 1111 body: _body, |
| 1111 queryParams: _queryParams, | 1112 queryParams: _queryParams, |
| 1112 uploadOptions: _uploadOptions, | 1113 uploadOptions: _uploadOptions, |
| 1113 uploadMedia: _uploadMedia, | 1114 uploadMedia: _uploadMedia, |
| 1114 downloadOptions: _downloadOptions); | 1115 downloadOptions: _downloadOptions); |
| 1115 return _response.then((data) => new Operation.fromJson(data)); | 1116 return _response.then((data) => new Operation.fromJson(data)); |
| 1116 } | 1117 } |
| 1117 | 1118 |
| 1118 /** | 1119 /** |
| 1119 * Returns the specified persistent disk resource. | 1120 * Returns a specified persistent disk. |
| 1120 * | 1121 * |
| 1121 * Request parameters: | 1122 * Request parameters: |
| 1122 * | 1123 * |
| 1123 * [project] - Name of the project scoping this request. | 1124 * [project] - Project ID for this request. |
| 1124 * Value must have pattern | 1125 * Value must have pattern |
| 1125 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1126 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1126 * | 1127 * |
| 1127 * [zone] - Name of the zone scoping this request. | 1128 * [zone] - The name of the zone for this request. |
| 1128 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1129 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1129 * | 1130 * |
| 1130 * [disk] - Name of the persistent disk resource to return. | 1131 * [disk] - Name of the persistent disk to return. |
| 1131 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1132 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1132 * | 1133 * |
| 1133 * Completes with a [Disk]. | 1134 * Completes with a [Disk]. |
| 1134 * | 1135 * |
| 1135 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1136 * error. | 1137 * error. |
| 1137 * | 1138 * |
| 1138 * If the used [http.Client] completes with an error when making a REST call, | 1139 * If the used [http.Client] completes with an error when making a REST call, |
| 1139 * this method will complete with the same error. | 1140 * this method will complete with the same error. |
| 1140 */ | 1141 */ |
| 1141 async.Future<Disk> get(core.String project, core.String zone, core.String disk
) { | 1142 async.Future<Disk> get(core.String project, core.String zone, core.String disk
) { |
| 1142 var _url = null; | 1143 var _url = null; |
| 1143 var _queryParams = new core.Map(); | 1144 var _queryParams = new core.Map(); |
| 1144 var _uploadMedia = null; | 1145 var _uploadMedia = null; |
| 1145 var _uploadOptions = null; | 1146 var _uploadOptions = null; |
| 1146 var _downloadOptions = common.DownloadOptions.Metadata; | 1147 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1147 var _body = null; | 1148 var _body = null; |
| 1148 | 1149 |
| 1149 if (project == null) { | 1150 if (project == null) { |
| 1150 throw new core.ArgumentError("Parameter project is required."); | 1151 throw new core.ArgumentError("Parameter project is required."); |
| 1151 } | 1152 } |
| 1152 if (zone == null) { | 1153 if (zone == null) { |
| 1153 throw new core.ArgumentError("Parameter zone is required."); | 1154 throw new core.ArgumentError("Parameter zone is required."); |
| 1154 } | 1155 } |
| 1155 if (disk == null) { | 1156 if (disk == null) { |
| 1156 throw new core.ArgumentError("Parameter disk is required."); | 1157 throw new core.ArgumentError("Parameter disk is required."); |
| 1157 } | 1158 } |
| 1158 | 1159 |
| 1159 | 1160 |
| 1160 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/disks/' + common_internal.Escaper.
ecapeVariable('$disk'); | 1161 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/disks/' + commons.Escaper.ecapeVariable('$disk'); |
| 1161 | 1162 |
| 1162 var _response = _requester.request(_url, | 1163 var _response = _requester.request(_url, |
| 1163 "GET", | 1164 "GET", |
| 1164 body: _body, | 1165 body: _body, |
| 1165 queryParams: _queryParams, | 1166 queryParams: _queryParams, |
| 1166 uploadOptions: _uploadOptions, | 1167 uploadOptions: _uploadOptions, |
| 1167 uploadMedia: _uploadMedia, | 1168 uploadMedia: _uploadMedia, |
| 1168 downloadOptions: _downloadOptions); | 1169 downloadOptions: _downloadOptions); |
| 1169 return _response.then((data) => new Disk.fromJson(data)); | 1170 return _response.then((data) => new Disk.fromJson(data)); |
| 1170 } | 1171 } |
| 1171 | 1172 |
| 1172 /** | 1173 /** |
| 1173 * Creates a persistent disk resource in the specified project using the data | 1174 * Creates a persistent disk in the specified project using the data included |
| 1174 * included in the request. | 1175 * in the request. |
| 1175 * | 1176 * |
| 1176 * [request] - The metadata request object. | 1177 * [request] - The metadata request object. |
| 1177 * | 1178 * |
| 1178 * Request parameters: | 1179 * Request parameters: |
| 1179 * | 1180 * |
| 1180 * [project] - Name of the project scoping this request. | 1181 * [project] - Project ID for this request. |
| 1181 * Value must have pattern | 1182 * Value must have pattern |
| 1182 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1183 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1183 * | 1184 * |
| 1184 * [zone] - Name of the zone scoping this request. | 1185 * [zone] - The name of the zone for this request. |
| 1185 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1186 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1186 * | 1187 * |
| 1187 * [sourceImage] - Optional. Source image to restore onto a disk. | 1188 * [sourceImage] - Optional. Source image to restore onto a disk. |
| 1188 * | 1189 * |
| 1189 * Completes with a [Operation]. | 1190 * Completes with a [Operation]. |
| 1190 * | 1191 * |
| 1191 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1192 * error. | 1193 * error. |
| 1193 * | 1194 * |
| 1194 * If the used [http.Client] completes with an error when making a REST call, | 1195 * If the used [http.Client] completes with an error when making a REST call, |
| 1195 * this method will complete with the same error. | 1196 * this method will complete with the same error. |
| 1196 */ | 1197 */ |
| 1197 async.Future<Operation> insert(Disk request, core.String project, core.String
zone, {core.String sourceImage}) { | 1198 async.Future<Operation> insert(Disk request, core.String project, core.String
zone, {core.String sourceImage}) { |
| 1198 var _url = null; | 1199 var _url = null; |
| 1199 var _queryParams = new core.Map(); | 1200 var _queryParams = new core.Map(); |
| 1200 var _uploadMedia = null; | 1201 var _uploadMedia = null; |
| 1201 var _uploadOptions = null; | 1202 var _uploadOptions = null; |
| 1202 var _downloadOptions = common.DownloadOptions.Metadata; | 1203 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1203 var _body = null; | 1204 var _body = null; |
| 1204 | 1205 |
| 1205 if (request != null) { | 1206 if (request != null) { |
| 1206 _body = convert.JSON.encode((request).toJson()); | 1207 _body = convert.JSON.encode((request).toJson()); |
| 1207 } | 1208 } |
| 1208 if (project == null) { | 1209 if (project == null) { |
| 1209 throw new core.ArgumentError("Parameter project is required."); | 1210 throw new core.ArgumentError("Parameter project is required."); |
| 1210 } | 1211 } |
| 1211 if (zone == null) { | 1212 if (zone == null) { |
| 1212 throw new core.ArgumentError("Parameter zone is required."); | 1213 throw new core.ArgumentError("Parameter zone is required."); |
| 1213 } | 1214 } |
| 1214 if (sourceImage != null) { | 1215 if (sourceImage != null) { |
| 1215 _queryParams["sourceImage"] = [sourceImage]; | 1216 _queryParams["sourceImage"] = [sourceImage]; |
| 1216 } | 1217 } |
| 1217 | 1218 |
| 1218 | 1219 |
| 1219 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/disks'; | 1220 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/disks'; |
| 1220 | 1221 |
| 1221 var _response = _requester.request(_url, | 1222 var _response = _requester.request(_url, |
| 1222 "POST", | 1223 "POST", |
| 1223 body: _body, | 1224 body: _body, |
| 1224 queryParams: _queryParams, | 1225 queryParams: _queryParams, |
| 1225 uploadOptions: _uploadOptions, | 1226 uploadOptions: _uploadOptions, |
| 1226 uploadMedia: _uploadMedia, | 1227 uploadMedia: _uploadMedia, |
| 1227 downloadOptions: _downloadOptions); | 1228 downloadOptions: _downloadOptions); |
| 1228 return _response.then((data) => new Operation.fromJson(data)); | 1229 return _response.then((data) => new Operation.fromJson(data)); |
| 1229 } | 1230 } |
| 1230 | 1231 |
| 1231 /** | 1232 /** |
| 1232 * Retrieves the list of persistent disk resources contained within the | 1233 * Retrieves the list of persistent disks contained within the specified zone. |
| 1233 * specified zone. | |
| 1234 * | 1234 * |
| 1235 * Request parameters: | 1235 * Request parameters: |
| 1236 * | 1236 * |
| 1237 * [project] - Name of the project scoping this request. | 1237 * [project] - Project ID for this request. |
| 1238 * Value must have pattern | 1238 * Value must have pattern |
| 1239 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1239 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1240 * | 1240 * |
| 1241 * [zone] - Name of the zone scoping this request. | 1241 * [zone] - The name of the zone for this request. |
| 1242 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1242 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1243 * | 1243 * |
| 1244 * [filter] - Optional. Filter expression for filtering listed resources. | 1244 * [filter] - Optional. Filter expression for filtering listed resources. |
| 1245 * | 1245 * |
| 1246 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 1246 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 1247 * value is 500 and default value is 500. | 1247 * value is 500 and default value is 500. |
| 1248 * Value must be between "0" and "500". | 1248 * Value must be between "0" and "500". |
| 1249 * | 1249 * |
| 1250 * [pageToken] - Optional. Tag returned by a previous list request truncated | 1250 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 1251 * by maxResults. Used to continue a previous list request. | 1251 * by maxResults. Used to continue a previous list request. |
| 1252 * | 1252 * |
| 1253 * Completes with a [DiskList]. | 1253 * Completes with a [DiskList]. |
| 1254 * | 1254 * |
| 1255 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1256 * error. | 1256 * error. |
| 1257 * | 1257 * |
| 1258 * If the used [http.Client] completes with an error when making a REST call, | 1258 * If the used [http.Client] completes with an error when making a REST call, |
| 1259 * this method will complete with the same error. | 1259 * this method will complete with the same error. |
| 1260 */ | 1260 */ |
| 1261 async.Future<DiskList> list(core.String project, core.String zone, {core.Strin
g filter, core.int maxResults, core.String pageToken}) { | 1261 async.Future<DiskList> list(core.String project, core.String zone, {core.Strin
g filter, core.int maxResults, core.String pageToken}) { |
| 1262 var _url = null; | 1262 var _url = null; |
| 1263 var _queryParams = new core.Map(); | 1263 var _queryParams = new core.Map(); |
| 1264 var _uploadMedia = null; | 1264 var _uploadMedia = null; |
| 1265 var _uploadOptions = null; | 1265 var _uploadOptions = null; |
| 1266 var _downloadOptions = common.DownloadOptions.Metadata; | 1266 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1267 var _body = null; | 1267 var _body = null; |
| 1268 | 1268 |
| 1269 if (project == null) { | 1269 if (project == null) { |
| 1270 throw new core.ArgumentError("Parameter project is required."); | 1270 throw new core.ArgumentError("Parameter project is required."); |
| 1271 } | 1271 } |
| 1272 if (zone == null) { | 1272 if (zone == null) { |
| 1273 throw new core.ArgumentError("Parameter zone is required."); | 1273 throw new core.ArgumentError("Parameter zone is required."); |
| 1274 } | 1274 } |
| 1275 if (filter != null) { | 1275 if (filter != null) { |
| 1276 _queryParams["filter"] = [filter]; | 1276 _queryParams["filter"] = [filter]; |
| 1277 } | 1277 } |
| 1278 if (maxResults != null) { | 1278 if (maxResults != null) { |
| 1279 _queryParams["maxResults"] = ["${maxResults}"]; | 1279 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1280 } | 1280 } |
| 1281 if (pageToken != null) { | 1281 if (pageToken != null) { |
| 1282 _queryParams["pageToken"] = [pageToken]; | 1282 _queryParams["pageToken"] = [pageToken]; |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 | 1285 |
| 1286 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/disks'; | 1286 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/disks'; |
| 1287 | 1287 |
| 1288 var _response = _requester.request(_url, | 1288 var _response = _requester.request(_url, |
| 1289 "GET", | 1289 "GET", |
| 1290 body: _body, | 1290 body: _body, |
| 1291 queryParams: _queryParams, | 1291 queryParams: _queryParams, |
| 1292 uploadOptions: _uploadOptions, | 1292 uploadOptions: _uploadOptions, |
| 1293 uploadMedia: _uploadMedia, | 1293 uploadMedia: _uploadMedia, |
| 1294 downloadOptions: _downloadOptions); | 1294 downloadOptions: _downloadOptions); |
| 1295 return _response.then((data) => new DiskList.fromJson(data)); | 1295 return _response.then((data) => new DiskList.fromJson(data)); |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 | 1300 |
| 1301 /** Not documented yet. */ | |
| 1302 class FirewallsResourceApi { | 1301 class FirewallsResourceApi { |
| 1303 final common_internal.ApiRequester _requester; | 1302 final commons.ApiRequester _requester; |
| 1304 | 1303 |
| 1305 FirewallsResourceApi(common_internal.ApiRequester client) : | 1304 FirewallsResourceApi(commons.ApiRequester client) : |
| 1306 _requester = client; | 1305 _requester = client; |
| 1307 | 1306 |
| 1308 /** | 1307 /** |
| 1309 * Deletes the specified firewall resource. | 1308 * Deletes the specified firewall resource. |
| 1310 * | 1309 * |
| 1311 * Request parameters: | 1310 * Request parameters: |
| 1312 * | 1311 * |
| 1313 * [project] - Name of the project scoping this request. | 1312 * [project] - Project ID for this request. |
| 1314 * Value must have pattern | 1313 * Value must have pattern |
| 1315 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1314 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1316 * | 1315 * |
| 1317 * [firewall] - Name of the firewall resource to delete. | 1316 * [firewall] - Name of the firewall resource to delete. |
| 1318 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1317 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1319 * | 1318 * |
| 1320 * Completes with a [Operation]. | 1319 * Completes with a [Operation]. |
| 1321 * | 1320 * |
| 1322 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1323 * error. | 1322 * error. |
| 1324 * | 1323 * |
| 1325 * If the used [http.Client] completes with an error when making a REST call, | 1324 * If the used [http.Client] completes with an error when making a REST call, |
| 1326 * this method will complete with the same error. | 1325 * this method will complete with the same error. |
| 1327 */ | 1326 */ |
| 1328 async.Future<Operation> delete(core.String project, core.String firewall) { | 1327 async.Future<Operation> delete(core.String project, core.String firewall) { |
| 1329 var _url = null; | 1328 var _url = null; |
| 1330 var _queryParams = new core.Map(); | 1329 var _queryParams = new core.Map(); |
| 1331 var _uploadMedia = null; | 1330 var _uploadMedia = null; |
| 1332 var _uploadOptions = null; | 1331 var _uploadOptions = null; |
| 1333 var _downloadOptions = common.DownloadOptions.Metadata; | 1332 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1334 var _body = null; | 1333 var _body = null; |
| 1335 | 1334 |
| 1336 if (project == null) { | 1335 if (project == null) { |
| 1337 throw new core.ArgumentError("Parameter project is required."); | 1336 throw new core.ArgumentError("Parameter project is required."); |
| 1338 } | 1337 } |
| 1339 if (firewall == null) { | 1338 if (firewall == null) { |
| 1340 throw new core.ArgumentError("Parameter firewall is required."); | 1339 throw new core.ArgumentError("Parameter firewall is required."); |
| 1341 } | 1340 } |
| 1342 | 1341 |
| 1343 | 1342 |
| 1344 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s/' + common_internal.Escaper.ecapeVariable('$firewall'); | 1343 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + co
mmons.Escaper.ecapeVariable('$firewall'); |
| 1345 | 1344 |
| 1346 var _response = _requester.request(_url, | 1345 var _response = _requester.request(_url, |
| 1347 "DELETE", | 1346 "DELETE", |
| 1348 body: _body, | 1347 body: _body, |
| 1349 queryParams: _queryParams, | 1348 queryParams: _queryParams, |
| 1350 uploadOptions: _uploadOptions, | 1349 uploadOptions: _uploadOptions, |
| 1351 uploadMedia: _uploadMedia, | 1350 uploadMedia: _uploadMedia, |
| 1352 downloadOptions: _downloadOptions); | 1351 downloadOptions: _downloadOptions); |
| 1353 return _response.then((data) => new Operation.fromJson(data)); | 1352 return _response.then((data) => new Operation.fromJson(data)); |
| 1354 } | 1353 } |
| 1355 | 1354 |
| 1356 /** | 1355 /** |
| 1357 * Returns the specified firewall resource. | 1356 * Returns the specified firewall resource. |
| 1358 * | 1357 * |
| 1359 * Request parameters: | 1358 * Request parameters: |
| 1360 * | 1359 * |
| 1361 * [project] - Name of the project scoping this request. | 1360 * [project] - Project ID for this request. |
| 1362 * Value must have pattern | 1361 * Value must have pattern |
| 1363 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1362 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1364 * | 1363 * |
| 1365 * [firewall] - Name of the firewall resource to return. | 1364 * [firewall] - Name of the firewall resource to return. |
| 1366 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1365 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1367 * | 1366 * |
| 1368 * Completes with a [Firewall]. | 1367 * Completes with a [Firewall]. |
| 1369 * | 1368 * |
| 1370 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1371 * error. | 1370 * error. |
| 1372 * | 1371 * |
| 1373 * If the used [http.Client] completes with an error when making a REST call, | 1372 * If the used [http.Client] completes with an error when making a REST call, |
| 1374 * this method will complete with the same error. | 1373 * this method will complete with the same error. |
| 1375 */ | 1374 */ |
| 1376 async.Future<Firewall> get(core.String project, core.String firewall) { | 1375 async.Future<Firewall> get(core.String project, core.String firewall) { |
| 1377 var _url = null; | 1376 var _url = null; |
| 1378 var _queryParams = new core.Map(); | 1377 var _queryParams = new core.Map(); |
| 1379 var _uploadMedia = null; | 1378 var _uploadMedia = null; |
| 1380 var _uploadOptions = null; | 1379 var _uploadOptions = null; |
| 1381 var _downloadOptions = common.DownloadOptions.Metadata; | 1380 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1382 var _body = null; | 1381 var _body = null; |
| 1383 | 1382 |
| 1384 if (project == null) { | 1383 if (project == null) { |
| 1385 throw new core.ArgumentError("Parameter project is required."); | 1384 throw new core.ArgumentError("Parameter project is required."); |
| 1386 } | 1385 } |
| 1387 if (firewall == null) { | 1386 if (firewall == null) { |
| 1388 throw new core.ArgumentError("Parameter firewall is required."); | 1387 throw new core.ArgumentError("Parameter firewall is required."); |
| 1389 } | 1388 } |
| 1390 | 1389 |
| 1391 | 1390 |
| 1392 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s/' + common_internal.Escaper.ecapeVariable('$firewall'); | 1391 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + co
mmons.Escaper.ecapeVariable('$firewall'); |
| 1393 | 1392 |
| 1394 var _response = _requester.request(_url, | 1393 var _response = _requester.request(_url, |
| 1395 "GET", | 1394 "GET", |
| 1396 body: _body, | 1395 body: _body, |
| 1397 queryParams: _queryParams, | 1396 queryParams: _queryParams, |
| 1398 uploadOptions: _uploadOptions, | 1397 uploadOptions: _uploadOptions, |
| 1399 uploadMedia: _uploadMedia, | 1398 uploadMedia: _uploadMedia, |
| 1400 downloadOptions: _downloadOptions); | 1399 downloadOptions: _downloadOptions); |
| 1401 return _response.then((data) => new Firewall.fromJson(data)); | 1400 return _response.then((data) => new Firewall.fromJson(data)); |
| 1402 } | 1401 } |
| 1403 | 1402 |
| 1404 /** | 1403 /** |
| 1405 * Creates a firewall resource in the specified project using the data | 1404 * Creates a firewall resource in the specified project using the data |
| 1406 * included in the request. | 1405 * included in the request. |
| 1407 * | 1406 * |
| 1408 * [request] - The metadata request object. | 1407 * [request] - The metadata request object. |
| 1409 * | 1408 * |
| 1410 * Request parameters: | 1409 * Request parameters: |
| 1411 * | 1410 * |
| 1412 * [project] - Name of the project scoping this request. | 1411 * [project] - Project ID for this request. |
| 1413 * Value must have pattern | 1412 * Value must have pattern |
| 1414 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1413 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1415 * | 1414 * |
| 1416 * Completes with a [Operation]. | 1415 * Completes with a [Operation]. |
| 1417 * | 1416 * |
| 1418 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1419 * error. | 1418 * error. |
| 1420 * | 1419 * |
| 1421 * If the used [http.Client] completes with an error when making a REST call, | 1420 * If the used [http.Client] completes with an error when making a REST call, |
| 1422 * this method will complete with the same error. | 1421 * this method will complete with the same error. |
| 1423 */ | 1422 */ |
| 1424 async.Future<Operation> insert(Firewall request, core.String project) { | 1423 async.Future<Operation> insert(Firewall request, core.String project) { |
| 1425 var _url = null; | 1424 var _url = null; |
| 1426 var _queryParams = new core.Map(); | 1425 var _queryParams = new core.Map(); |
| 1427 var _uploadMedia = null; | 1426 var _uploadMedia = null; |
| 1428 var _uploadOptions = null; | 1427 var _uploadOptions = null; |
| 1429 var _downloadOptions = common.DownloadOptions.Metadata; | 1428 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1430 var _body = null; | 1429 var _body = null; |
| 1431 | 1430 |
| 1432 if (request != null) { | 1431 if (request != null) { |
| 1433 _body = convert.JSON.encode((request).toJson()); | 1432 _body = convert.JSON.encode((request).toJson()); |
| 1434 } | 1433 } |
| 1435 if (project == null) { | 1434 if (project == null) { |
| 1436 throw new core.ArgumentError("Parameter project is required."); | 1435 throw new core.ArgumentError("Parameter project is required."); |
| 1437 } | 1436 } |
| 1438 | 1437 |
| 1439 | 1438 |
| 1440 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s'; | 1439 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
| 1441 | 1440 |
| 1442 var _response = _requester.request(_url, | 1441 var _response = _requester.request(_url, |
| 1443 "POST", | 1442 "POST", |
| 1444 body: _body, | 1443 body: _body, |
| 1445 queryParams: _queryParams, | 1444 queryParams: _queryParams, |
| 1446 uploadOptions: _uploadOptions, | 1445 uploadOptions: _uploadOptions, |
| 1447 uploadMedia: _uploadMedia, | 1446 uploadMedia: _uploadMedia, |
| 1448 downloadOptions: _downloadOptions); | 1447 downloadOptions: _downloadOptions); |
| 1449 return _response.then((data) => new Operation.fromJson(data)); | 1448 return _response.then((data) => new Operation.fromJson(data)); |
| 1450 } | 1449 } |
| 1451 | 1450 |
| 1452 /** | 1451 /** |
| 1453 * Retrieves the list of firewall resources available to the specified | 1452 * Retrieves the list of firewall resources available to the specified |
| 1454 * project. | 1453 * project. |
| 1455 * | 1454 * |
| 1456 * Request parameters: | 1455 * Request parameters: |
| 1457 * | 1456 * |
| 1458 * [project] - Name of the project scoping this request. | 1457 * [project] - Project ID for this request. |
| 1459 * Value must have pattern | 1458 * Value must have pattern |
| 1460 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1459 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1461 * | 1460 * |
| 1462 * [filter] - Optional. Filter expression for filtering listed resources. | 1461 * [filter] - Optional. Filter expression for filtering listed resources. |
| 1463 * | 1462 * |
| 1464 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 1463 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 1465 * value is 500 and default value is 500. | 1464 * value is 500 and default value is 500. |
| 1466 * Value must be between "0" and "500". | 1465 * Value must be between "0" and "500". |
| 1467 * | 1466 * |
| 1468 * [pageToken] - Optional. Tag returned by a previous list request truncated | 1467 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 1469 * by maxResults. Used to continue a previous list request. | 1468 * by maxResults. Used to continue a previous list request. |
| 1470 * | 1469 * |
| 1471 * Completes with a [FirewallList]. | 1470 * Completes with a [FirewallList]. |
| 1472 * | 1471 * |
| 1473 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1472 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1474 * error. | 1473 * error. |
| 1475 * | 1474 * |
| 1476 * If the used [http.Client] completes with an error when making a REST call, | 1475 * If the used [http.Client] completes with an error when making a REST call, |
| 1477 * this method will complete with the same error. | 1476 * this method will complete with the same error. |
| 1478 */ | 1477 */ |
| 1479 async.Future<FirewallList> list(core.String project, {core.String filter, core
.int maxResults, core.String pageToken}) { | 1478 async.Future<FirewallList> list(core.String project, {core.String filter, core
.int maxResults, core.String pageToken}) { |
| 1480 var _url = null; | 1479 var _url = null; |
| 1481 var _queryParams = new core.Map(); | 1480 var _queryParams = new core.Map(); |
| 1482 var _uploadMedia = null; | 1481 var _uploadMedia = null; |
| 1483 var _uploadOptions = null; | 1482 var _uploadOptions = null; |
| 1484 var _downloadOptions = common.DownloadOptions.Metadata; | 1483 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1485 var _body = null; | 1484 var _body = null; |
| 1486 | 1485 |
| 1487 if (project == null) { | 1486 if (project == null) { |
| 1488 throw new core.ArgumentError("Parameter project is required."); | 1487 throw new core.ArgumentError("Parameter project is required."); |
| 1489 } | 1488 } |
| 1490 if (filter != null) { | 1489 if (filter != null) { |
| 1491 _queryParams["filter"] = [filter]; | 1490 _queryParams["filter"] = [filter]; |
| 1492 } | 1491 } |
| 1493 if (maxResults != null) { | 1492 if (maxResults != null) { |
| 1494 _queryParams["maxResults"] = ["${maxResults}"]; | 1493 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1495 } | 1494 } |
| 1496 if (pageToken != null) { | 1495 if (pageToken != null) { |
| 1497 _queryParams["pageToken"] = [pageToken]; | 1496 _queryParams["pageToken"] = [pageToken]; |
| 1498 } | 1497 } |
| 1499 | 1498 |
| 1500 | 1499 |
| 1501 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s'; | 1500 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls'; |
| 1502 | 1501 |
| 1503 var _response = _requester.request(_url, | 1502 var _response = _requester.request(_url, |
| 1504 "GET", | 1503 "GET", |
| 1505 body: _body, | 1504 body: _body, |
| 1506 queryParams: _queryParams, | 1505 queryParams: _queryParams, |
| 1507 uploadOptions: _uploadOptions, | 1506 uploadOptions: _uploadOptions, |
| 1508 uploadMedia: _uploadMedia, | 1507 uploadMedia: _uploadMedia, |
| 1509 downloadOptions: _downloadOptions); | 1508 downloadOptions: _downloadOptions); |
| 1510 return _response.then((data) => new FirewallList.fromJson(data)); | 1509 return _response.then((data) => new FirewallList.fromJson(data)); |
| 1511 } | 1510 } |
| 1512 | 1511 |
| 1513 /** | 1512 /** |
| 1514 * Updates the specified firewall resource with the data included in the | 1513 * Updates the specified firewall resource with the data included in the |
| 1515 * request. This method supports patch semantics. | 1514 * request. This method supports patch semantics. |
| 1516 * | 1515 * |
| 1517 * [request] - The metadata request object. | 1516 * [request] - The metadata request object. |
| 1518 * | 1517 * |
| 1519 * Request parameters: | 1518 * Request parameters: |
| 1520 * | 1519 * |
| 1521 * [project] - Name of the project scoping this request. | 1520 * [project] - Project ID for this request. |
| 1522 * Value must have pattern | 1521 * Value must have pattern |
| 1523 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1522 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1524 * | 1523 * |
| 1525 * [firewall] - Name of the firewall resource to update. | 1524 * [firewall] - Name of the firewall resource to update. |
| 1526 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1525 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1527 * | 1526 * |
| 1528 * Completes with a [Operation]. | 1527 * Completes with a [Operation]. |
| 1529 * | 1528 * |
| 1530 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1529 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1531 * error. | 1530 * error. |
| 1532 * | 1531 * |
| 1533 * If the used [http.Client] completes with an error when making a REST call, | 1532 * If the used [http.Client] completes with an error when making a REST call, |
| 1534 * this method will complete with the same error. | 1533 * this method will complete with the same error. |
| 1535 */ | 1534 */ |
| 1536 async.Future<Operation> patch(Firewall request, core.String project, core.Stri
ng firewall) { | 1535 async.Future<Operation> patch(Firewall request, core.String project, core.Stri
ng firewall) { |
| 1537 var _url = null; | 1536 var _url = null; |
| 1538 var _queryParams = new core.Map(); | 1537 var _queryParams = new core.Map(); |
| 1539 var _uploadMedia = null; | 1538 var _uploadMedia = null; |
| 1540 var _uploadOptions = null; | 1539 var _uploadOptions = null; |
| 1541 var _downloadOptions = common.DownloadOptions.Metadata; | 1540 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1542 var _body = null; | 1541 var _body = null; |
| 1543 | 1542 |
| 1544 if (request != null) { | 1543 if (request != null) { |
| 1545 _body = convert.JSON.encode((request).toJson()); | 1544 _body = convert.JSON.encode((request).toJson()); |
| 1546 } | 1545 } |
| 1547 if (project == null) { | 1546 if (project == null) { |
| 1548 throw new core.ArgumentError("Parameter project is required."); | 1547 throw new core.ArgumentError("Parameter project is required."); |
| 1549 } | 1548 } |
| 1550 if (firewall == null) { | 1549 if (firewall == null) { |
| 1551 throw new core.ArgumentError("Parameter firewall is required."); | 1550 throw new core.ArgumentError("Parameter firewall is required."); |
| 1552 } | 1551 } |
| 1553 | 1552 |
| 1554 | 1553 |
| 1555 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s/' + common_internal.Escaper.ecapeVariable('$firewall'); | 1554 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + co
mmons.Escaper.ecapeVariable('$firewall'); |
| 1556 | 1555 |
| 1557 var _response = _requester.request(_url, | 1556 var _response = _requester.request(_url, |
| 1558 "PATCH", | 1557 "PATCH", |
| 1559 body: _body, | 1558 body: _body, |
| 1560 queryParams: _queryParams, | 1559 queryParams: _queryParams, |
| 1561 uploadOptions: _uploadOptions, | 1560 uploadOptions: _uploadOptions, |
| 1562 uploadMedia: _uploadMedia, | 1561 uploadMedia: _uploadMedia, |
| 1563 downloadOptions: _downloadOptions); | 1562 downloadOptions: _downloadOptions); |
| 1564 return _response.then((data) => new Operation.fromJson(data)); | 1563 return _response.then((data) => new Operation.fromJson(data)); |
| 1565 } | 1564 } |
| 1566 | 1565 |
| 1567 /** | 1566 /** |
| 1568 * Updates the specified firewall resource with the data included in the | 1567 * Updates the specified firewall resource with the data included in the |
| 1569 * request. | 1568 * request. |
| 1570 * | 1569 * |
| 1571 * [request] - The metadata request object. | 1570 * [request] - The metadata request object. |
| 1572 * | 1571 * |
| 1573 * Request parameters: | 1572 * Request parameters: |
| 1574 * | 1573 * |
| 1575 * [project] - Name of the project scoping this request. | 1574 * [project] - Project ID for this request. |
| 1576 * Value must have pattern | 1575 * Value must have pattern |
| 1577 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1576 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1578 * | 1577 * |
| 1579 * [firewall] - Name of the firewall resource to update. | 1578 * [firewall] - Name of the firewall resource to update. |
| 1580 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1579 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1581 * | 1580 * |
| 1582 * Completes with a [Operation]. | 1581 * Completes with a [Operation]. |
| 1583 * | 1582 * |
| 1584 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1583 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1585 * error. | 1584 * error. |
| 1586 * | 1585 * |
| 1587 * If the used [http.Client] completes with an error when making a REST call, | 1586 * If the used [http.Client] completes with an error when making a REST call, |
| 1588 * this method will complete with the same error. | 1587 * this method will complete with the same error. |
| 1589 */ | 1588 */ |
| 1590 async.Future<Operation> update(Firewall request, core.String project, core.Str
ing firewall) { | 1589 async.Future<Operation> update(Firewall request, core.String project, core.Str
ing firewall) { |
| 1591 var _url = null; | 1590 var _url = null; |
| 1592 var _queryParams = new core.Map(); | 1591 var _queryParams = new core.Map(); |
| 1593 var _uploadMedia = null; | 1592 var _uploadMedia = null; |
| 1594 var _uploadOptions = null; | 1593 var _uploadOptions = null; |
| 1595 var _downloadOptions = common.DownloadOptions.Metadata; | 1594 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1596 var _body = null; | 1595 var _body = null; |
| 1597 | 1596 |
| 1598 if (request != null) { | 1597 if (request != null) { |
| 1599 _body = convert.JSON.encode((request).toJson()); | 1598 _body = convert.JSON.encode((request).toJson()); |
| 1600 } | 1599 } |
| 1601 if (project == null) { | 1600 if (project == null) { |
| 1602 throw new core.ArgumentError("Parameter project is required."); | 1601 throw new core.ArgumentError("Parameter project is required."); |
| 1603 } | 1602 } |
| 1604 if (firewall == null) { | 1603 if (firewall == null) { |
| 1605 throw new core.ArgumentError("Parameter firewall is required."); | 1604 throw new core.ArgumentError("Parameter firewall is required."); |
| 1606 } | 1605 } |
| 1607 | 1606 |
| 1608 | 1607 |
| 1609 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/firewall
s/' + common_internal.Escaper.ecapeVariable('$firewall'); | 1608 _url = commons.Escaper.ecapeVariable('$project') + '/global/firewalls/' + co
mmons.Escaper.ecapeVariable('$firewall'); |
| 1610 | 1609 |
| 1611 var _response = _requester.request(_url, | 1610 var _response = _requester.request(_url, |
| 1612 "PUT", | 1611 "PUT", |
| 1613 body: _body, | 1612 body: _body, |
| 1614 queryParams: _queryParams, | 1613 queryParams: _queryParams, |
| 1615 uploadOptions: _uploadOptions, | 1614 uploadOptions: _uploadOptions, |
| 1616 uploadMedia: _uploadMedia, | 1615 uploadMedia: _uploadMedia, |
| 1617 downloadOptions: _downloadOptions); | 1616 downloadOptions: _downloadOptions); |
| 1618 return _response.then((data) => new Operation.fromJson(data)); | 1617 return _response.then((data) => new Operation.fromJson(data)); |
| 1619 } | 1618 } |
| 1620 | 1619 |
| 1621 } | 1620 } |
| 1622 | 1621 |
| 1623 | 1622 |
| 1624 /** Not documented yet. */ | |
| 1625 class ForwardingRulesResourceApi { | 1623 class ForwardingRulesResourceApi { |
| 1626 final common_internal.ApiRequester _requester; | 1624 final commons.ApiRequester _requester; |
| 1627 | 1625 |
| 1628 ForwardingRulesResourceApi(common_internal.ApiRequester client) : | 1626 ForwardingRulesResourceApi(commons.ApiRequester client) : |
| 1629 _requester = client; | 1627 _requester = client; |
| 1630 | 1628 |
| 1631 /** | 1629 /** |
| 1632 * Retrieves the list of forwarding rules grouped by scope. | 1630 * Retrieves the list of forwarding rules grouped by scope. |
| 1633 * | 1631 * |
| 1634 * Request parameters: | 1632 * Request parameters: |
| 1635 * | 1633 * |
| 1636 * [project] - Name of the project scoping this request. | 1634 * [project] - Name of the project scoping this request. |
| 1637 * Value must have pattern | 1635 * Value must have pattern |
| 1638 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1636 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1639 * | 1637 * |
| 1640 * [filter] - Optional. Filter expression for filtering listed resources. | 1638 * [filter] - Optional. Filter expression for filtering listed resources. |
| 1641 * | 1639 * |
| 1642 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 1640 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 1643 * value is 500 and default value is 500. | 1641 * value is 500 and default value is 500. |
| 1644 * Value must be between "0" and "500". | 1642 * Value must be between "0" and "500". |
| 1645 * | 1643 * |
| 1646 * [pageToken] - Optional. Tag returned by a previous list request truncated | 1644 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 1647 * by maxResults. Used to continue a previous list request. | 1645 * by maxResults. Used to continue a previous list request. |
| 1648 * | 1646 * |
| 1649 * Completes with a [ForwardingRuleAggregatedList]. | 1647 * Completes with a [ForwardingRuleAggregatedList]. |
| 1650 * | 1648 * |
| 1651 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1649 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1652 * error. | 1650 * error. |
| 1653 * | 1651 * |
| 1654 * If the used [http.Client] completes with an error when making a REST call, | 1652 * If the used [http.Client] completes with an error when making a REST call, |
| 1655 * this method will complete with the same error. | 1653 * this method will complete with the same error. |
| 1656 */ | 1654 */ |
| 1657 async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project,
{core.String filter, core.int maxResults, core.String pageToken}) { | 1655 async.Future<ForwardingRuleAggregatedList> aggregatedList(core.String project,
{core.String filter, core.int maxResults, core.String pageToken}) { |
| 1658 var _url = null; | 1656 var _url = null; |
| 1659 var _queryParams = new core.Map(); | 1657 var _queryParams = new core.Map(); |
| 1660 var _uploadMedia = null; | 1658 var _uploadMedia = null; |
| 1661 var _uploadOptions = null; | 1659 var _uploadOptions = null; |
| 1662 var _downloadOptions = common.DownloadOptions.Metadata; | 1660 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1663 var _body = null; | 1661 var _body = null; |
| 1664 | 1662 |
| 1665 if (project == null) { | 1663 if (project == null) { |
| 1666 throw new core.ArgumentError("Parameter project is required."); | 1664 throw new core.ArgumentError("Parameter project is required."); |
| 1667 } | 1665 } |
| 1668 if (filter != null) { | 1666 if (filter != null) { |
| 1669 _queryParams["filter"] = [filter]; | 1667 _queryParams["filter"] = [filter]; |
| 1670 } | 1668 } |
| 1671 if (maxResults != null) { | 1669 if (maxResults != null) { |
| 1672 _queryParams["maxResults"] = ["${maxResults}"]; | 1670 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1673 } | 1671 } |
| 1674 if (pageToken != null) { | 1672 if (pageToken != null) { |
| 1675 _queryParams["pageToken"] = [pageToken]; | 1673 _queryParams["pageToken"] = [pageToken]; |
| 1676 } | 1674 } |
| 1677 | 1675 |
| 1678 | 1676 |
| 1679 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/forw
ardingRules'; | 1677 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/forwardingRu
les'; |
| 1680 | 1678 |
| 1681 var _response = _requester.request(_url, | 1679 var _response = _requester.request(_url, |
| 1682 "GET", | 1680 "GET", |
| 1683 body: _body, | 1681 body: _body, |
| 1684 queryParams: _queryParams, | 1682 queryParams: _queryParams, |
| 1685 uploadOptions: _uploadOptions, | 1683 uploadOptions: _uploadOptions, |
| 1686 uploadMedia: _uploadMedia, | 1684 uploadMedia: _uploadMedia, |
| 1687 downloadOptions: _downloadOptions); | 1685 downloadOptions: _downloadOptions); |
| 1688 return _response.then((data) => new ForwardingRuleAggregatedList.fromJson(da
ta)); | 1686 return _response.then((data) => new ForwardingRuleAggregatedList.fromJson(da
ta)); |
| 1689 } | 1687 } |
| 1690 | 1688 |
| 1691 /** | 1689 /** |
| 1692 * Deletes the specified ForwardingRule resource. | 1690 * Deletes the specified ForwardingRule resource. |
| 1693 * | 1691 * |
| 1694 * Request parameters: | 1692 * Request parameters: |
| 1695 * | 1693 * |
| 1696 * [project] - Name of the project scoping this request. | 1694 * [project] - Name of the project scoping this request. |
| 1697 * Value must have pattern | 1695 * Value must have pattern |
| 1698 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1696 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1699 * | 1697 * |
| 1700 * [region] - Name of the region scoping this request. | 1698 * [region] - Name of the region scoping this request. |
| 1701 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1699 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1702 * | 1700 * |
| 1703 * [forwardingRule] - Name of the ForwardingRule resource to delete. | 1701 * [forwardingRule] - Name of the ForwardingRule resource to delete. |
| 1704 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1702 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1705 * | 1703 * |
| 1706 * Completes with a [Operation]. | 1704 * Completes with a [Operation]. |
| 1707 * | 1705 * |
| 1708 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1709 * error. | 1707 * error. |
| 1710 * | 1708 * |
| 1711 * If the used [http.Client] completes with an error when making a REST call, | 1709 * If the used [http.Client] completes with an error when making a REST call, |
| 1712 * this method will complete with the same error. | 1710 * this method will complete with the same error. |
| 1713 */ | 1711 */ |
| 1714 async.Future<Operation> delete(core.String project, core.String region, core.S
tring forwardingRule) { | 1712 async.Future<Operation> delete(core.String project, core.String region, core.S
tring forwardingRule) { |
| 1715 var _url = null; | 1713 var _url = null; |
| 1716 var _queryParams = new core.Map(); | 1714 var _queryParams = new core.Map(); |
| 1717 var _uploadMedia = null; | 1715 var _uploadMedia = null; |
| 1718 var _uploadOptions = null; | 1716 var _uploadOptions = null; |
| 1719 var _downloadOptions = common.DownloadOptions.Metadata; | 1717 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1720 var _body = null; | 1718 var _body = null; |
| 1721 | 1719 |
| 1722 if (project == null) { | 1720 if (project == null) { |
| 1723 throw new core.ArgumentError("Parameter project is required."); | 1721 throw new core.ArgumentError("Parameter project is required."); |
| 1724 } | 1722 } |
| 1725 if (region == null) { | 1723 if (region == null) { |
| 1726 throw new core.ArgumentError("Parameter region is required."); | 1724 throw new core.ArgumentError("Parameter region is required."); |
| 1727 } | 1725 } |
| 1728 if (forwardingRule == null) { | 1726 if (forwardingRule == null) { |
| 1729 throw new core.ArgumentError("Parameter forwardingRule is required."); | 1727 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 1730 } | 1728 } |
| 1731 | 1729 |
| 1732 | 1730 |
| 1733 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_int
ernal.Escaper.ecapeVariable('$forwardingRule'); | 1731 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVaria
ble('$forwardingRule'); |
| 1734 | 1732 |
| 1735 var _response = _requester.request(_url, | 1733 var _response = _requester.request(_url, |
| 1736 "DELETE", | 1734 "DELETE", |
| 1737 body: _body, | 1735 body: _body, |
| 1738 queryParams: _queryParams, | 1736 queryParams: _queryParams, |
| 1739 uploadOptions: _uploadOptions, | 1737 uploadOptions: _uploadOptions, |
| 1740 uploadMedia: _uploadMedia, | 1738 uploadMedia: _uploadMedia, |
| 1741 downloadOptions: _downloadOptions); | 1739 downloadOptions: _downloadOptions); |
| 1742 return _response.then((data) => new Operation.fromJson(data)); | 1740 return _response.then((data) => new Operation.fromJson(data)); |
| 1743 } | 1741 } |
| 1744 | 1742 |
| 1745 /** | 1743 /** |
| 1746 * Returns the specified ForwardingRule resource. | 1744 * Returns the specified ForwardingRule resource. |
| 1747 * | 1745 * |
| 1748 * Request parameters: | 1746 * Request parameters: |
| 1749 * | 1747 * |
| 1750 * [project] - Name of the project scoping this request. | 1748 * [project] - Name of the project scoping this request. |
| 1751 * Value must have pattern | 1749 * Value must have pattern |
| 1752 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1750 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1753 * | 1751 * |
| 1754 * [region] - Name of the region scoping this request. | 1752 * [region] - Name of the region scoping this request. |
| 1755 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1753 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1756 * | 1754 * |
| 1757 * [forwardingRule] - Name of the ForwardingRule resource to return. | 1755 * [forwardingRule] - Name of the ForwardingRule resource to return. |
| 1758 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1756 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1759 * | 1757 * |
| 1760 * Completes with a [ForwardingRule]. | 1758 * Completes with a [ForwardingRule]. |
| 1761 * | 1759 * |
| 1762 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1763 * error. | 1761 * error. |
| 1764 * | 1762 * |
| 1765 * If the used [http.Client] completes with an error when making a REST call, | 1763 * If the used [http.Client] completes with an error when making a REST call, |
| 1766 * this method will complete with the same error. | 1764 * this method will complete with the same error. |
| 1767 */ | 1765 */ |
| 1768 async.Future<ForwardingRule> get(core.String project, core.String region, core
.String forwardingRule) { | 1766 async.Future<ForwardingRule> get(core.String project, core.String region, core
.String forwardingRule) { |
| 1769 var _url = null; | 1767 var _url = null; |
| 1770 var _queryParams = new core.Map(); | 1768 var _queryParams = new core.Map(); |
| 1771 var _uploadMedia = null; | 1769 var _uploadMedia = null; |
| 1772 var _uploadOptions = null; | 1770 var _uploadOptions = null; |
| 1773 var _downloadOptions = common.DownloadOptions.Metadata; | 1771 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1774 var _body = null; | 1772 var _body = null; |
| 1775 | 1773 |
| 1776 if (project == null) { | 1774 if (project == null) { |
| 1777 throw new core.ArgumentError("Parameter project is required."); | 1775 throw new core.ArgumentError("Parameter project is required."); |
| 1778 } | 1776 } |
| 1779 if (region == null) { | 1777 if (region == null) { |
| 1780 throw new core.ArgumentError("Parameter region is required."); | 1778 throw new core.ArgumentError("Parameter region is required."); |
| 1781 } | 1779 } |
| 1782 if (forwardingRule == null) { | 1780 if (forwardingRule == null) { |
| 1783 throw new core.ArgumentError("Parameter forwardingRule is required."); | 1781 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 1784 } | 1782 } |
| 1785 | 1783 |
| 1786 | 1784 |
| 1787 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_int
ernal.Escaper.ecapeVariable('$forwardingRule'); | 1785 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVaria
ble('$forwardingRule'); |
| 1788 | 1786 |
| 1789 var _response = _requester.request(_url, | 1787 var _response = _requester.request(_url, |
| 1790 "GET", | 1788 "GET", |
| 1791 body: _body, | 1789 body: _body, |
| 1792 queryParams: _queryParams, | 1790 queryParams: _queryParams, |
| 1793 uploadOptions: _uploadOptions, | 1791 uploadOptions: _uploadOptions, |
| 1794 uploadMedia: _uploadMedia, | 1792 uploadMedia: _uploadMedia, |
| 1795 downloadOptions: _downloadOptions); | 1793 downloadOptions: _downloadOptions); |
| 1796 return _response.then((data) => new ForwardingRule.fromJson(data)); | 1794 return _response.then((data) => new ForwardingRule.fromJson(data)); |
| 1797 } | 1795 } |
| 1798 | 1796 |
| 1799 /** | 1797 /** |
| 1800 * Creates a ForwardingRule resource in the specified project and region using | 1798 * Creates a ForwardingRule resource in the specified project and region using |
| 1801 * the data included in the request. | 1799 * the data included in the request. |
| 1802 * | 1800 * |
| 1803 * [request] - The metadata request object. | 1801 * [request] - The metadata request object. |
| 1804 * | 1802 * |
| 1805 * Request parameters: | 1803 * Request parameters: |
| 1806 * | 1804 * |
| 1807 * [project] - Name of the project scoping this request. | 1805 * [project] - Name of the project scoping this request. |
| 1808 * Value must have pattern | 1806 * Value must have pattern |
| 1809 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1807 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1810 * | 1808 * |
| 1811 * [region] - Name of the region scoping this request. | 1809 * [region] - Name of the region scoping this request. |
| 1812 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1810 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1813 * | 1811 * |
| 1814 * Completes with a [Operation]. | 1812 * Completes with a [Operation]. |
| 1815 * | 1813 * |
| 1816 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1814 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1817 * error. | 1815 * error. |
| 1818 * | 1816 * |
| 1819 * If the used [http.Client] completes with an error when making a REST call, | 1817 * If the used [http.Client] completes with an error when making a REST call, |
| 1820 * this method will complete with the same error. | 1818 * this method will complete with the same error. |
| 1821 */ | 1819 */ |
| 1822 async.Future<Operation> insert(ForwardingRule request, core.String project, co
re.String region) { | 1820 async.Future<Operation> insert(ForwardingRule request, core.String project, co
re.String region) { |
| 1823 var _url = null; | 1821 var _url = null; |
| 1824 var _queryParams = new core.Map(); | 1822 var _queryParams = new core.Map(); |
| 1825 var _uploadMedia = null; | 1823 var _uploadMedia = null; |
| 1826 var _uploadOptions = null; | 1824 var _uploadOptions = null; |
| 1827 var _downloadOptions = common.DownloadOptions.Metadata; | 1825 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1828 var _body = null; | 1826 var _body = null; |
| 1829 | 1827 |
| 1830 if (request != null) { | 1828 if (request != null) { |
| 1831 _body = convert.JSON.encode((request).toJson()); | 1829 _body = convert.JSON.encode((request).toJson()); |
| 1832 } | 1830 } |
| 1833 if (project == null) { | 1831 if (project == null) { |
| 1834 throw new core.ArgumentError("Parameter project is required."); | 1832 throw new core.ArgumentError("Parameter project is required."); |
| 1835 } | 1833 } |
| 1836 if (region == null) { | 1834 if (region == null) { |
| 1837 throw new core.ArgumentError("Parameter region is required."); | 1835 throw new core.ArgumentError("Parameter region is required."); |
| 1838 } | 1836 } |
| 1839 | 1837 |
| 1840 | 1838 |
| 1841 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/forwardingRules'; | 1839 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/forwardingRules'; |
| 1842 | 1840 |
| 1843 var _response = _requester.request(_url, | 1841 var _response = _requester.request(_url, |
| 1844 "POST", | 1842 "POST", |
| 1845 body: _body, | 1843 body: _body, |
| 1846 queryParams: _queryParams, | 1844 queryParams: _queryParams, |
| 1847 uploadOptions: _uploadOptions, | 1845 uploadOptions: _uploadOptions, |
| 1848 uploadMedia: _uploadMedia, | 1846 uploadMedia: _uploadMedia, |
| 1849 downloadOptions: _downloadOptions); | 1847 downloadOptions: _downloadOptions); |
| 1850 return _response.then((data) => new Operation.fromJson(data)); | 1848 return _response.then((data) => new Operation.fromJson(data)); |
| 1851 } | 1849 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1867 * | 1865 * |
| 1868 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 1866 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 1869 * value is 500 and default value is 500. | 1867 * value is 500 and default value is 500. |
| 1870 * Value must be between "0" and "500". | 1868 * Value must be between "0" and "500". |
| 1871 * | 1869 * |
| 1872 * [pageToken] - Optional. Tag returned by a previous list request truncated | 1870 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 1873 * by maxResults. Used to continue a previous list request. | 1871 * by maxResults. Used to continue a previous list request. |
| 1874 * | 1872 * |
| 1875 * Completes with a [ForwardingRuleList]. | 1873 * Completes with a [ForwardingRuleList]. |
| 1876 * | 1874 * |
| 1877 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1875 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1878 * error. | 1876 * error. |
| 1879 * | 1877 * |
| 1880 * If the used [http.Client] completes with an error when making a REST call, | 1878 * If the used [http.Client] completes with an error when making a REST call, |
| 1881 * this method will complete with the same error. | 1879 * this method will complete with the same error. |
| 1882 */ | 1880 */ |
| 1883 async.Future<ForwardingRuleList> list(core.String project, core.String region,
{core.String filter, core.int maxResults, core.String pageToken}) { | 1881 async.Future<ForwardingRuleList> list(core.String project, core.String region,
{core.String filter, core.int maxResults, core.String pageToken}) { |
| 1884 var _url = null; | 1882 var _url = null; |
| 1885 var _queryParams = new core.Map(); | 1883 var _queryParams = new core.Map(); |
| 1886 var _uploadMedia = null; | 1884 var _uploadMedia = null; |
| 1887 var _uploadOptions = null; | 1885 var _uploadOptions = null; |
| 1888 var _downloadOptions = common.DownloadOptions.Metadata; | 1886 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1889 var _body = null; | 1887 var _body = null; |
| 1890 | 1888 |
| 1891 if (project == null) { | 1889 if (project == null) { |
| 1892 throw new core.ArgumentError("Parameter project is required."); | 1890 throw new core.ArgumentError("Parameter project is required."); |
| 1893 } | 1891 } |
| 1894 if (region == null) { | 1892 if (region == null) { |
| 1895 throw new core.ArgumentError("Parameter region is required."); | 1893 throw new core.ArgumentError("Parameter region is required."); |
| 1896 } | 1894 } |
| 1897 if (filter != null) { | 1895 if (filter != null) { |
| 1898 _queryParams["filter"] = [filter]; | 1896 _queryParams["filter"] = [filter]; |
| 1899 } | 1897 } |
| 1900 if (maxResults != null) { | 1898 if (maxResults != null) { |
| 1901 _queryParams["maxResults"] = ["${maxResults}"]; | 1899 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1902 } | 1900 } |
| 1903 if (pageToken != null) { | 1901 if (pageToken != null) { |
| 1904 _queryParams["pageToken"] = [pageToken]; | 1902 _queryParams["pageToken"] = [pageToken]; |
| 1905 } | 1903 } |
| 1906 | 1904 |
| 1907 | 1905 |
| 1908 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/forwardingRules'; | 1906 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/forwardingRules'; |
| 1909 | 1907 |
| 1910 var _response = _requester.request(_url, | 1908 var _response = _requester.request(_url, |
| 1911 "GET", | 1909 "GET", |
| 1912 body: _body, | 1910 body: _body, |
| 1913 queryParams: _queryParams, | 1911 queryParams: _queryParams, |
| 1914 uploadOptions: _uploadOptions, | 1912 uploadOptions: _uploadOptions, |
| 1915 uploadMedia: _uploadMedia, | 1913 uploadMedia: _uploadMedia, |
| 1916 downloadOptions: _downloadOptions); | 1914 downloadOptions: _downloadOptions); |
| 1917 return _response.then((data) => new ForwardingRuleList.fromJson(data)); | 1915 return _response.then((data) => new ForwardingRuleList.fromJson(data)); |
| 1918 } | 1916 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1930 * | 1928 * |
| 1931 * [region] - Name of the region scoping this request. | 1929 * [region] - Name of the region scoping this request. |
| 1932 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1930 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1933 * | 1931 * |
| 1934 * [forwardingRule] - Name of the ForwardingRule resource in which target is | 1932 * [forwardingRule] - Name of the ForwardingRule resource in which target is |
| 1935 * to be set. | 1933 * to be set. |
| 1936 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1934 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 1937 * | 1935 * |
| 1938 * Completes with a [Operation]. | 1936 * Completes with a [Operation]. |
| 1939 * | 1937 * |
| 1940 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1938 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1941 * error. | 1939 * error. |
| 1942 * | 1940 * |
| 1943 * If the used [http.Client] completes with an error when making a REST call, | 1941 * If the used [http.Client] completes with an error when making a REST call, |
| 1944 * this method will complete with the same error. | 1942 * this method will complete with the same error. |
| 1945 */ | 1943 */ |
| 1946 async.Future<Operation> setTarget(TargetReference request, core.String project
, core.String region, core.String forwardingRule) { | 1944 async.Future<Operation> setTarget(TargetReference request, core.String project
, core.String region, core.String forwardingRule) { |
| 1947 var _url = null; | 1945 var _url = null; |
| 1948 var _queryParams = new core.Map(); | 1946 var _queryParams = new core.Map(); |
| 1949 var _uploadMedia = null; | 1947 var _uploadMedia = null; |
| 1950 var _uploadOptions = null; | 1948 var _uploadOptions = null; |
| 1951 var _downloadOptions = common.DownloadOptions.Metadata; | 1949 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1952 var _body = null; | 1950 var _body = null; |
| 1953 | 1951 |
| 1954 if (request != null) { | 1952 if (request != null) { |
| 1955 _body = convert.JSON.encode((request).toJson()); | 1953 _body = convert.JSON.encode((request).toJson()); |
| 1956 } | 1954 } |
| 1957 if (project == null) { | 1955 if (project == null) { |
| 1958 throw new core.ArgumentError("Parameter project is required."); | 1956 throw new core.ArgumentError("Parameter project is required."); |
| 1959 } | 1957 } |
| 1960 if (region == null) { | 1958 if (region == null) { |
| 1961 throw new core.ArgumentError("Parameter region is required."); | 1959 throw new core.ArgumentError("Parameter region is required."); |
| 1962 } | 1960 } |
| 1963 if (forwardingRule == null) { | 1961 if (forwardingRule == null) { |
| 1964 throw new core.ArgumentError("Parameter forwardingRule is required."); | 1962 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 1965 } | 1963 } |
| 1966 | 1964 |
| 1967 | 1965 |
| 1968 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/forwardingRules/' + common_int
ernal.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; | 1966 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/forwardingRules/' + commons.Escaper.ecapeVaria
ble('$forwardingRule') + '/setTarget'; |
| 1969 | 1967 |
| 1970 var _response = _requester.request(_url, | 1968 var _response = _requester.request(_url, |
| 1971 "POST", | 1969 "POST", |
| 1972 body: _body, | 1970 body: _body, |
| 1973 queryParams: _queryParams, | 1971 queryParams: _queryParams, |
| 1974 uploadOptions: _uploadOptions, | 1972 uploadOptions: _uploadOptions, |
| 1975 uploadMedia: _uploadMedia, | 1973 uploadMedia: _uploadMedia, |
| 1976 downloadOptions: _downloadOptions); | 1974 downloadOptions: _downloadOptions); |
| 1977 return _response.then((data) => new Operation.fromJson(data)); | 1975 return _response.then((data) => new Operation.fromJson(data)); |
| 1978 } | 1976 } |
| 1979 | 1977 |
| 1980 } | 1978 } |
| 1981 | 1979 |
| 1982 | 1980 |
| 1983 /** Not documented yet. */ | |
| 1984 class GlobalAddressesResourceApi { | 1981 class GlobalAddressesResourceApi { |
| 1985 final common_internal.ApiRequester _requester; | 1982 final commons.ApiRequester _requester; |
| 1986 | 1983 |
| 1987 GlobalAddressesResourceApi(common_internal.ApiRequester client) : | 1984 GlobalAddressesResourceApi(commons.ApiRequester client) : |
| 1988 _requester = client; | 1985 _requester = client; |
| 1989 | 1986 |
| 1990 /** | 1987 /** |
| 1991 * Deletes the specified address resource. | 1988 * Deletes the specified address resource. |
| 1992 * | 1989 * |
| 1993 * Request parameters: | 1990 * Request parameters: |
| 1994 * | 1991 * |
| 1995 * [project] - Name of the project scoping this request. | 1992 * [project] - Project ID for this request. |
| 1996 * Value must have pattern | 1993 * Value must have pattern |
| 1997 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 1994 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 1998 * | 1995 * |
| 1999 * [address] - Name of the address resource to delete. | 1996 * [address] - Name of the address resource to delete. |
| 2000 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 1997 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2001 * | 1998 * |
| 2002 * Completes with a [Operation]. | 1999 * Completes with a [Operation]. |
| 2003 * | 2000 * |
| 2004 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2005 * error. | 2002 * error. |
| 2006 * | 2003 * |
| 2007 * If the used [http.Client] completes with an error when making a REST call, | 2004 * If the used [http.Client] completes with an error when making a REST call, |
| 2008 * this method will complete with the same error. | 2005 * this method will complete with the same error. |
| 2009 */ | 2006 */ |
| 2010 async.Future<Operation> delete(core.String project, core.String address) { | 2007 async.Future<Operation> delete(core.String project, core.String address) { |
| 2011 var _url = null; | 2008 var _url = null; |
| 2012 var _queryParams = new core.Map(); | 2009 var _queryParams = new core.Map(); |
| 2013 var _uploadMedia = null; | 2010 var _uploadMedia = null; |
| 2014 var _uploadOptions = null; | 2011 var _uploadOptions = null; |
| 2015 var _downloadOptions = common.DownloadOptions.Metadata; | 2012 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2016 var _body = null; | 2013 var _body = null; |
| 2017 | 2014 |
| 2018 if (project == null) { | 2015 if (project == null) { |
| 2019 throw new core.ArgumentError("Parameter project is required."); | 2016 throw new core.ArgumentError("Parameter project is required."); |
| 2020 } | 2017 } |
| 2021 if (address == null) { | 2018 if (address == null) { |
| 2022 throw new core.ArgumentError("Parameter address is required."); | 2019 throw new core.ArgumentError("Parameter address is required."); |
| 2023 } | 2020 } |
| 2024 | 2021 |
| 2025 | 2022 |
| 2026 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresse
s/' + common_internal.Escaper.ecapeVariable('$address'); | 2023 _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + co
mmons.Escaper.ecapeVariable('$address'); |
| 2027 | 2024 |
| 2028 var _response = _requester.request(_url, | 2025 var _response = _requester.request(_url, |
| 2029 "DELETE", | 2026 "DELETE", |
| 2030 body: _body, | 2027 body: _body, |
| 2031 queryParams: _queryParams, | 2028 queryParams: _queryParams, |
| 2032 uploadOptions: _uploadOptions, | 2029 uploadOptions: _uploadOptions, |
| 2033 uploadMedia: _uploadMedia, | 2030 uploadMedia: _uploadMedia, |
| 2034 downloadOptions: _downloadOptions); | 2031 downloadOptions: _downloadOptions); |
| 2035 return _response.then((data) => new Operation.fromJson(data)); | 2032 return _response.then((data) => new Operation.fromJson(data)); |
| 2036 } | 2033 } |
| 2037 | 2034 |
| 2038 /** | 2035 /** |
| 2039 * Returns the specified address resource. | 2036 * Returns the specified address resource. |
| 2040 * | 2037 * |
| 2041 * Request parameters: | 2038 * Request parameters: |
| 2042 * | 2039 * |
| 2043 * [project] - Name of the project scoping this request. | 2040 * [project] - Project ID for this request. |
| 2044 * Value must have pattern | 2041 * Value must have pattern |
| 2045 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2042 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2046 * | 2043 * |
| 2047 * [address] - Name of the address resource to return. | 2044 * [address] - Name of the address resource to return. |
| 2048 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2045 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2049 * | 2046 * |
| 2050 * Completes with a [Address]. | 2047 * Completes with a [Address]. |
| 2051 * | 2048 * |
| 2052 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2049 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2053 * error. | 2050 * error. |
| 2054 * | 2051 * |
| 2055 * If the used [http.Client] completes with an error when making a REST call, | 2052 * If the used [http.Client] completes with an error when making a REST call, |
| 2056 * this method will complete with the same error. | 2053 * this method will complete with the same error. |
| 2057 */ | 2054 */ |
| 2058 async.Future<Address> get(core.String project, core.String address) { | 2055 async.Future<Address> get(core.String project, core.String address) { |
| 2059 var _url = null; | 2056 var _url = null; |
| 2060 var _queryParams = new core.Map(); | 2057 var _queryParams = new core.Map(); |
| 2061 var _uploadMedia = null; | 2058 var _uploadMedia = null; |
| 2062 var _uploadOptions = null; | 2059 var _uploadOptions = null; |
| 2063 var _downloadOptions = common.DownloadOptions.Metadata; | 2060 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2064 var _body = null; | 2061 var _body = null; |
| 2065 | 2062 |
| 2066 if (project == null) { | 2063 if (project == null) { |
| 2067 throw new core.ArgumentError("Parameter project is required."); | 2064 throw new core.ArgumentError("Parameter project is required."); |
| 2068 } | 2065 } |
| 2069 if (address == null) { | 2066 if (address == null) { |
| 2070 throw new core.ArgumentError("Parameter address is required."); | 2067 throw new core.ArgumentError("Parameter address is required."); |
| 2071 } | 2068 } |
| 2072 | 2069 |
| 2073 | 2070 |
| 2074 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresse
s/' + common_internal.Escaper.ecapeVariable('$address'); | 2071 _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses/' + co
mmons.Escaper.ecapeVariable('$address'); |
| 2075 | 2072 |
| 2076 var _response = _requester.request(_url, | 2073 var _response = _requester.request(_url, |
| 2077 "GET", | 2074 "GET", |
| 2078 body: _body, | 2075 body: _body, |
| 2079 queryParams: _queryParams, | 2076 queryParams: _queryParams, |
| 2080 uploadOptions: _uploadOptions, | 2077 uploadOptions: _uploadOptions, |
| 2081 uploadMedia: _uploadMedia, | 2078 uploadMedia: _uploadMedia, |
| 2082 downloadOptions: _downloadOptions); | 2079 downloadOptions: _downloadOptions); |
| 2083 return _response.then((data) => new Address.fromJson(data)); | 2080 return _response.then((data) => new Address.fromJson(data)); |
| 2084 } | 2081 } |
| 2085 | 2082 |
| 2086 /** | 2083 /** |
| 2087 * Creates an address resource in the specified project using the data | 2084 * Creates an address resource in the specified project using the data |
| 2088 * included in the request. | 2085 * included in the request. |
| 2089 * | 2086 * |
| 2090 * [request] - The metadata request object. | 2087 * [request] - The metadata request object. |
| 2091 * | 2088 * |
| 2092 * Request parameters: | 2089 * Request parameters: |
| 2093 * | 2090 * |
| 2094 * [project] - Name of the project scoping this request. | 2091 * [project] - Project ID for this request. |
| 2095 * Value must have pattern | 2092 * Value must have pattern |
| 2096 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2093 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2097 * | 2094 * |
| 2098 * Completes with a [Operation]. | 2095 * Completes with a [Operation]. |
| 2099 * | 2096 * |
| 2100 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2097 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2101 * error. | 2098 * error. |
| 2102 * | 2099 * |
| 2103 * If the used [http.Client] completes with an error when making a REST call, | 2100 * If the used [http.Client] completes with an error when making a REST call, |
| 2104 * this method will complete with the same error. | 2101 * this method will complete with the same error. |
| 2105 */ | 2102 */ |
| 2106 async.Future<Operation> insert(Address request, core.String project) { | 2103 async.Future<Operation> insert(Address request, core.String project) { |
| 2107 var _url = null; | 2104 var _url = null; |
| 2108 var _queryParams = new core.Map(); | 2105 var _queryParams = new core.Map(); |
| 2109 var _uploadMedia = null; | 2106 var _uploadMedia = null; |
| 2110 var _uploadOptions = null; | 2107 var _uploadOptions = null; |
| 2111 var _downloadOptions = common.DownloadOptions.Metadata; | 2108 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2112 var _body = null; | 2109 var _body = null; |
| 2113 | 2110 |
| 2114 if (request != null) { | 2111 if (request != null) { |
| 2115 _body = convert.JSON.encode((request).toJson()); | 2112 _body = convert.JSON.encode((request).toJson()); |
| 2116 } | 2113 } |
| 2117 if (project == null) { | 2114 if (project == null) { |
| 2118 throw new core.ArgumentError("Parameter project is required."); | 2115 throw new core.ArgumentError("Parameter project is required."); |
| 2119 } | 2116 } |
| 2120 | 2117 |
| 2121 | 2118 |
| 2122 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresse
s'; | 2119 _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
| 2123 | 2120 |
| 2124 var _response = _requester.request(_url, | 2121 var _response = _requester.request(_url, |
| 2125 "POST", | 2122 "POST", |
| 2126 body: _body, | 2123 body: _body, |
| 2127 queryParams: _queryParams, | 2124 queryParams: _queryParams, |
| 2128 uploadOptions: _uploadOptions, | 2125 uploadOptions: _uploadOptions, |
| 2129 uploadMedia: _uploadMedia, | 2126 uploadMedia: _uploadMedia, |
| 2130 downloadOptions: _downloadOptions); | 2127 downloadOptions: _downloadOptions); |
| 2131 return _response.then((data) => new Operation.fromJson(data)); | 2128 return _response.then((data) => new Operation.fromJson(data)); |
| 2132 } | 2129 } |
| 2133 | 2130 |
| 2134 /** | 2131 /** |
| 2135 * Retrieves the list of global address resources. | 2132 * Retrieves the list of global address resources. |
| 2136 * | 2133 * |
| 2137 * Request parameters: | 2134 * Request parameters: |
| 2138 * | 2135 * |
| 2139 * [project] - Name of the project scoping this request. | 2136 * [project] - Project ID for this request. |
| 2140 * Value must have pattern | 2137 * Value must have pattern |
| 2141 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2138 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2142 * | 2139 * |
| 2143 * [filter] - Optional. Filter expression for filtering listed resources. | 2140 * [filter] - Optional. Filter expression for filtering listed resources. |
| 2144 * | 2141 * |
| 2145 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 2142 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 2146 * value is 500 and default value is 500. | 2143 * value is 500 and default value is 500. |
| 2147 * Value must be between "0" and "500". | 2144 * Value must be between "0" and "500". |
| 2148 * | 2145 * |
| 2149 * [pageToken] - Optional. Tag returned by a previous list request truncated | 2146 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 2150 * by maxResults. Used to continue a previous list request. | 2147 * by maxResults. Used to continue a previous list request. |
| 2151 * | 2148 * |
| 2152 * Completes with a [AddressList]. | 2149 * Completes with a [AddressList]. |
| 2153 * | 2150 * |
| 2154 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2155 * error. | 2152 * error. |
| 2156 * | 2153 * |
| 2157 * If the used [http.Client] completes with an error when making a REST call, | 2154 * If the used [http.Client] completes with an error when making a REST call, |
| 2158 * this method will complete with the same error. | 2155 * this method will complete with the same error. |
| 2159 */ | 2156 */ |
| 2160 async.Future<AddressList> list(core.String project, {core.String filter, core.
int maxResults, core.String pageToken}) { | 2157 async.Future<AddressList> list(core.String project, {core.String filter, core.
int maxResults, core.String pageToken}) { |
| 2161 var _url = null; | 2158 var _url = null; |
| 2162 var _queryParams = new core.Map(); | 2159 var _queryParams = new core.Map(); |
| 2163 var _uploadMedia = null; | 2160 var _uploadMedia = null; |
| 2164 var _uploadOptions = null; | 2161 var _uploadOptions = null; |
| 2165 var _downloadOptions = common.DownloadOptions.Metadata; | 2162 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2166 var _body = null; | 2163 var _body = null; |
| 2167 | 2164 |
| 2168 if (project == null) { | 2165 if (project == null) { |
| 2169 throw new core.ArgumentError("Parameter project is required."); | 2166 throw new core.ArgumentError("Parameter project is required."); |
| 2170 } | 2167 } |
| 2171 if (filter != null) { | 2168 if (filter != null) { |
| 2172 _queryParams["filter"] = [filter]; | 2169 _queryParams["filter"] = [filter]; |
| 2173 } | 2170 } |
| 2174 if (maxResults != null) { | 2171 if (maxResults != null) { |
| 2175 _queryParams["maxResults"] = ["${maxResults}"]; | 2172 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2176 } | 2173 } |
| 2177 if (pageToken != null) { | 2174 if (pageToken != null) { |
| 2178 _queryParams["pageToken"] = [pageToken]; | 2175 _queryParams["pageToken"] = [pageToken]; |
| 2179 } | 2176 } |
| 2180 | 2177 |
| 2181 | 2178 |
| 2182 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/addresse
s'; | 2179 _url = commons.Escaper.ecapeVariable('$project') + '/global/addresses'; |
| 2183 | 2180 |
| 2184 var _response = _requester.request(_url, | 2181 var _response = _requester.request(_url, |
| 2185 "GET", | 2182 "GET", |
| 2186 body: _body, | 2183 body: _body, |
| 2187 queryParams: _queryParams, | 2184 queryParams: _queryParams, |
| 2188 uploadOptions: _uploadOptions, | 2185 uploadOptions: _uploadOptions, |
| 2189 uploadMedia: _uploadMedia, | 2186 uploadMedia: _uploadMedia, |
| 2190 downloadOptions: _downloadOptions); | 2187 downloadOptions: _downloadOptions); |
| 2191 return _response.then((data) => new AddressList.fromJson(data)); | 2188 return _response.then((data) => new AddressList.fromJson(data)); |
| 2192 } | 2189 } |
| 2193 | 2190 |
| 2194 } | 2191 } |
| 2195 | 2192 |
| 2196 | 2193 |
| 2197 /** Not documented yet. */ | |
| 2198 class GlobalForwardingRulesResourceApi { | 2194 class GlobalForwardingRulesResourceApi { |
| 2199 final common_internal.ApiRequester _requester; | 2195 final commons.ApiRequester _requester; |
| 2200 | 2196 |
| 2201 GlobalForwardingRulesResourceApi(common_internal.ApiRequester client) : | 2197 GlobalForwardingRulesResourceApi(commons.ApiRequester client) : |
| 2202 _requester = client; | 2198 _requester = client; |
| 2203 | 2199 |
| 2204 /** | 2200 /** |
| 2205 * Deletes the specified ForwardingRule resource. | 2201 * Deletes the specified ForwardingRule resource. |
| 2206 * | 2202 * |
| 2207 * Request parameters: | 2203 * Request parameters: |
| 2208 * | 2204 * |
| 2209 * [project] - Name of the project scoping this request. | 2205 * [project] - Name of the project scoping this request. |
| 2210 * Value must have pattern | 2206 * Value must have pattern |
| 2211 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2207 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2212 * | 2208 * |
| 2213 * [forwardingRule] - Name of the ForwardingRule resource to delete. | 2209 * [forwardingRule] - Name of the ForwardingRule resource to delete. |
| 2214 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2210 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2215 * | 2211 * |
| 2216 * Completes with a [Operation]. | 2212 * Completes with a [Operation]. |
| 2217 * | 2213 * |
| 2218 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2219 * error. | 2215 * error. |
| 2220 * | 2216 * |
| 2221 * If the used [http.Client] completes with an error when making a REST call, | 2217 * If the used [http.Client] completes with an error when making a REST call, |
| 2222 * this method will complete with the same error. | 2218 * this method will complete with the same error. |
| 2223 */ | 2219 */ |
| 2224 async.Future<Operation> delete(core.String project, core.String forwardingRule
) { | 2220 async.Future<Operation> delete(core.String project, core.String forwardingRule
) { |
| 2225 var _url = null; | 2221 var _url = null; |
| 2226 var _queryParams = new core.Map(); | 2222 var _queryParams = new core.Map(); |
| 2227 var _uploadMedia = null; | 2223 var _uploadMedia = null; |
| 2228 var _uploadOptions = null; | 2224 var _uploadOptions = null; |
| 2229 var _downloadOptions = common.DownloadOptions.Metadata; | 2225 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2230 var _body = null; | 2226 var _body = null; |
| 2231 | 2227 |
| 2232 if (project == null) { | 2228 if (project == null) { |
| 2233 throw new core.ArgumentError("Parameter project is required."); | 2229 throw new core.ArgumentError("Parameter project is required."); |
| 2234 } | 2230 } |
| 2235 if (forwardingRule == null) { | 2231 if (forwardingRule == null) { |
| 2236 throw new core.ArgumentError("Parameter forwardingRule is required."); | 2232 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 2237 } | 2233 } |
| 2238 | 2234 |
| 2239 | 2235 |
| 2240 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardi
ngRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule'); | 2236 _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/
' + commons.Escaper.ecapeVariable('$forwardingRule'); |
| 2241 | 2237 |
| 2242 var _response = _requester.request(_url, | 2238 var _response = _requester.request(_url, |
| 2243 "DELETE", | 2239 "DELETE", |
| 2244 body: _body, | 2240 body: _body, |
| 2245 queryParams: _queryParams, | 2241 queryParams: _queryParams, |
| 2246 uploadOptions: _uploadOptions, | 2242 uploadOptions: _uploadOptions, |
| 2247 uploadMedia: _uploadMedia, | 2243 uploadMedia: _uploadMedia, |
| 2248 downloadOptions: _downloadOptions); | 2244 downloadOptions: _downloadOptions); |
| 2249 return _response.then((data) => new Operation.fromJson(data)); | 2245 return _response.then((data) => new Operation.fromJson(data)); |
| 2250 } | 2246 } |
| 2251 | 2247 |
| 2252 /** | 2248 /** |
| 2253 * Returns the specified ForwardingRule resource. | 2249 * Returns the specified ForwardingRule resource. |
| 2254 * | 2250 * |
| 2255 * Request parameters: | 2251 * Request parameters: |
| 2256 * | 2252 * |
| 2257 * [project] - Name of the project scoping this request. | 2253 * [project] - Name of the project scoping this request. |
| 2258 * Value must have pattern | 2254 * Value must have pattern |
| 2259 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2255 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2260 * | 2256 * |
| 2261 * [forwardingRule] - Name of the ForwardingRule resource to return. | 2257 * [forwardingRule] - Name of the ForwardingRule resource to return. |
| 2262 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2258 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2263 * | 2259 * |
| 2264 * Completes with a [ForwardingRule]. | 2260 * Completes with a [ForwardingRule]. |
| 2265 * | 2261 * |
| 2266 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2262 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2267 * error. | 2263 * error. |
| 2268 * | 2264 * |
| 2269 * If the used [http.Client] completes with an error when making a REST call, | 2265 * If the used [http.Client] completes with an error when making a REST call, |
| 2270 * this method will complete with the same error. | 2266 * this method will complete with the same error. |
| 2271 */ | 2267 */ |
| 2272 async.Future<ForwardingRule> get(core.String project, core.String forwardingRu
le) { | 2268 async.Future<ForwardingRule> get(core.String project, core.String forwardingRu
le) { |
| 2273 var _url = null; | 2269 var _url = null; |
| 2274 var _queryParams = new core.Map(); | 2270 var _queryParams = new core.Map(); |
| 2275 var _uploadMedia = null; | 2271 var _uploadMedia = null; |
| 2276 var _uploadOptions = null; | 2272 var _uploadOptions = null; |
| 2277 var _downloadOptions = common.DownloadOptions.Metadata; | 2273 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2278 var _body = null; | 2274 var _body = null; |
| 2279 | 2275 |
| 2280 if (project == null) { | 2276 if (project == null) { |
| 2281 throw new core.ArgumentError("Parameter project is required."); | 2277 throw new core.ArgumentError("Parameter project is required."); |
| 2282 } | 2278 } |
| 2283 if (forwardingRule == null) { | 2279 if (forwardingRule == null) { |
| 2284 throw new core.ArgumentError("Parameter forwardingRule is required."); | 2280 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 2285 } | 2281 } |
| 2286 | 2282 |
| 2287 | 2283 |
| 2288 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardi
ngRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule'); | 2284 _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/
' + commons.Escaper.ecapeVariable('$forwardingRule'); |
| 2289 | 2285 |
| 2290 var _response = _requester.request(_url, | 2286 var _response = _requester.request(_url, |
| 2291 "GET", | 2287 "GET", |
| 2292 body: _body, | 2288 body: _body, |
| 2293 queryParams: _queryParams, | 2289 queryParams: _queryParams, |
| 2294 uploadOptions: _uploadOptions, | 2290 uploadOptions: _uploadOptions, |
| 2295 uploadMedia: _uploadMedia, | 2291 uploadMedia: _uploadMedia, |
| 2296 downloadOptions: _downloadOptions); | 2292 downloadOptions: _downloadOptions); |
| 2297 return _response.then((data) => new ForwardingRule.fromJson(data)); | 2293 return _response.then((data) => new ForwardingRule.fromJson(data)); |
| 2298 } | 2294 } |
| 2299 | 2295 |
| 2300 /** | 2296 /** |
| 2301 * Creates a ForwardingRule resource in the specified project and region using | 2297 * Creates a ForwardingRule resource in the specified project and region using |
| 2302 * the data included in the request. | 2298 * the data included in the request. |
| 2303 * | 2299 * |
| 2304 * [request] - The metadata request object. | 2300 * [request] - The metadata request object. |
| 2305 * | 2301 * |
| 2306 * Request parameters: | 2302 * Request parameters: |
| 2307 * | 2303 * |
| 2308 * [project] - Name of the project scoping this request. | 2304 * [project] - Name of the project scoping this request. |
| 2309 * Value must have pattern | 2305 * Value must have pattern |
| 2310 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2306 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2311 * | 2307 * |
| 2312 * Completes with a [Operation]. | 2308 * Completes with a [Operation]. |
| 2313 * | 2309 * |
| 2314 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2315 * error. | 2311 * error. |
| 2316 * | 2312 * |
| 2317 * If the used [http.Client] completes with an error when making a REST call, | 2313 * If the used [http.Client] completes with an error when making a REST call, |
| 2318 * this method will complete with the same error. | 2314 * this method will complete with the same error. |
| 2319 */ | 2315 */ |
| 2320 async.Future<Operation> insert(ForwardingRule request, core.String project) { | 2316 async.Future<Operation> insert(ForwardingRule request, core.String project) { |
| 2321 var _url = null; | 2317 var _url = null; |
| 2322 var _queryParams = new core.Map(); | 2318 var _queryParams = new core.Map(); |
| 2323 var _uploadMedia = null; | 2319 var _uploadMedia = null; |
| 2324 var _uploadOptions = null; | 2320 var _uploadOptions = null; |
| 2325 var _downloadOptions = common.DownloadOptions.Metadata; | 2321 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2326 var _body = null; | 2322 var _body = null; |
| 2327 | 2323 |
| 2328 if (request != null) { | 2324 if (request != null) { |
| 2329 _body = convert.JSON.encode((request).toJson()); | 2325 _body = convert.JSON.encode((request).toJson()); |
| 2330 } | 2326 } |
| 2331 if (project == null) { | 2327 if (project == null) { |
| 2332 throw new core.ArgumentError("Parameter project is required."); | 2328 throw new core.ArgumentError("Parameter project is required."); |
| 2333 } | 2329 } |
| 2334 | 2330 |
| 2335 | 2331 |
| 2336 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardi
ngRules'; | 2332 _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'
; |
| 2337 | 2333 |
| 2338 var _response = _requester.request(_url, | 2334 var _response = _requester.request(_url, |
| 2339 "POST", | 2335 "POST", |
| 2340 body: _body, | 2336 body: _body, |
| 2341 queryParams: _queryParams, | 2337 queryParams: _queryParams, |
| 2342 uploadOptions: _uploadOptions, | 2338 uploadOptions: _uploadOptions, |
| 2343 uploadMedia: _uploadMedia, | 2339 uploadMedia: _uploadMedia, |
| 2344 downloadOptions: _downloadOptions); | 2340 downloadOptions: _downloadOptions); |
| 2345 return _response.then((data) => new Operation.fromJson(data)); | 2341 return _response.then((data) => new Operation.fromJson(data)); |
| 2346 } | 2342 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2359 * | 2355 * |
| 2360 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 2356 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 2361 * value is 500 and default value is 500. | 2357 * value is 500 and default value is 500. |
| 2362 * Value must be between "0" and "500". | 2358 * Value must be between "0" and "500". |
| 2363 * | 2359 * |
| 2364 * [pageToken] - Optional. Tag returned by a previous list request truncated | 2360 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 2365 * by maxResults. Used to continue a previous list request. | 2361 * by maxResults. Used to continue a previous list request. |
| 2366 * | 2362 * |
| 2367 * Completes with a [ForwardingRuleList]. | 2363 * Completes with a [ForwardingRuleList]. |
| 2368 * | 2364 * |
| 2369 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2370 * error. | 2366 * error. |
| 2371 * | 2367 * |
| 2372 * If the used [http.Client] completes with an error when making a REST call, | 2368 * If the used [http.Client] completes with an error when making a REST call, |
| 2373 * this method will complete with the same error. | 2369 * this method will complete with the same error. |
| 2374 */ | 2370 */ |
| 2375 async.Future<ForwardingRuleList> list(core.String project, {core.String filter
, core.int maxResults, core.String pageToken}) { | 2371 async.Future<ForwardingRuleList> list(core.String project, {core.String filter
, core.int maxResults, core.String pageToken}) { |
| 2376 var _url = null; | 2372 var _url = null; |
| 2377 var _queryParams = new core.Map(); | 2373 var _queryParams = new core.Map(); |
| 2378 var _uploadMedia = null; | 2374 var _uploadMedia = null; |
| 2379 var _uploadOptions = null; | 2375 var _uploadOptions = null; |
| 2380 var _downloadOptions = common.DownloadOptions.Metadata; | 2376 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2381 var _body = null; | 2377 var _body = null; |
| 2382 | 2378 |
| 2383 if (project == null) { | 2379 if (project == null) { |
| 2384 throw new core.ArgumentError("Parameter project is required."); | 2380 throw new core.ArgumentError("Parameter project is required."); |
| 2385 } | 2381 } |
| 2386 if (filter != null) { | 2382 if (filter != null) { |
| 2387 _queryParams["filter"] = [filter]; | 2383 _queryParams["filter"] = [filter]; |
| 2388 } | 2384 } |
| 2389 if (maxResults != null) { | 2385 if (maxResults != null) { |
| 2390 _queryParams["maxResults"] = ["${maxResults}"]; | 2386 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2391 } | 2387 } |
| 2392 if (pageToken != null) { | 2388 if (pageToken != null) { |
| 2393 _queryParams["pageToken"] = [pageToken]; | 2389 _queryParams["pageToken"] = [pageToken]; |
| 2394 } | 2390 } |
| 2395 | 2391 |
| 2396 | 2392 |
| 2397 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardi
ngRules'; | 2393 _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules'
; |
| 2398 | 2394 |
| 2399 var _response = _requester.request(_url, | 2395 var _response = _requester.request(_url, |
| 2400 "GET", | 2396 "GET", |
| 2401 body: _body, | 2397 body: _body, |
| 2402 queryParams: _queryParams, | 2398 queryParams: _queryParams, |
| 2403 uploadOptions: _uploadOptions, | 2399 uploadOptions: _uploadOptions, |
| 2404 uploadMedia: _uploadMedia, | 2400 uploadMedia: _uploadMedia, |
| 2405 downloadOptions: _downloadOptions); | 2401 downloadOptions: _downloadOptions); |
| 2406 return _response.then((data) => new ForwardingRuleList.fromJson(data)); | 2402 return _response.then((data) => new ForwardingRuleList.fromJson(data)); |
| 2407 } | 2403 } |
| 2408 | 2404 |
| 2409 /** | 2405 /** |
| 2410 * Changes target url for forwarding rule. | 2406 * Changes target url for forwarding rule. |
| 2411 * | 2407 * |
| 2412 * [request] - The metadata request object. | 2408 * [request] - The metadata request object. |
| 2413 * | 2409 * |
| 2414 * Request parameters: | 2410 * Request parameters: |
| 2415 * | 2411 * |
| 2416 * [project] - Name of the project scoping this request. | 2412 * [project] - Name of the project scoping this request. |
| 2417 * Value must have pattern | 2413 * Value must have pattern |
| 2418 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2414 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2419 * | 2415 * |
| 2420 * [forwardingRule] - Name of the ForwardingRule resource in which target is | 2416 * [forwardingRule] - Name of the ForwardingRule resource in which target is |
| 2421 * to be set. | 2417 * to be set. |
| 2422 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2418 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2423 * | 2419 * |
| 2424 * Completes with a [Operation]. | 2420 * Completes with a [Operation]. |
| 2425 * | 2421 * |
| 2426 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2427 * error. | 2423 * error. |
| 2428 * | 2424 * |
| 2429 * If the used [http.Client] completes with an error when making a REST call, | 2425 * If the used [http.Client] completes with an error when making a REST call, |
| 2430 * this method will complete with the same error. | 2426 * this method will complete with the same error. |
| 2431 */ | 2427 */ |
| 2432 async.Future<Operation> setTarget(TargetReference request, core.String project
, core.String forwardingRule) { | 2428 async.Future<Operation> setTarget(TargetReference request, core.String project
, core.String forwardingRule) { |
| 2433 var _url = null; | 2429 var _url = null; |
| 2434 var _queryParams = new core.Map(); | 2430 var _queryParams = new core.Map(); |
| 2435 var _uploadMedia = null; | 2431 var _uploadMedia = null; |
| 2436 var _uploadOptions = null; | 2432 var _uploadOptions = null; |
| 2437 var _downloadOptions = common.DownloadOptions.Metadata; | 2433 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2438 var _body = null; | 2434 var _body = null; |
| 2439 | 2435 |
| 2440 if (request != null) { | 2436 if (request != null) { |
| 2441 _body = convert.JSON.encode((request).toJson()); | 2437 _body = convert.JSON.encode((request).toJson()); |
| 2442 } | 2438 } |
| 2443 if (project == null) { | 2439 if (project == null) { |
| 2444 throw new core.ArgumentError("Parameter project is required."); | 2440 throw new core.ArgumentError("Parameter project is required."); |
| 2445 } | 2441 } |
| 2446 if (forwardingRule == null) { | 2442 if (forwardingRule == null) { |
| 2447 throw new core.ArgumentError("Parameter forwardingRule is required."); | 2443 throw new core.ArgumentError("Parameter forwardingRule is required."); |
| 2448 } | 2444 } |
| 2449 | 2445 |
| 2450 | 2446 |
| 2451 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/forwardi
ngRules/' + common_internal.Escaper.ecapeVariable('$forwardingRule') + '/setTarg
et'; | 2447 _url = commons.Escaper.ecapeVariable('$project') + '/global/forwardingRules/
' + commons.Escaper.ecapeVariable('$forwardingRule') + '/setTarget'; |
| 2452 | 2448 |
| 2453 var _response = _requester.request(_url, | 2449 var _response = _requester.request(_url, |
| 2454 "POST", | 2450 "POST", |
| 2455 body: _body, | 2451 body: _body, |
| 2456 queryParams: _queryParams, | 2452 queryParams: _queryParams, |
| 2457 uploadOptions: _uploadOptions, | 2453 uploadOptions: _uploadOptions, |
| 2458 uploadMedia: _uploadMedia, | 2454 uploadMedia: _uploadMedia, |
| 2459 downloadOptions: _downloadOptions); | 2455 downloadOptions: _downloadOptions); |
| 2460 return _response.then((data) => new Operation.fromJson(data)); | 2456 return _response.then((data) => new Operation.fromJson(data)); |
| 2461 } | 2457 } |
| 2462 | 2458 |
| 2463 } | 2459 } |
| 2464 | 2460 |
| 2465 | 2461 |
| 2466 /** Not documented yet. */ | |
| 2467 class GlobalOperationsResourceApi { | 2462 class GlobalOperationsResourceApi { |
| 2468 final common_internal.ApiRequester _requester; | 2463 final commons.ApiRequester _requester; |
| 2469 | 2464 |
| 2470 GlobalOperationsResourceApi(common_internal.ApiRequester client) : | 2465 GlobalOperationsResourceApi(commons.ApiRequester client) : |
| 2471 _requester = client; | 2466 _requester = client; |
| 2472 | 2467 |
| 2473 /** | 2468 /** |
| 2474 * Retrieves the list of all operations grouped by scope. | 2469 * Retrieves the list of all operations grouped by scope. |
| 2475 * | 2470 * |
| 2476 * Request parameters: | 2471 * Request parameters: |
| 2477 * | 2472 * |
| 2478 * [project] - Name of the project scoping this request. | 2473 * [project] - Project ID for this request. |
| 2479 * Value must have pattern | 2474 * Value must have pattern |
| 2480 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2475 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2481 * | 2476 * |
| 2482 * [filter] - Optional. Filter expression for filtering listed resources. | 2477 * [filter] - Optional. Filter expression for filtering listed resources. |
| 2483 * | 2478 * |
| 2484 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 2479 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 2485 * value is 500 and default value is 500. | 2480 * value is 500 and default value is 500. |
| 2486 * Value must be between "0" and "500". | 2481 * Value must be between "0" and "500". |
| 2487 * | 2482 * |
| 2488 * [pageToken] - Optional. Tag returned by a previous list request truncated | 2483 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 2489 * by maxResults. Used to continue a previous list request. | 2484 * by maxResults. Used to continue a previous list request. |
| 2490 * | 2485 * |
| 2491 * Completes with a [OperationAggregatedList]. | 2486 * Completes with a [OperationAggregatedList]. |
| 2492 * | 2487 * |
| 2493 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2488 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2494 * error. | 2489 * error. |
| 2495 * | 2490 * |
| 2496 * If the used [http.Client] completes with an error when making a REST call, | 2491 * If the used [http.Client] completes with an error when making a REST call, |
| 2497 * this method will complete with the same error. | 2492 * this method will complete with the same error. |
| 2498 */ | 2493 */ |
| 2499 async.Future<OperationAggregatedList> aggregatedList(core.String project, {cor
e.String filter, core.int maxResults, core.String pageToken}) { | 2494 async.Future<OperationAggregatedList> aggregatedList(core.String project, {cor
e.String filter, core.int maxResults, core.String pageToken}) { |
| 2500 var _url = null; | 2495 var _url = null; |
| 2501 var _queryParams = new core.Map(); | 2496 var _queryParams = new core.Map(); |
| 2502 var _uploadMedia = null; | 2497 var _uploadMedia = null; |
| 2503 var _uploadOptions = null; | 2498 var _uploadOptions = null; |
| 2504 var _downloadOptions = common.DownloadOptions.Metadata; | 2499 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2505 var _body = null; | 2500 var _body = null; |
| 2506 | 2501 |
| 2507 if (project == null) { | 2502 if (project == null) { |
| 2508 throw new core.ArgumentError("Parameter project is required."); | 2503 throw new core.ArgumentError("Parameter project is required."); |
| 2509 } | 2504 } |
| 2510 if (filter != null) { | 2505 if (filter != null) { |
| 2511 _queryParams["filter"] = [filter]; | 2506 _queryParams["filter"] = [filter]; |
| 2512 } | 2507 } |
| 2513 if (maxResults != null) { | 2508 if (maxResults != null) { |
| 2514 _queryParams["maxResults"] = ["${maxResults}"]; | 2509 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2515 } | 2510 } |
| 2516 if (pageToken != null) { | 2511 if (pageToken != null) { |
| 2517 _queryParams["pageToken"] = [pageToken]; | 2512 _queryParams["pageToken"] = [pageToken]; |
| 2518 } | 2513 } |
| 2519 | 2514 |
| 2520 | 2515 |
| 2521 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/oper
ations'; | 2516 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/operations'; |
| 2522 | 2517 |
| 2523 var _response = _requester.request(_url, | 2518 var _response = _requester.request(_url, |
| 2524 "GET", | 2519 "GET", |
| 2525 body: _body, | 2520 body: _body, |
| 2526 queryParams: _queryParams, | 2521 queryParams: _queryParams, |
| 2527 uploadOptions: _uploadOptions, | 2522 uploadOptions: _uploadOptions, |
| 2528 uploadMedia: _uploadMedia, | 2523 uploadMedia: _uploadMedia, |
| 2529 downloadOptions: _downloadOptions); | 2524 downloadOptions: _downloadOptions); |
| 2530 return _response.then((data) => new OperationAggregatedList.fromJson(data)); | 2525 return _response.then((data) => new OperationAggregatedList.fromJson(data)); |
| 2531 } | 2526 } |
| 2532 | 2527 |
| 2533 /** | 2528 /** |
| 2534 * Deletes the specified operation resource. | 2529 * Deletes the specified operation resource. |
| 2535 * | 2530 * |
| 2536 * Request parameters: | 2531 * Request parameters: |
| 2537 * | 2532 * |
| 2538 * [project] - Name of the project scoping this request. | 2533 * [project] - Project ID for this request. |
| 2539 * Value must have pattern | 2534 * Value must have pattern |
| 2540 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2535 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2541 * | 2536 * |
| 2542 * [operation] - Name of the operation resource to delete. | 2537 * [operation] - Name of the operation resource to delete. |
| 2543 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2538 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2544 * | 2539 * |
| 2545 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2540 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2546 * error. | 2541 * error. |
| 2547 * | 2542 * |
| 2548 * If the used [http.Client] completes with an error when making a REST call, | 2543 * If the used [http.Client] completes with an error when making a REST call, |
| 2549 * this method will complete with the same error. | 2544 * this method will complete with the same error. |
| 2550 */ | 2545 */ |
| 2551 async.Future delete(core.String project, core.String operation) { | 2546 async.Future delete(core.String project, core.String operation) { |
| 2552 var _url = null; | 2547 var _url = null; |
| 2553 var _queryParams = new core.Map(); | 2548 var _queryParams = new core.Map(); |
| 2554 var _uploadMedia = null; | 2549 var _uploadMedia = null; |
| 2555 var _uploadOptions = null; | 2550 var _uploadOptions = null; |
| 2556 var _downloadOptions = common.DownloadOptions.Metadata; | 2551 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2557 var _body = null; | 2552 var _body = null; |
| 2558 | 2553 |
| 2559 if (project == null) { | 2554 if (project == null) { |
| 2560 throw new core.ArgumentError("Parameter project is required."); | 2555 throw new core.ArgumentError("Parameter project is required."); |
| 2561 } | 2556 } |
| 2562 if (operation == null) { | 2557 if (operation == null) { |
| 2563 throw new core.ArgumentError("Parameter operation is required."); | 2558 throw new core.ArgumentError("Parameter operation is required."); |
| 2564 } | 2559 } |
| 2565 | 2560 |
| 2566 _downloadOptions = null; | 2561 _downloadOptions = null; |
| 2567 | 2562 |
| 2568 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operatio
ns/' + common_internal.Escaper.ecapeVariable('$operation'); | 2563 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c
ommons.Escaper.ecapeVariable('$operation'); |
| 2569 | 2564 |
| 2570 var _response = _requester.request(_url, | 2565 var _response = _requester.request(_url, |
| 2571 "DELETE", | 2566 "DELETE", |
| 2572 body: _body, | 2567 body: _body, |
| 2573 queryParams: _queryParams, | 2568 queryParams: _queryParams, |
| 2574 uploadOptions: _uploadOptions, | 2569 uploadOptions: _uploadOptions, |
| 2575 uploadMedia: _uploadMedia, | 2570 uploadMedia: _uploadMedia, |
| 2576 downloadOptions: _downloadOptions); | 2571 downloadOptions: _downloadOptions); |
| 2577 return _response.then((data) => null); | 2572 return _response.then((data) => null); |
| 2578 } | 2573 } |
| 2579 | 2574 |
| 2580 /** | 2575 /** |
| 2581 * Retrieves the specified operation resource. | 2576 * Retrieves the specified operation resource. |
| 2582 * | 2577 * |
| 2583 * Request parameters: | 2578 * Request parameters: |
| 2584 * | 2579 * |
| 2585 * [project] - Name of the project scoping this request. | 2580 * [project] - Project ID for this request. |
| 2586 * Value must have pattern | 2581 * Value must have pattern |
| 2587 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2582 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2588 * | 2583 * |
| 2589 * [operation] - Name of the operation resource to return. | 2584 * [operation] - Name of the operation resource to return. |
| 2590 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2585 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2591 * | 2586 * |
| 2592 * Completes with a [Operation]. | 2587 * Completes with a [Operation]. |
| 2593 * | 2588 * |
| 2594 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2589 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2595 * error. | 2590 * error. |
| 2596 * | 2591 * |
| 2597 * If the used [http.Client] completes with an error when making a REST call, | 2592 * If the used [http.Client] completes with an error when making a REST call, |
| 2598 * this method will complete with the same error. | 2593 * this method will complete with the same error. |
| 2599 */ | 2594 */ |
| 2600 async.Future<Operation> get(core.String project, core.String operation) { | 2595 async.Future<Operation> get(core.String project, core.String operation) { |
| 2601 var _url = null; | 2596 var _url = null; |
| 2602 var _queryParams = new core.Map(); | 2597 var _queryParams = new core.Map(); |
| 2603 var _uploadMedia = null; | 2598 var _uploadMedia = null; |
| 2604 var _uploadOptions = null; | 2599 var _uploadOptions = null; |
| 2605 var _downloadOptions = common.DownloadOptions.Metadata; | 2600 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2606 var _body = null; | 2601 var _body = null; |
| 2607 | 2602 |
| 2608 if (project == null) { | 2603 if (project == null) { |
| 2609 throw new core.ArgumentError("Parameter project is required."); | 2604 throw new core.ArgumentError("Parameter project is required."); |
| 2610 } | 2605 } |
| 2611 if (operation == null) { | 2606 if (operation == null) { |
| 2612 throw new core.ArgumentError("Parameter operation is required."); | 2607 throw new core.ArgumentError("Parameter operation is required."); |
| 2613 } | 2608 } |
| 2614 | 2609 |
| 2615 | 2610 |
| 2616 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operatio
ns/' + common_internal.Escaper.ecapeVariable('$operation'); | 2611 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations/' + c
ommons.Escaper.ecapeVariable('$operation'); |
| 2617 | 2612 |
| 2618 var _response = _requester.request(_url, | 2613 var _response = _requester.request(_url, |
| 2619 "GET", | 2614 "GET", |
| 2620 body: _body, | 2615 body: _body, |
| 2621 queryParams: _queryParams, | 2616 queryParams: _queryParams, |
| 2622 uploadOptions: _uploadOptions, | 2617 uploadOptions: _uploadOptions, |
| 2623 uploadMedia: _uploadMedia, | 2618 uploadMedia: _uploadMedia, |
| 2624 downloadOptions: _downloadOptions); | 2619 downloadOptions: _downloadOptions); |
| 2625 return _response.then((data) => new Operation.fromJson(data)); | 2620 return _response.then((data) => new Operation.fromJson(data)); |
| 2626 } | 2621 } |
| 2627 | 2622 |
| 2628 /** | 2623 /** |
| 2629 * Retrieves the list of operation resources contained within the specified | 2624 * Retrieves the list of operation resources contained within the specified |
| 2630 * project. | 2625 * project. |
| 2631 * | 2626 * |
| 2632 * Request parameters: | 2627 * Request parameters: |
| 2633 * | 2628 * |
| 2634 * [project] - Name of the project scoping this request. | 2629 * [project] - Project ID for this request. |
| 2635 * Value must have pattern | 2630 * Value must have pattern |
| 2636 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2631 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2637 * | 2632 * |
| 2638 * [filter] - Optional. Filter expression for filtering listed resources. | 2633 * [filter] - Optional. Filter expression for filtering listed resources. |
| 2639 * | 2634 * |
| 2640 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 2635 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 2641 * value is 500 and default value is 500. | 2636 * value is 500 and default value is 500. |
| 2642 * Value must be between "0" and "500". | 2637 * Value must be between "0" and "500". |
| 2643 * | 2638 * |
| 2644 * [pageToken] - Optional. Tag returned by a previous list request truncated | 2639 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 2645 * by maxResults. Used to continue a previous list request. | 2640 * by maxResults. Used to continue a previous list request. |
| 2646 * | 2641 * |
| 2647 * Completes with a [OperationList]. | 2642 * Completes with a [OperationList]. |
| 2648 * | 2643 * |
| 2649 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2650 * error. | 2645 * error. |
| 2651 * | 2646 * |
| 2652 * If the used [http.Client] completes with an error when making a REST call, | 2647 * If the used [http.Client] completes with an error when making a REST call, |
| 2653 * this method will complete with the same error. | 2648 * this method will complete with the same error. |
| 2654 */ | 2649 */ |
| 2655 async.Future<OperationList> list(core.String project, {core.String filter, cor
e.int maxResults, core.String pageToken}) { | 2650 async.Future<OperationList> list(core.String project, {core.String filter, cor
e.int maxResults, core.String pageToken}) { |
| 2656 var _url = null; | 2651 var _url = null; |
| 2657 var _queryParams = new core.Map(); | 2652 var _queryParams = new core.Map(); |
| 2658 var _uploadMedia = null; | 2653 var _uploadMedia = null; |
| 2659 var _uploadOptions = null; | 2654 var _uploadOptions = null; |
| 2660 var _downloadOptions = common.DownloadOptions.Metadata; | 2655 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2661 var _body = null; | 2656 var _body = null; |
| 2662 | 2657 |
| 2663 if (project == null) { | 2658 if (project == null) { |
| 2664 throw new core.ArgumentError("Parameter project is required."); | 2659 throw new core.ArgumentError("Parameter project is required."); |
| 2665 } | 2660 } |
| 2666 if (filter != null) { | 2661 if (filter != null) { |
| 2667 _queryParams["filter"] = [filter]; | 2662 _queryParams["filter"] = [filter]; |
| 2668 } | 2663 } |
| 2669 if (maxResults != null) { | 2664 if (maxResults != null) { |
| 2670 _queryParams["maxResults"] = ["${maxResults}"]; | 2665 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2671 } | 2666 } |
| 2672 if (pageToken != null) { | 2667 if (pageToken != null) { |
| 2673 _queryParams["pageToken"] = [pageToken]; | 2668 _queryParams["pageToken"] = [pageToken]; |
| 2674 } | 2669 } |
| 2675 | 2670 |
| 2676 | 2671 |
| 2677 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/operatio
ns'; | 2672 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; |
| 2678 | 2673 |
| 2679 var _response = _requester.request(_url, | 2674 var _response = _requester.request(_url, |
| 2680 "GET", | 2675 "GET", |
| 2681 body: _body, | 2676 body: _body, |
| 2682 queryParams: _queryParams, | 2677 queryParams: _queryParams, |
| 2683 uploadOptions: _uploadOptions, | 2678 uploadOptions: _uploadOptions, |
| 2684 uploadMedia: _uploadMedia, | 2679 uploadMedia: _uploadMedia, |
| 2685 downloadOptions: _downloadOptions); | 2680 downloadOptions: _downloadOptions); |
| 2686 return _response.then((data) => new OperationList.fromJson(data)); | 2681 return _response.then((data) => new OperationList.fromJson(data)); |
| 2687 } | 2682 } |
| 2688 | 2683 |
| 2689 } | 2684 } |
| 2690 | 2685 |
| 2691 | 2686 |
| 2692 /** Not documented yet. */ | |
| 2693 class HttpHealthChecksResourceApi { | 2687 class HttpHealthChecksResourceApi { |
| 2694 final common_internal.ApiRequester _requester; | 2688 final commons.ApiRequester _requester; |
| 2695 | 2689 |
| 2696 HttpHealthChecksResourceApi(common_internal.ApiRequester client) : | 2690 HttpHealthChecksResourceApi(commons.ApiRequester client) : |
| 2697 _requester = client; | 2691 _requester = client; |
| 2698 | 2692 |
| 2699 /** | 2693 /** |
| 2700 * Deletes the specified HttpHealthCheck resource. | 2694 * Deletes the specified HttpHealthCheck resource. |
| 2701 * | 2695 * |
| 2702 * Request parameters: | 2696 * Request parameters: |
| 2703 * | 2697 * |
| 2704 * [project] - Name of the project scoping this request. | 2698 * [project] - Name of the project scoping this request. |
| 2705 * Value must have pattern | 2699 * Value must have pattern |
| 2706 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2700 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2707 * | 2701 * |
| 2708 * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete. | 2702 * [httpHealthCheck] - Name of the HttpHealthCheck resource to delete. |
| 2709 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2703 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2710 * | 2704 * |
| 2711 * Completes with a [Operation]. | 2705 * Completes with a [Operation]. |
| 2712 * | 2706 * |
| 2713 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2707 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2714 * error. | 2708 * error. |
| 2715 * | 2709 * |
| 2716 * If the used [http.Client] completes with an error when making a REST call, | 2710 * If the used [http.Client] completes with an error when making a REST call, |
| 2717 * this method will complete with the same error. | 2711 * this method will complete with the same error. |
| 2718 */ | 2712 */ |
| 2719 async.Future<Operation> delete(core.String project, core.String httpHealthChec
k) { | 2713 async.Future<Operation> delete(core.String project, core.String httpHealthChec
k) { |
| 2720 var _url = null; | 2714 var _url = null; |
| 2721 var _queryParams = new core.Map(); | 2715 var _queryParams = new core.Map(); |
| 2722 var _uploadMedia = null; | 2716 var _uploadMedia = null; |
| 2723 var _uploadOptions = null; | 2717 var _uploadOptions = null; |
| 2724 var _downloadOptions = common.DownloadOptions.Metadata; | 2718 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2725 var _body = null; | 2719 var _body = null; |
| 2726 | 2720 |
| 2727 if (project == null) { | 2721 if (project == null) { |
| 2728 throw new core.ArgumentError("Parameter project is required."); | 2722 throw new core.ArgumentError("Parameter project is required."); |
| 2729 } | 2723 } |
| 2730 if (httpHealthCheck == null) { | 2724 if (httpHealthCheck == null) { |
| 2731 throw new core.ArgumentError("Parameter httpHealthCheck is required."); | 2725 throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
| 2732 } | 2726 } |
| 2733 | 2727 |
| 2734 | 2728 |
| 2735 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck'); | 2729 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
| 2736 | 2730 |
| 2737 var _response = _requester.request(_url, | 2731 var _response = _requester.request(_url, |
| 2738 "DELETE", | 2732 "DELETE", |
| 2739 body: _body, | 2733 body: _body, |
| 2740 queryParams: _queryParams, | 2734 queryParams: _queryParams, |
| 2741 uploadOptions: _uploadOptions, | 2735 uploadOptions: _uploadOptions, |
| 2742 uploadMedia: _uploadMedia, | 2736 uploadMedia: _uploadMedia, |
| 2743 downloadOptions: _downloadOptions); | 2737 downloadOptions: _downloadOptions); |
| 2744 return _response.then((data) => new Operation.fromJson(data)); | 2738 return _response.then((data) => new Operation.fromJson(data)); |
| 2745 } | 2739 } |
| 2746 | 2740 |
| 2747 /** | 2741 /** |
| 2748 * Returns the specified HttpHealthCheck resource. | 2742 * Returns the specified HttpHealthCheck resource. |
| 2749 * | 2743 * |
| 2750 * Request parameters: | 2744 * Request parameters: |
| 2751 * | 2745 * |
| 2752 * [project] - Name of the project scoping this request. | 2746 * [project] - Name of the project scoping this request. |
| 2753 * Value must have pattern | 2747 * Value must have pattern |
| 2754 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2748 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2755 * | 2749 * |
| 2756 * [httpHealthCheck] - Name of the HttpHealthCheck resource to return. | 2750 * [httpHealthCheck] - Name of the HttpHealthCheck resource to return. |
| 2757 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2751 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2758 * | 2752 * |
| 2759 * Completes with a [HttpHealthCheck]. | 2753 * Completes with a [HttpHealthCheck]. |
| 2760 * | 2754 * |
| 2761 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2755 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2762 * error. | 2756 * error. |
| 2763 * | 2757 * |
| 2764 * If the used [http.Client] completes with an error when making a REST call, | 2758 * If the used [http.Client] completes with an error when making a REST call, |
| 2765 * this method will complete with the same error. | 2759 * this method will complete with the same error. |
| 2766 */ | 2760 */ |
| 2767 async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthC
heck) { | 2761 async.Future<HttpHealthCheck> get(core.String project, core.String httpHealthC
heck) { |
| 2768 var _url = null; | 2762 var _url = null; |
| 2769 var _queryParams = new core.Map(); | 2763 var _queryParams = new core.Map(); |
| 2770 var _uploadMedia = null; | 2764 var _uploadMedia = null; |
| 2771 var _uploadOptions = null; | 2765 var _uploadOptions = null; |
| 2772 var _downloadOptions = common.DownloadOptions.Metadata; | 2766 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2773 var _body = null; | 2767 var _body = null; |
| 2774 | 2768 |
| 2775 if (project == null) { | 2769 if (project == null) { |
| 2776 throw new core.ArgumentError("Parameter project is required."); | 2770 throw new core.ArgumentError("Parameter project is required."); |
| 2777 } | 2771 } |
| 2778 if (httpHealthCheck == null) { | 2772 if (httpHealthCheck == null) { |
| 2779 throw new core.ArgumentError("Parameter httpHealthCheck is required."); | 2773 throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
| 2780 } | 2774 } |
| 2781 | 2775 |
| 2782 | 2776 |
| 2783 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck'); | 2777 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
| 2784 | 2778 |
| 2785 var _response = _requester.request(_url, | 2779 var _response = _requester.request(_url, |
| 2786 "GET", | 2780 "GET", |
| 2787 body: _body, | 2781 body: _body, |
| 2788 queryParams: _queryParams, | 2782 queryParams: _queryParams, |
| 2789 uploadOptions: _uploadOptions, | 2783 uploadOptions: _uploadOptions, |
| 2790 uploadMedia: _uploadMedia, | 2784 uploadMedia: _uploadMedia, |
| 2791 downloadOptions: _downloadOptions); | 2785 downloadOptions: _downloadOptions); |
| 2792 return _response.then((data) => new HttpHealthCheck.fromJson(data)); | 2786 return _response.then((data) => new HttpHealthCheck.fromJson(data)); |
| 2793 } | 2787 } |
| 2794 | 2788 |
| 2795 /** | 2789 /** |
| 2796 * Creates a HttpHealthCheck resource in the specified project using the data | 2790 * Creates a HttpHealthCheck resource in the specified project using the data |
| 2797 * included in the request. | 2791 * included in the request. |
| 2798 * | 2792 * |
| 2799 * [request] - The metadata request object. | 2793 * [request] - The metadata request object. |
| 2800 * | 2794 * |
| 2801 * Request parameters: | 2795 * Request parameters: |
| 2802 * | 2796 * |
| 2803 * [project] - Name of the project scoping this request. | 2797 * [project] - Name of the project scoping this request. |
| 2804 * Value must have pattern | 2798 * Value must have pattern |
| 2805 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2799 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2806 * | 2800 * |
| 2807 * Completes with a [Operation]. | 2801 * Completes with a [Operation]. |
| 2808 * | 2802 * |
| 2809 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2803 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2810 * error. | 2804 * error. |
| 2811 * | 2805 * |
| 2812 * If the used [http.Client] completes with an error when making a REST call, | 2806 * If the used [http.Client] completes with an error when making a REST call, |
| 2813 * this method will complete with the same error. | 2807 * this method will complete with the same error. |
| 2814 */ | 2808 */ |
| 2815 async.Future<Operation> insert(HttpHealthCheck request, core.String project) { | 2809 async.Future<Operation> insert(HttpHealthCheck request, core.String project) { |
| 2816 var _url = null; | 2810 var _url = null; |
| 2817 var _queryParams = new core.Map(); | 2811 var _queryParams = new core.Map(); |
| 2818 var _uploadMedia = null; | 2812 var _uploadMedia = null; |
| 2819 var _uploadOptions = null; | 2813 var _uploadOptions = null; |
| 2820 var _downloadOptions = common.DownloadOptions.Metadata; | 2814 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2821 var _body = null; | 2815 var _body = null; |
| 2822 | 2816 |
| 2823 if (request != null) { | 2817 if (request != null) { |
| 2824 _body = convert.JSON.encode((request).toJson()); | 2818 _body = convert.JSON.encode((request).toJson()); |
| 2825 } | 2819 } |
| 2826 if (project == null) { | 2820 if (project == null) { |
| 2827 throw new core.ArgumentError("Parameter project is required."); | 2821 throw new core.ArgumentError("Parameter project is required."); |
| 2828 } | 2822 } |
| 2829 | 2823 |
| 2830 | 2824 |
| 2831 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks'; | 2825 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
'; |
| 2832 | 2826 |
| 2833 var _response = _requester.request(_url, | 2827 var _response = _requester.request(_url, |
| 2834 "POST", | 2828 "POST", |
| 2835 body: _body, | 2829 body: _body, |
| 2836 queryParams: _queryParams, | 2830 queryParams: _queryParams, |
| 2837 uploadOptions: _uploadOptions, | 2831 uploadOptions: _uploadOptions, |
| 2838 uploadMedia: _uploadMedia, | 2832 uploadMedia: _uploadMedia, |
| 2839 downloadOptions: _downloadOptions); | 2833 downloadOptions: _downloadOptions); |
| 2840 return _response.then((data) => new Operation.fromJson(data)); | 2834 return _response.then((data) => new Operation.fromJson(data)); |
| 2841 } | 2835 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2854 * | 2848 * |
| 2855 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 2849 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 2856 * value is 500 and default value is 500. | 2850 * value is 500 and default value is 500. |
| 2857 * Value must be between "0" and "500". | 2851 * Value must be between "0" and "500". |
| 2858 * | 2852 * |
| 2859 * [pageToken] - Optional. Tag returned by a previous list request truncated | 2853 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 2860 * by maxResults. Used to continue a previous list request. | 2854 * by maxResults. Used to continue a previous list request. |
| 2861 * | 2855 * |
| 2862 * Completes with a [HttpHealthCheckList]. | 2856 * Completes with a [HttpHealthCheckList]. |
| 2863 * | 2857 * |
| 2864 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2858 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2865 * error. | 2859 * error. |
| 2866 * | 2860 * |
| 2867 * If the used [http.Client] completes with an error when making a REST call, | 2861 * If the used [http.Client] completes with an error when making a REST call, |
| 2868 * this method will complete with the same error. | 2862 * this method will complete with the same error. |
| 2869 */ | 2863 */ |
| 2870 async.Future<HttpHealthCheckList> list(core.String project, {core.String filte
r, core.int maxResults, core.String pageToken}) { | 2864 async.Future<HttpHealthCheckList> list(core.String project, {core.String filte
r, core.int maxResults, core.String pageToken}) { |
| 2871 var _url = null; | 2865 var _url = null; |
| 2872 var _queryParams = new core.Map(); | 2866 var _queryParams = new core.Map(); |
| 2873 var _uploadMedia = null; | 2867 var _uploadMedia = null; |
| 2874 var _uploadOptions = null; | 2868 var _uploadOptions = null; |
| 2875 var _downloadOptions = common.DownloadOptions.Metadata; | 2869 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2876 var _body = null; | 2870 var _body = null; |
| 2877 | 2871 |
| 2878 if (project == null) { | 2872 if (project == null) { |
| 2879 throw new core.ArgumentError("Parameter project is required."); | 2873 throw new core.ArgumentError("Parameter project is required."); |
| 2880 } | 2874 } |
| 2881 if (filter != null) { | 2875 if (filter != null) { |
| 2882 _queryParams["filter"] = [filter]; | 2876 _queryParams["filter"] = [filter]; |
| 2883 } | 2877 } |
| 2884 if (maxResults != null) { | 2878 if (maxResults != null) { |
| 2885 _queryParams["maxResults"] = ["${maxResults}"]; | 2879 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2886 } | 2880 } |
| 2887 if (pageToken != null) { | 2881 if (pageToken != null) { |
| 2888 _queryParams["pageToken"] = [pageToken]; | 2882 _queryParams["pageToken"] = [pageToken]; |
| 2889 } | 2883 } |
| 2890 | 2884 |
| 2891 | 2885 |
| 2892 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks'; | 2886 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
'; |
| 2893 | 2887 |
| 2894 var _response = _requester.request(_url, | 2888 var _response = _requester.request(_url, |
| 2895 "GET", | 2889 "GET", |
| 2896 body: _body, | 2890 body: _body, |
| 2897 queryParams: _queryParams, | 2891 queryParams: _queryParams, |
| 2898 uploadOptions: _uploadOptions, | 2892 uploadOptions: _uploadOptions, |
| 2899 uploadMedia: _uploadMedia, | 2893 uploadMedia: _uploadMedia, |
| 2900 downloadOptions: _downloadOptions); | 2894 downloadOptions: _downloadOptions); |
| 2901 return _response.then((data) => new HttpHealthCheckList.fromJson(data)); | 2895 return _response.then((data) => new HttpHealthCheckList.fromJson(data)); |
| 2902 } | 2896 } |
| 2903 | 2897 |
| 2904 /** | 2898 /** |
| 2905 * Updates a HttpHealthCheck resource in the specified project using the data | 2899 * Updates a HttpHealthCheck resource in the specified project using the data |
| 2906 * included in the request. This method supports patch semantics. | 2900 * included in the request. This method supports patch semantics. |
| 2907 * | 2901 * |
| 2908 * [request] - The metadata request object. | 2902 * [request] - The metadata request object. |
| 2909 * | 2903 * |
| 2910 * Request parameters: | 2904 * Request parameters: |
| 2911 * | 2905 * |
| 2912 * [project] - Name of the project scoping this request. | 2906 * [project] - Name of the project scoping this request. |
| 2913 * Value must have pattern | 2907 * Value must have pattern |
| 2914 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2908 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2915 * | 2909 * |
| 2916 * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. | 2910 * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
| 2917 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2911 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2918 * | 2912 * |
| 2919 * Completes with a [Operation]. | 2913 * Completes with a [Operation]. |
| 2920 * | 2914 * |
| 2921 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2915 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2922 * error. | 2916 * error. |
| 2923 * | 2917 * |
| 2924 * If the used [http.Client] completes with an error when making a REST call, | 2918 * If the used [http.Client] completes with an error when making a REST call, |
| 2925 * this method will complete with the same error. | 2919 * this method will complete with the same error. |
| 2926 */ | 2920 */ |
| 2927 async.Future<Operation> patch(HttpHealthCheck request, core.String project, co
re.String httpHealthCheck) { | 2921 async.Future<Operation> patch(HttpHealthCheck request, core.String project, co
re.String httpHealthCheck) { |
| 2928 var _url = null; | 2922 var _url = null; |
| 2929 var _queryParams = new core.Map(); | 2923 var _queryParams = new core.Map(); |
| 2930 var _uploadMedia = null; | 2924 var _uploadMedia = null; |
| 2931 var _uploadOptions = null; | 2925 var _uploadOptions = null; |
| 2932 var _downloadOptions = common.DownloadOptions.Metadata; | 2926 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2933 var _body = null; | 2927 var _body = null; |
| 2934 | 2928 |
| 2935 if (request != null) { | 2929 if (request != null) { |
| 2936 _body = convert.JSON.encode((request).toJson()); | 2930 _body = convert.JSON.encode((request).toJson()); |
| 2937 } | 2931 } |
| 2938 if (project == null) { | 2932 if (project == null) { |
| 2939 throw new core.ArgumentError("Parameter project is required."); | 2933 throw new core.ArgumentError("Parameter project is required."); |
| 2940 } | 2934 } |
| 2941 if (httpHealthCheck == null) { | 2935 if (httpHealthCheck == null) { |
| 2942 throw new core.ArgumentError("Parameter httpHealthCheck is required."); | 2936 throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
| 2943 } | 2937 } |
| 2944 | 2938 |
| 2945 | 2939 |
| 2946 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck'); | 2940 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
| 2947 | 2941 |
| 2948 var _response = _requester.request(_url, | 2942 var _response = _requester.request(_url, |
| 2949 "PATCH", | 2943 "PATCH", |
| 2950 body: _body, | 2944 body: _body, |
| 2951 queryParams: _queryParams, | 2945 queryParams: _queryParams, |
| 2952 uploadOptions: _uploadOptions, | 2946 uploadOptions: _uploadOptions, |
| 2953 uploadMedia: _uploadMedia, | 2947 uploadMedia: _uploadMedia, |
| 2954 downloadOptions: _downloadOptions); | 2948 downloadOptions: _downloadOptions); |
| 2955 return _response.then((data) => new Operation.fromJson(data)); | 2949 return _response.then((data) => new Operation.fromJson(data)); |
| 2956 } | 2950 } |
| 2957 | 2951 |
| 2958 /** | 2952 /** |
| 2959 * Updates a HttpHealthCheck resource in the specified project using the data | 2953 * Updates a HttpHealthCheck resource in the specified project using the data |
| 2960 * included in the request. | 2954 * included in the request. |
| 2961 * | 2955 * |
| 2962 * [request] - The metadata request object. | 2956 * [request] - The metadata request object. |
| 2963 * | 2957 * |
| 2964 * Request parameters: | 2958 * Request parameters: |
| 2965 * | 2959 * |
| 2966 * [project] - Name of the project scoping this request. | 2960 * [project] - Name of the project scoping this request. |
| 2967 * Value must have pattern | 2961 * Value must have pattern |
| 2968 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 2962 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 2969 * | 2963 * |
| 2970 * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. | 2964 * [httpHealthCheck] - Name of the HttpHealthCheck resource to update. |
| 2971 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 2965 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 2972 * | 2966 * |
| 2973 * Completes with a [Operation]. | 2967 * Completes with a [Operation]. |
| 2974 * | 2968 * |
| 2975 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2976 * error. | 2970 * error. |
| 2977 * | 2971 * |
| 2978 * If the used [http.Client] completes with an error when making a REST call, | 2972 * If the used [http.Client] completes with an error when making a REST call, |
| 2979 * this method will complete with the same error. | 2973 * this method will complete with the same error. |
| 2980 */ | 2974 */ |
| 2981 async.Future<Operation> update(HttpHealthCheck request, core.String project, c
ore.String httpHealthCheck) { | 2975 async.Future<Operation> update(HttpHealthCheck request, core.String project, c
ore.String httpHealthCheck) { |
| 2982 var _url = null; | 2976 var _url = null; |
| 2983 var _queryParams = new core.Map(); | 2977 var _queryParams = new core.Map(); |
| 2984 var _uploadMedia = null; | 2978 var _uploadMedia = null; |
| 2985 var _uploadOptions = null; | 2979 var _uploadOptions = null; |
| 2986 var _downloadOptions = common.DownloadOptions.Metadata; | 2980 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2987 var _body = null; | 2981 var _body = null; |
| 2988 | 2982 |
| 2989 if (request != null) { | 2983 if (request != null) { |
| 2990 _body = convert.JSON.encode((request).toJson()); | 2984 _body = convert.JSON.encode((request).toJson()); |
| 2991 } | 2985 } |
| 2992 if (project == null) { | 2986 if (project == null) { |
| 2993 throw new core.ArgumentError("Parameter project is required."); | 2987 throw new core.ArgumentError("Parameter project is required."); |
| 2994 } | 2988 } |
| 2995 if (httpHealthCheck == null) { | 2989 if (httpHealthCheck == null) { |
| 2996 throw new core.ArgumentError("Parameter httpHealthCheck is required."); | 2990 throw new core.ArgumentError("Parameter httpHealthCheck is required."); |
| 2997 } | 2991 } |
| 2998 | 2992 |
| 2999 | 2993 |
| 3000 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/httpHeal
thChecks/' + common_internal.Escaper.ecapeVariable('$httpHealthCheck'); | 2994 _url = commons.Escaper.ecapeVariable('$project') + '/global/httpHealthChecks
/' + commons.Escaper.ecapeVariable('$httpHealthCheck'); |
| 3001 | 2995 |
| 3002 var _response = _requester.request(_url, | 2996 var _response = _requester.request(_url, |
| 3003 "PUT", | 2997 "PUT", |
| 3004 body: _body, | 2998 body: _body, |
| 3005 queryParams: _queryParams, | 2999 queryParams: _queryParams, |
| 3006 uploadOptions: _uploadOptions, | 3000 uploadOptions: _uploadOptions, |
| 3007 uploadMedia: _uploadMedia, | 3001 uploadMedia: _uploadMedia, |
| 3008 downloadOptions: _downloadOptions); | 3002 downloadOptions: _downloadOptions); |
| 3009 return _response.then((data) => new Operation.fromJson(data)); | 3003 return _response.then((data) => new Operation.fromJson(data)); |
| 3010 } | 3004 } |
| 3011 | 3005 |
| 3012 } | 3006 } |
| 3013 | 3007 |
| 3014 | 3008 |
| 3015 /** Not documented yet. */ | |
| 3016 class ImagesResourceApi { | 3009 class ImagesResourceApi { |
| 3017 final common_internal.ApiRequester _requester; | 3010 final commons.ApiRequester _requester; |
| 3018 | 3011 |
| 3019 ImagesResourceApi(common_internal.ApiRequester client) : | 3012 ImagesResourceApi(commons.ApiRequester client) : |
| 3020 _requester = client; | 3013 _requester = client; |
| 3021 | 3014 |
| 3022 /** | 3015 /** |
| 3023 * Deletes the specified image resource. | 3016 * Deletes the specified image resource. |
| 3024 * | 3017 * |
| 3025 * Request parameters: | 3018 * Request parameters: |
| 3026 * | 3019 * |
| 3027 * [project] - Name of the project scoping this request. | 3020 * [project] - Project ID for this request. |
| 3028 * Value must have pattern | 3021 * Value must have pattern |
| 3029 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3022 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3030 * | 3023 * |
| 3031 * [image] - Name of the image resource to delete. | 3024 * [image] - Name of the image resource to delete. |
| 3032 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3025 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3033 * | 3026 * |
| 3034 * Completes with a [Operation]. | 3027 * Completes with a [Operation]. |
| 3035 * | 3028 * |
| 3036 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3037 * error. | 3030 * error. |
| 3038 * | 3031 * |
| 3039 * If the used [http.Client] completes with an error when making a REST call, | 3032 * If the used [http.Client] completes with an error when making a REST call, |
| 3040 * this method will complete with the same error. | 3033 * this method will complete with the same error. |
| 3041 */ | 3034 */ |
| 3042 async.Future<Operation> delete(core.String project, core.String image) { | 3035 async.Future<Operation> delete(core.String project, core.String image) { |
| 3043 var _url = null; | 3036 var _url = null; |
| 3044 var _queryParams = new core.Map(); | 3037 var _queryParams = new core.Map(); |
| 3045 var _uploadMedia = null; | 3038 var _uploadMedia = null; |
| 3046 var _uploadOptions = null; | 3039 var _uploadOptions = null; |
| 3047 var _downloadOptions = common.DownloadOptions.Metadata; | 3040 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3048 var _body = null; | 3041 var _body = null; |
| 3049 | 3042 |
| 3050 if (project == null) { | 3043 if (project == null) { |
| 3051 throw new core.ArgumentError("Parameter project is required."); | 3044 throw new core.ArgumentError("Parameter project is required."); |
| 3052 } | 3045 } |
| 3053 if (image == null) { | 3046 if (image == null) { |
| 3054 throw new core.ArgumentError("Parameter image is required."); | 3047 throw new core.ArgumentError("Parameter image is required."); |
| 3055 } | 3048 } |
| 3056 | 3049 |
| 3057 | 3050 |
| 3058 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/'
+ common_internal.Escaper.ecapeVariable('$image'); | 3051 _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commo
ns.Escaper.ecapeVariable('$image'); |
| 3059 | 3052 |
| 3060 var _response = _requester.request(_url, | 3053 var _response = _requester.request(_url, |
| 3061 "DELETE", | 3054 "DELETE", |
| 3062 body: _body, | 3055 body: _body, |
| 3063 queryParams: _queryParams, | 3056 queryParams: _queryParams, |
| 3064 uploadOptions: _uploadOptions, | 3057 uploadOptions: _uploadOptions, |
| 3065 uploadMedia: _uploadMedia, | 3058 uploadMedia: _uploadMedia, |
| 3066 downloadOptions: _downloadOptions); | 3059 downloadOptions: _downloadOptions); |
| 3067 return _response.then((data) => new Operation.fromJson(data)); | 3060 return _response.then((data) => new Operation.fromJson(data)); |
| 3068 } | 3061 } |
| 3069 | 3062 |
| 3070 /** | 3063 /** |
| 3071 * Sets the deprecation status of an image. If no message body is given, | 3064 * Sets the deprecation status of an image. |
| 3072 * clears the deprecation status instead. | 3065 * |
| 3066 * If an empty request body is given, clears the deprecation status instead. |
| 3073 * | 3067 * |
| 3074 * [request] - The metadata request object. | 3068 * [request] - The metadata request object. |
| 3075 * | 3069 * |
| 3076 * Request parameters: | 3070 * Request parameters: |
| 3077 * | 3071 * |
| 3078 * [project] - Name of the project scoping this request. | 3072 * [project] - Project ID for this request. |
| 3079 * Value must have pattern | 3073 * Value must have pattern |
| 3080 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3074 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3081 * | 3075 * |
| 3082 * [image] - Image name. | 3076 * [image] - Image name. |
| 3083 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3077 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3084 * | 3078 * |
| 3085 * Completes with a [Operation]. | 3079 * Completes with a [Operation]. |
| 3086 * | 3080 * |
| 3087 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3081 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3088 * error. | 3082 * error. |
| 3089 * | 3083 * |
| 3090 * If the used [http.Client] completes with an error when making a REST call, | 3084 * If the used [http.Client] completes with an error when making a REST call, |
| 3091 * this method will complete with the same error. | 3085 * this method will complete with the same error. |
| 3092 */ | 3086 */ |
| 3093 async.Future<Operation> deprecate(DeprecationStatus request, core.String proje
ct, core.String image) { | 3087 async.Future<Operation> deprecate(DeprecationStatus request, core.String proje
ct, core.String image) { |
| 3094 var _url = null; | 3088 var _url = null; |
| 3095 var _queryParams = new core.Map(); | 3089 var _queryParams = new core.Map(); |
| 3096 var _uploadMedia = null; | 3090 var _uploadMedia = null; |
| 3097 var _uploadOptions = null; | 3091 var _uploadOptions = null; |
| 3098 var _downloadOptions = common.DownloadOptions.Metadata; | 3092 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3099 var _body = null; | 3093 var _body = null; |
| 3100 | 3094 |
| 3101 if (request != null) { | 3095 if (request != null) { |
| 3102 _body = convert.JSON.encode((request).toJson()); | 3096 _body = convert.JSON.encode((request).toJson()); |
| 3103 } | 3097 } |
| 3104 if (project == null) { | 3098 if (project == null) { |
| 3105 throw new core.ArgumentError("Parameter project is required."); | 3099 throw new core.ArgumentError("Parameter project is required."); |
| 3106 } | 3100 } |
| 3107 if (image == null) { | 3101 if (image == null) { |
| 3108 throw new core.ArgumentError("Parameter image is required."); | 3102 throw new core.ArgumentError("Parameter image is required."); |
| 3109 } | 3103 } |
| 3110 | 3104 |
| 3111 | 3105 |
| 3112 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/'
+ common_internal.Escaper.ecapeVariable('$image') + '/deprecate'; | 3106 _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commo
ns.Escaper.ecapeVariable('$image') + '/deprecate'; |
| 3113 | 3107 |
| 3114 var _response = _requester.request(_url, | 3108 var _response = _requester.request(_url, |
| 3115 "POST", | 3109 "POST", |
| 3116 body: _body, | 3110 body: _body, |
| 3117 queryParams: _queryParams, | 3111 queryParams: _queryParams, |
| 3118 uploadOptions: _uploadOptions, | 3112 uploadOptions: _uploadOptions, |
| 3119 uploadMedia: _uploadMedia, | 3113 uploadMedia: _uploadMedia, |
| 3120 downloadOptions: _downloadOptions); | 3114 downloadOptions: _downloadOptions); |
| 3121 return _response.then((data) => new Operation.fromJson(data)); | 3115 return _response.then((data) => new Operation.fromJson(data)); |
| 3122 } | 3116 } |
| 3123 | 3117 |
| 3124 /** | 3118 /** |
| 3125 * Returns the specified image resource. | 3119 * Returns the specified image resource. |
| 3126 * | 3120 * |
| 3127 * Request parameters: | 3121 * Request parameters: |
| 3128 * | 3122 * |
| 3129 * [project] - Name of the project scoping this request. | 3123 * [project] - Project ID for this request. |
| 3130 * Value must have pattern | 3124 * Value must have pattern |
| 3131 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3125 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3132 * | 3126 * |
| 3133 * [image] - Name of the image resource to return. | 3127 * [image] - Name of the image resource to return. |
| 3134 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3128 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3135 * | 3129 * |
| 3136 * Completes with a [Image]. | 3130 * Completes with a [Image]. |
| 3137 * | 3131 * |
| 3138 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3132 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3139 * error. | 3133 * error. |
| 3140 * | 3134 * |
| 3141 * If the used [http.Client] completes with an error when making a REST call, | 3135 * If the used [http.Client] completes with an error when making a REST call, |
| 3142 * this method will complete with the same error. | 3136 * this method will complete with the same error. |
| 3143 */ | 3137 */ |
| 3144 async.Future<Image> get(core.String project, core.String image) { | 3138 async.Future<Image> get(core.String project, core.String image) { |
| 3145 var _url = null; | 3139 var _url = null; |
| 3146 var _queryParams = new core.Map(); | 3140 var _queryParams = new core.Map(); |
| 3147 var _uploadMedia = null; | 3141 var _uploadMedia = null; |
| 3148 var _uploadOptions = null; | 3142 var _uploadOptions = null; |
| 3149 var _downloadOptions = common.DownloadOptions.Metadata; | 3143 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3150 var _body = null; | 3144 var _body = null; |
| 3151 | 3145 |
| 3152 if (project == null) { | 3146 if (project == null) { |
| 3153 throw new core.ArgumentError("Parameter project is required."); | 3147 throw new core.ArgumentError("Parameter project is required."); |
| 3154 } | 3148 } |
| 3155 if (image == null) { | 3149 if (image == null) { |
| 3156 throw new core.ArgumentError("Parameter image is required."); | 3150 throw new core.ArgumentError("Parameter image is required."); |
| 3157 } | 3151 } |
| 3158 | 3152 |
| 3159 | 3153 |
| 3160 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images/'
+ common_internal.Escaper.ecapeVariable('$image'); | 3154 _url = commons.Escaper.ecapeVariable('$project') + '/global/images/' + commo
ns.Escaper.ecapeVariable('$image'); |
| 3161 | 3155 |
| 3162 var _response = _requester.request(_url, | 3156 var _response = _requester.request(_url, |
| 3163 "GET", | 3157 "GET", |
| 3164 body: _body, | 3158 body: _body, |
| 3165 queryParams: _queryParams, | 3159 queryParams: _queryParams, |
| 3166 uploadOptions: _uploadOptions, | 3160 uploadOptions: _uploadOptions, |
| 3167 uploadMedia: _uploadMedia, | 3161 uploadMedia: _uploadMedia, |
| 3168 downloadOptions: _downloadOptions); | 3162 downloadOptions: _downloadOptions); |
| 3169 return _response.then((data) => new Image.fromJson(data)); | 3163 return _response.then((data) => new Image.fromJson(data)); |
| 3170 } | 3164 } |
| 3171 | 3165 |
| 3172 /** | 3166 /** |
| 3173 * Creates an image resource in the specified project using the data included | 3167 * Creates an image resource in the specified project using the data included |
| 3174 * in the request. | 3168 * in the request. |
| 3175 * | 3169 * |
| 3176 * [request] - The metadata request object. | 3170 * [request] - The metadata request object. |
| 3177 * | 3171 * |
| 3178 * Request parameters: | 3172 * Request parameters: |
| 3179 * | 3173 * |
| 3180 * [project] - Name of the project scoping this request. | 3174 * [project] - Project ID for this request. |
| 3181 * Value must have pattern | 3175 * Value must have pattern |
| 3182 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3176 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3183 * | 3177 * |
| 3184 * Completes with a [Operation]. | 3178 * Completes with a [Operation]. |
| 3185 * | 3179 * |
| 3186 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3187 * error. | 3181 * error. |
| 3188 * | 3182 * |
| 3189 * If the used [http.Client] completes with an error when making a REST call, | 3183 * If the used [http.Client] completes with an error when making a REST call, |
| 3190 * this method will complete with the same error. | 3184 * this method will complete with the same error. |
| 3191 */ | 3185 */ |
| 3192 async.Future<Operation> insert(Image request, core.String project) { | 3186 async.Future<Operation> insert(Image request, core.String project) { |
| 3193 var _url = null; | 3187 var _url = null; |
| 3194 var _queryParams = new core.Map(); | 3188 var _queryParams = new core.Map(); |
| 3195 var _uploadMedia = null; | 3189 var _uploadMedia = null; |
| 3196 var _uploadOptions = null; | 3190 var _uploadOptions = null; |
| 3197 var _downloadOptions = common.DownloadOptions.Metadata; | 3191 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3198 var _body = null; | 3192 var _body = null; |
| 3199 | 3193 |
| 3200 if (request != null) { | 3194 if (request != null) { |
| 3201 _body = convert.JSON.encode((request).toJson()); | 3195 _body = convert.JSON.encode((request).toJson()); |
| 3202 } | 3196 } |
| 3203 if (project == null) { | 3197 if (project == null) { |
| 3204 throw new core.ArgumentError("Parameter project is required."); | 3198 throw new core.ArgumentError("Parameter project is required."); |
| 3205 } | 3199 } |
| 3206 | 3200 |
| 3207 | 3201 |
| 3208 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images'; | 3202 _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
| 3209 | 3203 |
| 3210 var _response = _requester.request(_url, | 3204 var _response = _requester.request(_url, |
| 3211 "POST", | 3205 "POST", |
| 3212 body: _body, | 3206 body: _body, |
| 3213 queryParams: _queryParams, | 3207 queryParams: _queryParams, |
| 3214 uploadOptions: _uploadOptions, | 3208 uploadOptions: _uploadOptions, |
| 3215 uploadMedia: _uploadMedia, | 3209 uploadMedia: _uploadMedia, |
| 3216 downloadOptions: _downloadOptions); | 3210 downloadOptions: _downloadOptions); |
| 3217 return _response.then((data) => new Operation.fromJson(data)); | 3211 return _response.then((data) => new Operation.fromJson(data)); |
| 3218 } | 3212 } |
| 3219 | 3213 |
| 3220 /** | 3214 /** |
| 3221 * Retrieves the list of image resources available to the specified project. | 3215 * Retrieves the list of image resources available to the specified project. |
| 3222 * | 3216 * |
| 3223 * Request parameters: | 3217 * Request parameters: |
| 3224 * | 3218 * |
| 3225 * [project] - Name of the project scoping this request. | 3219 * [project] - Project ID for this request. |
| 3226 * Value must have pattern | 3220 * Value must have pattern |
| 3227 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3221 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3228 * | 3222 * |
| 3229 * [filter] - Optional. Filter expression for filtering listed resources. | 3223 * [filter] - Optional. Filter expression for filtering listed resources. |
| 3230 * | 3224 * |
| 3231 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 3225 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 3232 * value is 500 and default value is 500. | 3226 * value is 500 and default value is 500. |
| 3233 * Value must be between "0" and "500". | 3227 * Value must be between "0" and "500". |
| 3234 * | 3228 * |
| 3235 * [pageToken] - Optional. Tag returned by a previous list request truncated | 3229 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 3236 * by maxResults. Used to continue a previous list request. | 3230 * by maxResults. Used to continue a previous list request. |
| 3237 * | 3231 * |
| 3238 * Completes with a [ImageList]. | 3232 * Completes with a [ImageList]. |
| 3239 * | 3233 * |
| 3240 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3234 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3241 * error. | 3235 * error. |
| 3242 * | 3236 * |
| 3243 * If the used [http.Client] completes with an error when making a REST call, | 3237 * If the used [http.Client] completes with an error when making a REST call, |
| 3244 * this method will complete with the same error. | 3238 * this method will complete with the same error. |
| 3245 */ | 3239 */ |
| 3246 async.Future<ImageList> list(core.String project, {core.String filter, core.in
t maxResults, core.String pageToken}) { | 3240 async.Future<ImageList> list(core.String project, {core.String filter, core.in
t maxResults, core.String pageToken}) { |
| 3247 var _url = null; | 3241 var _url = null; |
| 3248 var _queryParams = new core.Map(); | 3242 var _queryParams = new core.Map(); |
| 3249 var _uploadMedia = null; | 3243 var _uploadMedia = null; |
| 3250 var _uploadOptions = null; | 3244 var _uploadOptions = null; |
| 3251 var _downloadOptions = common.DownloadOptions.Metadata; | 3245 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3252 var _body = null; | 3246 var _body = null; |
| 3253 | 3247 |
| 3254 if (project == null) { | 3248 if (project == null) { |
| 3255 throw new core.ArgumentError("Parameter project is required."); | 3249 throw new core.ArgumentError("Parameter project is required."); |
| 3256 } | 3250 } |
| 3257 if (filter != null) { | 3251 if (filter != null) { |
| 3258 _queryParams["filter"] = [filter]; | 3252 _queryParams["filter"] = [filter]; |
| 3259 } | 3253 } |
| 3260 if (maxResults != null) { | 3254 if (maxResults != null) { |
| 3261 _queryParams["maxResults"] = ["${maxResults}"]; | 3255 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3262 } | 3256 } |
| 3263 if (pageToken != null) { | 3257 if (pageToken != null) { |
| 3264 _queryParams["pageToken"] = [pageToken]; | 3258 _queryParams["pageToken"] = [pageToken]; |
| 3265 } | 3259 } |
| 3266 | 3260 |
| 3267 | 3261 |
| 3268 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/images'; | 3262 _url = commons.Escaper.ecapeVariable('$project') + '/global/images'; |
| 3269 | 3263 |
| 3270 var _response = _requester.request(_url, | 3264 var _response = _requester.request(_url, |
| 3271 "GET", | 3265 "GET", |
| 3272 body: _body, | 3266 body: _body, |
| 3273 queryParams: _queryParams, | 3267 queryParams: _queryParams, |
| 3274 uploadOptions: _uploadOptions, | 3268 uploadOptions: _uploadOptions, |
| 3275 uploadMedia: _uploadMedia, | 3269 uploadMedia: _uploadMedia, |
| 3276 downloadOptions: _downloadOptions); | 3270 downloadOptions: _downloadOptions); |
| 3277 return _response.then((data) => new ImageList.fromJson(data)); | 3271 return _response.then((data) => new ImageList.fromJson(data)); |
| 3278 } | 3272 } |
| 3279 | 3273 |
| 3280 } | 3274 } |
| 3281 | 3275 |
| 3282 | 3276 |
| 3283 /** Not documented yet. */ | |
| 3284 class InstanceTemplatesResourceApi { | 3277 class InstanceTemplatesResourceApi { |
| 3285 final common_internal.ApiRequester _requester; | 3278 final commons.ApiRequester _requester; |
| 3286 | 3279 |
| 3287 InstanceTemplatesResourceApi(common_internal.ApiRequester client) : | 3280 InstanceTemplatesResourceApi(commons.ApiRequester client) : |
| 3288 _requester = client; | 3281 _requester = client; |
| 3289 | 3282 |
| 3290 /** | 3283 /** |
| 3291 * Deletes the specified instance template resource. | 3284 * Deletes the specified instance template resource. |
| 3292 * | 3285 * |
| 3293 * Request parameters: | 3286 * Request parameters: |
| 3294 * | 3287 * |
| 3295 * [project] - Name of the project scoping this request. | 3288 * [project] - Name of the project scoping this request. |
| 3296 * Value must have pattern | 3289 * Value must have pattern |
| 3297 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3290 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3298 * | 3291 * |
| 3299 * [instanceTemplate] - Name of the instance template resource to delete. | 3292 * [instanceTemplate] - Name of the instance template resource to delete. |
| 3300 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3293 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3301 * | 3294 * |
| 3302 * Completes with a [Operation]. | 3295 * Completes with a [Operation]. |
| 3303 * | 3296 * |
| 3304 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3305 * error. | 3298 * error. |
| 3306 * | 3299 * |
| 3307 * If the used [http.Client] completes with an error when making a REST call, | 3300 * If the used [http.Client] completes with an error when making a REST call, |
| 3308 * this method will complete with the same error. | 3301 * this method will complete with the same error. |
| 3309 */ | 3302 */ |
| 3310 async.Future<Operation> delete(core.String project, core.String instanceTempla
te) { | 3303 async.Future<Operation> delete(core.String project, core.String instanceTempla
te) { |
| 3311 var _url = null; | 3304 var _url = null; |
| 3312 var _queryParams = new core.Map(); | 3305 var _queryParams = new core.Map(); |
| 3313 var _uploadMedia = null; | 3306 var _uploadMedia = null; |
| 3314 var _uploadOptions = null; | 3307 var _uploadOptions = null; |
| 3315 var _downloadOptions = common.DownloadOptions.Metadata; | 3308 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3316 var _body = null; | 3309 var _body = null; |
| 3317 | 3310 |
| 3318 if (project == null) { | 3311 if (project == null) { |
| 3319 throw new core.ArgumentError("Parameter project is required."); | 3312 throw new core.ArgumentError("Parameter project is required."); |
| 3320 } | 3313 } |
| 3321 if (instanceTemplate == null) { | 3314 if (instanceTemplate == null) { |
| 3322 throw new core.ArgumentError("Parameter instanceTemplate is required."); | 3315 throw new core.ArgumentError("Parameter instanceTemplate is required."); |
| 3323 } | 3316 } |
| 3324 | 3317 |
| 3325 | 3318 |
| 3326 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate'); | 3319 _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplate
s/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
| 3327 | 3320 |
| 3328 var _response = _requester.request(_url, | 3321 var _response = _requester.request(_url, |
| 3329 "DELETE", | 3322 "DELETE", |
| 3330 body: _body, | 3323 body: _body, |
| 3331 queryParams: _queryParams, | 3324 queryParams: _queryParams, |
| 3332 uploadOptions: _uploadOptions, | 3325 uploadOptions: _uploadOptions, |
| 3333 uploadMedia: _uploadMedia, | 3326 uploadMedia: _uploadMedia, |
| 3334 downloadOptions: _downloadOptions); | 3327 downloadOptions: _downloadOptions); |
| 3335 return _response.then((data) => new Operation.fromJson(data)); | 3328 return _response.then((data) => new Operation.fromJson(data)); |
| 3336 } | 3329 } |
| 3337 | 3330 |
| 3338 /** | 3331 /** |
| 3339 * Returns the specified instance template resource. | 3332 * Returns the specified instance template resource. |
| 3340 * | 3333 * |
| 3341 * Request parameters: | 3334 * Request parameters: |
| 3342 * | 3335 * |
| 3343 * [project] - Name of the project scoping this request. | 3336 * [project] - Name of the project scoping this request. |
| 3344 * Value must have pattern | 3337 * Value must have pattern |
| 3345 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3338 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3346 * | 3339 * |
| 3347 * [instanceTemplate] - Name of the instance template resource to return. | 3340 * [instanceTemplate] - Name of the instance template resource to return. |
| 3348 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3341 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3349 * | 3342 * |
| 3350 * Completes with a [InstanceTemplate]. | 3343 * Completes with a [InstanceTemplate]. |
| 3351 * | 3344 * |
| 3352 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3345 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3353 * error. | 3346 * error. |
| 3354 * | 3347 * |
| 3355 * If the used [http.Client] completes with an error when making a REST call, | 3348 * If the used [http.Client] completes with an error when making a REST call, |
| 3356 * this method will complete with the same error. | 3349 * this method will complete with the same error. |
| 3357 */ | 3350 */ |
| 3358 async.Future<InstanceTemplate> get(core.String project, core.String instanceTe
mplate) { | 3351 async.Future<InstanceTemplate> get(core.String project, core.String instanceTe
mplate) { |
| 3359 var _url = null; | 3352 var _url = null; |
| 3360 var _queryParams = new core.Map(); | 3353 var _queryParams = new core.Map(); |
| 3361 var _uploadMedia = null; | 3354 var _uploadMedia = null; |
| 3362 var _uploadOptions = null; | 3355 var _uploadOptions = null; |
| 3363 var _downloadOptions = common.DownloadOptions.Metadata; | 3356 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3364 var _body = null; | 3357 var _body = null; |
| 3365 | 3358 |
| 3366 if (project == null) { | 3359 if (project == null) { |
| 3367 throw new core.ArgumentError("Parameter project is required."); | 3360 throw new core.ArgumentError("Parameter project is required."); |
| 3368 } | 3361 } |
| 3369 if (instanceTemplate == null) { | 3362 if (instanceTemplate == null) { |
| 3370 throw new core.ArgumentError("Parameter instanceTemplate is required."); | 3363 throw new core.ArgumentError("Parameter instanceTemplate is required."); |
| 3371 } | 3364 } |
| 3372 | 3365 |
| 3373 | 3366 |
| 3374 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate'); | 3367 _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplate
s/' + commons.Escaper.ecapeVariable('$instanceTemplate'); |
| 3375 | 3368 |
| 3376 var _response = _requester.request(_url, | 3369 var _response = _requester.request(_url, |
| 3377 "GET", | 3370 "GET", |
| 3378 body: _body, | 3371 body: _body, |
| 3379 queryParams: _queryParams, | 3372 queryParams: _queryParams, |
| 3380 uploadOptions: _uploadOptions, | 3373 uploadOptions: _uploadOptions, |
| 3381 uploadMedia: _uploadMedia, | 3374 uploadMedia: _uploadMedia, |
| 3382 downloadOptions: _downloadOptions); | 3375 downloadOptions: _downloadOptions); |
| 3383 return _response.then((data) => new InstanceTemplate.fromJson(data)); | 3376 return _response.then((data) => new InstanceTemplate.fromJson(data)); |
| 3384 } | 3377 } |
| 3385 | 3378 |
| 3386 /** | 3379 /** |
| 3387 * Creates an instance template resource in the specified project using the | 3380 * Creates an instance template resource in the specified project using the |
| 3388 * data included in the request. | 3381 * data included in the request. |
| 3389 * | 3382 * |
| 3390 * [request] - The metadata request object. | 3383 * [request] - The metadata request object. |
| 3391 * | 3384 * |
| 3392 * Request parameters: | 3385 * Request parameters: |
| 3393 * | 3386 * |
| 3394 * [project] - Name of the project scoping this request. | 3387 * [project] - Name of the project scoping this request. |
| 3395 * Value must have pattern | 3388 * Value must have pattern |
| 3396 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3389 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3397 * | 3390 * |
| 3398 * Completes with a [Operation]. | 3391 * Completes with a [Operation]. |
| 3399 * | 3392 * |
| 3400 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3393 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3401 * error. | 3394 * error. |
| 3402 * | 3395 * |
| 3403 * If the used [http.Client] completes with an error when making a REST call, | 3396 * If the used [http.Client] completes with an error when making a REST call, |
| 3404 * this method will complete with the same error. | 3397 * this method will complete with the same error. |
| 3405 */ | 3398 */ |
| 3406 async.Future<Operation> insert(InstanceTemplate request, core.String project)
{ | 3399 async.Future<Operation> insert(InstanceTemplate request, core.String project)
{ |
| 3407 var _url = null; | 3400 var _url = null; |
| 3408 var _queryParams = new core.Map(); | 3401 var _queryParams = new core.Map(); |
| 3409 var _uploadMedia = null; | 3402 var _uploadMedia = null; |
| 3410 var _uploadOptions = null; | 3403 var _uploadOptions = null; |
| 3411 var _downloadOptions = common.DownloadOptions.Metadata; | 3404 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3412 var _body = null; | 3405 var _body = null; |
| 3413 | 3406 |
| 3414 if (request != null) { | 3407 if (request != null) { |
| 3415 _body = convert.JSON.encode((request).toJson()); | 3408 _body = convert.JSON.encode((request).toJson()); |
| 3416 } | 3409 } |
| 3417 if (project == null) { | 3410 if (project == null) { |
| 3418 throw new core.ArgumentError("Parameter project is required."); | 3411 throw new core.ArgumentError("Parameter project is required."); |
| 3419 } | 3412 } |
| 3420 | 3413 |
| 3421 | 3414 |
| 3422 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates'; | 3415 _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplate
s'; |
| 3423 | 3416 |
| 3424 var _response = _requester.request(_url, | 3417 var _response = _requester.request(_url, |
| 3425 "POST", | 3418 "POST", |
| 3426 body: _body, | 3419 body: _body, |
| 3427 queryParams: _queryParams, | 3420 queryParams: _queryParams, |
| 3428 uploadOptions: _uploadOptions, | 3421 uploadOptions: _uploadOptions, |
| 3429 uploadMedia: _uploadMedia, | 3422 uploadMedia: _uploadMedia, |
| 3430 downloadOptions: _downloadOptions); | 3423 downloadOptions: _downloadOptions); |
| 3431 return _response.then((data) => new Operation.fromJson(data)); | 3424 return _response.then((data) => new Operation.fromJson(data)); |
| 3432 } | 3425 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3445 * | 3438 * |
| 3446 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 3439 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 3447 * value is 500 and default value is 500. | 3440 * value is 500 and default value is 500. |
| 3448 * Value must be between "0" and "500". | 3441 * Value must be between "0" and "500". |
| 3449 * | 3442 * |
| 3450 * [pageToken] - Optional. Tag returned by a previous list request truncated | 3443 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 3451 * by maxResults. Used to continue a previous list request. | 3444 * by maxResults. Used to continue a previous list request. |
| 3452 * | 3445 * |
| 3453 * Completes with a [InstanceTemplateList]. | 3446 * Completes with a [InstanceTemplateList]. |
| 3454 * | 3447 * |
| 3455 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3448 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3456 * error. | 3449 * error. |
| 3457 * | 3450 * |
| 3458 * If the used [http.Client] completes with an error when making a REST call, | 3451 * If the used [http.Client] completes with an error when making a REST call, |
| 3459 * this method will complete with the same error. | 3452 * this method will complete with the same error. |
| 3460 */ | 3453 */ |
| 3461 async.Future<InstanceTemplateList> list(core.String project, {core.String filt
er, core.int maxResults, core.String pageToken}) { | 3454 async.Future<InstanceTemplateList> list(core.String project, {core.String filt
er, core.int maxResults, core.String pageToken}) { |
| 3462 var _url = null; | 3455 var _url = null; |
| 3463 var _queryParams = new core.Map(); | 3456 var _queryParams = new core.Map(); |
| 3464 var _uploadMedia = null; | 3457 var _uploadMedia = null; |
| 3465 var _uploadOptions = null; | 3458 var _uploadOptions = null; |
| 3466 var _downloadOptions = common.DownloadOptions.Metadata; | 3459 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3467 var _body = null; | 3460 var _body = null; |
| 3468 | 3461 |
| 3469 if (project == null) { | 3462 if (project == null) { |
| 3470 throw new core.ArgumentError("Parameter project is required."); | 3463 throw new core.ArgumentError("Parameter project is required."); |
| 3471 } | 3464 } |
| 3472 if (filter != null) { | 3465 if (filter != null) { |
| 3473 _queryParams["filter"] = [filter]; | 3466 _queryParams["filter"] = [filter]; |
| 3474 } | 3467 } |
| 3475 if (maxResults != null) { | 3468 if (maxResults != null) { |
| 3476 _queryParams["maxResults"] = ["${maxResults}"]; | 3469 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3477 } | 3470 } |
| 3478 if (pageToken != null) { | 3471 if (pageToken != null) { |
| 3479 _queryParams["pageToken"] = [pageToken]; | 3472 _queryParams["pageToken"] = [pageToken]; |
| 3480 } | 3473 } |
| 3481 | 3474 |
| 3482 | 3475 |
| 3483 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates'; | 3476 _url = commons.Escaper.ecapeVariable('$project') + '/global/instanceTemplate
s'; |
| 3484 | 3477 |
| 3485 var _response = _requester.request(_url, | 3478 var _response = _requester.request(_url, |
| 3486 "GET", | 3479 "GET", |
| 3487 body: _body, | 3480 body: _body, |
| 3488 queryParams: _queryParams, | 3481 queryParams: _queryParams, |
| 3489 uploadOptions: _uploadOptions, | 3482 uploadOptions: _uploadOptions, |
| 3490 uploadMedia: _uploadMedia, | 3483 uploadMedia: _uploadMedia, |
| 3491 downloadOptions: _downloadOptions); | 3484 downloadOptions: _downloadOptions); |
| 3492 return _response.then((data) => new InstanceTemplateList.fromJson(data)); | 3485 return _response.then((data) => new InstanceTemplateList.fromJson(data)); |
| 3493 } | 3486 } |
| 3494 | 3487 |
| 3495 } | 3488 } |
| 3496 | 3489 |
| 3497 | 3490 |
| 3498 /** Not documented yet. */ | |
| 3499 class InstancesResourceApi { | 3491 class InstancesResourceApi { |
| 3500 final common_internal.ApiRequester _requester; | 3492 final commons.ApiRequester _requester; |
| 3501 | 3493 |
| 3502 InstancesResourceApi(common_internal.ApiRequester client) : | 3494 InstancesResourceApi(commons.ApiRequester client) : |
| 3503 _requester = client; | 3495 _requester = client; |
| 3504 | 3496 |
| 3505 /** | 3497 /** |
| 3506 * Adds an access config to an instance's network interface. | 3498 * Adds an access config to an instance's network interface. |
| 3507 * | 3499 * |
| 3508 * [request] - The metadata request object. | 3500 * [request] - The metadata request object. |
| 3509 * | 3501 * |
| 3510 * Request parameters: | 3502 * Request parameters: |
| 3511 * | 3503 * |
| 3512 * [project] - Project name. | 3504 * [project] - Project ID for this request. |
| 3513 * Value must have pattern | 3505 * Value must have pattern |
| 3514 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3506 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3515 * | 3507 * |
| 3516 * [zone] - Name of the zone scoping this request. | 3508 * [zone] - The name of the zone for this request. |
| 3517 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3509 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3518 * | 3510 * |
| 3519 * [instance] - Instance name. | 3511 * [instance] - The instance name for this request. |
| 3520 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3512 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3521 * | 3513 * |
| 3522 * [networkInterface] - Network interface name. | 3514 * [networkInterface] - The name of the network interface to add to this |
| 3515 * instance. |
| 3523 * | 3516 * |
| 3524 * Completes with a [Operation]. | 3517 * Completes with a [Operation]. |
| 3525 * | 3518 * |
| 3526 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3527 * error. | 3520 * error. |
| 3528 * | 3521 * |
| 3529 * If the used [http.Client] completes with an error when making a REST call, | 3522 * If the used [http.Client] completes with an error when making a REST call, |
| 3530 * this method will complete with the same error. | 3523 * this method will complete with the same error. |
| 3531 */ | 3524 */ |
| 3532 async.Future<Operation> addAccessConfig(AccessConfig request, core.String proj
ect, core.String zone, core.String instance, core.String networkInterface) { | 3525 async.Future<Operation> addAccessConfig(AccessConfig request, core.String proj
ect, core.String zone, core.String instance, core.String networkInterface) { |
| 3533 var _url = null; | 3526 var _url = null; |
| 3534 var _queryParams = new core.Map(); | 3527 var _queryParams = new core.Map(); |
| 3535 var _uploadMedia = null; | 3528 var _uploadMedia = null; |
| 3536 var _uploadOptions = null; | 3529 var _uploadOptions = null; |
| 3537 var _downloadOptions = common.DownloadOptions.Metadata; | 3530 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3538 var _body = null; | 3531 var _body = null; |
| 3539 | 3532 |
| 3540 if (request != null) { | 3533 if (request != null) { |
| 3541 _body = convert.JSON.encode((request).toJson()); | 3534 _body = convert.JSON.encode((request).toJson()); |
| 3542 } | 3535 } |
| 3543 if (project == null) { | 3536 if (project == null) { |
| 3544 throw new core.ArgumentError("Parameter project is required."); | 3537 throw new core.ArgumentError("Parameter project is required."); |
| 3545 } | 3538 } |
| 3546 if (zone == null) { | 3539 if (zone == null) { |
| 3547 throw new core.ArgumentError("Parameter zone is required."); | 3540 throw new core.ArgumentError("Parameter zone is required."); |
| 3548 } | 3541 } |
| 3549 if (instance == null) { | 3542 if (instance == null) { |
| 3550 throw new core.ArgumentError("Parameter instance is required."); | 3543 throw new core.ArgumentError("Parameter instance is required."); |
| 3551 } | 3544 } |
| 3552 if (networkInterface == null) { | 3545 if (networkInterface == null) { |
| 3553 throw new core.ArgumentError("Parameter networkInterface is required."); | 3546 throw new core.ArgumentError("Parameter networkInterface is required."); |
| 3554 } | 3547 } |
| 3555 _queryParams["networkInterface"] = [networkInterface]; | 3548 _queryParams["networkInterface"] = [networkInterface]; |
| 3556 | 3549 |
| 3557 | 3550 |
| 3558 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/addAccessConfig'; | 3551 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/addAccessConfig'; |
| 3559 | 3552 |
| 3560 var _response = _requester.request(_url, | 3553 var _response = _requester.request(_url, |
| 3561 "POST", | 3554 "POST", |
| 3562 body: _body, | 3555 body: _body, |
| 3563 queryParams: _queryParams, | 3556 queryParams: _queryParams, |
| 3564 uploadOptions: _uploadOptions, | 3557 uploadOptions: _uploadOptions, |
| 3565 uploadMedia: _uploadMedia, | 3558 uploadMedia: _uploadMedia, |
| 3566 downloadOptions: _downloadOptions); | 3559 downloadOptions: _downloadOptions); |
| 3567 return _response.then((data) => new Operation.fromJson(data)); | 3560 return _response.then((data) => new Operation.fromJson(data)); |
| 3568 } | 3561 } |
| 3569 | 3562 |
| 3570 /** | 3563 /** |
| 3571 * Not documented yet. | |
| 3572 * | |
| 3573 * Request parameters: | 3564 * Request parameters: |
| 3574 * | 3565 * |
| 3575 * [project] - Name of the project scoping this request. | 3566 * [project] - Project ID for this request. |
| 3576 * Value must have pattern | 3567 * Value must have pattern |
| 3577 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3568 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3578 * | 3569 * |
| 3579 * [filter] - Optional. Filter expression for filtering listed resources. | 3570 * [filter] - Optional. Filter expression for filtering listed resources. |
| 3580 * | 3571 * |
| 3581 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 3572 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 3582 * value is 500 and default value is 500. | 3573 * value is 500 and default value is 500. |
| 3583 * Value must be between "0" and "500". | 3574 * Value must be between "0" and "500". |
| 3584 * | 3575 * |
| 3585 * [pageToken] - Optional. Tag returned by a previous list request truncated | 3576 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 3586 * by maxResults. Used to continue a previous list request. | 3577 * by maxResults. Used to continue a previous list request. |
| 3587 * | 3578 * |
| 3588 * Completes with a [InstanceAggregatedList]. | 3579 * Completes with a [InstanceAggregatedList]. |
| 3589 * | 3580 * |
| 3590 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3591 * error. | 3582 * error. |
| 3592 * | 3583 * |
| 3593 * If the used [http.Client] completes with an error when making a REST call, | 3584 * If the used [http.Client] completes with an error when making a REST call, |
| 3594 * this method will complete with the same error. | 3585 * this method will complete with the same error. |
| 3595 */ | 3586 */ |
| 3596 async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core
.String filter, core.int maxResults, core.String pageToken}) { | 3587 async.Future<InstanceAggregatedList> aggregatedList(core.String project, {core
.String filter, core.int maxResults, core.String pageToken}) { |
| 3597 var _url = null; | 3588 var _url = null; |
| 3598 var _queryParams = new core.Map(); | 3589 var _queryParams = new core.Map(); |
| 3599 var _uploadMedia = null; | 3590 var _uploadMedia = null; |
| 3600 var _uploadOptions = null; | 3591 var _uploadOptions = null; |
| 3601 var _downloadOptions = common.DownloadOptions.Metadata; | 3592 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3602 var _body = null; | 3593 var _body = null; |
| 3603 | 3594 |
| 3604 if (project == null) { | 3595 if (project == null) { |
| 3605 throw new core.ArgumentError("Parameter project is required."); | 3596 throw new core.ArgumentError("Parameter project is required."); |
| 3606 } | 3597 } |
| 3607 if (filter != null) { | 3598 if (filter != null) { |
| 3608 _queryParams["filter"] = [filter]; | 3599 _queryParams["filter"] = [filter]; |
| 3609 } | 3600 } |
| 3610 if (maxResults != null) { | 3601 if (maxResults != null) { |
| 3611 _queryParams["maxResults"] = ["${maxResults}"]; | 3602 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3612 } | 3603 } |
| 3613 if (pageToken != null) { | 3604 if (pageToken != null) { |
| 3614 _queryParams["pageToken"] = [pageToken]; | 3605 _queryParams["pageToken"] = [pageToken]; |
| 3615 } | 3606 } |
| 3616 | 3607 |
| 3617 | 3608 |
| 3618 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/inst
ances'; | 3609 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/instances'; |
| 3619 | 3610 |
| 3620 var _response = _requester.request(_url, | 3611 var _response = _requester.request(_url, |
| 3621 "GET", | 3612 "GET", |
| 3622 body: _body, | 3613 body: _body, |
| 3623 queryParams: _queryParams, | 3614 queryParams: _queryParams, |
| 3624 uploadOptions: _uploadOptions, | 3615 uploadOptions: _uploadOptions, |
| 3625 uploadMedia: _uploadMedia, | 3616 uploadMedia: _uploadMedia, |
| 3626 downloadOptions: _downloadOptions); | 3617 downloadOptions: _downloadOptions); |
| 3627 return _response.then((data) => new InstanceAggregatedList.fromJson(data)); | 3618 return _response.then((data) => new InstanceAggregatedList.fromJson(data)); |
| 3628 } | 3619 } |
| 3629 | 3620 |
| 3630 /** | 3621 /** |
| 3631 * Attaches a disk resource to an instance. | 3622 * Attaches a Disk resource to an instance. |
| 3632 * | 3623 * |
| 3633 * [request] - The metadata request object. | 3624 * [request] - The metadata request object. |
| 3634 * | 3625 * |
| 3635 * Request parameters: | 3626 * Request parameters: |
| 3636 * | 3627 * |
| 3637 * [project] - Project name. | 3628 * [project] - Project ID for this request. |
| 3638 * Value must have pattern | 3629 * Value must have pattern |
| 3639 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3630 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3640 * | 3631 * |
| 3641 * [zone] - Name of the zone scoping this request. | 3632 * [zone] - The name of the zone for this request. |
| 3642 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3633 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3643 * | 3634 * |
| 3644 * [instance] - Instance name. | 3635 * [instance] - Instance name. |
| 3645 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3636 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3646 * | 3637 * |
| 3647 * Completes with a [Operation]. | 3638 * Completes with a [Operation]. |
| 3648 * | 3639 * |
| 3649 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3640 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3650 * error. | 3641 * error. |
| 3651 * | 3642 * |
| 3652 * If the used [http.Client] completes with an error when making a REST call, | 3643 * If the used [http.Client] completes with an error when making a REST call, |
| 3653 * this method will complete with the same error. | 3644 * this method will complete with the same error. |
| 3654 */ | 3645 */ |
| 3655 async.Future<Operation> attachDisk(AttachedDisk request, core.String project,
core.String zone, core.String instance) { | 3646 async.Future<Operation> attachDisk(AttachedDisk request, core.String project,
core.String zone, core.String instance) { |
| 3656 var _url = null; | 3647 var _url = null; |
| 3657 var _queryParams = new core.Map(); | 3648 var _queryParams = new core.Map(); |
| 3658 var _uploadMedia = null; | 3649 var _uploadMedia = null; |
| 3659 var _uploadOptions = null; | 3650 var _uploadOptions = null; |
| 3660 var _downloadOptions = common.DownloadOptions.Metadata; | 3651 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3661 var _body = null; | 3652 var _body = null; |
| 3662 | 3653 |
| 3663 if (request != null) { | 3654 if (request != null) { |
| 3664 _body = convert.JSON.encode((request).toJson()); | 3655 _body = convert.JSON.encode((request).toJson()); |
| 3665 } | 3656 } |
| 3666 if (project == null) { | 3657 if (project == null) { |
| 3667 throw new core.ArgumentError("Parameter project is required."); | 3658 throw new core.ArgumentError("Parameter project is required."); |
| 3668 } | 3659 } |
| 3669 if (zone == null) { | 3660 if (zone == null) { |
| 3670 throw new core.ArgumentError("Parameter zone is required."); | 3661 throw new core.ArgumentError("Parameter zone is required."); |
| 3671 } | 3662 } |
| 3672 if (instance == null) { | 3663 if (instance == null) { |
| 3673 throw new core.ArgumentError("Parameter instance is required."); | 3664 throw new core.ArgumentError("Parameter instance is required."); |
| 3674 } | 3665 } |
| 3675 | 3666 |
| 3676 | 3667 |
| 3677 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/attachDisk'; | 3668 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/attachDisk'; |
| 3678 | 3669 |
| 3679 var _response = _requester.request(_url, | 3670 var _response = _requester.request(_url, |
| 3680 "POST", | 3671 "POST", |
| 3681 body: _body, | 3672 body: _body, |
| 3682 queryParams: _queryParams, | 3673 queryParams: _queryParams, |
| 3683 uploadOptions: _uploadOptions, | 3674 uploadOptions: _uploadOptions, |
| 3684 uploadMedia: _uploadMedia, | 3675 uploadMedia: _uploadMedia, |
| 3685 downloadOptions: _downloadOptions); | 3676 downloadOptions: _downloadOptions); |
| 3686 return _response.then((data) => new Operation.fromJson(data)); | 3677 return _response.then((data) => new Operation.fromJson(data)); |
| 3687 } | 3678 } |
| 3688 | 3679 |
| 3689 /** | 3680 /** |
| 3690 * Deletes the specified instance resource. | 3681 * Deletes the specified Instance resource. For more information, see Shutting |
| 3682 * down an instance. |
| 3691 * | 3683 * |
| 3692 * Request parameters: | 3684 * Request parameters: |
| 3693 * | 3685 * |
| 3694 * [project] - Name of the project scoping this request. | 3686 * [project] - Project ID for this request. |
| 3695 * Value must have pattern | 3687 * Value must have pattern |
| 3696 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3688 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3697 * | 3689 * |
| 3698 * [zone] - Name of the zone scoping this request. | 3690 * [zone] - The name of the zone for this request. |
| 3699 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3691 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3700 * | 3692 * |
| 3701 * [instance] - Name of the instance resource to delete. | 3693 * [instance] - Name of the instance resource to delete. |
| 3702 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3694 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3703 * | 3695 * |
| 3704 * Completes with a [Operation]. | 3696 * Completes with a [Operation]. |
| 3705 * | 3697 * |
| 3706 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3707 * error. | 3699 * error. |
| 3708 * | 3700 * |
| 3709 * If the used [http.Client] completes with an error when making a REST call, | 3701 * If the used [http.Client] completes with an error when making a REST call, |
| 3710 * this method will complete with the same error. | 3702 * this method will complete with the same error. |
| 3711 */ | 3703 */ |
| 3712 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing instance) { | 3704 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing instance) { |
| 3713 var _url = null; | 3705 var _url = null; |
| 3714 var _queryParams = new core.Map(); | 3706 var _queryParams = new core.Map(); |
| 3715 var _uploadMedia = null; | 3707 var _uploadMedia = null; |
| 3716 var _uploadOptions = null; | 3708 var _uploadOptions = null; |
| 3717 var _downloadOptions = common.DownloadOptions.Metadata; | 3709 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3718 var _body = null; | 3710 var _body = null; |
| 3719 | 3711 |
| 3720 if (project == null) { | 3712 if (project == null) { |
| 3721 throw new core.ArgumentError("Parameter project is required."); | 3713 throw new core.ArgumentError("Parameter project is required."); |
| 3722 } | 3714 } |
| 3723 if (zone == null) { | 3715 if (zone == null) { |
| 3724 throw new core.ArgumentError("Parameter zone is required."); | 3716 throw new core.ArgumentError("Parameter zone is required."); |
| 3725 } | 3717 } |
| 3726 if (instance == null) { | 3718 if (instance == null) { |
| 3727 throw new core.ArgumentError("Parameter instance is required."); | 3719 throw new core.ArgumentError("Parameter instance is required."); |
| 3728 } | 3720 } |
| 3729 | 3721 |
| 3730 | 3722 |
| 3731 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance'); | 3723 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance'); |
| 3732 | 3724 |
| 3733 var _response = _requester.request(_url, | 3725 var _response = _requester.request(_url, |
| 3734 "DELETE", | 3726 "DELETE", |
| 3735 body: _body, | 3727 body: _body, |
| 3736 queryParams: _queryParams, | 3728 queryParams: _queryParams, |
| 3737 uploadOptions: _uploadOptions, | 3729 uploadOptions: _uploadOptions, |
| 3738 uploadMedia: _uploadMedia, | 3730 uploadMedia: _uploadMedia, |
| 3739 downloadOptions: _downloadOptions); | 3731 downloadOptions: _downloadOptions); |
| 3740 return _response.then((data) => new Operation.fromJson(data)); | 3732 return _response.then((data) => new Operation.fromJson(data)); |
| 3741 } | 3733 } |
| 3742 | 3734 |
| 3743 /** | 3735 /** |
| 3744 * Deletes an access config from an instance's network interface. | 3736 * Deletes an access config from an instance's network interface. |
| 3745 * | 3737 * |
| 3746 * Request parameters: | 3738 * Request parameters: |
| 3747 * | 3739 * |
| 3748 * [project] - Project name. | 3740 * [project] - Project ID for this request. |
| 3749 * Value must have pattern | 3741 * Value must have pattern |
| 3750 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3742 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3751 * | 3743 * |
| 3752 * [zone] - Name of the zone scoping this request. | 3744 * [zone] - The name of the zone for this request. |
| 3753 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3745 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3754 * | 3746 * |
| 3755 * [instance] - Instance name. | 3747 * [instance] - The instance name for this request. |
| 3756 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3748 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3757 * | 3749 * |
| 3758 * [accessConfig] - Access config name. | 3750 * [accessConfig] - The name of the access config to delete. |
| 3759 * | 3751 * |
| 3760 * [networkInterface] - Network interface name. | 3752 * [networkInterface] - The name of the network interface. |
| 3761 * | 3753 * |
| 3762 * Completes with a [Operation]. | 3754 * Completes with a [Operation]. |
| 3763 * | 3755 * |
| 3764 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3765 * error. | 3757 * error. |
| 3766 * | 3758 * |
| 3767 * If the used [http.Client] completes with an error when making a REST call, | 3759 * If the used [http.Client] completes with an error when making a REST call, |
| 3768 * this method will complete with the same error. | 3760 * this method will complete with the same error. |
| 3769 */ | 3761 */ |
| 3770 async.Future<Operation> deleteAccessConfig(core.String project, core.String zo
ne, core.String instance, core.String accessConfig, core.String networkInterface
) { | 3762 async.Future<Operation> deleteAccessConfig(core.String project, core.String zo
ne, core.String instance, core.String accessConfig, core.String networkInterface
) { |
| 3771 var _url = null; | 3763 var _url = null; |
| 3772 var _queryParams = new core.Map(); | 3764 var _queryParams = new core.Map(); |
| 3773 var _uploadMedia = null; | 3765 var _uploadMedia = null; |
| 3774 var _uploadOptions = null; | 3766 var _uploadOptions = null; |
| 3775 var _downloadOptions = common.DownloadOptions.Metadata; | 3767 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3776 var _body = null; | 3768 var _body = null; |
| 3777 | 3769 |
| 3778 if (project == null) { | 3770 if (project == null) { |
| 3779 throw new core.ArgumentError("Parameter project is required."); | 3771 throw new core.ArgumentError("Parameter project is required."); |
| 3780 } | 3772 } |
| 3781 if (zone == null) { | 3773 if (zone == null) { |
| 3782 throw new core.ArgumentError("Parameter zone is required."); | 3774 throw new core.ArgumentError("Parameter zone is required."); |
| 3783 } | 3775 } |
| 3784 if (instance == null) { | 3776 if (instance == null) { |
| 3785 throw new core.ArgumentError("Parameter instance is required."); | 3777 throw new core.ArgumentError("Parameter instance is required."); |
| 3786 } | 3778 } |
| 3787 if (accessConfig == null) { | 3779 if (accessConfig == null) { |
| 3788 throw new core.ArgumentError("Parameter accessConfig is required."); | 3780 throw new core.ArgumentError("Parameter accessConfig is required."); |
| 3789 } | 3781 } |
| 3790 _queryParams["accessConfig"] = [accessConfig]; | 3782 _queryParams["accessConfig"] = [accessConfig]; |
| 3791 if (networkInterface == null) { | 3783 if (networkInterface == null) { |
| 3792 throw new core.ArgumentError("Parameter networkInterface is required."); | 3784 throw new core.ArgumentError("Parameter networkInterface is required."); |
| 3793 } | 3785 } |
| 3794 _queryParams["networkInterface"] = [networkInterface]; | 3786 _queryParams["networkInterface"] = [networkInterface]; |
| 3795 | 3787 |
| 3796 | 3788 |
| 3797 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/deleteAccessConfig'; | 3789 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/deleteAccessConfig'; |
| 3798 | 3790 |
| 3799 var _response = _requester.request(_url, | 3791 var _response = _requester.request(_url, |
| 3800 "POST", | 3792 "POST", |
| 3801 body: _body, | 3793 body: _body, |
| 3802 queryParams: _queryParams, | 3794 queryParams: _queryParams, |
| 3803 uploadOptions: _uploadOptions, | 3795 uploadOptions: _uploadOptions, |
| 3804 uploadMedia: _uploadMedia, | 3796 uploadMedia: _uploadMedia, |
| 3805 downloadOptions: _downloadOptions); | 3797 downloadOptions: _downloadOptions); |
| 3806 return _response.then((data) => new Operation.fromJson(data)); | 3798 return _response.then((data) => new Operation.fromJson(data)); |
| 3807 } | 3799 } |
| 3808 | 3800 |
| 3809 /** | 3801 /** |
| 3810 * Detaches a disk from an instance. | 3802 * Detaches a disk from an instance. |
| 3811 * | 3803 * |
| 3812 * Request parameters: | 3804 * Request parameters: |
| 3813 * | 3805 * |
| 3814 * [project] - Project name. | 3806 * [project] - Project ID for this request. |
| 3815 * Value must have pattern | 3807 * Value must have pattern |
| 3816 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3808 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3817 * | 3809 * |
| 3818 * [zone] - Name of the zone scoping this request. | 3810 * [zone] - The name of the zone for this request. |
| 3819 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3811 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3820 * | 3812 * |
| 3821 * [instance] - Instance name. | 3813 * [instance] - Instance name. |
| 3822 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3814 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3823 * | 3815 * |
| 3824 * [deviceName] - Disk device name to detach. | 3816 * [deviceName] - Disk device name to detach. |
| 3825 * Value must have pattern "\w[\w.-]{0,254}". | 3817 * Value must have pattern "\w[\w.-]{0,254}". |
| 3826 * | 3818 * |
| 3827 * Completes with a [Operation]. | 3819 * Completes with a [Operation]. |
| 3828 * | 3820 * |
| 3829 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3821 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3830 * error. | 3822 * error. |
| 3831 * | 3823 * |
| 3832 * If the used [http.Client] completes with an error when making a REST call, | 3824 * If the used [http.Client] completes with an error when making a REST call, |
| 3833 * this method will complete with the same error. | 3825 * this method will complete with the same error. |
| 3834 */ | 3826 */ |
| 3835 async.Future<Operation> detachDisk(core.String project, core.String zone, core
.String instance, core.String deviceName) { | 3827 async.Future<Operation> detachDisk(core.String project, core.String zone, core
.String instance, core.String deviceName) { |
| 3836 var _url = null; | 3828 var _url = null; |
| 3837 var _queryParams = new core.Map(); | 3829 var _queryParams = new core.Map(); |
| 3838 var _uploadMedia = null; | 3830 var _uploadMedia = null; |
| 3839 var _uploadOptions = null; | 3831 var _uploadOptions = null; |
| 3840 var _downloadOptions = common.DownloadOptions.Metadata; | 3832 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3841 var _body = null; | 3833 var _body = null; |
| 3842 | 3834 |
| 3843 if (project == null) { | 3835 if (project == null) { |
| 3844 throw new core.ArgumentError("Parameter project is required."); | 3836 throw new core.ArgumentError("Parameter project is required."); |
| 3845 } | 3837 } |
| 3846 if (zone == null) { | 3838 if (zone == null) { |
| 3847 throw new core.ArgumentError("Parameter zone is required."); | 3839 throw new core.ArgumentError("Parameter zone is required."); |
| 3848 } | 3840 } |
| 3849 if (instance == null) { | 3841 if (instance == null) { |
| 3850 throw new core.ArgumentError("Parameter instance is required."); | 3842 throw new core.ArgumentError("Parameter instance is required."); |
| 3851 } | 3843 } |
| 3852 if (deviceName == null) { | 3844 if (deviceName == null) { |
| 3853 throw new core.ArgumentError("Parameter deviceName is required."); | 3845 throw new core.ArgumentError("Parameter deviceName is required."); |
| 3854 } | 3846 } |
| 3855 _queryParams["deviceName"] = [deviceName]; | 3847 _queryParams["deviceName"] = [deviceName]; |
| 3856 | 3848 |
| 3857 | 3849 |
| 3858 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/detachDisk'; | 3850 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/detachDisk'; |
| 3859 | 3851 |
| 3860 var _response = _requester.request(_url, | 3852 var _response = _requester.request(_url, |
| 3861 "POST", | 3853 "POST", |
| 3862 body: _body, | 3854 body: _body, |
| 3863 queryParams: _queryParams, | 3855 queryParams: _queryParams, |
| 3864 uploadOptions: _uploadOptions, | 3856 uploadOptions: _uploadOptions, |
| 3865 uploadMedia: _uploadMedia, | 3857 uploadMedia: _uploadMedia, |
| 3866 downloadOptions: _downloadOptions); | 3858 downloadOptions: _downloadOptions); |
| 3867 return _response.then((data) => new Operation.fromJson(data)); | 3859 return _response.then((data) => new Operation.fromJson(data)); |
| 3868 } | 3860 } |
| 3869 | 3861 |
| 3870 /** | 3862 /** |
| 3871 * Returns the specified instance resource. | 3863 * Returns the specified instance resource. |
| 3872 * | 3864 * |
| 3873 * Request parameters: | 3865 * Request parameters: |
| 3874 * | 3866 * |
| 3875 * [project] - Name of the project scoping this request. | 3867 * [project] - Project ID for this request. |
| 3876 * Value must have pattern | 3868 * Value must have pattern |
| 3877 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3869 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3878 * | 3870 * |
| 3879 * [zone] - Name of the zone scoping this request. | 3871 * [zone] - The name of the The name of the zone for this request.. |
| 3880 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3872 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3881 * | 3873 * |
| 3882 * [instance] - Name of the instance resource to return. | 3874 * [instance] - Name of the instance resource to return. |
| 3883 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3875 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3884 * | 3876 * |
| 3885 * Completes with a [Instance]. | 3877 * Completes with a [Instance]. |
| 3886 * | 3878 * |
| 3887 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3879 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3888 * error. | 3880 * error. |
| 3889 * | 3881 * |
| 3890 * If the used [http.Client] completes with an error when making a REST call, | 3882 * If the used [http.Client] completes with an error when making a REST call, |
| 3891 * this method will complete with the same error. | 3883 * this method will complete with the same error. |
| 3892 */ | 3884 */ |
| 3893 async.Future<Instance> get(core.String project, core.String zone, core.String
instance) { | 3885 async.Future<Instance> get(core.String project, core.String zone, core.String
instance) { |
| 3894 var _url = null; | 3886 var _url = null; |
| 3895 var _queryParams = new core.Map(); | 3887 var _queryParams = new core.Map(); |
| 3896 var _uploadMedia = null; | 3888 var _uploadMedia = null; |
| 3897 var _uploadOptions = null; | 3889 var _uploadOptions = null; |
| 3898 var _downloadOptions = common.DownloadOptions.Metadata; | 3890 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3899 var _body = null; | 3891 var _body = null; |
| 3900 | 3892 |
| 3901 if (project == null) { | 3893 if (project == null) { |
| 3902 throw new core.ArgumentError("Parameter project is required."); | 3894 throw new core.ArgumentError("Parameter project is required."); |
| 3903 } | 3895 } |
| 3904 if (zone == null) { | 3896 if (zone == null) { |
| 3905 throw new core.ArgumentError("Parameter zone is required."); | 3897 throw new core.ArgumentError("Parameter zone is required."); |
| 3906 } | 3898 } |
| 3907 if (instance == null) { | 3899 if (instance == null) { |
| 3908 throw new core.ArgumentError("Parameter instance is required."); | 3900 throw new core.ArgumentError("Parameter instance is required."); |
| 3909 } | 3901 } |
| 3910 | 3902 |
| 3911 | 3903 |
| 3912 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance'); | 3904 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance'); |
| 3913 | 3905 |
| 3914 var _response = _requester.request(_url, | 3906 var _response = _requester.request(_url, |
| 3915 "GET", | 3907 "GET", |
| 3916 body: _body, | 3908 body: _body, |
| 3917 queryParams: _queryParams, | 3909 queryParams: _queryParams, |
| 3918 uploadOptions: _uploadOptions, | 3910 uploadOptions: _uploadOptions, |
| 3919 uploadMedia: _uploadMedia, | 3911 uploadMedia: _uploadMedia, |
| 3920 downloadOptions: _downloadOptions); | 3912 downloadOptions: _downloadOptions); |
| 3921 return _response.then((data) => new Instance.fromJson(data)); | 3913 return _response.then((data) => new Instance.fromJson(data)); |
| 3922 } | 3914 } |
| 3923 | 3915 |
| 3924 /** | 3916 /** |
| 3925 * Returns the specified instance's serial port output. | 3917 * Returns the specified instance's serial port output. |
| 3926 * | 3918 * |
| 3927 * Request parameters: | 3919 * Request parameters: |
| 3928 * | 3920 * |
| 3929 * [project] - Name of the project scoping this request. | 3921 * [project] - Project ID for this request. |
| 3930 * Value must have pattern | 3922 * Value must have pattern |
| 3931 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3923 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3932 * | 3924 * |
| 3933 * [zone] - Name of the zone scoping this request. | 3925 * [zone] - The name of the zone for this request. |
| 3934 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3926 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3935 * | 3927 * |
| 3936 * [instance] - Name of the instance scoping this request. | 3928 * [instance] - Name of the instance scoping this request. |
| 3937 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3929 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3938 * | 3930 * |
| 3939 * Completes with a [SerialPortOutput]. | 3931 * Completes with a [SerialPortOutput]. |
| 3940 * | 3932 * |
| 3941 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3933 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3942 * error. | 3934 * error. |
| 3943 * | 3935 * |
| 3944 * If the used [http.Client] completes with an error when making a REST call, | 3936 * If the used [http.Client] completes with an error when making a REST call, |
| 3945 * this method will complete with the same error. | 3937 * this method will complete with the same error. |
| 3946 */ | 3938 */ |
| 3947 async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.S
tring zone, core.String instance) { | 3939 async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.S
tring zone, core.String instance) { |
| 3948 var _url = null; | 3940 var _url = null; |
| 3949 var _queryParams = new core.Map(); | 3941 var _queryParams = new core.Map(); |
| 3950 var _uploadMedia = null; | 3942 var _uploadMedia = null; |
| 3951 var _uploadOptions = null; | 3943 var _uploadOptions = null; |
| 3952 var _downloadOptions = common.DownloadOptions.Metadata; | 3944 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3953 var _body = null; | 3945 var _body = null; |
| 3954 | 3946 |
| 3955 if (project == null) { | 3947 if (project == null) { |
| 3956 throw new core.ArgumentError("Parameter project is required."); | 3948 throw new core.ArgumentError("Parameter project is required."); |
| 3957 } | 3949 } |
| 3958 if (zone == null) { | 3950 if (zone == null) { |
| 3959 throw new core.ArgumentError("Parameter zone is required."); | 3951 throw new core.ArgumentError("Parameter zone is required."); |
| 3960 } | 3952 } |
| 3961 if (instance == null) { | 3953 if (instance == null) { |
| 3962 throw new core.ArgumentError("Parameter instance is required."); | 3954 throw new core.ArgumentError("Parameter instance is required."); |
| 3963 } | 3955 } |
| 3964 | 3956 |
| 3965 | 3957 |
| 3966 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/serialPort'; | 3958 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/serialPort'; |
| 3967 | 3959 |
| 3968 var _response = _requester.request(_url, | 3960 var _response = _requester.request(_url, |
| 3969 "GET", | 3961 "GET", |
| 3970 body: _body, | 3962 body: _body, |
| 3971 queryParams: _queryParams, | 3963 queryParams: _queryParams, |
| 3972 uploadOptions: _uploadOptions, | 3964 uploadOptions: _uploadOptions, |
| 3973 uploadMedia: _uploadMedia, | 3965 uploadMedia: _uploadMedia, |
| 3974 downloadOptions: _downloadOptions); | 3966 downloadOptions: _downloadOptions); |
| 3975 return _response.then((data) => new SerialPortOutput.fromJson(data)); | 3967 return _response.then((data) => new SerialPortOutput.fromJson(data)); |
| 3976 } | 3968 } |
| 3977 | 3969 |
| 3978 /** | 3970 /** |
| 3979 * Creates an instance resource in the specified project using the data | 3971 * Creates an instance resource in the specified project using the data |
| 3980 * included in the request. | 3972 * included in the request. |
| 3981 * | 3973 * |
| 3982 * [request] - The metadata request object. | 3974 * [request] - The metadata request object. |
| 3983 * | 3975 * |
| 3984 * Request parameters: | 3976 * Request parameters: |
| 3985 * | 3977 * |
| 3986 * [project] - Name of the project scoping this request. | 3978 * [project] - Project ID for this request. |
| 3987 * Value must have pattern | 3979 * Value must have pattern |
| 3988 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 3980 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3989 * | 3981 * |
| 3990 * [zone] - Name of the zone scoping this request. | 3982 * [zone] - The name of the zone for this request. |
| 3991 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 3983 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3992 * | 3984 * |
| 3993 * Completes with a [Operation]. | 3985 * Completes with a [Operation]. |
| 3994 * | 3986 * |
| 3995 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3987 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3996 * error. | 3988 * error. |
| 3997 * | 3989 * |
| 3998 * If the used [http.Client] completes with an error when making a REST call, | 3990 * If the used [http.Client] completes with an error when making a REST call, |
| 3999 * this method will complete with the same error. | 3991 * this method will complete with the same error. |
| 4000 */ | 3992 */ |
| 4001 async.Future<Operation> insert(Instance request, core.String project, core.Str
ing zone) { | 3993 async.Future<Operation> insert(Instance request, core.String project, core.Str
ing zone) { |
| 4002 var _url = null; | 3994 var _url = null; |
| 4003 var _queryParams = new core.Map(); | 3995 var _queryParams = new core.Map(); |
| 4004 var _uploadMedia = null; | 3996 var _uploadMedia = null; |
| 4005 var _uploadOptions = null; | 3997 var _uploadOptions = null; |
| 4006 var _downloadOptions = common.DownloadOptions.Metadata; | 3998 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4007 var _body = null; | 3999 var _body = null; |
| 4008 | 4000 |
| 4009 if (request != null) { | 4001 if (request != null) { |
| 4010 _body = convert.JSON.encode((request).toJson()); | 4002 _body = convert.JSON.encode((request).toJson()); |
| 4011 } | 4003 } |
| 4012 if (project == null) { | 4004 if (project == null) { |
| 4013 throw new core.ArgumentError("Parameter project is required."); | 4005 throw new core.ArgumentError("Parameter project is required."); |
| 4014 } | 4006 } |
| 4015 if (zone == null) { | 4007 if (zone == null) { |
| 4016 throw new core.ArgumentError("Parameter zone is required."); | 4008 throw new core.ArgumentError("Parameter zone is required."); |
| 4017 } | 4009 } |
| 4018 | 4010 |
| 4019 | 4011 |
| 4020 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances'; | 4012 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances'; |
| 4021 | 4013 |
| 4022 var _response = _requester.request(_url, | 4014 var _response = _requester.request(_url, |
| 4023 "POST", | 4015 "POST", |
| 4024 body: _body, | 4016 body: _body, |
| 4025 queryParams: _queryParams, | 4017 queryParams: _queryParams, |
| 4026 uploadOptions: _uploadOptions, | 4018 uploadOptions: _uploadOptions, |
| 4027 uploadMedia: _uploadMedia, | 4019 uploadMedia: _uploadMedia, |
| 4028 downloadOptions: _downloadOptions); | 4020 downloadOptions: _downloadOptions); |
| 4029 return _response.then((data) => new Operation.fromJson(data)); | 4021 return _response.then((data) => new Operation.fromJson(data)); |
| 4030 } | 4022 } |
| 4031 | 4023 |
| 4032 /** | 4024 /** |
| 4033 * Retrieves the list of instance resources contained within the specified | 4025 * Retrieves the list of instance resources contained within the specified |
| 4034 * zone. | 4026 * zone. |
| 4035 * | 4027 * |
| 4036 * Request parameters: | 4028 * Request parameters: |
| 4037 * | 4029 * |
| 4038 * [project] - Name of the project scoping this request. | 4030 * [project] - Project ID for this request. |
| 4039 * Value must have pattern | 4031 * Value must have pattern |
| 4040 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4032 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4041 * | 4033 * |
| 4042 * [zone] - Name of the zone scoping this request. | 4034 * [zone] - The name of the zone for this request. |
| 4043 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4035 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4044 * | 4036 * |
| 4045 * [filter] - Optional. Filter expression for filtering listed resources. | 4037 * [filter] - Optional. Filter expression for filtering listed resources. |
| 4046 * | 4038 * |
| 4047 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 4039 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 4048 * value is 500 and default value is 500. | 4040 * value is 500 and default value is 500. |
| 4049 * Value must be between "0" and "500". | 4041 * Value must be between "0" and "500". |
| 4050 * | 4042 * |
| 4051 * [pageToken] - Optional. Tag returned by a previous list request truncated | 4043 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 4052 * by maxResults. Used to continue a previous list request. | 4044 * by maxResults. Used to continue a previous list request. |
| 4053 * | 4045 * |
| 4054 * Completes with a [InstanceList]. | 4046 * Completes with a [InstanceList]. |
| 4055 * | 4047 * |
| 4056 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4048 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4057 * error. | 4049 * error. |
| 4058 * | 4050 * |
| 4059 * If the used [http.Client] completes with an error when making a REST call, | 4051 * If the used [http.Client] completes with an error when making a REST call, |
| 4060 * this method will complete with the same error. | 4052 * this method will complete with the same error. |
| 4061 */ | 4053 */ |
| 4062 async.Future<InstanceList> list(core.String project, core.String zone, {core.S
tring filter, core.int maxResults, core.String pageToken}) { | 4054 async.Future<InstanceList> list(core.String project, core.String zone, {core.S
tring filter, core.int maxResults, core.String pageToken}) { |
| 4063 var _url = null; | 4055 var _url = null; |
| 4064 var _queryParams = new core.Map(); | 4056 var _queryParams = new core.Map(); |
| 4065 var _uploadMedia = null; | 4057 var _uploadMedia = null; |
| 4066 var _uploadOptions = null; | 4058 var _uploadOptions = null; |
| 4067 var _downloadOptions = common.DownloadOptions.Metadata; | 4059 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4068 var _body = null; | 4060 var _body = null; |
| 4069 | 4061 |
| 4070 if (project == null) { | 4062 if (project == null) { |
| 4071 throw new core.ArgumentError("Parameter project is required."); | 4063 throw new core.ArgumentError("Parameter project is required."); |
| 4072 } | 4064 } |
| 4073 if (zone == null) { | 4065 if (zone == null) { |
| 4074 throw new core.ArgumentError("Parameter zone is required."); | 4066 throw new core.ArgumentError("Parameter zone is required."); |
| 4075 } | 4067 } |
| 4076 if (filter != null) { | 4068 if (filter != null) { |
| 4077 _queryParams["filter"] = [filter]; | 4069 _queryParams["filter"] = [filter]; |
| 4078 } | 4070 } |
| 4079 if (maxResults != null) { | 4071 if (maxResults != null) { |
| 4080 _queryParams["maxResults"] = ["${maxResults}"]; | 4072 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4081 } | 4073 } |
| 4082 if (pageToken != null) { | 4074 if (pageToken != null) { |
| 4083 _queryParams["pageToken"] = [pageToken]; | 4075 _queryParams["pageToken"] = [pageToken]; |
| 4084 } | 4076 } |
| 4085 | 4077 |
| 4086 | 4078 |
| 4087 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances'; | 4079 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances'; |
| 4088 | 4080 |
| 4089 var _response = _requester.request(_url, | 4081 var _response = _requester.request(_url, |
| 4090 "GET", | 4082 "GET", |
| 4091 body: _body, | 4083 body: _body, |
| 4092 queryParams: _queryParams, | 4084 queryParams: _queryParams, |
| 4093 uploadOptions: _uploadOptions, | 4085 uploadOptions: _uploadOptions, |
| 4094 uploadMedia: _uploadMedia, | 4086 uploadMedia: _uploadMedia, |
| 4095 downloadOptions: _downloadOptions); | 4087 downloadOptions: _downloadOptions); |
| 4096 return _response.then((data) => new InstanceList.fromJson(data)); | 4088 return _response.then((data) => new InstanceList.fromJson(data)); |
| 4097 } | 4089 } |
| 4098 | 4090 |
| 4099 /** | 4091 /** |
| 4100 * Performs a hard reset on the instance. | 4092 * Performs a hard reset on the instance. |
| 4101 * | 4093 * |
| 4102 * Request parameters: | 4094 * Request parameters: |
| 4103 * | 4095 * |
| 4104 * [project] - Name of the project scoping this request. | 4096 * [project] - Project ID for this request. |
| 4105 * Value must have pattern | 4097 * Value must have pattern |
| 4106 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4098 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4107 * | 4099 * |
| 4108 * [zone] - Name of the zone scoping this request. | 4100 * [zone] - The name of the zone for this request. |
| 4109 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4101 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4110 * | 4102 * |
| 4111 * [instance] - Name of the instance scoping this request. | 4103 * [instance] - Name of the instance scoping this request. |
| 4112 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4104 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4113 * | 4105 * |
| 4114 * Completes with a [Operation]. | 4106 * Completes with a [Operation]. |
| 4115 * | 4107 * |
| 4116 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4117 * error. | 4109 * error. |
| 4118 * | 4110 * |
| 4119 * If the used [http.Client] completes with an error when making a REST call, | 4111 * If the used [http.Client] completes with an error when making a REST call, |
| 4120 * this method will complete with the same error. | 4112 * this method will complete with the same error. |
| 4121 */ | 4113 */ |
| 4122 async.Future<Operation> reset(core.String project, core.String zone, core.Stri
ng instance) { | 4114 async.Future<Operation> reset(core.String project, core.String zone, core.Stri
ng instance) { |
| 4123 var _url = null; | 4115 var _url = null; |
| 4124 var _queryParams = new core.Map(); | 4116 var _queryParams = new core.Map(); |
| 4125 var _uploadMedia = null; | 4117 var _uploadMedia = null; |
| 4126 var _uploadOptions = null; | 4118 var _uploadOptions = null; |
| 4127 var _downloadOptions = common.DownloadOptions.Metadata; | 4119 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4128 var _body = null; | 4120 var _body = null; |
| 4129 | 4121 |
| 4130 if (project == null) { | 4122 if (project == null) { |
| 4131 throw new core.ArgumentError("Parameter project is required."); | 4123 throw new core.ArgumentError("Parameter project is required."); |
| 4132 } | 4124 } |
| 4133 if (zone == null) { | 4125 if (zone == null) { |
| 4134 throw new core.ArgumentError("Parameter zone is required."); | 4126 throw new core.ArgumentError("Parameter zone is required."); |
| 4135 } | 4127 } |
| 4136 if (instance == null) { | 4128 if (instance == null) { |
| 4137 throw new core.ArgumentError("Parameter instance is required."); | 4129 throw new core.ArgumentError("Parameter instance is required."); |
| 4138 } | 4130 } |
| 4139 | 4131 |
| 4140 | 4132 |
| 4141 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/reset'; | 4133 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/reset'; |
| 4142 | 4134 |
| 4143 var _response = _requester.request(_url, | 4135 var _response = _requester.request(_url, |
| 4144 "POST", | 4136 "POST", |
| 4145 body: _body, | 4137 body: _body, |
| 4146 queryParams: _queryParams, | 4138 queryParams: _queryParams, |
| 4147 uploadOptions: _uploadOptions, | 4139 uploadOptions: _uploadOptions, |
| 4148 uploadMedia: _uploadMedia, | 4140 uploadMedia: _uploadMedia, |
| 4149 downloadOptions: _downloadOptions); | 4141 downloadOptions: _downloadOptions); |
| 4150 return _response.then((data) => new Operation.fromJson(data)); | 4142 return _response.then((data) => new Operation.fromJson(data)); |
| 4151 } | 4143 } |
| 4152 | 4144 |
| 4153 /** | 4145 /** |
| 4154 * Sets the auto-delete flag for a disk attached to an instance | 4146 * Sets the auto-delete flag for a disk attached to an instance. |
| 4155 * | 4147 * |
| 4156 * Request parameters: | 4148 * Request parameters: |
| 4157 * | 4149 * |
| 4158 * [project] - Project name. | 4150 * [project] - Project ID for this request. |
| 4159 * Value must have pattern | 4151 * Value must have pattern |
| 4160 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4152 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4161 * | 4153 * |
| 4162 * [zone] - Name of the zone scoping this request. | 4154 * [zone] - The name of the zone for this request. |
| 4163 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4155 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4164 * | 4156 * |
| 4165 * [instance] - Instance name. | 4157 * [instance] - The instance name. |
| 4166 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4158 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4167 * | 4159 * |
| 4168 * [autoDelete] - Whether to auto-delete the disk when the instance is | 4160 * [autoDelete] - Whether to auto-delete the disk when the instance is |
| 4169 * deleted. | 4161 * deleted. |
| 4170 * | 4162 * |
| 4171 * [deviceName] - Disk device name to modify. | 4163 * [deviceName] - The device name of the disk to modify. |
| 4172 * Value must have pattern "\w[\w.-]{0,254}". | 4164 * Value must have pattern "\w[\w.-]{0,254}". |
| 4173 * | 4165 * |
| 4174 * Completes with a [Operation]. | 4166 * Completes with a [Operation]. |
| 4175 * | 4167 * |
| 4176 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4168 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4177 * error. | 4169 * error. |
| 4178 * | 4170 * |
| 4179 * If the used [http.Client] completes with an error when making a REST call, | 4171 * If the used [http.Client] completes with an error when making a REST call, |
| 4180 * this method will complete with the same error. | 4172 * this method will complete with the same error. |
| 4181 */ | 4173 */ |
| 4182 async.Future<Operation> setDiskAutoDelete(core.String project, core.String zon
e, core.String instance, core.bool autoDelete, core.String deviceName) { | 4174 async.Future<Operation> setDiskAutoDelete(core.String project, core.String zon
e, core.String instance, core.bool autoDelete, core.String deviceName) { |
| 4183 var _url = null; | 4175 var _url = null; |
| 4184 var _queryParams = new core.Map(); | 4176 var _queryParams = new core.Map(); |
| 4185 var _uploadMedia = null; | 4177 var _uploadMedia = null; |
| 4186 var _uploadOptions = null; | 4178 var _uploadOptions = null; |
| 4187 var _downloadOptions = common.DownloadOptions.Metadata; | 4179 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4188 var _body = null; | 4180 var _body = null; |
| 4189 | 4181 |
| 4190 if (project == null) { | 4182 if (project == null) { |
| 4191 throw new core.ArgumentError("Parameter project is required."); | 4183 throw new core.ArgumentError("Parameter project is required."); |
| 4192 } | 4184 } |
| 4193 if (zone == null) { | 4185 if (zone == null) { |
| 4194 throw new core.ArgumentError("Parameter zone is required."); | 4186 throw new core.ArgumentError("Parameter zone is required."); |
| 4195 } | 4187 } |
| 4196 if (instance == null) { | 4188 if (instance == null) { |
| 4197 throw new core.ArgumentError("Parameter instance is required."); | 4189 throw new core.ArgumentError("Parameter instance is required."); |
| 4198 } | 4190 } |
| 4199 if (autoDelete == null) { | 4191 if (autoDelete == null) { |
| 4200 throw new core.ArgumentError("Parameter autoDelete is required."); | 4192 throw new core.ArgumentError("Parameter autoDelete is required."); |
| 4201 } | 4193 } |
| 4202 _queryParams["autoDelete"] = ["${autoDelete}"]; | 4194 _queryParams["autoDelete"] = ["${autoDelete}"]; |
| 4203 if (deviceName == null) { | 4195 if (deviceName == null) { |
| 4204 throw new core.ArgumentError("Parameter deviceName is required."); | 4196 throw new core.ArgumentError("Parameter deviceName is required."); |
| 4205 } | 4197 } |
| 4206 _queryParams["deviceName"] = [deviceName]; | 4198 _queryParams["deviceName"] = [deviceName]; |
| 4207 | 4199 |
| 4208 | 4200 |
| 4209 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/setDiskAutoDelete'; | 4201 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/setDiskAutoDelete'; |
| 4210 | 4202 |
| 4211 var _response = _requester.request(_url, | 4203 var _response = _requester.request(_url, |
| 4212 "POST", | 4204 "POST", |
| 4213 body: _body, | 4205 body: _body, |
| 4214 queryParams: _queryParams, | 4206 queryParams: _queryParams, |
| 4215 uploadOptions: _uploadOptions, | 4207 uploadOptions: _uploadOptions, |
| 4216 uploadMedia: _uploadMedia, | 4208 uploadMedia: _uploadMedia, |
| 4217 downloadOptions: _downloadOptions); | 4209 downloadOptions: _downloadOptions); |
| 4218 return _response.then((data) => new Operation.fromJson(data)); | 4210 return _response.then((data) => new Operation.fromJson(data)); |
| 4219 } | 4211 } |
| 4220 | 4212 |
| 4221 /** | 4213 /** |
| 4222 * Sets metadata for the specified instance to the data included in the | 4214 * Sets metadata for the specified instance to the data included in the |
| 4223 * request. | 4215 * request. |
| 4224 * | 4216 * |
| 4225 * [request] - The metadata request object. | 4217 * [request] - The metadata request object. |
| 4226 * | 4218 * |
| 4227 * Request parameters: | 4219 * Request parameters: |
| 4228 * | 4220 * |
| 4229 * [project] - Name of the project scoping this request. | 4221 * [project] - Project ID for this request. |
| 4230 * Value must have pattern | 4222 * Value must have pattern |
| 4231 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4223 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4232 * | 4224 * |
| 4233 * [zone] - Name of the zone scoping this request. | 4225 * [zone] - The name of the zone for this request. |
| 4234 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4226 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4235 * | 4227 * |
| 4236 * [instance] - Name of the instance scoping this request. | 4228 * [instance] - Name of the instance scoping this request. |
| 4237 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4229 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4238 * | 4230 * |
| 4239 * Completes with a [Operation]. | 4231 * Completes with a [Operation]. |
| 4240 * | 4232 * |
| 4241 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4242 * error. | 4234 * error. |
| 4243 * | 4235 * |
| 4244 * If the used [http.Client] completes with an error when making a REST call, | 4236 * If the used [http.Client] completes with an error when making a REST call, |
| 4245 * this method will complete with the same error. | 4237 * this method will complete with the same error. |
| 4246 */ | 4238 */ |
| 4247 async.Future<Operation> setMetadata(Metadata request, core.String project, cor
e.String zone, core.String instance) { | 4239 async.Future<Operation> setMetadata(Metadata request, core.String project, cor
e.String zone, core.String instance) { |
| 4248 var _url = null; | 4240 var _url = null; |
| 4249 var _queryParams = new core.Map(); | 4241 var _queryParams = new core.Map(); |
| 4250 var _uploadMedia = null; | 4242 var _uploadMedia = null; |
| 4251 var _uploadOptions = null; | 4243 var _uploadOptions = null; |
| 4252 var _downloadOptions = common.DownloadOptions.Metadata; | 4244 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4253 var _body = null; | 4245 var _body = null; |
| 4254 | 4246 |
| 4255 if (request != null) { | 4247 if (request != null) { |
| 4256 _body = convert.JSON.encode((request).toJson()); | 4248 _body = convert.JSON.encode((request).toJson()); |
| 4257 } | 4249 } |
| 4258 if (project == null) { | 4250 if (project == null) { |
| 4259 throw new core.ArgumentError("Parameter project is required."); | 4251 throw new core.ArgumentError("Parameter project is required."); |
| 4260 } | 4252 } |
| 4261 if (zone == null) { | 4253 if (zone == null) { |
| 4262 throw new core.ArgumentError("Parameter zone is required."); | 4254 throw new core.ArgumentError("Parameter zone is required."); |
| 4263 } | 4255 } |
| 4264 if (instance == null) { | 4256 if (instance == null) { |
| 4265 throw new core.ArgumentError("Parameter instance is required."); | 4257 throw new core.ArgumentError("Parameter instance is required."); |
| 4266 } | 4258 } |
| 4267 | 4259 |
| 4268 | 4260 |
| 4269 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/setMetadata'; | 4261 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/setMetadata'; |
| 4270 | 4262 |
| 4271 var _response = _requester.request(_url, | 4263 var _response = _requester.request(_url, |
| 4272 "POST", | 4264 "POST", |
| 4273 body: _body, | 4265 body: _body, |
| 4274 queryParams: _queryParams, | 4266 queryParams: _queryParams, |
| 4275 uploadOptions: _uploadOptions, | 4267 uploadOptions: _uploadOptions, |
| 4276 uploadMedia: _uploadMedia, | 4268 uploadMedia: _uploadMedia, |
| 4277 downloadOptions: _downloadOptions); | 4269 downloadOptions: _downloadOptions); |
| 4278 return _response.then((data) => new Operation.fromJson(data)); | 4270 return _response.then((data) => new Operation.fromJson(data)); |
| 4279 } | 4271 } |
| 4280 | 4272 |
| 4281 /** | 4273 /** |
| 4282 * Sets an instance's scheduling options. | 4274 * Sets an instance's scheduling options. |
| 4283 * | 4275 * |
| 4284 * [request] - The metadata request object. | 4276 * [request] - The metadata request object. |
| 4285 * | 4277 * |
| 4286 * Request parameters: | 4278 * Request parameters: |
| 4287 * | 4279 * |
| 4288 * [project] - Project name. | 4280 * [project] - Project ID for this request. |
| 4289 * Value must have pattern | 4281 * Value must have pattern |
| 4290 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4282 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4291 * | 4283 * |
| 4292 * [zone] - Name of the zone scoping this request. | 4284 * [zone] - The name of the zone for this request. |
| 4293 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4285 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4294 * | 4286 * |
| 4295 * [instance] - Instance name. | 4287 * [instance] - Instance name. |
| 4296 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4288 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4297 * | 4289 * |
| 4298 * Completes with a [Operation]. | 4290 * Completes with a [Operation]. |
| 4299 * | 4291 * |
| 4300 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4301 * error. | 4293 * error. |
| 4302 * | 4294 * |
| 4303 * If the used [http.Client] completes with an error when making a REST call, | 4295 * If the used [http.Client] completes with an error when making a REST call, |
| 4304 * this method will complete with the same error. | 4296 * this method will complete with the same error. |
| 4305 */ | 4297 */ |
| 4306 async.Future<Operation> setScheduling(Scheduling request, core.String project,
core.String zone, core.String instance) { | 4298 async.Future<Operation> setScheduling(Scheduling request, core.String project,
core.String zone, core.String instance) { |
| 4307 var _url = null; | 4299 var _url = null; |
| 4308 var _queryParams = new core.Map(); | 4300 var _queryParams = new core.Map(); |
| 4309 var _uploadMedia = null; | 4301 var _uploadMedia = null; |
| 4310 var _uploadOptions = null; | 4302 var _uploadOptions = null; |
| 4311 var _downloadOptions = common.DownloadOptions.Metadata; | 4303 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4312 var _body = null; | 4304 var _body = null; |
| 4313 | 4305 |
| 4314 if (request != null) { | 4306 if (request != null) { |
| 4315 _body = convert.JSON.encode((request).toJson()); | 4307 _body = convert.JSON.encode((request).toJson()); |
| 4316 } | 4308 } |
| 4317 if (project == null) { | 4309 if (project == null) { |
| 4318 throw new core.ArgumentError("Parameter project is required."); | 4310 throw new core.ArgumentError("Parameter project is required."); |
| 4319 } | 4311 } |
| 4320 if (zone == null) { | 4312 if (zone == null) { |
| 4321 throw new core.ArgumentError("Parameter zone is required."); | 4313 throw new core.ArgumentError("Parameter zone is required."); |
| 4322 } | 4314 } |
| 4323 if (instance == null) { | 4315 if (instance == null) { |
| 4324 throw new core.ArgumentError("Parameter instance is required."); | 4316 throw new core.ArgumentError("Parameter instance is required."); |
| 4325 } | 4317 } |
| 4326 | 4318 |
| 4327 | 4319 |
| 4328 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/setScheduling'; | 4320 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/setScheduling'; |
| 4329 | 4321 |
| 4330 var _response = _requester.request(_url, | 4322 var _response = _requester.request(_url, |
| 4331 "POST", | 4323 "POST", |
| 4332 body: _body, | 4324 body: _body, |
| 4333 queryParams: _queryParams, | 4325 queryParams: _queryParams, |
| 4334 uploadOptions: _uploadOptions, | 4326 uploadOptions: _uploadOptions, |
| 4335 uploadMedia: _uploadMedia, | 4327 uploadMedia: _uploadMedia, |
| 4336 downloadOptions: _downloadOptions); | 4328 downloadOptions: _downloadOptions); |
| 4337 return _response.then((data) => new Operation.fromJson(data)); | 4329 return _response.then((data) => new Operation.fromJson(data)); |
| 4338 } | 4330 } |
| 4339 | 4331 |
| 4340 /** | 4332 /** |
| 4341 * Sets tags for the specified instance to the data included in the request. | 4333 * Sets tags for the specified instance to the data included in the request. |
| 4342 * | 4334 * |
| 4343 * [request] - The metadata request object. | 4335 * [request] - The metadata request object. |
| 4344 * | 4336 * |
| 4345 * Request parameters: | 4337 * Request parameters: |
| 4346 * | 4338 * |
| 4347 * [project] - Name of the project scoping this request. | 4339 * [project] - Project ID for this request. |
| 4348 * Value must have pattern | 4340 * Value must have pattern |
| 4349 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4341 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4350 * | 4342 * |
| 4351 * [zone] - Name of the zone scoping this request. | 4343 * [zone] - The name of the zone for this request. |
| 4352 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4344 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4353 * | 4345 * |
| 4354 * [instance] - Name of the instance scoping this request. | 4346 * [instance] - Name of the instance scoping this request. |
| 4355 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4347 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4356 * | 4348 * |
| 4357 * Completes with a [Operation]. | 4349 * Completes with a [Operation]. |
| 4358 * | 4350 * |
| 4359 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4360 * error. | 4352 * error. |
| 4361 * | 4353 * |
| 4362 * If the used [http.Client] completes with an error when making a REST call, | 4354 * If the used [http.Client] completes with an error when making a REST call, |
| 4363 * this method will complete with the same error. | 4355 * this method will complete with the same error. |
| 4364 */ | 4356 */ |
| 4365 async.Future<Operation> setTags(Tags request, core.String project, core.String
zone, core.String instance) { | 4357 async.Future<Operation> setTags(Tags request, core.String project, core.String
zone, core.String instance) { |
| 4366 var _url = null; | 4358 var _url = null; |
| 4367 var _queryParams = new core.Map(); | 4359 var _queryParams = new core.Map(); |
| 4368 var _uploadMedia = null; | 4360 var _uploadMedia = null; |
| 4369 var _uploadOptions = null; | 4361 var _uploadOptions = null; |
| 4370 var _downloadOptions = common.DownloadOptions.Metadata; | 4362 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4371 var _body = null; | 4363 var _body = null; |
| 4372 | 4364 |
| 4373 if (request != null) { | 4365 if (request != null) { |
| 4374 _body = convert.JSON.encode((request).toJson()); | 4366 _body = convert.JSON.encode((request).toJson()); |
| 4375 } | 4367 } |
| 4376 if (project == null) { | 4368 if (project == null) { |
| 4377 throw new core.ArgumentError("Parameter project is required."); | 4369 throw new core.ArgumentError("Parameter project is required."); |
| 4378 } | 4370 } |
| 4379 if (zone == null) { | 4371 if (zone == null) { |
| 4380 throw new core.ArgumentError("Parameter zone is required."); | 4372 throw new core.ArgumentError("Parameter zone is required."); |
| 4381 } | 4373 } |
| 4382 if (instance == null) { | 4374 if (instance == null) { |
| 4383 throw new core.ArgumentError("Parameter instance is required."); | 4375 throw new core.ArgumentError("Parameter instance is required."); |
| 4384 } | 4376 } |
| 4385 | 4377 |
| 4386 | 4378 |
| 4387 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/setTags'; | 4379 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/setTags'; |
| 4388 | 4380 |
| 4389 var _response = _requester.request(_url, | 4381 var _response = _requester.request(_url, |
| 4390 "POST", | 4382 "POST", |
| 4391 body: _body, | 4383 body: _body, |
| 4392 queryParams: _queryParams, | 4384 queryParams: _queryParams, |
| 4393 uploadOptions: _uploadOptions, | 4385 uploadOptions: _uploadOptions, |
| 4394 uploadMedia: _uploadMedia, | 4386 uploadMedia: _uploadMedia, |
| 4395 downloadOptions: _downloadOptions); | 4387 downloadOptions: _downloadOptions); |
| 4396 return _response.then((data) => new Operation.fromJson(data)); | 4388 return _response.then((data) => new Operation.fromJson(data)); |
| 4397 } | 4389 } |
| 4398 | 4390 |
| 4399 /** | 4391 /** |
| 4400 * Starts an instance | 4392 * This method starts an instance that was stopped using the using the |
| 4393 * instances().stop method. For more information, see Restart an instance. |
| 4401 * | 4394 * |
| 4402 * Request parameters: | 4395 * Request parameters: |
| 4403 * | 4396 * |
| 4404 * [project] - Name of the project scoping this request. | 4397 * [project] - Project ID for this request. |
| 4405 * Value must have pattern | 4398 * Value must have pattern |
| 4406 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4399 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4407 * | 4400 * |
| 4408 * [zone] - Name of the zone scoping this request. | 4401 * [zone] - The name of the zone for this request. |
| 4409 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4402 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4410 * | 4403 * |
| 4411 * [instance] - Name of the instance resource to start. | 4404 * [instance] - Name of the instance resource to start. |
| 4412 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4405 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4413 * | 4406 * |
| 4414 * Completes with a [Operation]. | 4407 * Completes with a [Operation]. |
| 4415 * | 4408 * |
| 4416 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4417 * error. | 4410 * error. |
| 4418 * | 4411 * |
| 4419 * If the used [http.Client] completes with an error when making a REST call, | 4412 * If the used [http.Client] completes with an error when making a REST call, |
| 4420 * this method will complete with the same error. | 4413 * this method will complete with the same error. |
| 4421 */ | 4414 */ |
| 4422 async.Future<Operation> start(core.String project, core.String zone, core.Stri
ng instance) { | 4415 async.Future<Operation> start(core.String project, core.String zone, core.Stri
ng instance) { |
| 4423 var _url = null; | 4416 var _url = null; |
| 4424 var _queryParams = new core.Map(); | 4417 var _queryParams = new core.Map(); |
| 4425 var _uploadMedia = null; | 4418 var _uploadMedia = null; |
| 4426 var _uploadOptions = null; | 4419 var _uploadOptions = null; |
| 4427 var _downloadOptions = common.DownloadOptions.Metadata; | 4420 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4428 var _body = null; | 4421 var _body = null; |
| 4429 | 4422 |
| 4430 if (project == null) { | 4423 if (project == null) { |
| 4431 throw new core.ArgumentError("Parameter project is required."); | 4424 throw new core.ArgumentError("Parameter project is required."); |
| 4432 } | 4425 } |
| 4433 if (zone == null) { | 4426 if (zone == null) { |
| 4434 throw new core.ArgumentError("Parameter zone is required."); | 4427 throw new core.ArgumentError("Parameter zone is required."); |
| 4435 } | 4428 } |
| 4436 if (instance == null) { | 4429 if (instance == null) { |
| 4437 throw new core.ArgumentError("Parameter instance is required."); | 4430 throw new core.ArgumentError("Parameter instance is required."); |
| 4438 } | 4431 } |
| 4439 | 4432 |
| 4440 | 4433 |
| 4441 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/start'; | 4434 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/start'; |
| 4442 | 4435 |
| 4443 var _response = _requester.request(_url, | 4436 var _response = _requester.request(_url, |
| 4444 "POST", | 4437 "POST", |
| 4445 body: _body, | 4438 body: _body, |
| 4446 queryParams: _queryParams, | 4439 queryParams: _queryParams, |
| 4447 uploadOptions: _uploadOptions, | 4440 uploadOptions: _uploadOptions, |
| 4448 uploadMedia: _uploadMedia, | 4441 uploadMedia: _uploadMedia, |
| 4449 downloadOptions: _downloadOptions); | 4442 downloadOptions: _downloadOptions); |
| 4450 return _response.then((data) => new Operation.fromJson(data)); | 4443 return _response.then((data) => new Operation.fromJson(data)); |
| 4451 } | 4444 } |
| 4452 | 4445 |
| 4453 /** | 4446 /** |
| 4454 * Stops an instance | 4447 * This method stops a running instance, shutting it down cleanly, and allows |
| 4448 * you to restart the instance at a later time. Stopped instances do not incur |
| 4449 * per-minute, virtual machine usage charges while they are stopped, but any |
| 4450 * resources that the virtual machine is using, such as persistent disks and |
| 4451 * static IP addresses,will continue to be charged until they are deleted. For |
| 4452 * more information, see Stopping an instance. |
| 4455 * | 4453 * |
| 4456 * Request parameters: | 4454 * Request parameters: |
| 4457 * | 4455 * |
| 4458 * [project] - Name of the project scoping this request. | 4456 * [project] - Project ID for this request. |
| 4459 * Value must have pattern | 4457 * Value must have pattern |
| 4460 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4458 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4461 * | 4459 * |
| 4462 * [zone] - Name of the zone scoping this request. | 4460 * [zone] - The name of the zone for this request. |
| 4463 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4461 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4464 * | 4462 * |
| 4465 * [instance] - Name of the instance resource to start. | 4463 * [instance] - Name of the instance resource to start. |
| 4466 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4464 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4467 * | 4465 * |
| 4468 * Completes with a [Operation]. | 4466 * Completes with a [Operation]. |
| 4469 * | 4467 * |
| 4470 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4471 * error. | 4469 * error. |
| 4472 * | 4470 * |
| 4473 * If the used [http.Client] completes with an error when making a REST call, | 4471 * If the used [http.Client] completes with an error when making a REST call, |
| 4474 * this method will complete with the same error. | 4472 * this method will complete with the same error. |
| 4475 */ | 4473 */ |
| 4476 async.Future<Operation> stop(core.String project, core.String zone, core.Strin
g instance) { | 4474 async.Future<Operation> stop(core.String project, core.String zone, core.Strin
g instance) { |
| 4477 var _url = null; | 4475 var _url = null; |
| 4478 var _queryParams = new core.Map(); | 4476 var _queryParams = new core.Map(); |
| 4479 var _uploadMedia = null; | 4477 var _uploadMedia = null; |
| 4480 var _uploadOptions = null; | 4478 var _uploadOptions = null; |
| 4481 var _downloadOptions = common.DownloadOptions.Metadata; | 4479 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4482 var _body = null; | 4480 var _body = null; |
| 4483 | 4481 |
| 4484 if (project == null) { | 4482 if (project == null) { |
| 4485 throw new core.ArgumentError("Parameter project is required."); | 4483 throw new core.ArgumentError("Parameter project is required."); |
| 4486 } | 4484 } |
| 4487 if (zone == null) { | 4485 if (zone == null) { |
| 4488 throw new core.ArgumentError("Parameter zone is required."); | 4486 throw new core.ArgumentError("Parameter zone is required."); |
| 4489 } | 4487 } |
| 4490 if (instance == null) { | 4488 if (instance == null) { |
| 4491 throw new core.ArgumentError("Parameter instance is required."); | 4489 throw new core.ArgumentError("Parameter instance is required."); |
| 4492 } | 4490 } |
| 4493 | 4491 |
| 4494 | 4492 |
| 4495 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/instances/' + common_internal.Esca
per.ecapeVariable('$instance') + '/stop'; | 4493 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$inst
ance') + '/stop'; |
| 4496 | 4494 |
| 4497 var _response = _requester.request(_url, | 4495 var _response = _requester.request(_url, |
| 4498 "POST", | 4496 "POST", |
| 4499 body: _body, | 4497 body: _body, |
| 4500 queryParams: _queryParams, | 4498 queryParams: _queryParams, |
| 4501 uploadOptions: _uploadOptions, | 4499 uploadOptions: _uploadOptions, |
| 4502 uploadMedia: _uploadMedia, | 4500 uploadMedia: _uploadMedia, |
| 4503 downloadOptions: _downloadOptions); | 4501 downloadOptions: _downloadOptions); |
| 4504 return _response.then((data) => new Operation.fromJson(data)); | 4502 return _response.then((data) => new Operation.fromJson(data)); |
| 4505 } | 4503 } |
| 4506 | 4504 |
| 4507 } | 4505 } |
| 4508 | 4506 |
| 4509 | 4507 |
| 4510 /** Not documented yet. */ | |
| 4511 class LicensesResourceApi { | 4508 class LicensesResourceApi { |
| 4512 final common_internal.ApiRequester _requester; | 4509 final commons.ApiRequester _requester; |
| 4513 | 4510 |
| 4514 LicensesResourceApi(common_internal.ApiRequester client) : | 4511 LicensesResourceApi(commons.ApiRequester client) : |
| 4515 _requester = client; | 4512 _requester = client; |
| 4516 | 4513 |
| 4517 /** | 4514 /** |
| 4518 * Returns the specified license resource. | 4515 * Returns the specified license resource. |
| 4519 * | 4516 * |
| 4520 * Request parameters: | 4517 * Request parameters: |
| 4521 * | 4518 * |
| 4522 * [project] - Name of the project scoping this request. | 4519 * [project] - Project ID for this request. |
| 4523 * Value must have pattern | 4520 * Value must have pattern |
| 4524 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4521 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4525 * | 4522 * |
| 4526 * [license] - Name of the license resource to return. | 4523 * [license] - Name of the license resource to return. |
| 4527 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4524 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4528 * | 4525 * |
| 4529 * Completes with a [License]. | 4526 * Completes with a [License]. |
| 4530 * | 4527 * |
| 4531 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4528 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4532 * error. | 4529 * error. |
| 4533 * | 4530 * |
| 4534 * If the used [http.Client] completes with an error when making a REST call, | 4531 * If the used [http.Client] completes with an error when making a REST call, |
| 4535 * this method will complete with the same error. | 4532 * this method will complete with the same error. |
| 4536 */ | 4533 */ |
| 4537 async.Future<License> get(core.String project, core.String license) { | 4534 async.Future<License> get(core.String project, core.String license) { |
| 4538 var _url = null; | 4535 var _url = null; |
| 4539 var _queryParams = new core.Map(); | 4536 var _queryParams = new core.Map(); |
| 4540 var _uploadMedia = null; | 4537 var _uploadMedia = null; |
| 4541 var _uploadOptions = null; | 4538 var _uploadOptions = null; |
| 4542 var _downloadOptions = common.DownloadOptions.Metadata; | 4539 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4543 var _body = null; | 4540 var _body = null; |
| 4544 | 4541 |
| 4545 if (project == null) { | 4542 if (project == null) { |
| 4546 throw new core.ArgumentError("Parameter project is required."); | 4543 throw new core.ArgumentError("Parameter project is required."); |
| 4547 } | 4544 } |
| 4548 if (license == null) { | 4545 if (license == null) { |
| 4549 throw new core.ArgumentError("Parameter license is required."); | 4546 throw new core.ArgumentError("Parameter license is required."); |
| 4550 } | 4547 } |
| 4551 | 4548 |
| 4552 | 4549 |
| 4553 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/licenses
/' + common_internal.Escaper.ecapeVariable('$license'); | 4550 _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses/' + com
mons.Escaper.ecapeVariable('$license'); |
| 4554 | 4551 |
| 4555 var _response = _requester.request(_url, | 4552 var _response = _requester.request(_url, |
| 4556 "GET", | 4553 "GET", |
| 4557 body: _body, | 4554 body: _body, |
| 4558 queryParams: _queryParams, | 4555 queryParams: _queryParams, |
| 4559 uploadOptions: _uploadOptions, | 4556 uploadOptions: _uploadOptions, |
| 4560 uploadMedia: _uploadMedia, | 4557 uploadMedia: _uploadMedia, |
| 4561 downloadOptions: _downloadOptions); | 4558 downloadOptions: _downloadOptions); |
| 4562 return _response.then((data) => new License.fromJson(data)); | 4559 return _response.then((data) => new License.fromJson(data)); |
| 4563 } | 4560 } |
| 4564 | 4561 |
| 4565 } | 4562 } |
| 4566 | 4563 |
| 4567 | 4564 |
| 4568 /** Not documented yet. */ | |
| 4569 class MachineTypesResourceApi { | 4565 class MachineTypesResourceApi { |
| 4570 final common_internal.ApiRequester _requester; | 4566 final commons.ApiRequester _requester; |
| 4571 | 4567 |
| 4572 MachineTypesResourceApi(common_internal.ApiRequester client) : | 4568 MachineTypesResourceApi(commons.ApiRequester client) : |
| 4573 _requester = client; | 4569 _requester = client; |
| 4574 | 4570 |
| 4575 /** | 4571 /** |
| 4576 * Retrieves the list of machine type resources grouped by scope. | 4572 * Retrieves the list of machine type resources grouped by scope. |
| 4577 * | 4573 * |
| 4578 * Request parameters: | 4574 * Request parameters: |
| 4579 * | 4575 * |
| 4580 * [project] - Project ID for this request. | 4576 * [project] - Project ID for this request. |
| 4581 * Value must have pattern | 4577 * Value must have pattern |
| 4582 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4578 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4583 * | 4579 * |
| 4584 * [filter] - Optional. Filter expression for filtering listed resources. | 4580 * [filter] - Optional. Filter expression for filtering listed resources. |
| 4585 * | 4581 * |
| 4586 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 4582 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 4587 * value is 500 and default value is 500. | 4583 * value is 500 and default value is 500. |
| 4588 * Value must be between "0" and "500". | 4584 * Value must be between "0" and "500". |
| 4589 * | 4585 * |
| 4590 * [pageToken] - Optional. Tag returned by a previous list request truncated | 4586 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 4591 * by maxResults. Used to continue a previous list request. | 4587 * by maxResults. Used to continue a previous list request. |
| 4592 * | 4588 * |
| 4593 * Completes with a [MachineTypeAggregatedList]. | 4589 * Completes with a [MachineTypeAggregatedList]. |
| 4594 * | 4590 * |
| 4595 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4596 * error. | 4592 * error. |
| 4597 * | 4593 * |
| 4598 * If the used [http.Client] completes with an error when making a REST call, | 4594 * If the used [http.Client] completes with an error when making a REST call, |
| 4599 * this method will complete with the same error. | 4595 * this method will complete with the same error. |
| 4600 */ | 4596 */ |
| 4601 async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {c
ore.String filter, core.int maxResults, core.String pageToken}) { | 4597 async.Future<MachineTypeAggregatedList> aggregatedList(core.String project, {c
ore.String filter, core.int maxResults, core.String pageToken}) { |
| 4602 var _url = null; | 4598 var _url = null; |
| 4603 var _queryParams = new core.Map(); | 4599 var _queryParams = new core.Map(); |
| 4604 var _uploadMedia = null; | 4600 var _uploadMedia = null; |
| 4605 var _uploadOptions = null; | 4601 var _uploadOptions = null; |
| 4606 var _downloadOptions = common.DownloadOptions.Metadata; | 4602 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4607 var _body = null; | 4603 var _body = null; |
| 4608 | 4604 |
| 4609 if (project == null) { | 4605 if (project == null) { |
| 4610 throw new core.ArgumentError("Parameter project is required."); | 4606 throw new core.ArgumentError("Parameter project is required."); |
| 4611 } | 4607 } |
| 4612 if (filter != null) { | 4608 if (filter != null) { |
| 4613 _queryParams["filter"] = [filter]; | 4609 _queryParams["filter"] = [filter]; |
| 4614 } | 4610 } |
| 4615 if (maxResults != null) { | 4611 if (maxResults != null) { |
| 4616 _queryParams["maxResults"] = ["${maxResults}"]; | 4612 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4617 } | 4613 } |
| 4618 if (pageToken != null) { | 4614 if (pageToken != null) { |
| 4619 _queryParams["pageToken"] = [pageToken]; | 4615 _queryParams["pageToken"] = [pageToken]; |
| 4620 } | 4616 } |
| 4621 | 4617 |
| 4622 | 4618 |
| 4623 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/mach
ineTypes'; | 4619 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/machineTypes
'; |
| 4624 | 4620 |
| 4625 var _response = _requester.request(_url, | 4621 var _response = _requester.request(_url, |
| 4626 "GET", | 4622 "GET", |
| 4627 body: _body, | 4623 body: _body, |
| 4628 queryParams: _queryParams, | 4624 queryParams: _queryParams, |
| 4629 uploadOptions: _uploadOptions, | 4625 uploadOptions: _uploadOptions, |
| 4630 uploadMedia: _uploadMedia, | 4626 uploadMedia: _uploadMedia, |
| 4631 downloadOptions: _downloadOptions); | 4627 downloadOptions: _downloadOptions); |
| 4632 return _response.then((data) => new MachineTypeAggregatedList.fromJson(data)
); | 4628 return _response.then((data) => new MachineTypeAggregatedList.fromJson(data)
); |
| 4633 } | 4629 } |
| 4634 | 4630 |
| 4635 /** | 4631 /** |
| 4636 * Returns the specified machine type resource. | 4632 * Returns the specified machine type resource. |
| 4637 * | 4633 * |
| 4638 * Request parameters: | 4634 * Request parameters: |
| 4639 * | 4635 * |
| 4640 * [project] - Project ID for this request. | 4636 * [project] - Project ID for this request. |
| 4641 * Value must have pattern | 4637 * Value must have pattern |
| 4642 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4638 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4643 * | 4639 * |
| 4644 * [zone] - Name of the zone scoping this request. | 4640 * [zone] - The name of the zone for this request. |
| 4645 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4641 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4646 * | 4642 * |
| 4647 * [machineType] - Name of the machine type resource to return. | 4643 * [machineType] - Name of the machine type resource to return. |
| 4648 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4644 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4649 * | 4645 * |
| 4650 * Completes with a [MachineType]. | 4646 * Completes with a [MachineType]. |
| 4651 * | 4647 * |
| 4652 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4653 * error. | 4649 * error. |
| 4654 * | 4650 * |
| 4655 * If the used [http.Client] completes with an error when making a REST call, | 4651 * If the used [http.Client] completes with an error when making a REST call, |
| 4656 * this method will complete with the same error. | 4652 * this method will complete with the same error. |
| 4657 */ | 4653 */ |
| 4658 async.Future<MachineType> get(core.String project, core.String zone, core.Stri
ng machineType) { | 4654 async.Future<MachineType> get(core.String project, core.String zone, core.Stri
ng machineType) { |
| 4659 var _url = null; | 4655 var _url = null; |
| 4660 var _queryParams = new core.Map(); | 4656 var _queryParams = new core.Map(); |
| 4661 var _uploadMedia = null; | 4657 var _uploadMedia = null; |
| 4662 var _uploadOptions = null; | 4658 var _uploadOptions = null; |
| 4663 var _downloadOptions = common.DownloadOptions.Metadata; | 4659 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4664 var _body = null; | 4660 var _body = null; |
| 4665 | 4661 |
| 4666 if (project == null) { | 4662 if (project == null) { |
| 4667 throw new core.ArgumentError("Parameter project is required."); | 4663 throw new core.ArgumentError("Parameter project is required."); |
| 4668 } | 4664 } |
| 4669 if (zone == null) { | 4665 if (zone == null) { |
| 4670 throw new core.ArgumentError("Parameter zone is required."); | 4666 throw new core.ArgumentError("Parameter zone is required."); |
| 4671 } | 4667 } |
| 4672 if (machineType == null) { | 4668 if (machineType == null) { |
| 4673 throw new core.ArgumentError("Parameter machineType is required."); | 4669 throw new core.ArgumentError("Parameter machineType is required."); |
| 4674 } | 4670 } |
| 4675 | 4671 |
| 4676 | 4672 |
| 4677 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/machineTypes/' + common_internal.E
scaper.ecapeVariable('$machineType'); | 4673 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/machineTypes/' + commons.Escaper.ecapeVariable('$m
achineType'); |
| 4678 | 4674 |
| 4679 var _response = _requester.request(_url, | 4675 var _response = _requester.request(_url, |
| 4680 "GET", | 4676 "GET", |
| 4681 body: _body, | 4677 body: _body, |
| 4682 queryParams: _queryParams, | 4678 queryParams: _queryParams, |
| 4683 uploadOptions: _uploadOptions, | 4679 uploadOptions: _uploadOptions, |
| 4684 uploadMedia: _uploadMedia, | 4680 uploadMedia: _uploadMedia, |
| 4685 downloadOptions: _downloadOptions); | 4681 downloadOptions: _downloadOptions); |
| 4686 return _response.then((data) => new MachineType.fromJson(data)); | 4682 return _response.then((data) => new MachineType.fromJson(data)); |
| 4687 } | 4683 } |
| 4688 | 4684 |
| 4689 /** | 4685 /** |
| 4690 * Retrieves the list of machine type resources available to the specified | 4686 * Retrieves the list of machine type resources available to the specified |
| 4691 * project. | 4687 * project. |
| 4692 * | 4688 * |
| 4693 * Request parameters: | 4689 * Request parameters: |
| 4694 * | 4690 * |
| 4695 * [project] - Project ID for this request. | 4691 * [project] - Project ID for this request. |
| 4696 * Value must have pattern | 4692 * Value must have pattern |
| 4697 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4693 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4698 * | 4694 * |
| 4699 * [zone] - Name of the zone scoping this request. | 4695 * [zone] - The name of the zone for this request. |
| 4700 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4696 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4701 * | 4697 * |
| 4702 * [filter] - Optional. Filter expression for filtering listed resources. | 4698 * [filter] - Optional. Filter expression for filtering listed resources. |
| 4703 * | 4699 * |
| 4704 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 4700 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 4705 * value is 500 and default value is 500. | 4701 * value is 500 and default value is 500. |
| 4706 * Value must be between "0" and "500". | 4702 * Value must be between "0" and "500". |
| 4707 * | 4703 * |
| 4708 * [pageToken] - Optional. Tag returned by a previous list request truncated | 4704 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 4709 * by maxResults. Used to continue a previous list request. | 4705 * by maxResults. Used to continue a previous list request. |
| 4710 * | 4706 * |
| 4711 * Completes with a [MachineTypeList]. | 4707 * Completes with a [MachineTypeList]. |
| 4712 * | 4708 * |
| 4713 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4709 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4714 * error. | 4710 * error. |
| 4715 * | 4711 * |
| 4716 * If the used [http.Client] completes with an error when making a REST call, | 4712 * If the used [http.Client] completes with an error when making a REST call, |
| 4717 * this method will complete with the same error. | 4713 * this method will complete with the same error. |
| 4718 */ | 4714 */ |
| 4719 async.Future<MachineTypeList> list(core.String project, core.String zone, {cor
e.String filter, core.int maxResults, core.String pageToken}) { | 4715 async.Future<MachineTypeList> list(core.String project, core.String zone, {cor
e.String filter, core.int maxResults, core.String pageToken}) { |
| 4720 var _url = null; | 4716 var _url = null; |
| 4721 var _queryParams = new core.Map(); | 4717 var _queryParams = new core.Map(); |
| 4722 var _uploadMedia = null; | 4718 var _uploadMedia = null; |
| 4723 var _uploadOptions = null; | 4719 var _uploadOptions = null; |
| 4724 var _downloadOptions = common.DownloadOptions.Metadata; | 4720 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4725 var _body = null; | 4721 var _body = null; |
| 4726 | 4722 |
| 4727 if (project == null) { | 4723 if (project == null) { |
| 4728 throw new core.ArgumentError("Parameter project is required."); | 4724 throw new core.ArgumentError("Parameter project is required."); |
| 4729 } | 4725 } |
| 4730 if (zone == null) { | 4726 if (zone == null) { |
| 4731 throw new core.ArgumentError("Parameter zone is required."); | 4727 throw new core.ArgumentError("Parameter zone is required."); |
| 4732 } | 4728 } |
| 4733 if (filter != null) { | 4729 if (filter != null) { |
| 4734 _queryParams["filter"] = [filter]; | 4730 _queryParams["filter"] = [filter]; |
| 4735 } | 4731 } |
| 4736 if (maxResults != null) { | 4732 if (maxResults != null) { |
| 4737 _queryParams["maxResults"] = ["${maxResults}"]; | 4733 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4738 } | 4734 } |
| 4739 if (pageToken != null) { | 4735 if (pageToken != null) { |
| 4740 _queryParams["pageToken"] = [pageToken]; | 4736 _queryParams["pageToken"] = [pageToken]; |
| 4741 } | 4737 } |
| 4742 | 4738 |
| 4743 | 4739 |
| 4744 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/machineTypes'; | 4740 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/machineTypes'; |
| 4745 | 4741 |
| 4746 var _response = _requester.request(_url, | 4742 var _response = _requester.request(_url, |
| 4747 "GET", | 4743 "GET", |
| 4748 body: _body, | 4744 body: _body, |
| 4749 queryParams: _queryParams, | 4745 queryParams: _queryParams, |
| 4750 uploadOptions: _uploadOptions, | 4746 uploadOptions: _uploadOptions, |
| 4751 uploadMedia: _uploadMedia, | 4747 uploadMedia: _uploadMedia, |
| 4752 downloadOptions: _downloadOptions); | 4748 downloadOptions: _downloadOptions); |
| 4753 return _response.then((data) => new MachineTypeList.fromJson(data)); | 4749 return _response.then((data) => new MachineTypeList.fromJson(data)); |
| 4754 } | 4750 } |
| 4755 | 4751 |
| 4756 } | 4752 } |
| 4757 | 4753 |
| 4758 | 4754 |
| 4759 /** Not documented yet. */ | |
| 4760 class NetworksResourceApi { | 4755 class NetworksResourceApi { |
| 4761 final common_internal.ApiRequester _requester; | 4756 final commons.ApiRequester _requester; |
| 4762 | 4757 |
| 4763 NetworksResourceApi(common_internal.ApiRequester client) : | 4758 NetworksResourceApi(commons.ApiRequester client) : |
| 4764 _requester = client; | 4759 _requester = client; |
| 4765 | 4760 |
| 4766 /** | 4761 /** |
| 4767 * Deletes the specified network resource. | 4762 * Deletes the specified network resource. |
| 4768 * | 4763 * |
| 4769 * Request parameters: | 4764 * Request parameters: |
| 4770 * | 4765 * |
| 4771 * [project] - Name of the project scoping this request. | 4766 * [project] - Project ID for this request. |
| 4772 * Value must have pattern | 4767 * Value must have pattern |
| 4773 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4768 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4774 * | 4769 * |
| 4775 * [network] - Name of the network resource to delete. | 4770 * [network] - Name of the network resource to delete. |
| 4776 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4771 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4777 * | 4772 * |
| 4778 * Completes with a [Operation]. | 4773 * Completes with a [Operation]. |
| 4779 * | 4774 * |
| 4780 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4775 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4781 * error. | 4776 * error. |
| 4782 * | 4777 * |
| 4783 * If the used [http.Client] completes with an error when making a REST call, | 4778 * If the used [http.Client] completes with an error when making a REST call, |
| 4784 * this method will complete with the same error. | 4779 * this method will complete with the same error. |
| 4785 */ | 4780 */ |
| 4786 async.Future<Operation> delete(core.String project, core.String network) { | 4781 async.Future<Operation> delete(core.String project, core.String network) { |
| 4787 var _url = null; | 4782 var _url = null; |
| 4788 var _queryParams = new core.Map(); | 4783 var _queryParams = new core.Map(); |
| 4789 var _uploadMedia = null; | 4784 var _uploadMedia = null; |
| 4790 var _uploadOptions = null; | 4785 var _uploadOptions = null; |
| 4791 var _downloadOptions = common.DownloadOptions.Metadata; | 4786 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4792 var _body = null; | 4787 var _body = null; |
| 4793 | 4788 |
| 4794 if (project == null) { | 4789 if (project == null) { |
| 4795 throw new core.ArgumentError("Parameter project is required."); | 4790 throw new core.ArgumentError("Parameter project is required."); |
| 4796 } | 4791 } |
| 4797 if (network == null) { | 4792 if (network == null) { |
| 4798 throw new core.ArgumentError("Parameter network is required."); | 4793 throw new core.ArgumentError("Parameter network is required."); |
| 4799 } | 4794 } |
| 4800 | 4795 |
| 4801 | 4796 |
| 4802 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks
/' + common_internal.Escaper.ecapeVariable('$network'); | 4797 _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + com
mons.Escaper.ecapeVariable('$network'); |
| 4803 | 4798 |
| 4804 var _response = _requester.request(_url, | 4799 var _response = _requester.request(_url, |
| 4805 "DELETE", | 4800 "DELETE", |
| 4806 body: _body, | 4801 body: _body, |
| 4807 queryParams: _queryParams, | 4802 queryParams: _queryParams, |
| 4808 uploadOptions: _uploadOptions, | 4803 uploadOptions: _uploadOptions, |
| 4809 uploadMedia: _uploadMedia, | 4804 uploadMedia: _uploadMedia, |
| 4810 downloadOptions: _downloadOptions); | 4805 downloadOptions: _downloadOptions); |
| 4811 return _response.then((data) => new Operation.fromJson(data)); | 4806 return _response.then((data) => new Operation.fromJson(data)); |
| 4812 } | 4807 } |
| 4813 | 4808 |
| 4814 /** | 4809 /** |
| 4815 * Returns the specified network resource. | 4810 * Returns the specified network resource. |
| 4816 * | 4811 * |
| 4817 * Request parameters: | 4812 * Request parameters: |
| 4818 * | 4813 * |
| 4819 * [project] - Name of the project scoping this request. | 4814 * [project] - Project ID for this request. |
| 4820 * Value must have pattern | 4815 * Value must have pattern |
| 4821 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4816 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4822 * | 4817 * |
| 4823 * [network] - Name of the network resource to return. | 4818 * [network] - Name of the network resource to return. |
| 4824 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 4819 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 4825 * | 4820 * |
| 4826 * Completes with a [Network]. | 4821 * Completes with a [Network]. |
| 4827 * | 4822 * |
| 4828 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4829 * error. | 4824 * error. |
| 4830 * | 4825 * |
| 4831 * If the used [http.Client] completes with an error when making a REST call, | 4826 * If the used [http.Client] completes with an error when making a REST call, |
| 4832 * this method will complete with the same error. | 4827 * this method will complete with the same error. |
| 4833 */ | 4828 */ |
| 4834 async.Future<Network> get(core.String project, core.String network) { | 4829 async.Future<Network> get(core.String project, core.String network) { |
| 4835 var _url = null; | 4830 var _url = null; |
| 4836 var _queryParams = new core.Map(); | 4831 var _queryParams = new core.Map(); |
| 4837 var _uploadMedia = null; | 4832 var _uploadMedia = null; |
| 4838 var _uploadOptions = null; | 4833 var _uploadOptions = null; |
| 4839 var _downloadOptions = common.DownloadOptions.Metadata; | 4834 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4840 var _body = null; | 4835 var _body = null; |
| 4841 | 4836 |
| 4842 if (project == null) { | 4837 if (project == null) { |
| 4843 throw new core.ArgumentError("Parameter project is required."); | 4838 throw new core.ArgumentError("Parameter project is required."); |
| 4844 } | 4839 } |
| 4845 if (network == null) { | 4840 if (network == null) { |
| 4846 throw new core.ArgumentError("Parameter network is required."); | 4841 throw new core.ArgumentError("Parameter network is required."); |
| 4847 } | 4842 } |
| 4848 | 4843 |
| 4849 | 4844 |
| 4850 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks
/' + common_internal.Escaper.ecapeVariable('$network'); | 4845 _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + com
mons.Escaper.ecapeVariable('$network'); |
| 4851 | 4846 |
| 4852 var _response = _requester.request(_url, | 4847 var _response = _requester.request(_url, |
| 4853 "GET", | 4848 "GET", |
| 4854 body: _body, | 4849 body: _body, |
| 4855 queryParams: _queryParams, | 4850 queryParams: _queryParams, |
| 4856 uploadOptions: _uploadOptions, | 4851 uploadOptions: _uploadOptions, |
| 4857 uploadMedia: _uploadMedia, | 4852 uploadMedia: _uploadMedia, |
| 4858 downloadOptions: _downloadOptions); | 4853 downloadOptions: _downloadOptions); |
| 4859 return _response.then((data) => new Network.fromJson(data)); | 4854 return _response.then((data) => new Network.fromJson(data)); |
| 4860 } | 4855 } |
| 4861 | 4856 |
| 4862 /** | 4857 /** |
| 4863 * Creates a network resource in the specified project using the data included | 4858 * Creates a network resource in the specified project using the data included |
| 4864 * in the request. | 4859 * in the request. |
| 4865 * | 4860 * |
| 4866 * [request] - The metadata request object. | 4861 * [request] - The metadata request object. |
| 4867 * | 4862 * |
| 4868 * Request parameters: | 4863 * Request parameters: |
| 4869 * | 4864 * |
| 4870 * [project] - Name of the project scoping this request. | 4865 * [project] - Project ID for this request. |
| 4871 * Value must have pattern | 4866 * Value must have pattern |
| 4872 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4867 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4873 * | 4868 * |
| 4874 * Completes with a [Operation]. | 4869 * Completes with a [Operation]. |
| 4875 * | 4870 * |
| 4876 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4871 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4877 * error. | 4872 * error. |
| 4878 * | 4873 * |
| 4879 * If the used [http.Client] completes with an error when making a REST call, | 4874 * If the used [http.Client] completes with an error when making a REST call, |
| 4880 * this method will complete with the same error. | 4875 * this method will complete with the same error. |
| 4881 */ | 4876 */ |
| 4882 async.Future<Operation> insert(Network request, core.String project) { | 4877 async.Future<Operation> insert(Network request, core.String project) { |
| 4883 var _url = null; | 4878 var _url = null; |
| 4884 var _queryParams = new core.Map(); | 4879 var _queryParams = new core.Map(); |
| 4885 var _uploadMedia = null; | 4880 var _uploadMedia = null; |
| 4886 var _uploadOptions = null; | 4881 var _uploadOptions = null; |
| 4887 var _downloadOptions = common.DownloadOptions.Metadata; | 4882 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4888 var _body = null; | 4883 var _body = null; |
| 4889 | 4884 |
| 4890 if (request != null) { | 4885 if (request != null) { |
| 4891 _body = convert.JSON.encode((request).toJson()); | 4886 _body = convert.JSON.encode((request).toJson()); |
| 4892 } | 4887 } |
| 4893 if (project == null) { | 4888 if (project == null) { |
| 4894 throw new core.ArgumentError("Parameter project is required."); | 4889 throw new core.ArgumentError("Parameter project is required."); |
| 4895 } | 4890 } |
| 4896 | 4891 |
| 4897 | 4892 |
| 4898 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks
'; | 4893 _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
| 4899 | 4894 |
| 4900 var _response = _requester.request(_url, | 4895 var _response = _requester.request(_url, |
| 4901 "POST", | 4896 "POST", |
| 4902 body: _body, | 4897 body: _body, |
| 4903 queryParams: _queryParams, | 4898 queryParams: _queryParams, |
| 4904 uploadOptions: _uploadOptions, | 4899 uploadOptions: _uploadOptions, |
| 4905 uploadMedia: _uploadMedia, | 4900 uploadMedia: _uploadMedia, |
| 4906 downloadOptions: _downloadOptions); | 4901 downloadOptions: _downloadOptions); |
| 4907 return _response.then((data) => new Operation.fromJson(data)); | 4902 return _response.then((data) => new Operation.fromJson(data)); |
| 4908 } | 4903 } |
| 4909 | 4904 |
| 4910 /** | 4905 /** |
| 4911 * Retrieves the list of network resources available to the specified project. | 4906 * Retrieves the list of network resources available to the specified project. |
| 4912 * | 4907 * |
| 4913 * Request parameters: | 4908 * Request parameters: |
| 4914 * | 4909 * |
| 4915 * [project] - Name of the project scoping this request. | 4910 * [project] - Project ID for this request. |
| 4916 * Value must have pattern | 4911 * Value must have pattern |
| 4917 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4912 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4918 * | 4913 * |
| 4919 * [filter] - Optional. Filter expression for filtering listed resources. | 4914 * [filter] - Optional. Filter expression for filtering listed resources. |
| 4920 * | 4915 * |
| 4921 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 4916 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 4922 * value is 500 and default value is 500. | 4917 * value is 500 and default value is 500. |
| 4923 * Value must be between "0" and "500". | 4918 * Value must be between "0" and "500". |
| 4924 * | 4919 * |
| 4925 * [pageToken] - Optional. Tag returned by a previous list request truncated | 4920 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 4926 * by maxResults. Used to continue a previous list request. | 4921 * by maxResults. Used to continue a previous list request. |
| 4927 * | 4922 * |
| 4928 * Completes with a [NetworkList]. | 4923 * Completes with a [NetworkList]. |
| 4929 * | 4924 * |
| 4930 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4925 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4931 * error. | 4926 * error. |
| 4932 * | 4927 * |
| 4933 * If the used [http.Client] completes with an error when making a REST call, | 4928 * If the used [http.Client] completes with an error when making a REST call, |
| 4934 * this method will complete with the same error. | 4929 * this method will complete with the same error. |
| 4935 */ | 4930 */ |
| 4936 async.Future<NetworkList> list(core.String project, {core.String filter, core.
int maxResults, core.String pageToken}) { | 4931 async.Future<NetworkList> list(core.String project, {core.String filter, core.
int maxResults, core.String pageToken}) { |
| 4937 var _url = null; | 4932 var _url = null; |
| 4938 var _queryParams = new core.Map(); | 4933 var _queryParams = new core.Map(); |
| 4939 var _uploadMedia = null; | 4934 var _uploadMedia = null; |
| 4940 var _uploadOptions = null; | 4935 var _uploadOptions = null; |
| 4941 var _downloadOptions = common.DownloadOptions.Metadata; | 4936 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4942 var _body = null; | 4937 var _body = null; |
| 4943 | 4938 |
| 4944 if (project == null) { | 4939 if (project == null) { |
| 4945 throw new core.ArgumentError("Parameter project is required."); | 4940 throw new core.ArgumentError("Parameter project is required."); |
| 4946 } | 4941 } |
| 4947 if (filter != null) { | 4942 if (filter != null) { |
| 4948 _queryParams["filter"] = [filter]; | 4943 _queryParams["filter"] = [filter]; |
| 4949 } | 4944 } |
| 4950 if (maxResults != null) { | 4945 if (maxResults != null) { |
| 4951 _queryParams["maxResults"] = ["${maxResults}"]; | 4946 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4952 } | 4947 } |
| 4953 if (pageToken != null) { | 4948 if (pageToken != null) { |
| 4954 _queryParams["pageToken"] = [pageToken]; | 4949 _queryParams["pageToken"] = [pageToken]; |
| 4955 } | 4950 } |
| 4956 | 4951 |
| 4957 | 4952 |
| 4958 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/networks
'; | 4953 _url = commons.Escaper.ecapeVariable('$project') + '/global/networks'; |
| 4959 | 4954 |
| 4960 var _response = _requester.request(_url, | 4955 var _response = _requester.request(_url, |
| 4961 "GET", | 4956 "GET", |
| 4962 body: _body, | 4957 body: _body, |
| 4963 queryParams: _queryParams, | 4958 queryParams: _queryParams, |
| 4964 uploadOptions: _uploadOptions, | 4959 uploadOptions: _uploadOptions, |
| 4965 uploadMedia: _uploadMedia, | 4960 uploadMedia: _uploadMedia, |
| 4966 downloadOptions: _downloadOptions); | 4961 downloadOptions: _downloadOptions); |
| 4967 return _response.then((data) => new NetworkList.fromJson(data)); | 4962 return _response.then((data) => new NetworkList.fromJson(data)); |
| 4968 } | 4963 } |
| 4969 | 4964 |
| 4970 } | 4965 } |
| 4971 | 4966 |
| 4972 | 4967 |
| 4973 /** Not documented yet. */ | |
| 4974 class ProjectsResourceApi { | 4968 class ProjectsResourceApi { |
| 4975 final common_internal.ApiRequester _requester; | 4969 final commons.ApiRequester _requester; |
| 4976 | 4970 |
| 4977 ProjectsResourceApi(common_internal.ApiRequester client) : | 4971 ProjectsResourceApi(commons.ApiRequester client) : |
| 4978 _requester = client; | 4972 _requester = client; |
| 4979 | 4973 |
| 4980 /** | 4974 /** |
| 4981 * Returns the specified project resource. | 4975 * Returns the specified project resource. |
| 4982 * | 4976 * |
| 4983 * Request parameters: | 4977 * Request parameters: |
| 4984 * | 4978 * |
| 4985 * [project] - Name of the project resource to retrieve. | 4979 * [project] - Project ID for this request. |
| 4986 * Value must have pattern | 4980 * Value must have pattern |
| 4987 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 4981 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 4988 * | 4982 * |
| 4989 * Completes with a [Project]. | 4983 * Completes with a [Project]. |
| 4990 * | 4984 * |
| 4991 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4985 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4992 * error. | 4986 * error. |
| 4993 * | 4987 * |
| 4994 * If the used [http.Client] completes with an error when making a REST call, | 4988 * If the used [http.Client] completes with an error when making a REST call, |
| 4995 * this method will complete with the same error. | 4989 * this method will complete with the same error. |
| 4996 */ | 4990 */ |
| 4997 async.Future<Project> get(core.String project) { | 4991 async.Future<Project> get(core.String project) { |
| 4998 var _url = null; | 4992 var _url = null; |
| 4999 var _queryParams = new core.Map(); | 4993 var _queryParams = new core.Map(); |
| 5000 var _uploadMedia = null; | 4994 var _uploadMedia = null; |
| 5001 var _uploadOptions = null; | 4995 var _uploadOptions = null; |
| 5002 var _downloadOptions = common.DownloadOptions.Metadata; | 4996 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5003 var _body = null; | 4997 var _body = null; |
| 5004 | 4998 |
| 5005 if (project == null) { | 4999 if (project == null) { |
| 5006 throw new core.ArgumentError("Parameter project is required."); | 5000 throw new core.ArgumentError("Parameter project is required."); |
| 5007 } | 5001 } |
| 5008 | 5002 |
| 5009 | 5003 |
| 5010 _url = common_internal.Escaper.ecapeVariable('$project'); | 5004 _url = commons.Escaper.ecapeVariable('$project'); |
| 5011 | 5005 |
| 5012 var _response = _requester.request(_url, | 5006 var _response = _requester.request(_url, |
| 5013 "GET", | 5007 "GET", |
| 5014 body: _body, | 5008 body: _body, |
| 5015 queryParams: _queryParams, | 5009 queryParams: _queryParams, |
| 5016 uploadOptions: _uploadOptions, | 5010 uploadOptions: _uploadOptions, |
| 5017 uploadMedia: _uploadMedia, | 5011 uploadMedia: _uploadMedia, |
| 5018 downloadOptions: _downloadOptions); | 5012 downloadOptions: _downloadOptions); |
| 5019 return _response.then((data) => new Project.fromJson(data)); | 5013 return _response.then((data) => new Project.fromJson(data)); |
| 5020 } | 5014 } |
| 5021 | 5015 |
| 5022 /** | 5016 /** |
| 5017 * Moves a persistent disk from one zone to another. |
| 5018 * |
| 5019 * [request] - The metadata request object. |
| 5020 * |
| 5021 * Request parameters: |
| 5022 * |
| 5023 * [project] - Project ID for this request. |
| 5024 * Value must have pattern |
| 5025 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5026 * |
| 5027 * Completes with a [Operation]. |
| 5028 * |
| 5029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5030 * error. |
| 5031 * |
| 5032 * If the used [http.Client] completes with an error when making a REST call, |
| 5033 * this method will complete with the same error. |
| 5034 */ |
| 5035 async.Future<Operation> moveDisk(DiskMoveRequest request, core.String project)
{ |
| 5036 var _url = null; |
| 5037 var _queryParams = new core.Map(); |
| 5038 var _uploadMedia = null; |
| 5039 var _uploadOptions = null; |
| 5040 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5041 var _body = null; |
| 5042 |
| 5043 if (request != null) { |
| 5044 _body = convert.JSON.encode((request).toJson()); |
| 5045 } |
| 5046 if (project == null) { |
| 5047 throw new core.ArgumentError("Parameter project is required."); |
| 5048 } |
| 5049 |
| 5050 |
| 5051 _url = commons.Escaper.ecapeVariable('$project') + '/moveDisk'; |
| 5052 |
| 5053 var _response = _requester.request(_url, |
| 5054 "POST", |
| 5055 body: _body, |
| 5056 queryParams: _queryParams, |
| 5057 uploadOptions: _uploadOptions, |
| 5058 uploadMedia: _uploadMedia, |
| 5059 downloadOptions: _downloadOptions); |
| 5060 return _response.then((data) => new Operation.fromJson(data)); |
| 5061 } |
| 5062 |
| 5063 /** |
| 5064 * Moves an instance and its attached persistent disks from one zone to |
| 5065 * another. |
| 5066 * |
| 5067 * [request] - The metadata request object. |
| 5068 * |
| 5069 * Request parameters: |
| 5070 * |
| 5071 * [project] - Project ID for this request. |
| 5072 * Value must have pattern |
| 5073 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5074 * |
| 5075 * Completes with a [Operation]. |
| 5076 * |
| 5077 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5078 * error. |
| 5079 * |
| 5080 * If the used [http.Client] completes with an error when making a REST call, |
| 5081 * this method will complete with the same error. |
| 5082 */ |
| 5083 async.Future<Operation> moveInstance(InstanceMoveRequest request, core.String
project) { |
| 5084 var _url = null; |
| 5085 var _queryParams = new core.Map(); |
| 5086 var _uploadMedia = null; |
| 5087 var _uploadOptions = null; |
| 5088 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5089 var _body = null; |
| 5090 |
| 5091 if (request != null) { |
| 5092 _body = convert.JSON.encode((request).toJson()); |
| 5093 } |
| 5094 if (project == null) { |
| 5095 throw new core.ArgumentError("Parameter project is required."); |
| 5096 } |
| 5097 |
| 5098 |
| 5099 _url = commons.Escaper.ecapeVariable('$project') + '/moveInstance'; |
| 5100 |
| 5101 var _response = _requester.request(_url, |
| 5102 "POST", |
| 5103 body: _body, |
| 5104 queryParams: _queryParams, |
| 5105 uploadOptions: _uploadOptions, |
| 5106 uploadMedia: _uploadMedia, |
| 5107 downloadOptions: _downloadOptions); |
| 5108 return _response.then((data) => new Operation.fromJson(data)); |
| 5109 } |
| 5110 |
| 5111 /** |
| 5023 * Sets metadata common to all instances within the specified project using | 5112 * Sets metadata common to all instances within the specified project using |
| 5024 * the data included in the request. | 5113 * the data included in the request. |
| 5025 * | 5114 * |
| 5026 * [request] - The metadata request object. | 5115 * [request] - The metadata request object. |
| 5027 * | 5116 * |
| 5028 * Request parameters: | 5117 * Request parameters: |
| 5029 * | 5118 * |
| 5030 * [project] - Name of the project scoping this request. | 5119 * [project] - Project ID for this request. |
| 5031 * Value must have pattern | 5120 * Value must have pattern |
| 5032 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5121 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5033 * | 5122 * |
| 5034 * Completes with a [Operation]. | 5123 * Completes with a [Operation]. |
| 5035 * | 5124 * |
| 5036 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5037 * error. | 5126 * error. |
| 5038 * | 5127 * |
| 5039 * If the used [http.Client] completes with an error when making a REST call, | 5128 * If the used [http.Client] completes with an error when making a REST call, |
| 5040 * this method will complete with the same error. | 5129 * this method will complete with the same error. |
| 5041 */ | 5130 */ |
| 5042 async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.Strin
g project) { | 5131 async.Future<Operation> setCommonInstanceMetadata(Metadata request, core.Strin
g project) { |
| 5043 var _url = null; | 5132 var _url = null; |
| 5044 var _queryParams = new core.Map(); | 5133 var _queryParams = new core.Map(); |
| 5045 var _uploadMedia = null; | 5134 var _uploadMedia = null; |
| 5046 var _uploadOptions = null; | 5135 var _uploadOptions = null; |
| 5047 var _downloadOptions = common.DownloadOptions.Metadata; | 5136 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5048 var _body = null; | 5137 var _body = null; |
| 5049 | 5138 |
| 5050 if (request != null) { | 5139 if (request != null) { |
| 5051 _body = convert.JSON.encode((request).toJson()); | 5140 _body = convert.JSON.encode((request).toJson()); |
| 5052 } | 5141 } |
| 5053 if (project == null) { | 5142 if (project == null) { |
| 5054 throw new core.ArgumentError("Parameter project is required."); | 5143 throw new core.ArgumentError("Parameter project is required."); |
| 5055 } | 5144 } |
| 5056 | 5145 |
| 5057 | 5146 |
| 5058 _url = common_internal.Escaper.ecapeVariable('$project') + '/setCommonInstan
ceMetadata'; | 5147 _url = commons.Escaper.ecapeVariable('$project') + '/setCommonInstanceMetada
ta'; |
| 5059 | 5148 |
| 5060 var _response = _requester.request(_url, | 5149 var _response = _requester.request(_url, |
| 5061 "POST", | 5150 "POST", |
| 5062 body: _body, | 5151 body: _body, |
| 5063 queryParams: _queryParams, | 5152 queryParams: _queryParams, |
| 5064 uploadOptions: _uploadOptions, | 5153 uploadOptions: _uploadOptions, |
| 5065 uploadMedia: _uploadMedia, | 5154 uploadMedia: _uploadMedia, |
| 5066 downloadOptions: _downloadOptions); | 5155 downloadOptions: _downloadOptions); |
| 5067 return _response.then((data) => new Operation.fromJson(data)); | 5156 return _response.then((data) => new Operation.fromJson(data)); |
| 5068 } | 5157 } |
| 5069 | 5158 |
| 5070 /** | 5159 /** |
| 5071 * Sets usage export location | 5160 * Enables the usage export feature and sets the usage export bucket where |
| 5161 * reports are stored. If you provide an empty request body using this method, |
| 5162 * the usage export feature will be disabled. |
| 5072 * | 5163 * |
| 5073 * [request] - The metadata request object. | 5164 * [request] - The metadata request object. |
| 5074 * | 5165 * |
| 5075 * Request parameters: | 5166 * Request parameters: |
| 5076 * | 5167 * |
| 5077 * [project] - Name of the project scoping this request. | 5168 * [project] - Project ID for this request. |
| 5078 * Value must have pattern | 5169 * Value must have pattern |
| 5079 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5170 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5080 * | 5171 * |
| 5081 * Completes with a [Operation]. | 5172 * Completes with a [Operation]. |
| 5082 * | 5173 * |
| 5083 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5174 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5084 * error. | 5175 * error. |
| 5085 * | 5176 * |
| 5086 * If the used [http.Client] completes with an error when making a REST call, | 5177 * If the used [http.Client] completes with an error when making a REST call, |
| 5087 * this method will complete with the same error. | 5178 * this method will complete with the same error. |
| 5088 */ | 5179 */ |
| 5089 async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core
.String project) { | 5180 async.Future<Operation> setUsageExportBucket(UsageExportLocation request, core
.String project) { |
| 5090 var _url = null; | 5181 var _url = null; |
| 5091 var _queryParams = new core.Map(); | 5182 var _queryParams = new core.Map(); |
| 5092 var _uploadMedia = null; | 5183 var _uploadMedia = null; |
| 5093 var _uploadOptions = null; | 5184 var _uploadOptions = null; |
| 5094 var _downloadOptions = common.DownloadOptions.Metadata; | 5185 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5095 var _body = null; | 5186 var _body = null; |
| 5096 | 5187 |
| 5097 if (request != null) { | 5188 if (request != null) { |
| 5098 _body = convert.JSON.encode((request).toJson()); | 5189 _body = convert.JSON.encode((request).toJson()); |
| 5099 } | 5190 } |
| 5100 if (project == null) { | 5191 if (project == null) { |
| 5101 throw new core.ArgumentError("Parameter project is required."); | 5192 throw new core.ArgumentError("Parameter project is required."); |
| 5102 } | 5193 } |
| 5103 | 5194 |
| 5104 | 5195 |
| 5105 _url = common_internal.Escaper.ecapeVariable('$project') + '/setUsageExportB
ucket'; | 5196 _url = commons.Escaper.ecapeVariable('$project') + '/setUsageExportBucket'; |
| 5106 | 5197 |
| 5107 var _response = _requester.request(_url, | 5198 var _response = _requester.request(_url, |
| 5108 "POST", | 5199 "POST", |
| 5109 body: _body, | 5200 body: _body, |
| 5110 queryParams: _queryParams, | 5201 queryParams: _queryParams, |
| 5111 uploadOptions: _uploadOptions, | 5202 uploadOptions: _uploadOptions, |
| 5112 uploadMedia: _uploadMedia, | 5203 uploadMedia: _uploadMedia, |
| 5113 downloadOptions: _downloadOptions); | 5204 downloadOptions: _downloadOptions); |
| 5114 return _response.then((data) => new Operation.fromJson(data)); | 5205 return _response.then((data) => new Operation.fromJson(data)); |
| 5115 } | 5206 } |
| 5116 | 5207 |
| 5117 } | 5208 } |
| 5118 | 5209 |
| 5119 | 5210 |
| 5120 /** Not documented yet. */ | |
| 5121 class RegionOperationsResourceApi { | 5211 class RegionOperationsResourceApi { |
| 5122 final common_internal.ApiRequester _requester; | 5212 final commons.ApiRequester _requester; |
| 5123 | 5213 |
| 5124 RegionOperationsResourceApi(common_internal.ApiRequester client) : | 5214 RegionOperationsResourceApi(commons.ApiRequester client) : |
| 5125 _requester = client; | 5215 _requester = client; |
| 5126 | 5216 |
| 5127 /** | 5217 /** |
| 5128 * Deletes the specified region-specific operation resource. | 5218 * Deletes the specified region-specific operation resource. |
| 5129 * | 5219 * |
| 5130 * Request parameters: | 5220 * Request parameters: |
| 5131 * | 5221 * |
| 5132 * [project] - Name of the project scoping this request. | 5222 * [project] - Project ID for this request. |
| 5133 * Value must have pattern | 5223 * Value must have pattern |
| 5134 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5224 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5135 * | 5225 * |
| 5136 * [region] - Name of the region scoping this request. | 5226 * [region] - Name of the region scoping this request. |
| 5137 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5227 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5138 * | 5228 * |
| 5139 * [operation] - Name of the operation resource to delete. | 5229 * [operation] - Name of the operation resource to delete. |
| 5140 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5230 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5141 * | 5231 * |
| 5142 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5232 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5143 * error. | 5233 * error. |
| 5144 * | 5234 * |
| 5145 * If the used [http.Client] completes with an error when making a REST call, | 5235 * If the used [http.Client] completes with an error when making a REST call, |
| 5146 * this method will complete with the same error. | 5236 * this method will complete with the same error. |
| 5147 */ | 5237 */ |
| 5148 async.Future delete(core.String project, core.String region, core.String opera
tion) { | 5238 async.Future delete(core.String project, core.String region, core.String opera
tion) { |
| 5149 var _url = null; | 5239 var _url = null; |
| 5150 var _queryParams = new core.Map(); | 5240 var _queryParams = new core.Map(); |
| 5151 var _uploadMedia = null; | 5241 var _uploadMedia = null; |
| 5152 var _uploadOptions = null; | 5242 var _uploadOptions = null; |
| 5153 var _downloadOptions = common.DownloadOptions.Metadata; | 5243 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5154 var _body = null; | 5244 var _body = null; |
| 5155 | 5245 |
| 5156 if (project == null) { | 5246 if (project == null) { |
| 5157 throw new core.ArgumentError("Parameter project is required."); | 5247 throw new core.ArgumentError("Parameter project is required."); |
| 5158 } | 5248 } |
| 5159 if (region == null) { | 5249 if (region == null) { |
| 5160 throw new core.ArgumentError("Parameter region is required."); | 5250 throw new core.ArgumentError("Parameter region is required."); |
| 5161 } | 5251 } |
| 5162 if (operation == null) { | 5252 if (operation == null) { |
| 5163 throw new core.ArgumentError("Parameter operation is required."); | 5253 throw new core.ArgumentError("Parameter operation is required."); |
| 5164 } | 5254 } |
| 5165 | 5255 |
| 5166 _downloadOptions = null; | 5256 _downloadOptions = null; |
| 5167 | 5257 |
| 5168 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/operations/' + common_internal
.Escaper.ecapeVariable('$operation'); | 5258 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('
$operation'); |
| 5169 | 5259 |
| 5170 var _response = _requester.request(_url, | 5260 var _response = _requester.request(_url, |
| 5171 "DELETE", | 5261 "DELETE", |
| 5172 body: _body, | 5262 body: _body, |
| 5173 queryParams: _queryParams, | 5263 queryParams: _queryParams, |
| 5174 uploadOptions: _uploadOptions, | 5264 uploadOptions: _uploadOptions, |
| 5175 uploadMedia: _uploadMedia, | 5265 uploadMedia: _uploadMedia, |
| 5176 downloadOptions: _downloadOptions); | 5266 downloadOptions: _downloadOptions); |
| 5177 return _response.then((data) => null); | 5267 return _response.then((data) => null); |
| 5178 } | 5268 } |
| 5179 | 5269 |
| 5180 /** | 5270 /** |
| 5181 * Retrieves the specified region-specific operation resource. | 5271 * Retrieves the specified region-specific operation resource. |
| 5182 * | 5272 * |
| 5183 * Request parameters: | 5273 * Request parameters: |
| 5184 * | 5274 * |
| 5185 * [project] - Name of the project scoping this request. | 5275 * [project] - Project ID for this request. |
| 5186 * Value must have pattern | 5276 * Value must have pattern |
| 5187 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5277 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5188 * | 5278 * |
| 5189 * [region] - Name of the zone scoping this request. | 5279 * [region] - Name of the zone scoping this request. |
| 5190 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5280 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5191 * | 5281 * |
| 5192 * [operation] - Name of the operation resource to return. | 5282 * [operation] - Name of the operation resource to return. |
| 5193 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5283 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5194 * | 5284 * |
| 5195 * Completes with a [Operation]. | 5285 * Completes with a [Operation]. |
| 5196 * | 5286 * |
| 5197 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5198 * error. | 5288 * error. |
| 5199 * | 5289 * |
| 5200 * If the used [http.Client] completes with an error when making a REST call, | 5290 * If the used [http.Client] completes with an error when making a REST call, |
| 5201 * this method will complete with the same error. | 5291 * this method will complete with the same error. |
| 5202 */ | 5292 */ |
| 5203 async.Future<Operation> get(core.String project, core.String region, core.Stri
ng operation) { | 5293 async.Future<Operation> get(core.String project, core.String region, core.Stri
ng operation) { |
| 5204 var _url = null; | 5294 var _url = null; |
| 5205 var _queryParams = new core.Map(); | 5295 var _queryParams = new core.Map(); |
| 5206 var _uploadMedia = null; | 5296 var _uploadMedia = null; |
| 5207 var _uploadOptions = null; | 5297 var _uploadOptions = null; |
| 5208 var _downloadOptions = common.DownloadOptions.Metadata; | 5298 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5209 var _body = null; | 5299 var _body = null; |
| 5210 | 5300 |
| 5211 if (project == null) { | 5301 if (project == null) { |
| 5212 throw new core.ArgumentError("Parameter project is required."); | 5302 throw new core.ArgumentError("Parameter project is required."); |
| 5213 } | 5303 } |
| 5214 if (region == null) { | 5304 if (region == null) { |
| 5215 throw new core.ArgumentError("Parameter region is required."); | 5305 throw new core.ArgumentError("Parameter region is required."); |
| 5216 } | 5306 } |
| 5217 if (operation == null) { | 5307 if (operation == null) { |
| 5218 throw new core.ArgumentError("Parameter operation is required."); | 5308 throw new core.ArgumentError("Parameter operation is required."); |
| 5219 } | 5309 } |
| 5220 | 5310 |
| 5221 | 5311 |
| 5222 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/operations/' + common_internal
.Escaper.ecapeVariable('$operation'); | 5312 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/operations/' + commons.Escaper.ecapeVariable('
$operation'); |
| 5223 | 5313 |
| 5224 var _response = _requester.request(_url, | 5314 var _response = _requester.request(_url, |
| 5225 "GET", | 5315 "GET", |
| 5226 body: _body, | 5316 body: _body, |
| 5227 queryParams: _queryParams, | 5317 queryParams: _queryParams, |
| 5228 uploadOptions: _uploadOptions, | 5318 uploadOptions: _uploadOptions, |
| 5229 uploadMedia: _uploadMedia, | 5319 uploadMedia: _uploadMedia, |
| 5230 downloadOptions: _downloadOptions); | 5320 downloadOptions: _downloadOptions); |
| 5231 return _response.then((data) => new Operation.fromJson(data)); | 5321 return _response.then((data) => new Operation.fromJson(data)); |
| 5232 } | 5322 } |
| 5233 | 5323 |
| 5234 /** | 5324 /** |
| 5235 * Retrieves the list of operation resources contained within the specified | 5325 * Retrieves the list of operation resources contained within the specified |
| 5236 * region. | 5326 * region. |
| 5237 * | 5327 * |
| 5238 * Request parameters: | 5328 * Request parameters: |
| 5239 * | 5329 * |
| 5240 * [project] - Name of the project scoping this request. | 5330 * [project] - Project ID for this request. |
| 5241 * Value must have pattern | 5331 * Value must have pattern |
| 5242 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5332 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5243 * | 5333 * |
| 5244 * [region] - Name of the region scoping this request. | 5334 * [region] - Name of the region scoping this request. |
| 5245 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5335 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5246 * | 5336 * |
| 5247 * [filter] - Optional. Filter expression for filtering listed resources. | 5337 * [filter] - Optional. Filter expression for filtering listed resources. |
| 5248 * | 5338 * |
| 5249 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 5339 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 5250 * value is 500 and default value is 500. | 5340 * value is 500 and default value is 500. |
| 5251 * Value must be between "0" and "500". | 5341 * Value must be between "0" and "500". |
| 5252 * | 5342 * |
| 5253 * [pageToken] - Optional. Tag returned by a previous list request truncated | 5343 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 5254 * by maxResults. Used to continue a previous list request. | 5344 * by maxResults. Used to continue a previous list request. |
| 5255 * | 5345 * |
| 5256 * Completes with a [OperationList]. | 5346 * Completes with a [OperationList]. |
| 5257 * | 5347 * |
| 5258 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5259 * error. | 5349 * error. |
| 5260 * | 5350 * |
| 5261 * If the used [http.Client] completes with an error when making a REST call, | 5351 * If the used [http.Client] completes with an error when making a REST call, |
| 5262 * this method will complete with the same error. | 5352 * this method will complete with the same error. |
| 5263 */ | 5353 */ |
| 5264 async.Future<OperationList> list(core.String project, core.String region, {cor
e.String filter, core.int maxResults, core.String pageToken}) { | 5354 async.Future<OperationList> list(core.String project, core.String region, {cor
e.String filter, core.int maxResults, core.String pageToken}) { |
| 5265 var _url = null; | 5355 var _url = null; |
| 5266 var _queryParams = new core.Map(); | 5356 var _queryParams = new core.Map(); |
| 5267 var _uploadMedia = null; | 5357 var _uploadMedia = null; |
| 5268 var _uploadOptions = null; | 5358 var _uploadOptions = null; |
| 5269 var _downloadOptions = common.DownloadOptions.Metadata; | 5359 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5270 var _body = null; | 5360 var _body = null; |
| 5271 | 5361 |
| 5272 if (project == null) { | 5362 if (project == null) { |
| 5273 throw new core.ArgumentError("Parameter project is required."); | 5363 throw new core.ArgumentError("Parameter project is required."); |
| 5274 } | 5364 } |
| 5275 if (region == null) { | 5365 if (region == null) { |
| 5276 throw new core.ArgumentError("Parameter region is required."); | 5366 throw new core.ArgumentError("Parameter region is required."); |
| 5277 } | 5367 } |
| 5278 if (filter != null) { | 5368 if (filter != null) { |
| 5279 _queryParams["filter"] = [filter]; | 5369 _queryParams["filter"] = [filter]; |
| 5280 } | 5370 } |
| 5281 if (maxResults != null) { | 5371 if (maxResults != null) { |
| 5282 _queryParams["maxResults"] = ["${maxResults}"]; | 5372 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5283 } | 5373 } |
| 5284 if (pageToken != null) { | 5374 if (pageToken != null) { |
| 5285 _queryParams["pageToken"] = [pageToken]; | 5375 _queryParams["pageToken"] = [pageToken]; |
| 5286 } | 5376 } |
| 5287 | 5377 |
| 5288 | 5378 |
| 5289 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/operations'; | 5379 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/operations'; |
| 5290 | 5380 |
| 5291 var _response = _requester.request(_url, | 5381 var _response = _requester.request(_url, |
| 5292 "GET", | 5382 "GET", |
| 5293 body: _body, | 5383 body: _body, |
| 5294 queryParams: _queryParams, | 5384 queryParams: _queryParams, |
| 5295 uploadOptions: _uploadOptions, | 5385 uploadOptions: _uploadOptions, |
| 5296 uploadMedia: _uploadMedia, | 5386 uploadMedia: _uploadMedia, |
| 5297 downloadOptions: _downloadOptions); | 5387 downloadOptions: _downloadOptions); |
| 5298 return _response.then((data) => new OperationList.fromJson(data)); | 5388 return _response.then((data) => new OperationList.fromJson(data)); |
| 5299 } | 5389 } |
| 5300 | 5390 |
| 5301 } | 5391 } |
| 5302 | 5392 |
| 5303 | 5393 |
| 5304 /** Not documented yet. */ | |
| 5305 class RegionsResourceApi { | 5394 class RegionsResourceApi { |
| 5306 final common_internal.ApiRequester _requester; | 5395 final commons.ApiRequester _requester; |
| 5307 | 5396 |
| 5308 RegionsResourceApi(common_internal.ApiRequester client) : | 5397 RegionsResourceApi(commons.ApiRequester client) : |
| 5309 _requester = client; | 5398 _requester = client; |
| 5310 | 5399 |
| 5311 /** | 5400 /** |
| 5312 * Returns the specified region resource. | 5401 * Returns the specified region resource. |
| 5313 * | 5402 * |
| 5314 * Request parameters: | 5403 * Request parameters: |
| 5315 * | 5404 * |
| 5316 * [project] - Name of the project scoping this request. | 5405 * [project] - Project ID for this request. |
| 5317 * Value must have pattern | 5406 * Value must have pattern |
| 5318 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5407 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5319 * | 5408 * |
| 5320 * [region] - Name of the region resource to return. | 5409 * [region] - Name of the region resource to return. |
| 5321 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5410 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5322 * | 5411 * |
| 5323 * Completes with a [Region]. | 5412 * Completes with a [Region]. |
| 5324 * | 5413 * |
| 5325 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5414 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5326 * error. | 5415 * error. |
| 5327 * | 5416 * |
| 5328 * If the used [http.Client] completes with an error when making a REST call, | 5417 * If the used [http.Client] completes with an error when making a REST call, |
| 5329 * this method will complete with the same error. | 5418 * this method will complete with the same error. |
| 5330 */ | 5419 */ |
| 5331 async.Future<Region> get(core.String project, core.String region) { | 5420 async.Future<Region> get(core.String project, core.String region) { |
| 5332 var _url = null; | 5421 var _url = null; |
| 5333 var _queryParams = new core.Map(); | 5422 var _queryParams = new core.Map(); |
| 5334 var _uploadMedia = null; | 5423 var _uploadMedia = null; |
| 5335 var _uploadOptions = null; | 5424 var _uploadOptions = null; |
| 5336 var _downloadOptions = common.DownloadOptions.Metadata; | 5425 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5337 var _body = null; | 5426 var _body = null; |
| 5338 | 5427 |
| 5339 if (project == null) { | 5428 if (project == null) { |
| 5340 throw new core.ArgumentError("Parameter project is required."); | 5429 throw new core.ArgumentError("Parameter project is required."); |
| 5341 } | 5430 } |
| 5342 if (region == null) { | 5431 if (region == null) { |
| 5343 throw new core.ArgumentError("Parameter region is required."); | 5432 throw new core.ArgumentError("Parameter region is required."); |
| 5344 } | 5433 } |
| 5345 | 5434 |
| 5346 | 5435 |
| 5347 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region'); | 5436 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region'); |
| 5348 | 5437 |
| 5349 var _response = _requester.request(_url, | 5438 var _response = _requester.request(_url, |
| 5350 "GET", | 5439 "GET", |
| 5351 body: _body, | 5440 body: _body, |
| 5352 queryParams: _queryParams, | 5441 queryParams: _queryParams, |
| 5353 uploadOptions: _uploadOptions, | 5442 uploadOptions: _uploadOptions, |
| 5354 uploadMedia: _uploadMedia, | 5443 uploadMedia: _uploadMedia, |
| 5355 downloadOptions: _downloadOptions); | 5444 downloadOptions: _downloadOptions); |
| 5356 return _response.then((data) => new Region.fromJson(data)); | 5445 return _response.then((data) => new Region.fromJson(data)); |
| 5357 } | 5446 } |
| 5358 | 5447 |
| 5359 /** | 5448 /** |
| 5360 * Retrieves the list of region resources available to the specified project. | 5449 * Retrieves the list of region resources available to the specified project. |
| 5361 * | 5450 * |
| 5362 * Request parameters: | 5451 * Request parameters: |
| 5363 * | 5452 * |
| 5364 * [project] - Name of the project scoping this request. | 5453 * [project] - Project ID for this request. |
| 5365 * Value must have pattern | 5454 * Value must have pattern |
| 5366 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5455 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5367 * | 5456 * |
| 5368 * [filter] - Optional. Filter expression for filtering listed resources. | 5457 * [filter] - Optional. Filter expression for filtering listed resources. |
| 5369 * | 5458 * |
| 5370 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 5459 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 5371 * value is 500 and default value is 500. | 5460 * value is 500 and default value is 500. |
| 5372 * Value must be between "0" and "500". | 5461 * Value must be between "0" and "500". |
| 5373 * | 5462 * |
| 5374 * [pageToken] - Optional. Tag returned by a previous list request truncated | 5463 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 5375 * by maxResults. Used to continue a previous list request. | 5464 * by maxResults. Used to continue a previous list request. |
| 5376 * | 5465 * |
| 5377 * Completes with a [RegionList]. | 5466 * Completes with a [RegionList]. |
| 5378 * | 5467 * |
| 5379 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5380 * error. | 5469 * error. |
| 5381 * | 5470 * |
| 5382 * If the used [http.Client] completes with an error when making a REST call, | 5471 * If the used [http.Client] completes with an error when making a REST call, |
| 5383 * this method will complete with the same error. | 5472 * this method will complete with the same error. |
| 5384 */ | 5473 */ |
| 5385 async.Future<RegionList> list(core.String project, {core.String filter, core.i
nt maxResults, core.String pageToken}) { | 5474 async.Future<RegionList> list(core.String project, {core.String filter, core.i
nt maxResults, core.String pageToken}) { |
| 5386 var _url = null; | 5475 var _url = null; |
| 5387 var _queryParams = new core.Map(); | 5476 var _queryParams = new core.Map(); |
| 5388 var _uploadMedia = null; | 5477 var _uploadMedia = null; |
| 5389 var _uploadOptions = null; | 5478 var _uploadOptions = null; |
| 5390 var _downloadOptions = common.DownloadOptions.Metadata; | 5479 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5391 var _body = null; | 5480 var _body = null; |
| 5392 | 5481 |
| 5393 if (project == null) { | 5482 if (project == null) { |
| 5394 throw new core.ArgumentError("Parameter project is required."); | 5483 throw new core.ArgumentError("Parameter project is required."); |
| 5395 } | 5484 } |
| 5396 if (filter != null) { | 5485 if (filter != null) { |
| 5397 _queryParams["filter"] = [filter]; | 5486 _queryParams["filter"] = [filter]; |
| 5398 } | 5487 } |
| 5399 if (maxResults != null) { | 5488 if (maxResults != null) { |
| 5400 _queryParams["maxResults"] = ["${maxResults}"]; | 5489 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5401 } | 5490 } |
| 5402 if (pageToken != null) { | 5491 if (pageToken != null) { |
| 5403 _queryParams["pageToken"] = [pageToken]; | 5492 _queryParams["pageToken"] = [pageToken]; |
| 5404 } | 5493 } |
| 5405 | 5494 |
| 5406 | 5495 |
| 5407 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions'; | 5496 _url = commons.Escaper.ecapeVariable('$project') + '/regions'; |
| 5408 | 5497 |
| 5409 var _response = _requester.request(_url, | 5498 var _response = _requester.request(_url, |
| 5410 "GET", | 5499 "GET", |
| 5411 body: _body, | 5500 body: _body, |
| 5412 queryParams: _queryParams, | 5501 queryParams: _queryParams, |
| 5413 uploadOptions: _uploadOptions, | 5502 uploadOptions: _uploadOptions, |
| 5414 uploadMedia: _uploadMedia, | 5503 uploadMedia: _uploadMedia, |
| 5415 downloadOptions: _downloadOptions); | 5504 downloadOptions: _downloadOptions); |
| 5416 return _response.then((data) => new RegionList.fromJson(data)); | 5505 return _response.then((data) => new RegionList.fromJson(data)); |
| 5417 } | 5506 } |
| 5418 | 5507 |
| 5419 } | 5508 } |
| 5420 | 5509 |
| 5421 | 5510 |
| 5422 /** Not documented yet. */ | |
| 5423 class RoutesResourceApi { | 5511 class RoutesResourceApi { |
| 5424 final common_internal.ApiRequester _requester; | 5512 final commons.ApiRequester _requester; |
| 5425 | 5513 |
| 5426 RoutesResourceApi(common_internal.ApiRequester client) : | 5514 RoutesResourceApi(commons.ApiRequester client) : |
| 5427 _requester = client; | 5515 _requester = client; |
| 5428 | 5516 |
| 5429 /** | 5517 /** |
| 5430 * Deletes the specified route resource. | 5518 * Deletes the specified route resource. |
| 5431 * | 5519 * |
| 5432 * Request parameters: | 5520 * Request parameters: |
| 5433 * | 5521 * |
| 5434 * [project] - Name of the project scoping this request. | 5522 * [project] - Name of the project scoping this request. |
| 5435 * Value must have pattern | 5523 * Value must have pattern |
| 5436 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5524 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5437 * | 5525 * |
| 5438 * [route] - Name of the route resource to delete. | 5526 * [route] - Name of the route resource to delete. |
| 5439 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5527 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5440 * | 5528 * |
| 5441 * Completes with a [Operation]. | 5529 * Completes with a [Operation]. |
| 5442 * | 5530 * |
| 5443 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5444 * error. | 5532 * error. |
| 5445 * | 5533 * |
| 5446 * If the used [http.Client] completes with an error when making a REST call, | 5534 * If the used [http.Client] completes with an error when making a REST call, |
| 5447 * this method will complete with the same error. | 5535 * this method will complete with the same error. |
| 5448 */ | 5536 */ |
| 5449 async.Future<Operation> delete(core.String project, core.String route) { | 5537 async.Future<Operation> delete(core.String project, core.String route) { |
| 5450 var _url = null; | 5538 var _url = null; |
| 5451 var _queryParams = new core.Map(); | 5539 var _queryParams = new core.Map(); |
| 5452 var _uploadMedia = null; | 5540 var _uploadMedia = null; |
| 5453 var _uploadOptions = null; | 5541 var _uploadOptions = null; |
| 5454 var _downloadOptions = common.DownloadOptions.Metadata; | 5542 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5455 var _body = null; | 5543 var _body = null; |
| 5456 | 5544 |
| 5457 if (project == null) { | 5545 if (project == null) { |
| 5458 throw new core.ArgumentError("Parameter project is required."); | 5546 throw new core.ArgumentError("Parameter project is required."); |
| 5459 } | 5547 } |
| 5460 if (route == null) { | 5548 if (route == null) { |
| 5461 throw new core.ArgumentError("Parameter route is required."); | 5549 throw new core.ArgumentError("Parameter route is required."); |
| 5462 } | 5550 } |
| 5463 | 5551 |
| 5464 | 5552 |
| 5465 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes/'
+ common_internal.Escaper.ecapeVariable('$route'); | 5553 _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commo
ns.Escaper.ecapeVariable('$route'); |
| 5466 | 5554 |
| 5467 var _response = _requester.request(_url, | 5555 var _response = _requester.request(_url, |
| 5468 "DELETE", | 5556 "DELETE", |
| 5469 body: _body, | 5557 body: _body, |
| 5470 queryParams: _queryParams, | 5558 queryParams: _queryParams, |
| 5471 uploadOptions: _uploadOptions, | 5559 uploadOptions: _uploadOptions, |
| 5472 uploadMedia: _uploadMedia, | 5560 uploadMedia: _uploadMedia, |
| 5473 downloadOptions: _downloadOptions); | 5561 downloadOptions: _downloadOptions); |
| 5474 return _response.then((data) => new Operation.fromJson(data)); | 5562 return _response.then((data) => new Operation.fromJson(data)); |
| 5475 } | 5563 } |
| 5476 | 5564 |
| 5477 /** | 5565 /** |
| 5478 * Returns the specified route resource. | 5566 * Returns the specified route resource. |
| 5479 * | 5567 * |
| 5480 * Request parameters: | 5568 * Request parameters: |
| 5481 * | 5569 * |
| 5482 * [project] - Name of the project scoping this request. | 5570 * [project] - Name of the project scoping this request. |
| 5483 * Value must have pattern | 5571 * Value must have pattern |
| 5484 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5572 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5485 * | 5573 * |
| 5486 * [route] - Name of the route resource to return. | 5574 * [route] - Name of the route resource to return. |
| 5487 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5575 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5488 * | 5576 * |
| 5489 * Completes with a [Route]. | 5577 * Completes with a [Route]. |
| 5490 * | 5578 * |
| 5491 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5579 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5492 * error. | 5580 * error. |
| 5493 * | 5581 * |
| 5494 * If the used [http.Client] completes with an error when making a REST call, | 5582 * If the used [http.Client] completes with an error when making a REST call, |
| 5495 * this method will complete with the same error. | 5583 * this method will complete with the same error. |
| 5496 */ | 5584 */ |
| 5497 async.Future<Route> get(core.String project, core.String route) { | 5585 async.Future<Route> get(core.String project, core.String route) { |
| 5498 var _url = null; | 5586 var _url = null; |
| 5499 var _queryParams = new core.Map(); | 5587 var _queryParams = new core.Map(); |
| 5500 var _uploadMedia = null; | 5588 var _uploadMedia = null; |
| 5501 var _uploadOptions = null; | 5589 var _uploadOptions = null; |
| 5502 var _downloadOptions = common.DownloadOptions.Metadata; | 5590 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5503 var _body = null; | 5591 var _body = null; |
| 5504 | 5592 |
| 5505 if (project == null) { | 5593 if (project == null) { |
| 5506 throw new core.ArgumentError("Parameter project is required."); | 5594 throw new core.ArgumentError("Parameter project is required."); |
| 5507 } | 5595 } |
| 5508 if (route == null) { | 5596 if (route == null) { |
| 5509 throw new core.ArgumentError("Parameter route is required."); | 5597 throw new core.ArgumentError("Parameter route is required."); |
| 5510 } | 5598 } |
| 5511 | 5599 |
| 5512 | 5600 |
| 5513 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes/'
+ common_internal.Escaper.ecapeVariable('$route'); | 5601 _url = commons.Escaper.ecapeVariable('$project') + '/global/routes/' + commo
ns.Escaper.ecapeVariable('$route'); |
| 5514 | 5602 |
| 5515 var _response = _requester.request(_url, | 5603 var _response = _requester.request(_url, |
| 5516 "GET", | 5604 "GET", |
| 5517 body: _body, | 5605 body: _body, |
| 5518 queryParams: _queryParams, | 5606 queryParams: _queryParams, |
| 5519 uploadOptions: _uploadOptions, | 5607 uploadOptions: _uploadOptions, |
| 5520 uploadMedia: _uploadMedia, | 5608 uploadMedia: _uploadMedia, |
| 5521 downloadOptions: _downloadOptions); | 5609 downloadOptions: _downloadOptions); |
| 5522 return _response.then((data) => new Route.fromJson(data)); | 5610 return _response.then((data) => new Route.fromJson(data)); |
| 5523 } | 5611 } |
| 5524 | 5612 |
| 5525 /** | 5613 /** |
| 5526 * Creates a route resource in the specified project using the data included | 5614 * Creates a route resource in the specified project using the data included |
| 5527 * in the request. | 5615 * in the request. |
| 5528 * | 5616 * |
| 5529 * [request] - The metadata request object. | 5617 * [request] - The metadata request object. |
| 5530 * | 5618 * |
| 5531 * Request parameters: | 5619 * Request parameters: |
| 5532 * | 5620 * |
| 5533 * [project] - Name of the project scoping this request. | 5621 * [project] - Name of the project scoping this request. |
| 5534 * Value must have pattern | 5622 * Value must have pattern |
| 5535 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5623 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5536 * | 5624 * |
| 5537 * Completes with a [Operation]. | 5625 * Completes with a [Operation]. |
| 5538 * | 5626 * |
| 5539 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5540 * error. | 5628 * error. |
| 5541 * | 5629 * |
| 5542 * If the used [http.Client] completes with an error when making a REST call, | 5630 * If the used [http.Client] completes with an error when making a REST call, |
| 5543 * this method will complete with the same error. | 5631 * this method will complete with the same error. |
| 5544 */ | 5632 */ |
| 5545 async.Future<Operation> insert(Route request, core.String project) { | 5633 async.Future<Operation> insert(Route request, core.String project) { |
| 5546 var _url = null; | 5634 var _url = null; |
| 5547 var _queryParams = new core.Map(); | 5635 var _queryParams = new core.Map(); |
| 5548 var _uploadMedia = null; | 5636 var _uploadMedia = null; |
| 5549 var _uploadOptions = null; | 5637 var _uploadOptions = null; |
| 5550 var _downloadOptions = common.DownloadOptions.Metadata; | 5638 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5551 var _body = null; | 5639 var _body = null; |
| 5552 | 5640 |
| 5553 if (request != null) { | 5641 if (request != null) { |
| 5554 _body = convert.JSON.encode((request).toJson()); | 5642 _body = convert.JSON.encode((request).toJson()); |
| 5555 } | 5643 } |
| 5556 if (project == null) { | 5644 if (project == null) { |
| 5557 throw new core.ArgumentError("Parameter project is required."); | 5645 throw new core.ArgumentError("Parameter project is required."); |
| 5558 } | 5646 } |
| 5559 | 5647 |
| 5560 | 5648 |
| 5561 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes'; | 5649 _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
| 5562 | 5650 |
| 5563 var _response = _requester.request(_url, | 5651 var _response = _requester.request(_url, |
| 5564 "POST", | 5652 "POST", |
| 5565 body: _body, | 5653 body: _body, |
| 5566 queryParams: _queryParams, | 5654 queryParams: _queryParams, |
| 5567 uploadOptions: _uploadOptions, | 5655 uploadOptions: _uploadOptions, |
| 5568 uploadMedia: _uploadMedia, | 5656 uploadMedia: _uploadMedia, |
| 5569 downloadOptions: _downloadOptions); | 5657 downloadOptions: _downloadOptions); |
| 5570 return _response.then((data) => new Operation.fromJson(data)); | 5658 return _response.then((data) => new Operation.fromJson(data)); |
| 5571 } | 5659 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5583 * | 5671 * |
| 5584 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 5672 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 5585 * value is 500 and default value is 500. | 5673 * value is 500 and default value is 500. |
| 5586 * Value must be between "0" and "500". | 5674 * Value must be between "0" and "500". |
| 5587 * | 5675 * |
| 5588 * [pageToken] - Optional. Tag returned by a previous list request truncated | 5676 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 5589 * by maxResults. Used to continue a previous list request. | 5677 * by maxResults. Used to continue a previous list request. |
| 5590 * | 5678 * |
| 5591 * Completes with a [RouteList]. | 5679 * Completes with a [RouteList]. |
| 5592 * | 5680 * |
| 5593 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5681 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5594 * error. | 5682 * error. |
| 5595 * | 5683 * |
| 5596 * If the used [http.Client] completes with an error when making a REST call, | 5684 * If the used [http.Client] completes with an error when making a REST call, |
| 5597 * this method will complete with the same error. | 5685 * this method will complete with the same error. |
| 5598 */ | 5686 */ |
| 5599 async.Future<RouteList> list(core.String project, {core.String filter, core.in
t maxResults, core.String pageToken}) { | 5687 async.Future<RouteList> list(core.String project, {core.String filter, core.in
t maxResults, core.String pageToken}) { |
| 5600 var _url = null; | 5688 var _url = null; |
| 5601 var _queryParams = new core.Map(); | 5689 var _queryParams = new core.Map(); |
| 5602 var _uploadMedia = null; | 5690 var _uploadMedia = null; |
| 5603 var _uploadOptions = null; | 5691 var _uploadOptions = null; |
| 5604 var _downloadOptions = common.DownloadOptions.Metadata; | 5692 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5605 var _body = null; | 5693 var _body = null; |
| 5606 | 5694 |
| 5607 if (project == null) { | 5695 if (project == null) { |
| 5608 throw new core.ArgumentError("Parameter project is required."); | 5696 throw new core.ArgumentError("Parameter project is required."); |
| 5609 } | 5697 } |
| 5610 if (filter != null) { | 5698 if (filter != null) { |
| 5611 _queryParams["filter"] = [filter]; | 5699 _queryParams["filter"] = [filter]; |
| 5612 } | 5700 } |
| 5613 if (maxResults != null) { | 5701 if (maxResults != null) { |
| 5614 _queryParams["maxResults"] = ["${maxResults}"]; | 5702 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5615 } | 5703 } |
| 5616 if (pageToken != null) { | 5704 if (pageToken != null) { |
| 5617 _queryParams["pageToken"] = [pageToken]; | 5705 _queryParams["pageToken"] = [pageToken]; |
| 5618 } | 5706 } |
| 5619 | 5707 |
| 5620 | 5708 |
| 5621 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/routes'; | 5709 _url = commons.Escaper.ecapeVariable('$project') + '/global/routes'; |
| 5622 | 5710 |
| 5623 var _response = _requester.request(_url, | 5711 var _response = _requester.request(_url, |
| 5624 "GET", | 5712 "GET", |
| 5625 body: _body, | 5713 body: _body, |
| 5626 queryParams: _queryParams, | 5714 queryParams: _queryParams, |
| 5627 uploadOptions: _uploadOptions, | 5715 uploadOptions: _uploadOptions, |
| 5628 uploadMedia: _uploadMedia, | 5716 uploadMedia: _uploadMedia, |
| 5629 downloadOptions: _downloadOptions); | 5717 downloadOptions: _downloadOptions); |
| 5630 return _response.then((data) => new RouteList.fromJson(data)); | 5718 return _response.then((data) => new RouteList.fromJson(data)); |
| 5631 } | 5719 } |
| 5632 | 5720 |
| 5633 } | 5721 } |
| 5634 | 5722 |
| 5635 | 5723 |
| 5636 /** Not documented yet. */ | |
| 5637 class SnapshotsResourceApi { | 5724 class SnapshotsResourceApi { |
| 5638 final common_internal.ApiRequester _requester; | 5725 final commons.ApiRequester _requester; |
| 5639 | 5726 |
| 5640 SnapshotsResourceApi(common_internal.ApiRequester client) : | 5727 SnapshotsResourceApi(commons.ApiRequester client) : |
| 5641 _requester = client; | 5728 _requester = client; |
| 5642 | 5729 |
| 5643 /** | 5730 /** |
| 5644 * Deletes the specified persistent disk snapshot resource. | 5731 * Deletes the specified persistent disk snapshot resource. |
| 5645 * | 5732 * |
| 5646 * Request parameters: | 5733 * Request parameters: |
| 5647 * | 5734 * |
| 5648 * [project] - Name of the project scoping this request. | 5735 * [project] - Name of the project scoping this request. |
| 5649 * Value must have pattern | 5736 * Value must have pattern |
| 5650 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5737 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5651 * | 5738 * |
| 5652 * [snapshot] - Name of the persistent disk snapshot resource to delete. | 5739 * [snapshot] - Name of the persistent disk snapshot resource to delete. |
| 5653 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5740 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5654 * | 5741 * |
| 5655 * Completes with a [Operation]. | 5742 * Completes with a [Operation]. |
| 5656 * | 5743 * |
| 5657 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5744 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5658 * error. | 5745 * error. |
| 5659 * | 5746 * |
| 5660 * If the used [http.Client] completes with an error when making a REST call, | 5747 * If the used [http.Client] completes with an error when making a REST call, |
| 5661 * this method will complete with the same error. | 5748 * this method will complete with the same error. |
| 5662 */ | 5749 */ |
| 5663 async.Future<Operation> delete(core.String project, core.String snapshot) { | 5750 async.Future<Operation> delete(core.String project, core.String snapshot) { |
| 5664 var _url = null; | 5751 var _url = null; |
| 5665 var _queryParams = new core.Map(); | 5752 var _queryParams = new core.Map(); |
| 5666 var _uploadMedia = null; | 5753 var _uploadMedia = null; |
| 5667 var _uploadOptions = null; | 5754 var _uploadOptions = null; |
| 5668 var _downloadOptions = common.DownloadOptions.Metadata; | 5755 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5669 var _body = null; | 5756 var _body = null; |
| 5670 | 5757 |
| 5671 if (project == null) { | 5758 if (project == null) { |
| 5672 throw new core.ArgumentError("Parameter project is required."); | 5759 throw new core.ArgumentError("Parameter project is required."); |
| 5673 } | 5760 } |
| 5674 if (snapshot == null) { | 5761 if (snapshot == null) { |
| 5675 throw new core.ArgumentError("Parameter snapshot is required."); | 5762 throw new core.ArgumentError("Parameter snapshot is required."); |
| 5676 } | 5763 } |
| 5677 | 5764 |
| 5678 | 5765 |
| 5679 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshot
s/' + common_internal.Escaper.ecapeVariable('$snapshot'); | 5766 _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + co
mmons.Escaper.ecapeVariable('$snapshot'); |
| 5680 | 5767 |
| 5681 var _response = _requester.request(_url, | 5768 var _response = _requester.request(_url, |
| 5682 "DELETE", | 5769 "DELETE", |
| 5683 body: _body, | 5770 body: _body, |
| 5684 queryParams: _queryParams, | 5771 queryParams: _queryParams, |
| 5685 uploadOptions: _uploadOptions, | 5772 uploadOptions: _uploadOptions, |
| 5686 uploadMedia: _uploadMedia, | 5773 uploadMedia: _uploadMedia, |
| 5687 downloadOptions: _downloadOptions); | 5774 downloadOptions: _downloadOptions); |
| 5688 return _response.then((data) => new Operation.fromJson(data)); | 5775 return _response.then((data) => new Operation.fromJson(data)); |
| 5689 } | 5776 } |
| 5690 | 5777 |
| 5691 /** | 5778 /** |
| 5692 * Returns the specified persistent disk snapshot resource. | 5779 * Returns the specified persistent disk snapshot resource. |
| 5693 * | 5780 * |
| 5694 * Request parameters: | 5781 * Request parameters: |
| 5695 * | 5782 * |
| 5696 * [project] - Name of the project scoping this request. | 5783 * [project] - Name of the project scoping this request. |
| 5697 * Value must have pattern | 5784 * Value must have pattern |
| 5698 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5785 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5699 * | 5786 * |
| 5700 * [snapshot] - Name of the persistent disk snapshot resource to return. | 5787 * [snapshot] - Name of the persistent disk snapshot resource to return. |
| 5701 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5788 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5702 * | 5789 * |
| 5703 * Completes with a [Snapshot]. | 5790 * Completes with a [Snapshot]. |
| 5704 * | 5791 * |
| 5705 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5706 * error. | 5793 * error. |
| 5707 * | 5794 * |
| 5708 * If the used [http.Client] completes with an error when making a REST call, | 5795 * If the used [http.Client] completes with an error when making a REST call, |
| 5709 * this method will complete with the same error. | 5796 * this method will complete with the same error. |
| 5710 */ | 5797 */ |
| 5711 async.Future<Snapshot> get(core.String project, core.String snapshot) { | 5798 async.Future<Snapshot> get(core.String project, core.String snapshot) { |
| 5712 var _url = null; | 5799 var _url = null; |
| 5713 var _queryParams = new core.Map(); | 5800 var _queryParams = new core.Map(); |
| 5714 var _uploadMedia = null; | 5801 var _uploadMedia = null; |
| 5715 var _uploadOptions = null; | 5802 var _uploadOptions = null; |
| 5716 var _downloadOptions = common.DownloadOptions.Metadata; | 5803 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5717 var _body = null; | 5804 var _body = null; |
| 5718 | 5805 |
| 5719 if (project == null) { | 5806 if (project == null) { |
| 5720 throw new core.ArgumentError("Parameter project is required."); | 5807 throw new core.ArgumentError("Parameter project is required."); |
| 5721 } | 5808 } |
| 5722 if (snapshot == null) { | 5809 if (snapshot == null) { |
| 5723 throw new core.ArgumentError("Parameter snapshot is required."); | 5810 throw new core.ArgumentError("Parameter snapshot is required."); |
| 5724 } | 5811 } |
| 5725 | 5812 |
| 5726 | 5813 |
| 5727 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshot
s/' + common_internal.Escaper.ecapeVariable('$snapshot'); | 5814 _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots/' + co
mmons.Escaper.ecapeVariable('$snapshot'); |
| 5728 | 5815 |
| 5729 var _response = _requester.request(_url, | 5816 var _response = _requester.request(_url, |
| 5730 "GET", | 5817 "GET", |
| 5731 body: _body, | 5818 body: _body, |
| 5732 queryParams: _queryParams, | 5819 queryParams: _queryParams, |
| 5733 uploadOptions: _uploadOptions, | 5820 uploadOptions: _uploadOptions, |
| 5734 uploadMedia: _uploadMedia, | 5821 uploadMedia: _uploadMedia, |
| 5735 downloadOptions: _downloadOptions); | 5822 downloadOptions: _downloadOptions); |
| 5736 return _response.then((data) => new Snapshot.fromJson(data)); | 5823 return _response.then((data) => new Snapshot.fromJson(data)); |
| 5737 } | 5824 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5750 * | 5837 * |
| 5751 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 5838 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 5752 * value is 500 and default value is 500. | 5839 * value is 500 and default value is 500. |
| 5753 * Value must be between "0" and "500". | 5840 * Value must be between "0" and "500". |
| 5754 * | 5841 * |
| 5755 * [pageToken] - Optional. Tag returned by a previous list request truncated | 5842 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 5756 * by maxResults. Used to continue a previous list request. | 5843 * by maxResults. Used to continue a previous list request. |
| 5757 * | 5844 * |
| 5758 * Completes with a [SnapshotList]. | 5845 * Completes with a [SnapshotList]. |
| 5759 * | 5846 * |
| 5760 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5847 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5761 * error. | 5848 * error. |
| 5762 * | 5849 * |
| 5763 * If the used [http.Client] completes with an error when making a REST call, | 5850 * If the used [http.Client] completes with an error when making a REST call, |
| 5764 * this method will complete with the same error. | 5851 * this method will complete with the same error. |
| 5765 */ | 5852 */ |
| 5766 async.Future<SnapshotList> list(core.String project, {core.String filter, core
.int maxResults, core.String pageToken}) { | 5853 async.Future<SnapshotList> list(core.String project, {core.String filter, core
.int maxResults, core.String pageToken}) { |
| 5767 var _url = null; | 5854 var _url = null; |
| 5768 var _queryParams = new core.Map(); | 5855 var _queryParams = new core.Map(); |
| 5769 var _uploadMedia = null; | 5856 var _uploadMedia = null; |
| 5770 var _uploadOptions = null; | 5857 var _uploadOptions = null; |
| 5771 var _downloadOptions = common.DownloadOptions.Metadata; | 5858 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5772 var _body = null; | 5859 var _body = null; |
| 5773 | 5860 |
| 5774 if (project == null) { | 5861 if (project == null) { |
| 5775 throw new core.ArgumentError("Parameter project is required."); | 5862 throw new core.ArgumentError("Parameter project is required."); |
| 5776 } | 5863 } |
| 5777 if (filter != null) { | 5864 if (filter != null) { |
| 5778 _queryParams["filter"] = [filter]; | 5865 _queryParams["filter"] = [filter]; |
| 5779 } | 5866 } |
| 5780 if (maxResults != null) { | 5867 if (maxResults != null) { |
| 5781 _queryParams["maxResults"] = ["${maxResults}"]; | 5868 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5782 } | 5869 } |
| 5783 if (pageToken != null) { | 5870 if (pageToken != null) { |
| 5784 _queryParams["pageToken"] = [pageToken]; | 5871 _queryParams["pageToken"] = [pageToken]; |
| 5785 } | 5872 } |
| 5786 | 5873 |
| 5787 | 5874 |
| 5788 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/snapshot
s'; | 5875 _url = commons.Escaper.ecapeVariable('$project') + '/global/snapshots'; |
| 5789 | 5876 |
| 5790 var _response = _requester.request(_url, | 5877 var _response = _requester.request(_url, |
| 5791 "GET", | 5878 "GET", |
| 5792 body: _body, | 5879 body: _body, |
| 5793 queryParams: _queryParams, | 5880 queryParams: _queryParams, |
| 5794 uploadOptions: _uploadOptions, | 5881 uploadOptions: _uploadOptions, |
| 5795 uploadMedia: _uploadMedia, | 5882 uploadMedia: _uploadMedia, |
| 5796 downloadOptions: _downloadOptions); | 5883 downloadOptions: _downloadOptions); |
| 5797 return _response.then((data) => new SnapshotList.fromJson(data)); | 5884 return _response.then((data) => new SnapshotList.fromJson(data)); |
| 5798 } | 5885 } |
| 5799 | 5886 |
| 5800 } | 5887 } |
| 5801 | 5888 |
| 5802 | 5889 |
| 5803 /** Not documented yet. */ | |
| 5804 class TargetHttpProxiesResourceApi { | 5890 class TargetHttpProxiesResourceApi { |
| 5805 final common_internal.ApiRequester _requester; | 5891 final commons.ApiRequester _requester; |
| 5806 | 5892 |
| 5807 TargetHttpProxiesResourceApi(common_internal.ApiRequester client) : | 5893 TargetHttpProxiesResourceApi(commons.ApiRequester client) : |
| 5808 _requester = client; | 5894 _requester = client; |
| 5809 | 5895 |
| 5810 /** | 5896 /** |
| 5811 * Deletes the specified TargetHttpProxy resource. | 5897 * Deletes the specified TargetHttpProxy resource. |
| 5812 * | 5898 * |
| 5813 * Request parameters: | 5899 * Request parameters: |
| 5814 * | 5900 * |
| 5815 * [project] - Name of the project scoping this request. | 5901 * [project] - Name of the project scoping this request. |
| 5816 * Value must have pattern | 5902 * Value must have pattern |
| 5817 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5903 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5818 * | 5904 * |
| 5819 * [targetHttpProxy] - Name of the TargetHttpProxy resource to delete. | 5905 * [targetHttpProxy] - Name of the TargetHttpProxy resource to delete. |
| 5820 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5906 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5821 * | 5907 * |
| 5822 * Completes with a [Operation]. | 5908 * Completes with a [Operation]. |
| 5823 * | 5909 * |
| 5824 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5910 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5825 * error. | 5911 * error. |
| 5826 * | 5912 * |
| 5827 * If the used [http.Client] completes with an error when making a REST call, | 5913 * If the used [http.Client] completes with an error when making a REST call, |
| 5828 * this method will complete with the same error. | 5914 * this method will complete with the same error. |
| 5829 */ | 5915 */ |
| 5830 async.Future<Operation> delete(core.String project, core.String targetHttpProx
y) { | 5916 async.Future<Operation> delete(core.String project, core.String targetHttpProx
y) { |
| 5831 var _url = null; | 5917 var _url = null; |
| 5832 var _queryParams = new core.Map(); | 5918 var _queryParams = new core.Map(); |
| 5833 var _uploadMedia = null; | 5919 var _uploadMedia = null; |
| 5834 var _uploadOptions = null; | 5920 var _uploadOptions = null; |
| 5835 var _downloadOptions = common.DownloadOptions.Metadata; | 5921 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5836 var _body = null; | 5922 var _body = null; |
| 5837 | 5923 |
| 5838 if (project == null) { | 5924 if (project == null) { |
| 5839 throw new core.ArgumentError("Parameter project is required."); | 5925 throw new core.ArgumentError("Parameter project is required."); |
| 5840 } | 5926 } |
| 5841 if (targetHttpProxy == null) { | 5927 if (targetHttpProxy == null) { |
| 5842 throw new core.ArgumentError("Parameter targetHttpProxy is required."); | 5928 throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
| 5843 } | 5929 } |
| 5844 | 5930 |
| 5845 | 5931 |
| 5846 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHt
tpProxies/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy'); | 5932 _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxie
s/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
| 5847 | 5933 |
| 5848 var _response = _requester.request(_url, | 5934 var _response = _requester.request(_url, |
| 5849 "DELETE", | 5935 "DELETE", |
| 5850 body: _body, | 5936 body: _body, |
| 5851 queryParams: _queryParams, | 5937 queryParams: _queryParams, |
| 5852 uploadOptions: _uploadOptions, | 5938 uploadOptions: _uploadOptions, |
| 5853 uploadMedia: _uploadMedia, | 5939 uploadMedia: _uploadMedia, |
| 5854 downloadOptions: _downloadOptions); | 5940 downloadOptions: _downloadOptions); |
| 5855 return _response.then((data) => new Operation.fromJson(data)); | 5941 return _response.then((data) => new Operation.fromJson(data)); |
| 5856 } | 5942 } |
| 5857 | 5943 |
| 5858 /** | 5944 /** |
| 5859 * Returns the specified TargetHttpProxy resource. | 5945 * Returns the specified TargetHttpProxy resource. |
| 5860 * | 5946 * |
| 5861 * Request parameters: | 5947 * Request parameters: |
| 5862 * | 5948 * |
| 5863 * [project] - Name of the project scoping this request. | 5949 * [project] - Name of the project scoping this request. |
| 5864 * Value must have pattern | 5950 * Value must have pattern |
| 5865 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 5951 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5866 * | 5952 * |
| 5867 * [targetHttpProxy] - Name of the TargetHttpProxy resource to return. | 5953 * [targetHttpProxy] - Name of the TargetHttpProxy resource to return. |
| 5868 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 5954 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 5869 * | 5955 * |
| 5870 * Completes with a [TargetHttpProxy]. | 5956 * Completes with a [TargetHttpProxy]. |
| 5871 * | 5957 * |
| 5872 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5873 * error. | 5959 * error. |
| 5874 * | 5960 * |
| 5875 * If the used [http.Client] completes with an error when making a REST call, | 5961 * If the used [http.Client] completes with an error when making a REST call, |
| 5876 * this method will complete with the same error. | 5962 * this method will complete with the same error. |
| 5877 */ | 5963 */ |
| 5878 async.Future<TargetHttpProxy> get(core.String project, core.String targetHttpP
roxy) { | 5964 async.Future<TargetHttpProxy> get(core.String project, core.String targetHttpP
roxy) { |
| 5879 var _url = null; | 5965 var _url = null; |
| 5880 var _queryParams = new core.Map(); | 5966 var _queryParams = new core.Map(); |
| 5881 var _uploadMedia = null; | 5967 var _uploadMedia = null; |
| 5882 var _uploadOptions = null; | 5968 var _uploadOptions = null; |
| 5883 var _downloadOptions = common.DownloadOptions.Metadata; | 5969 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5884 var _body = null; | 5970 var _body = null; |
| 5885 | 5971 |
| 5886 if (project == null) { | 5972 if (project == null) { |
| 5887 throw new core.ArgumentError("Parameter project is required."); | 5973 throw new core.ArgumentError("Parameter project is required."); |
| 5888 } | 5974 } |
| 5889 if (targetHttpProxy == null) { | 5975 if (targetHttpProxy == null) { |
| 5890 throw new core.ArgumentError("Parameter targetHttpProxy is required."); | 5976 throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
| 5891 } | 5977 } |
| 5892 | 5978 |
| 5893 | 5979 |
| 5894 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHt
tpProxies/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy'); | 5980 _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxie
s/' + commons.Escaper.ecapeVariable('$targetHttpProxy'); |
| 5895 | 5981 |
| 5896 var _response = _requester.request(_url, | 5982 var _response = _requester.request(_url, |
| 5897 "GET", | 5983 "GET", |
| 5898 body: _body, | 5984 body: _body, |
| 5899 queryParams: _queryParams, | 5985 queryParams: _queryParams, |
| 5900 uploadOptions: _uploadOptions, | 5986 uploadOptions: _uploadOptions, |
| 5901 uploadMedia: _uploadMedia, | 5987 uploadMedia: _uploadMedia, |
| 5902 downloadOptions: _downloadOptions); | 5988 downloadOptions: _downloadOptions); |
| 5903 return _response.then((data) => new TargetHttpProxy.fromJson(data)); | 5989 return _response.then((data) => new TargetHttpProxy.fromJson(data)); |
| 5904 } | 5990 } |
| 5905 | 5991 |
| 5906 /** | 5992 /** |
| 5907 * Creates a TargetHttpProxy resource in the specified project using the data | 5993 * Creates a TargetHttpProxy resource in the specified project using the data |
| 5908 * included in the request. | 5994 * included in the request. |
| 5909 * | 5995 * |
| 5910 * [request] - The metadata request object. | 5996 * [request] - The metadata request object. |
| 5911 * | 5997 * |
| 5912 * Request parameters: | 5998 * Request parameters: |
| 5913 * | 5999 * |
| 5914 * [project] - Name of the project scoping this request. | 6000 * [project] - Name of the project scoping this request. |
| 5915 * Value must have pattern | 6001 * Value must have pattern |
| 5916 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6002 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 5917 * | 6003 * |
| 5918 * Completes with a [Operation]. | 6004 * Completes with a [Operation]. |
| 5919 * | 6005 * |
| 5920 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5921 * error. | 6007 * error. |
| 5922 * | 6008 * |
| 5923 * If the used [http.Client] completes with an error when making a REST call, | 6009 * If the used [http.Client] completes with an error when making a REST call, |
| 5924 * this method will complete with the same error. | 6010 * this method will complete with the same error. |
| 5925 */ | 6011 */ |
| 5926 async.Future<Operation> insert(TargetHttpProxy request, core.String project) { | 6012 async.Future<Operation> insert(TargetHttpProxy request, core.String project) { |
| 5927 var _url = null; | 6013 var _url = null; |
| 5928 var _queryParams = new core.Map(); | 6014 var _queryParams = new core.Map(); |
| 5929 var _uploadMedia = null; | 6015 var _uploadMedia = null; |
| 5930 var _uploadOptions = null; | 6016 var _uploadOptions = null; |
| 5931 var _downloadOptions = common.DownloadOptions.Metadata; | 6017 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5932 var _body = null; | 6018 var _body = null; |
| 5933 | 6019 |
| 5934 if (request != null) { | 6020 if (request != null) { |
| 5935 _body = convert.JSON.encode((request).toJson()); | 6021 _body = convert.JSON.encode((request).toJson()); |
| 5936 } | 6022 } |
| 5937 if (project == null) { | 6023 if (project == null) { |
| 5938 throw new core.ArgumentError("Parameter project is required."); | 6024 throw new core.ArgumentError("Parameter project is required."); |
| 5939 } | 6025 } |
| 5940 | 6026 |
| 5941 | 6027 |
| 5942 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHt
tpProxies'; | 6028 _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxie
s'; |
| 5943 | 6029 |
| 5944 var _response = _requester.request(_url, | 6030 var _response = _requester.request(_url, |
| 5945 "POST", | 6031 "POST", |
| 5946 body: _body, | 6032 body: _body, |
| 5947 queryParams: _queryParams, | 6033 queryParams: _queryParams, |
| 5948 uploadOptions: _uploadOptions, | 6034 uploadOptions: _uploadOptions, |
| 5949 uploadMedia: _uploadMedia, | 6035 uploadMedia: _uploadMedia, |
| 5950 downloadOptions: _downloadOptions); | 6036 downloadOptions: _downloadOptions); |
| 5951 return _response.then((data) => new Operation.fromJson(data)); | 6037 return _response.then((data) => new Operation.fromJson(data)); |
| 5952 } | 6038 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5965 * | 6051 * |
| 5966 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 6052 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 5967 * value is 500 and default value is 500. | 6053 * value is 500 and default value is 500. |
| 5968 * Value must be between "0" and "500". | 6054 * Value must be between "0" and "500". |
| 5969 * | 6055 * |
| 5970 * [pageToken] - Optional. Tag returned by a previous list request truncated | 6056 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 5971 * by maxResults. Used to continue a previous list request. | 6057 * by maxResults. Used to continue a previous list request. |
| 5972 * | 6058 * |
| 5973 * Completes with a [TargetHttpProxyList]. | 6059 * Completes with a [TargetHttpProxyList]. |
| 5974 * | 6060 * |
| 5975 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6061 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5976 * error. | 6062 * error. |
| 5977 * | 6063 * |
| 5978 * If the used [http.Client] completes with an error when making a REST call, | 6064 * If the used [http.Client] completes with an error when making a REST call, |
| 5979 * this method will complete with the same error. | 6065 * this method will complete with the same error. |
| 5980 */ | 6066 */ |
| 5981 async.Future<TargetHttpProxyList> list(core.String project, {core.String filte
r, core.int maxResults, core.String pageToken}) { | 6067 async.Future<TargetHttpProxyList> list(core.String project, {core.String filte
r, core.int maxResults, core.String pageToken}) { |
| 5982 var _url = null; | 6068 var _url = null; |
| 5983 var _queryParams = new core.Map(); | 6069 var _queryParams = new core.Map(); |
| 5984 var _uploadMedia = null; | 6070 var _uploadMedia = null; |
| 5985 var _uploadOptions = null; | 6071 var _uploadOptions = null; |
| 5986 var _downloadOptions = common.DownloadOptions.Metadata; | 6072 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5987 var _body = null; | 6073 var _body = null; |
| 5988 | 6074 |
| 5989 if (project == null) { | 6075 if (project == null) { |
| 5990 throw new core.ArgumentError("Parameter project is required."); | 6076 throw new core.ArgumentError("Parameter project is required."); |
| 5991 } | 6077 } |
| 5992 if (filter != null) { | 6078 if (filter != null) { |
| 5993 _queryParams["filter"] = [filter]; | 6079 _queryParams["filter"] = [filter]; |
| 5994 } | 6080 } |
| 5995 if (maxResults != null) { | 6081 if (maxResults != null) { |
| 5996 _queryParams["maxResults"] = ["${maxResults}"]; | 6082 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5997 } | 6083 } |
| 5998 if (pageToken != null) { | 6084 if (pageToken != null) { |
| 5999 _queryParams["pageToken"] = [pageToken]; | 6085 _queryParams["pageToken"] = [pageToken]; |
| 6000 } | 6086 } |
| 6001 | 6087 |
| 6002 | 6088 |
| 6003 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/targetHt
tpProxies'; | 6089 _url = commons.Escaper.ecapeVariable('$project') + '/global/targetHttpProxie
s'; |
| 6004 | 6090 |
| 6005 var _response = _requester.request(_url, | 6091 var _response = _requester.request(_url, |
| 6006 "GET", | 6092 "GET", |
| 6007 body: _body, | 6093 body: _body, |
| 6008 queryParams: _queryParams, | 6094 queryParams: _queryParams, |
| 6009 uploadOptions: _uploadOptions, | 6095 uploadOptions: _uploadOptions, |
| 6010 uploadMedia: _uploadMedia, | 6096 uploadMedia: _uploadMedia, |
| 6011 downloadOptions: _downloadOptions); | 6097 downloadOptions: _downloadOptions); |
| 6012 return _response.then((data) => new TargetHttpProxyList.fromJson(data)); | 6098 return _response.then((data) => new TargetHttpProxyList.fromJson(data)); |
| 6013 } | 6099 } |
| 6014 | 6100 |
| 6015 /** | 6101 /** |
| 6016 * Changes the URL map for TargetHttpProxy. | 6102 * Changes the URL map for TargetHttpProxy. |
| 6017 * | 6103 * |
| 6018 * [request] - The metadata request object. | 6104 * [request] - The metadata request object. |
| 6019 * | 6105 * |
| 6020 * Request parameters: | 6106 * Request parameters: |
| 6021 * | 6107 * |
| 6022 * [project] - Name of the project scoping this request. | 6108 * [project] - Name of the project scoping this request. |
| 6023 * Value must have pattern | 6109 * Value must have pattern |
| 6024 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6110 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6025 * | 6111 * |
| 6026 * [targetHttpProxy] - Name of the TargetHttpProxy resource whose URL map is | 6112 * [targetHttpProxy] - Name of the TargetHttpProxy resource whose URL map is |
| 6027 * to be set. | 6113 * to be set. |
| 6028 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6114 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6029 * | 6115 * |
| 6030 * Completes with a [Operation]. | 6116 * Completes with a [Operation]. |
| 6031 * | 6117 * |
| 6032 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6033 * error. | 6119 * error. |
| 6034 * | 6120 * |
| 6035 * If the used [http.Client] completes with an error when making a REST call, | 6121 * If the used [http.Client] completes with an error when making a REST call, |
| 6036 * this method will complete with the same error. | 6122 * this method will complete with the same error. |
| 6037 */ | 6123 */ |
| 6038 async.Future<Operation> setUrlMap(UrlMapReference request, core.String project
, core.String targetHttpProxy) { | 6124 async.Future<Operation> setUrlMap(UrlMapReference request, core.String project
, core.String targetHttpProxy) { |
| 6039 var _url = null; | 6125 var _url = null; |
| 6040 var _queryParams = new core.Map(); | 6126 var _queryParams = new core.Map(); |
| 6041 var _uploadMedia = null; | 6127 var _uploadMedia = null; |
| 6042 var _uploadOptions = null; | 6128 var _uploadOptions = null; |
| 6043 var _downloadOptions = common.DownloadOptions.Metadata; | 6129 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6044 var _body = null; | 6130 var _body = null; |
| 6045 | 6131 |
| 6046 if (request != null) { | 6132 if (request != null) { |
| 6047 _body = convert.JSON.encode((request).toJson()); | 6133 _body = convert.JSON.encode((request).toJson()); |
| 6048 } | 6134 } |
| 6049 if (project == null) { | 6135 if (project == null) { |
| 6050 throw new core.ArgumentError("Parameter project is required."); | 6136 throw new core.ArgumentError("Parameter project is required."); |
| 6051 } | 6137 } |
| 6052 if (targetHttpProxy == null) { | 6138 if (targetHttpProxy == null) { |
| 6053 throw new core.ArgumentError("Parameter targetHttpProxy is required."); | 6139 throw new core.ArgumentError("Parameter targetHttpProxy is required."); |
| 6054 } | 6140 } |
| 6055 | 6141 |
| 6056 | 6142 |
| 6057 _url = common_internal.Escaper.ecapeVariable('$project') + '/targetHttpProxi
es/' + common_internal.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap'; | 6143 _url = commons.Escaper.ecapeVariable('$project') + '/targetHttpProxies/' + c
ommons.Escaper.ecapeVariable('$targetHttpProxy') + '/setUrlMap'; |
| 6058 | 6144 |
| 6059 var _response = _requester.request(_url, | 6145 var _response = _requester.request(_url, |
| 6060 "POST", | 6146 "POST", |
| 6061 body: _body, | 6147 body: _body, |
| 6062 queryParams: _queryParams, | 6148 queryParams: _queryParams, |
| 6063 uploadOptions: _uploadOptions, | 6149 uploadOptions: _uploadOptions, |
| 6064 uploadMedia: _uploadMedia, | 6150 uploadMedia: _uploadMedia, |
| 6065 downloadOptions: _downloadOptions); | 6151 downloadOptions: _downloadOptions); |
| 6066 return _response.then((data) => new Operation.fromJson(data)); | 6152 return _response.then((data) => new Operation.fromJson(data)); |
| 6067 } | 6153 } |
| 6068 | 6154 |
| 6069 } | 6155 } |
| 6070 | 6156 |
| 6071 | 6157 |
| 6072 /** Not documented yet. */ | |
| 6073 class TargetInstancesResourceApi { | 6158 class TargetInstancesResourceApi { |
| 6074 final common_internal.ApiRequester _requester; | 6159 final commons.ApiRequester _requester; |
| 6075 | 6160 |
| 6076 TargetInstancesResourceApi(common_internal.ApiRequester client) : | 6161 TargetInstancesResourceApi(commons.ApiRequester client) : |
| 6077 _requester = client; | 6162 _requester = client; |
| 6078 | 6163 |
| 6079 /** | 6164 /** |
| 6080 * Retrieves the list of target instances grouped by scope. | 6165 * Retrieves the list of target instances grouped by scope. |
| 6081 * | 6166 * |
| 6082 * Request parameters: | 6167 * Request parameters: |
| 6083 * | 6168 * |
| 6084 * [project] - Name of the project scoping this request. | 6169 * [project] - Name of the project scoping this request. |
| 6085 * Value must have pattern | 6170 * Value must have pattern |
| 6086 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6171 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6087 * | 6172 * |
| 6088 * [filter] - Optional. Filter expression for filtering listed resources. | 6173 * [filter] - Optional. Filter expression for filtering listed resources. |
| 6089 * | 6174 * |
| 6090 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 6175 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 6091 * value is 500 and default value is 500. | 6176 * value is 500 and default value is 500. |
| 6092 * Value must be between "0" and "500". | 6177 * Value must be between "0" and "500". |
| 6093 * | 6178 * |
| 6094 * [pageToken] - Optional. Tag returned by a previous list request truncated | 6179 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 6095 * by maxResults. Used to continue a previous list request. | 6180 * by maxResults. Used to continue a previous list request. |
| 6096 * | 6181 * |
| 6097 * Completes with a [TargetInstanceAggregatedList]. | 6182 * Completes with a [TargetInstanceAggregatedList]. |
| 6098 * | 6183 * |
| 6099 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6184 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6100 * error. | 6185 * error. |
| 6101 * | 6186 * |
| 6102 * If the used [http.Client] completes with an error when making a REST call, | 6187 * If the used [http.Client] completes with an error when making a REST call, |
| 6103 * this method will complete with the same error. | 6188 * this method will complete with the same error. |
| 6104 */ | 6189 */ |
| 6105 async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project,
{core.String filter, core.int maxResults, core.String pageToken}) { | 6190 async.Future<TargetInstanceAggregatedList> aggregatedList(core.String project,
{core.String filter, core.int maxResults, core.String pageToken}) { |
| 6106 var _url = null; | 6191 var _url = null; |
| 6107 var _queryParams = new core.Map(); | 6192 var _queryParams = new core.Map(); |
| 6108 var _uploadMedia = null; | 6193 var _uploadMedia = null; |
| 6109 var _uploadOptions = null; | 6194 var _uploadOptions = null; |
| 6110 var _downloadOptions = common.DownloadOptions.Metadata; | 6195 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6111 var _body = null; | 6196 var _body = null; |
| 6112 | 6197 |
| 6113 if (project == null) { | 6198 if (project == null) { |
| 6114 throw new core.ArgumentError("Parameter project is required."); | 6199 throw new core.ArgumentError("Parameter project is required."); |
| 6115 } | 6200 } |
| 6116 if (filter != null) { | 6201 if (filter != null) { |
| 6117 _queryParams["filter"] = [filter]; | 6202 _queryParams["filter"] = [filter]; |
| 6118 } | 6203 } |
| 6119 if (maxResults != null) { | 6204 if (maxResults != null) { |
| 6120 _queryParams["maxResults"] = ["${maxResults}"]; | 6205 _queryParams["maxResults"] = ["${maxResults}"]; |
| 6121 } | 6206 } |
| 6122 if (pageToken != null) { | 6207 if (pageToken != null) { |
| 6123 _queryParams["pageToken"] = [pageToken]; | 6208 _queryParams["pageToken"] = [pageToken]; |
| 6124 } | 6209 } |
| 6125 | 6210 |
| 6126 | 6211 |
| 6127 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/targ
etInstances'; | 6212 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetInstan
ces'; |
| 6128 | 6213 |
| 6129 var _response = _requester.request(_url, | 6214 var _response = _requester.request(_url, |
| 6130 "GET", | 6215 "GET", |
| 6131 body: _body, | 6216 body: _body, |
| 6132 queryParams: _queryParams, | 6217 queryParams: _queryParams, |
| 6133 uploadOptions: _uploadOptions, | 6218 uploadOptions: _uploadOptions, |
| 6134 uploadMedia: _uploadMedia, | 6219 uploadMedia: _uploadMedia, |
| 6135 downloadOptions: _downloadOptions); | 6220 downloadOptions: _downloadOptions); |
| 6136 return _response.then((data) => new TargetInstanceAggregatedList.fromJson(da
ta)); | 6221 return _response.then((data) => new TargetInstanceAggregatedList.fromJson(da
ta)); |
| 6137 } | 6222 } |
| 6138 | 6223 |
| 6139 /** | 6224 /** |
| 6140 * Deletes the specified TargetInstance resource. | 6225 * Deletes the specified TargetInstance resource. |
| 6141 * | 6226 * |
| 6142 * Request parameters: | 6227 * Request parameters: |
| 6143 * | 6228 * |
| 6144 * [project] - Name of the project scoping this request. | 6229 * [project] - Name of the project scoping this request. |
| 6145 * Value must have pattern | 6230 * Value must have pattern |
| 6146 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6231 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6147 * | 6232 * |
| 6148 * [zone] - Name of the zone scoping this request. | 6233 * [zone] - Name of the zone scoping this request. |
| 6149 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6234 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6150 * | 6235 * |
| 6151 * [targetInstance] - Name of the TargetInstance resource to delete. | 6236 * [targetInstance] - Name of the TargetInstance resource to delete. |
| 6152 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6237 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6153 * | 6238 * |
| 6154 * Completes with a [Operation]. | 6239 * Completes with a [Operation]. |
| 6155 * | 6240 * |
| 6156 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6241 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6157 * error. | 6242 * error. |
| 6158 * | 6243 * |
| 6159 * If the used [http.Client] completes with an error when making a REST call, | 6244 * If the used [http.Client] completes with an error when making a REST call, |
| 6160 * this method will complete with the same error. | 6245 * this method will complete with the same error. |
| 6161 */ | 6246 */ |
| 6162 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing targetInstance) { | 6247 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing targetInstance) { |
| 6163 var _url = null; | 6248 var _url = null; |
| 6164 var _queryParams = new core.Map(); | 6249 var _queryParams = new core.Map(); |
| 6165 var _uploadMedia = null; | 6250 var _uploadMedia = null; |
| 6166 var _uploadOptions = null; | 6251 var _uploadOptions = null; |
| 6167 var _downloadOptions = common.DownloadOptions.Metadata; | 6252 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6168 var _body = null; | 6253 var _body = null; |
| 6169 | 6254 |
| 6170 if (project == null) { | 6255 if (project == null) { |
| 6171 throw new core.ArgumentError("Parameter project is required."); | 6256 throw new core.ArgumentError("Parameter project is required."); |
| 6172 } | 6257 } |
| 6173 if (zone == null) { | 6258 if (zone == null) { |
| 6174 throw new core.ArgumentError("Parameter zone is required."); | 6259 throw new core.ArgumentError("Parameter zone is required."); |
| 6175 } | 6260 } |
| 6176 if (targetInstance == null) { | 6261 if (targetInstance == null) { |
| 6177 throw new core.ArgumentError("Parameter targetInstance is required."); | 6262 throw new core.ArgumentError("Parameter targetInstance is required."); |
| 6178 } | 6263 } |
| 6179 | 6264 |
| 6180 | 6265 |
| 6181 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/targetInstances/' + common_interna
l.Escaper.ecapeVariable('$targetInstance'); | 6266 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable(
'$targetInstance'); |
| 6182 | 6267 |
| 6183 var _response = _requester.request(_url, | 6268 var _response = _requester.request(_url, |
| 6184 "DELETE", | 6269 "DELETE", |
| 6185 body: _body, | 6270 body: _body, |
| 6186 queryParams: _queryParams, | 6271 queryParams: _queryParams, |
| 6187 uploadOptions: _uploadOptions, | 6272 uploadOptions: _uploadOptions, |
| 6188 uploadMedia: _uploadMedia, | 6273 uploadMedia: _uploadMedia, |
| 6189 downloadOptions: _downloadOptions); | 6274 downloadOptions: _downloadOptions); |
| 6190 return _response.then((data) => new Operation.fromJson(data)); | 6275 return _response.then((data) => new Operation.fromJson(data)); |
| 6191 } | 6276 } |
| 6192 | 6277 |
| 6193 /** | 6278 /** |
| 6194 * Returns the specified TargetInstance resource. | 6279 * Returns the specified TargetInstance resource. |
| 6195 * | 6280 * |
| 6196 * Request parameters: | 6281 * Request parameters: |
| 6197 * | 6282 * |
| 6198 * [project] - Name of the project scoping this request. | 6283 * [project] - Name of the project scoping this request. |
| 6199 * Value must have pattern | 6284 * Value must have pattern |
| 6200 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6285 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6201 * | 6286 * |
| 6202 * [zone] - Name of the zone scoping this request. | 6287 * [zone] - Name of the zone scoping this request. |
| 6203 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6288 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6204 * | 6289 * |
| 6205 * [targetInstance] - Name of the TargetInstance resource to return. | 6290 * [targetInstance] - Name of the TargetInstance resource to return. |
| 6206 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6291 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6207 * | 6292 * |
| 6208 * Completes with a [TargetInstance]. | 6293 * Completes with a [TargetInstance]. |
| 6209 * | 6294 * |
| 6210 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6295 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6211 * error. | 6296 * error. |
| 6212 * | 6297 * |
| 6213 * If the used [http.Client] completes with an error when making a REST call, | 6298 * If the used [http.Client] completes with an error when making a REST call, |
| 6214 * this method will complete with the same error. | 6299 * this method will complete with the same error. |
| 6215 */ | 6300 */ |
| 6216 async.Future<TargetInstance> get(core.String project, core.String zone, core.S
tring targetInstance) { | 6301 async.Future<TargetInstance> get(core.String project, core.String zone, core.S
tring targetInstance) { |
| 6217 var _url = null; | 6302 var _url = null; |
| 6218 var _queryParams = new core.Map(); | 6303 var _queryParams = new core.Map(); |
| 6219 var _uploadMedia = null; | 6304 var _uploadMedia = null; |
| 6220 var _uploadOptions = null; | 6305 var _uploadOptions = null; |
| 6221 var _downloadOptions = common.DownloadOptions.Metadata; | 6306 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6222 var _body = null; | 6307 var _body = null; |
| 6223 | 6308 |
| 6224 if (project == null) { | 6309 if (project == null) { |
| 6225 throw new core.ArgumentError("Parameter project is required."); | 6310 throw new core.ArgumentError("Parameter project is required."); |
| 6226 } | 6311 } |
| 6227 if (zone == null) { | 6312 if (zone == null) { |
| 6228 throw new core.ArgumentError("Parameter zone is required."); | 6313 throw new core.ArgumentError("Parameter zone is required."); |
| 6229 } | 6314 } |
| 6230 if (targetInstance == null) { | 6315 if (targetInstance == null) { |
| 6231 throw new core.ArgumentError("Parameter targetInstance is required."); | 6316 throw new core.ArgumentError("Parameter targetInstance is required."); |
| 6232 } | 6317 } |
| 6233 | 6318 |
| 6234 | 6319 |
| 6235 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/targetInstances/' + common_interna
l.Escaper.ecapeVariable('$targetInstance'); | 6320 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/targetInstances/' + commons.Escaper.ecapeVariable(
'$targetInstance'); |
| 6236 | 6321 |
| 6237 var _response = _requester.request(_url, | 6322 var _response = _requester.request(_url, |
| 6238 "GET", | 6323 "GET", |
| 6239 body: _body, | 6324 body: _body, |
| 6240 queryParams: _queryParams, | 6325 queryParams: _queryParams, |
| 6241 uploadOptions: _uploadOptions, | 6326 uploadOptions: _uploadOptions, |
| 6242 uploadMedia: _uploadMedia, | 6327 uploadMedia: _uploadMedia, |
| 6243 downloadOptions: _downloadOptions); | 6328 downloadOptions: _downloadOptions); |
| 6244 return _response.then((data) => new TargetInstance.fromJson(data)); | 6329 return _response.then((data) => new TargetInstance.fromJson(data)); |
| 6245 } | 6330 } |
| 6246 | 6331 |
| 6247 /** | 6332 /** |
| 6248 * Creates a TargetInstance resource in the specified project and zone using | 6333 * Creates a TargetInstance resource in the specified project and zone using |
| 6249 * the data included in the request. | 6334 * the data included in the request. |
| 6250 * | 6335 * |
| 6251 * [request] - The metadata request object. | 6336 * [request] - The metadata request object. |
| 6252 * | 6337 * |
| 6253 * Request parameters: | 6338 * Request parameters: |
| 6254 * | 6339 * |
| 6255 * [project] - Name of the project scoping this request. | 6340 * [project] - Name of the project scoping this request. |
| 6256 * Value must have pattern | 6341 * Value must have pattern |
| 6257 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6342 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6258 * | 6343 * |
| 6259 * [zone] - Name of the zone scoping this request. | 6344 * [zone] - Name of the zone scoping this request. |
| 6260 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6345 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6261 * | 6346 * |
| 6262 * Completes with a [Operation]. | 6347 * Completes with a [Operation]. |
| 6263 * | 6348 * |
| 6264 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6349 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6265 * error. | 6350 * error. |
| 6266 * | 6351 * |
| 6267 * If the used [http.Client] completes with an error when making a REST call, | 6352 * If the used [http.Client] completes with an error when making a REST call, |
| 6268 * this method will complete with the same error. | 6353 * this method will complete with the same error. |
| 6269 */ | 6354 */ |
| 6270 async.Future<Operation> insert(TargetInstance request, core.String project, co
re.String zone) { | 6355 async.Future<Operation> insert(TargetInstance request, core.String project, co
re.String zone) { |
| 6271 var _url = null; | 6356 var _url = null; |
| 6272 var _queryParams = new core.Map(); | 6357 var _queryParams = new core.Map(); |
| 6273 var _uploadMedia = null; | 6358 var _uploadMedia = null; |
| 6274 var _uploadOptions = null; | 6359 var _uploadOptions = null; |
| 6275 var _downloadOptions = common.DownloadOptions.Metadata; | 6360 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6276 var _body = null; | 6361 var _body = null; |
| 6277 | 6362 |
| 6278 if (request != null) { | 6363 if (request != null) { |
| 6279 _body = convert.JSON.encode((request).toJson()); | 6364 _body = convert.JSON.encode((request).toJson()); |
| 6280 } | 6365 } |
| 6281 if (project == null) { | 6366 if (project == null) { |
| 6282 throw new core.ArgumentError("Parameter project is required."); | 6367 throw new core.ArgumentError("Parameter project is required."); |
| 6283 } | 6368 } |
| 6284 if (zone == null) { | 6369 if (zone == null) { |
| 6285 throw new core.ArgumentError("Parameter zone is required."); | 6370 throw new core.ArgumentError("Parameter zone is required."); |
| 6286 } | 6371 } |
| 6287 | 6372 |
| 6288 | 6373 |
| 6289 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/targetInstances'; | 6374 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/targetInstances'; |
| 6290 | 6375 |
| 6291 var _response = _requester.request(_url, | 6376 var _response = _requester.request(_url, |
| 6292 "POST", | 6377 "POST", |
| 6293 body: _body, | 6378 body: _body, |
| 6294 queryParams: _queryParams, | 6379 queryParams: _queryParams, |
| 6295 uploadOptions: _uploadOptions, | 6380 uploadOptions: _uploadOptions, |
| 6296 uploadMedia: _uploadMedia, | 6381 uploadMedia: _uploadMedia, |
| 6297 downloadOptions: _downloadOptions); | 6382 downloadOptions: _downloadOptions); |
| 6298 return _response.then((data) => new Operation.fromJson(data)); | 6383 return _response.then((data) => new Operation.fromJson(data)); |
| 6299 } | 6384 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 6315 * | 6400 * |
| 6316 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 6401 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 6317 * value is 500 and default value is 500. | 6402 * value is 500 and default value is 500. |
| 6318 * Value must be between "0" and "500". | 6403 * Value must be between "0" and "500". |
| 6319 * | 6404 * |
| 6320 * [pageToken] - Optional. Tag returned by a previous list request truncated | 6405 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 6321 * by maxResults. Used to continue a previous list request. | 6406 * by maxResults. Used to continue a previous list request. |
| 6322 * | 6407 * |
| 6323 * Completes with a [TargetInstanceList]. | 6408 * Completes with a [TargetInstanceList]. |
| 6324 * | 6409 * |
| 6325 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6410 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6326 * error. | 6411 * error. |
| 6327 * | 6412 * |
| 6328 * If the used [http.Client] completes with an error when making a REST call, | 6413 * If the used [http.Client] completes with an error when making a REST call, |
| 6329 * this method will complete with the same error. | 6414 * this method will complete with the same error. |
| 6330 */ | 6415 */ |
| 6331 async.Future<TargetInstanceList> list(core.String project, core.String zone, {
core.String filter, core.int maxResults, core.String pageToken}) { | 6416 async.Future<TargetInstanceList> list(core.String project, core.String zone, {
core.String filter, core.int maxResults, core.String pageToken}) { |
| 6332 var _url = null; | 6417 var _url = null; |
| 6333 var _queryParams = new core.Map(); | 6418 var _queryParams = new core.Map(); |
| 6334 var _uploadMedia = null; | 6419 var _uploadMedia = null; |
| 6335 var _uploadOptions = null; | 6420 var _uploadOptions = null; |
| 6336 var _downloadOptions = common.DownloadOptions.Metadata; | 6421 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6337 var _body = null; | 6422 var _body = null; |
| 6338 | 6423 |
| 6339 if (project == null) { | 6424 if (project == null) { |
| 6340 throw new core.ArgumentError("Parameter project is required."); | 6425 throw new core.ArgumentError("Parameter project is required."); |
| 6341 } | 6426 } |
| 6342 if (zone == null) { | 6427 if (zone == null) { |
| 6343 throw new core.ArgumentError("Parameter zone is required."); | 6428 throw new core.ArgumentError("Parameter zone is required."); |
| 6344 } | 6429 } |
| 6345 if (filter != null) { | 6430 if (filter != null) { |
| 6346 _queryParams["filter"] = [filter]; | 6431 _queryParams["filter"] = [filter]; |
| 6347 } | 6432 } |
| 6348 if (maxResults != null) { | 6433 if (maxResults != null) { |
| 6349 _queryParams["maxResults"] = ["${maxResults}"]; | 6434 _queryParams["maxResults"] = ["${maxResults}"]; |
| 6350 } | 6435 } |
| 6351 if (pageToken != null) { | 6436 if (pageToken != null) { |
| 6352 _queryParams["pageToken"] = [pageToken]; | 6437 _queryParams["pageToken"] = [pageToken]; |
| 6353 } | 6438 } |
| 6354 | 6439 |
| 6355 | 6440 |
| 6356 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/targetInstances'; | 6441 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/targetInstances'; |
| 6357 | 6442 |
| 6358 var _response = _requester.request(_url, | 6443 var _response = _requester.request(_url, |
| 6359 "GET", | 6444 "GET", |
| 6360 body: _body, | 6445 body: _body, |
| 6361 queryParams: _queryParams, | 6446 queryParams: _queryParams, |
| 6362 uploadOptions: _uploadOptions, | 6447 uploadOptions: _uploadOptions, |
| 6363 uploadMedia: _uploadMedia, | 6448 uploadMedia: _uploadMedia, |
| 6364 downloadOptions: _downloadOptions); | 6449 downloadOptions: _downloadOptions); |
| 6365 return _response.then((data) => new TargetInstanceList.fromJson(data)); | 6450 return _response.then((data) => new TargetInstanceList.fromJson(data)); |
| 6366 } | 6451 } |
| 6367 | 6452 |
| 6368 } | 6453 } |
| 6369 | 6454 |
| 6370 | 6455 |
| 6371 /** Not documented yet. */ | |
| 6372 class TargetPoolsResourceApi { | 6456 class TargetPoolsResourceApi { |
| 6373 final common_internal.ApiRequester _requester; | 6457 final commons.ApiRequester _requester; |
| 6374 | 6458 |
| 6375 TargetPoolsResourceApi(common_internal.ApiRequester client) : | 6459 TargetPoolsResourceApi(commons.ApiRequester client) : |
| 6376 _requester = client; | 6460 _requester = client; |
| 6377 | 6461 |
| 6378 /** | 6462 /** |
| 6379 * Adds health check URL to targetPool. | 6463 * Adds health check URL to targetPool. |
| 6380 * | 6464 * |
| 6381 * [request] - The metadata request object. | 6465 * [request] - The metadata request object. |
| 6382 * | 6466 * |
| 6383 * Request parameters: | 6467 * Request parameters: |
| 6384 * | 6468 * |
| 6385 * [project] - null | 6469 * [project] - null |
| 6386 * Value must have pattern | 6470 * Value must have pattern |
| 6387 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6471 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6388 * | 6472 * |
| 6389 * [region] - Name of the region scoping this request. | 6473 * [region] - Name of the region scoping this request. |
| 6390 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6474 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6391 * | 6475 * |
| 6392 * [targetPool] - Name of the TargetPool resource to which health_check_url is | 6476 * [targetPool] - Name of the TargetPool resource to which health_check_url is |
| 6393 * to be added. | 6477 * to be added. |
| 6394 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6478 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6395 * | 6479 * |
| 6396 * Completes with a [Operation]. | 6480 * Completes with a [Operation]. |
| 6397 * | 6481 * |
| 6398 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6399 * error. | 6483 * error. |
| 6400 * | 6484 * |
| 6401 * If the used [http.Client] completes with an error when making a REST call, | 6485 * If the used [http.Client] completes with an error when making a REST call, |
| 6402 * this method will complete with the same error. | 6486 * this method will complete with the same error. |
| 6403 */ | 6487 */ |
| 6404 async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest reques
t, core.String project, core.String region, core.String targetPool) { | 6488 async.Future<Operation> addHealthCheck(TargetPoolsAddHealthCheckRequest reques
t, core.String project, core.String region, core.String targetPool) { |
| 6405 var _url = null; | 6489 var _url = null; |
| 6406 var _queryParams = new core.Map(); | 6490 var _queryParams = new core.Map(); |
| 6407 var _uploadMedia = null; | 6491 var _uploadMedia = null; |
| 6408 var _uploadOptions = null; | 6492 var _uploadOptions = null; |
| 6409 var _downloadOptions = common.DownloadOptions.Metadata; | 6493 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6410 var _body = null; | 6494 var _body = null; |
| 6411 | 6495 |
| 6412 if (request != null) { | 6496 if (request != null) { |
| 6413 _body = convert.JSON.encode((request).toJson()); | 6497 _body = convert.JSON.encode((request).toJson()); |
| 6414 } | 6498 } |
| 6415 if (project == null) { | 6499 if (project == null) { |
| 6416 throw new core.ArgumentError("Parameter project is required."); | 6500 throw new core.ArgumentError("Parameter project is required."); |
| 6417 } | 6501 } |
| 6418 if (region == null) { | 6502 if (region == null) { |
| 6419 throw new core.ArgumentError("Parameter region is required."); | 6503 throw new core.ArgumentError("Parameter region is required."); |
| 6420 } | 6504 } |
| 6421 if (targetPool == null) { | 6505 if (targetPool == null) { |
| 6422 throw new core.ArgumentError("Parameter targetPool is required."); | 6506 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6423 } | 6507 } |
| 6424 | 6508 |
| 6425 | 6509 |
| 6426 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/addHealthCheck'; | 6510 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/addHealthCheck'; |
| 6427 | 6511 |
| 6428 var _response = _requester.request(_url, | 6512 var _response = _requester.request(_url, |
| 6429 "POST", | 6513 "POST", |
| 6430 body: _body, | 6514 body: _body, |
| 6431 queryParams: _queryParams, | 6515 queryParams: _queryParams, |
| 6432 uploadOptions: _uploadOptions, | 6516 uploadOptions: _uploadOptions, |
| 6433 uploadMedia: _uploadMedia, | 6517 uploadMedia: _uploadMedia, |
| 6434 downloadOptions: _downloadOptions); | 6518 downloadOptions: _downloadOptions); |
| 6435 return _response.then((data) => new Operation.fromJson(data)); | 6519 return _response.then((data) => new Operation.fromJson(data)); |
| 6436 } | 6520 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6448 * | 6532 * |
| 6449 * [region] - Name of the region scoping this request. | 6533 * [region] - Name of the region scoping this request. |
| 6450 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6534 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6451 * | 6535 * |
| 6452 * [targetPool] - Name of the TargetPool resource to which instance_url is to | 6536 * [targetPool] - Name of the TargetPool resource to which instance_url is to |
| 6453 * be added. | 6537 * be added. |
| 6454 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6538 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6455 * | 6539 * |
| 6456 * Completes with a [Operation]. | 6540 * Completes with a [Operation]. |
| 6457 * | 6541 * |
| 6458 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6542 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6459 * error. | 6543 * error. |
| 6460 * | 6544 * |
| 6461 * If the used [http.Client] completes with an error when making a REST call, | 6545 * If the used [http.Client] completes with an error when making a REST call, |
| 6462 * this method will complete with the same error. | 6546 * this method will complete with the same error. |
| 6463 */ | 6547 */ |
| 6464 async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, cor
e.String project, core.String region, core.String targetPool) { | 6548 async.Future<Operation> addInstance(TargetPoolsAddInstanceRequest request, cor
e.String project, core.String region, core.String targetPool) { |
| 6465 var _url = null; | 6549 var _url = null; |
| 6466 var _queryParams = new core.Map(); | 6550 var _queryParams = new core.Map(); |
| 6467 var _uploadMedia = null; | 6551 var _uploadMedia = null; |
| 6468 var _uploadOptions = null; | 6552 var _uploadOptions = null; |
| 6469 var _downloadOptions = common.DownloadOptions.Metadata; | 6553 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6470 var _body = null; | 6554 var _body = null; |
| 6471 | 6555 |
| 6472 if (request != null) { | 6556 if (request != null) { |
| 6473 _body = convert.JSON.encode((request).toJson()); | 6557 _body = convert.JSON.encode((request).toJson()); |
| 6474 } | 6558 } |
| 6475 if (project == null) { | 6559 if (project == null) { |
| 6476 throw new core.ArgumentError("Parameter project is required."); | 6560 throw new core.ArgumentError("Parameter project is required."); |
| 6477 } | 6561 } |
| 6478 if (region == null) { | 6562 if (region == null) { |
| 6479 throw new core.ArgumentError("Parameter region is required."); | 6563 throw new core.ArgumentError("Parameter region is required."); |
| 6480 } | 6564 } |
| 6481 if (targetPool == null) { | 6565 if (targetPool == null) { |
| 6482 throw new core.ArgumentError("Parameter targetPool is required."); | 6566 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6483 } | 6567 } |
| 6484 | 6568 |
| 6485 | 6569 |
| 6486 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/addInstance'; | 6570 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/addInstance'; |
| 6487 | 6571 |
| 6488 var _response = _requester.request(_url, | 6572 var _response = _requester.request(_url, |
| 6489 "POST", | 6573 "POST", |
| 6490 body: _body, | 6574 body: _body, |
| 6491 queryParams: _queryParams, | 6575 queryParams: _queryParams, |
| 6492 uploadOptions: _uploadOptions, | 6576 uploadOptions: _uploadOptions, |
| 6493 uploadMedia: _uploadMedia, | 6577 uploadMedia: _uploadMedia, |
| 6494 downloadOptions: _downloadOptions); | 6578 downloadOptions: _downloadOptions); |
| 6495 return _response.then((data) => new Operation.fromJson(data)); | 6579 return _response.then((data) => new Operation.fromJson(data)); |
| 6496 } | 6580 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6508 * | 6592 * |
| 6509 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 6593 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 6510 * value is 500 and default value is 500. | 6594 * value is 500 and default value is 500. |
| 6511 * Value must be between "0" and "500". | 6595 * Value must be between "0" and "500". |
| 6512 * | 6596 * |
| 6513 * [pageToken] - Optional. Tag returned by a previous list request truncated | 6597 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 6514 * by maxResults. Used to continue a previous list request. | 6598 * by maxResults. Used to continue a previous list request. |
| 6515 * | 6599 * |
| 6516 * Completes with a [TargetPoolAggregatedList]. | 6600 * Completes with a [TargetPoolAggregatedList]. |
| 6517 * | 6601 * |
| 6518 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6602 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6519 * error. | 6603 * error. |
| 6520 * | 6604 * |
| 6521 * If the used [http.Client] completes with an error when making a REST call, | 6605 * If the used [http.Client] completes with an error when making a REST call, |
| 6522 * this method will complete with the same error. | 6606 * this method will complete with the same error. |
| 6523 */ | 6607 */ |
| 6524 async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {co
re.String filter, core.int maxResults, core.String pageToken}) { | 6608 async.Future<TargetPoolAggregatedList> aggregatedList(core.String project, {co
re.String filter, core.int maxResults, core.String pageToken}) { |
| 6525 var _url = null; | 6609 var _url = null; |
| 6526 var _queryParams = new core.Map(); | 6610 var _queryParams = new core.Map(); |
| 6527 var _uploadMedia = null; | 6611 var _uploadMedia = null; |
| 6528 var _uploadOptions = null; | 6612 var _uploadOptions = null; |
| 6529 var _downloadOptions = common.DownloadOptions.Metadata; | 6613 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6530 var _body = null; | 6614 var _body = null; |
| 6531 | 6615 |
| 6532 if (project == null) { | 6616 if (project == null) { |
| 6533 throw new core.ArgumentError("Parameter project is required."); | 6617 throw new core.ArgumentError("Parameter project is required."); |
| 6534 } | 6618 } |
| 6535 if (filter != null) { | 6619 if (filter != null) { |
| 6536 _queryParams["filter"] = [filter]; | 6620 _queryParams["filter"] = [filter]; |
| 6537 } | 6621 } |
| 6538 if (maxResults != null) { | 6622 if (maxResults != null) { |
| 6539 _queryParams["maxResults"] = ["${maxResults}"]; | 6623 _queryParams["maxResults"] = ["${maxResults}"]; |
| 6540 } | 6624 } |
| 6541 if (pageToken != null) { | 6625 if (pageToken != null) { |
| 6542 _queryParams["pageToken"] = [pageToken]; | 6626 _queryParams["pageToken"] = [pageToken]; |
| 6543 } | 6627 } |
| 6544 | 6628 |
| 6545 | 6629 |
| 6546 _url = common_internal.Escaper.ecapeVariable('$project') + '/aggregated/targ
etPools'; | 6630 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetPools'
; |
| 6547 | 6631 |
| 6548 var _response = _requester.request(_url, | 6632 var _response = _requester.request(_url, |
| 6549 "GET", | 6633 "GET", |
| 6550 body: _body, | 6634 body: _body, |
| 6551 queryParams: _queryParams, | 6635 queryParams: _queryParams, |
| 6552 uploadOptions: _uploadOptions, | 6636 uploadOptions: _uploadOptions, |
| 6553 uploadMedia: _uploadMedia, | 6637 uploadMedia: _uploadMedia, |
| 6554 downloadOptions: _downloadOptions); | 6638 downloadOptions: _downloadOptions); |
| 6555 return _response.then((data) => new TargetPoolAggregatedList.fromJson(data))
; | 6639 return _response.then((data) => new TargetPoolAggregatedList.fromJson(data))
; |
| 6556 } | 6640 } |
| 6557 | 6641 |
| 6558 /** | 6642 /** |
| 6559 * Deletes the specified TargetPool resource. | 6643 * Deletes the specified TargetPool resource. |
| 6560 * | 6644 * |
| 6561 * Request parameters: | 6645 * Request parameters: |
| 6562 * | 6646 * |
| 6563 * [project] - Name of the project scoping this request. | 6647 * [project] - Name of the project scoping this request. |
| 6564 * Value must have pattern | 6648 * Value must have pattern |
| 6565 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6649 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6566 * | 6650 * |
| 6567 * [region] - Name of the region scoping this request. | 6651 * [region] - Name of the region scoping this request. |
| 6568 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6652 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6569 * | 6653 * |
| 6570 * [targetPool] - Name of the TargetPool resource to delete. | 6654 * [targetPool] - Name of the TargetPool resource to delete. |
| 6571 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6655 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6572 * | 6656 * |
| 6573 * Completes with a [Operation]. | 6657 * Completes with a [Operation]. |
| 6574 * | 6658 * |
| 6575 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6659 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6576 * error. | 6660 * error. |
| 6577 * | 6661 * |
| 6578 * If the used [http.Client] completes with an error when making a REST call, | 6662 * If the used [http.Client] completes with an error when making a REST call, |
| 6579 * this method will complete with the same error. | 6663 * this method will complete with the same error. |
| 6580 */ | 6664 */ |
| 6581 async.Future<Operation> delete(core.String project, core.String region, core.S
tring targetPool) { | 6665 async.Future<Operation> delete(core.String project, core.String region, core.S
tring targetPool) { |
| 6582 var _url = null; | 6666 var _url = null; |
| 6583 var _queryParams = new core.Map(); | 6667 var _queryParams = new core.Map(); |
| 6584 var _uploadMedia = null; | 6668 var _uploadMedia = null; |
| 6585 var _uploadOptions = null; | 6669 var _uploadOptions = null; |
| 6586 var _downloadOptions = common.DownloadOptions.Metadata; | 6670 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6587 var _body = null; | 6671 var _body = null; |
| 6588 | 6672 |
| 6589 if (project == null) { | 6673 if (project == null) { |
| 6590 throw new core.ArgumentError("Parameter project is required."); | 6674 throw new core.ArgumentError("Parameter project is required."); |
| 6591 } | 6675 } |
| 6592 if (region == null) { | 6676 if (region == null) { |
| 6593 throw new core.ArgumentError("Parameter region is required."); | 6677 throw new core.ArgumentError("Parameter region is required."); |
| 6594 } | 6678 } |
| 6595 if (targetPool == null) { | 6679 if (targetPool == null) { |
| 6596 throw new core.ArgumentError("Parameter targetPool is required."); | 6680 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6597 } | 6681 } |
| 6598 | 6682 |
| 6599 | 6683 |
| 6600 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool'); | 6684 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool'); |
| 6601 | 6685 |
| 6602 var _response = _requester.request(_url, | 6686 var _response = _requester.request(_url, |
| 6603 "DELETE", | 6687 "DELETE", |
| 6604 body: _body, | 6688 body: _body, |
| 6605 queryParams: _queryParams, | 6689 queryParams: _queryParams, |
| 6606 uploadOptions: _uploadOptions, | 6690 uploadOptions: _uploadOptions, |
| 6607 uploadMedia: _uploadMedia, | 6691 uploadMedia: _uploadMedia, |
| 6608 downloadOptions: _downloadOptions); | 6692 downloadOptions: _downloadOptions); |
| 6609 return _response.then((data) => new Operation.fromJson(data)); | 6693 return _response.then((data) => new Operation.fromJson(data)); |
| 6610 } | 6694 } |
| 6611 | 6695 |
| 6612 /** | 6696 /** |
| 6613 * Returns the specified TargetPool resource. | 6697 * Returns the specified TargetPool resource. |
| 6614 * | 6698 * |
| 6615 * Request parameters: | 6699 * Request parameters: |
| 6616 * | 6700 * |
| 6617 * [project] - Name of the project scoping this request. | 6701 * [project] - Name of the project scoping this request. |
| 6618 * Value must have pattern | 6702 * Value must have pattern |
| 6619 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6703 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6620 * | 6704 * |
| 6621 * [region] - Name of the region scoping this request. | 6705 * [region] - Name of the region scoping this request. |
| 6622 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6706 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6623 * | 6707 * |
| 6624 * [targetPool] - Name of the TargetPool resource to return. | 6708 * [targetPool] - Name of the TargetPool resource to return. |
| 6625 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6709 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6626 * | 6710 * |
| 6627 * Completes with a [TargetPool]. | 6711 * Completes with a [TargetPool]. |
| 6628 * | 6712 * |
| 6629 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6713 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6630 * error. | 6714 * error. |
| 6631 * | 6715 * |
| 6632 * If the used [http.Client] completes with an error when making a REST call, | 6716 * If the used [http.Client] completes with an error when making a REST call, |
| 6633 * this method will complete with the same error. | 6717 * this method will complete with the same error. |
| 6634 */ | 6718 */ |
| 6635 async.Future<TargetPool> get(core.String project, core.String region, core.Str
ing targetPool) { | 6719 async.Future<TargetPool> get(core.String project, core.String region, core.Str
ing targetPool) { |
| 6636 var _url = null; | 6720 var _url = null; |
| 6637 var _queryParams = new core.Map(); | 6721 var _queryParams = new core.Map(); |
| 6638 var _uploadMedia = null; | 6722 var _uploadMedia = null; |
| 6639 var _uploadOptions = null; | 6723 var _uploadOptions = null; |
| 6640 var _downloadOptions = common.DownloadOptions.Metadata; | 6724 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6641 var _body = null; | 6725 var _body = null; |
| 6642 | 6726 |
| 6643 if (project == null) { | 6727 if (project == null) { |
| 6644 throw new core.ArgumentError("Parameter project is required."); | 6728 throw new core.ArgumentError("Parameter project is required."); |
| 6645 } | 6729 } |
| 6646 if (region == null) { | 6730 if (region == null) { |
| 6647 throw new core.ArgumentError("Parameter region is required."); | 6731 throw new core.ArgumentError("Parameter region is required."); |
| 6648 } | 6732 } |
| 6649 if (targetPool == null) { | 6733 if (targetPool == null) { |
| 6650 throw new core.ArgumentError("Parameter targetPool is required."); | 6734 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6651 } | 6735 } |
| 6652 | 6736 |
| 6653 | 6737 |
| 6654 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool'); | 6738 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool'); |
| 6655 | 6739 |
| 6656 var _response = _requester.request(_url, | 6740 var _response = _requester.request(_url, |
| 6657 "GET", | 6741 "GET", |
| 6658 body: _body, | 6742 body: _body, |
| 6659 queryParams: _queryParams, | 6743 queryParams: _queryParams, |
| 6660 uploadOptions: _uploadOptions, | 6744 uploadOptions: _uploadOptions, |
| 6661 uploadMedia: _uploadMedia, | 6745 uploadMedia: _uploadMedia, |
| 6662 downloadOptions: _downloadOptions); | 6746 downloadOptions: _downloadOptions); |
| 6663 return _response.then((data) => new TargetPool.fromJson(data)); | 6747 return _response.then((data) => new TargetPool.fromJson(data)); |
| 6664 } | 6748 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 6677 * | 6761 * |
| 6678 * [region] - Name of the region scoping this request. | 6762 * [region] - Name of the region scoping this request. |
| 6679 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6763 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6680 * | 6764 * |
| 6681 * [targetPool] - Name of the TargetPool resource to which the queried | 6765 * [targetPool] - Name of the TargetPool resource to which the queried |
| 6682 * instance belongs. | 6766 * instance belongs. |
| 6683 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6767 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6684 * | 6768 * |
| 6685 * Completes with a [TargetPoolInstanceHealth]. | 6769 * Completes with a [TargetPoolInstanceHealth]. |
| 6686 * | 6770 * |
| 6687 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6688 * error. | 6772 * error. |
| 6689 * | 6773 * |
| 6690 * If the used [http.Client] completes with an error when making a REST call, | 6774 * If the used [http.Client] completes with an error when making a REST call, |
| 6691 * this method will complete with the same error. | 6775 * this method will complete with the same error. |
| 6692 */ | 6776 */ |
| 6693 async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, co
re.String project, core.String region, core.String targetPool) { | 6777 async.Future<TargetPoolInstanceHealth> getHealth(InstanceReference request, co
re.String project, core.String region, core.String targetPool) { |
| 6694 var _url = null; | 6778 var _url = null; |
| 6695 var _queryParams = new core.Map(); | 6779 var _queryParams = new core.Map(); |
| 6696 var _uploadMedia = null; | 6780 var _uploadMedia = null; |
| 6697 var _uploadOptions = null; | 6781 var _uploadOptions = null; |
| 6698 var _downloadOptions = common.DownloadOptions.Metadata; | 6782 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6699 var _body = null; | 6783 var _body = null; |
| 6700 | 6784 |
| 6701 if (request != null) { | 6785 if (request != null) { |
| 6702 _body = convert.JSON.encode((request).toJson()); | 6786 _body = convert.JSON.encode((request).toJson()); |
| 6703 } | 6787 } |
| 6704 if (project == null) { | 6788 if (project == null) { |
| 6705 throw new core.ArgumentError("Parameter project is required."); | 6789 throw new core.ArgumentError("Parameter project is required."); |
| 6706 } | 6790 } |
| 6707 if (region == null) { | 6791 if (region == null) { |
| 6708 throw new core.ArgumentError("Parameter region is required."); | 6792 throw new core.ArgumentError("Parameter region is required."); |
| 6709 } | 6793 } |
| 6710 if (targetPool == null) { | 6794 if (targetPool == null) { |
| 6711 throw new core.ArgumentError("Parameter targetPool is required."); | 6795 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6712 } | 6796 } |
| 6713 | 6797 |
| 6714 | 6798 |
| 6715 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/getHealth'; | 6799 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/getHealth'; |
| 6716 | 6800 |
| 6717 var _response = _requester.request(_url, | 6801 var _response = _requester.request(_url, |
| 6718 "POST", | 6802 "POST", |
| 6719 body: _body, | 6803 body: _body, |
| 6720 queryParams: _queryParams, | 6804 queryParams: _queryParams, |
| 6721 uploadOptions: _uploadOptions, | 6805 uploadOptions: _uploadOptions, |
| 6722 uploadMedia: _uploadMedia, | 6806 uploadMedia: _uploadMedia, |
| 6723 downloadOptions: _downloadOptions); | 6807 downloadOptions: _downloadOptions); |
| 6724 return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data))
; | 6808 return _response.then((data) => new TargetPoolInstanceHealth.fromJson(data))
; |
| 6725 } | 6809 } |
| 6726 | 6810 |
| 6727 /** | 6811 /** |
| 6728 * Creates a TargetPool resource in the specified project and region using the | 6812 * Creates a TargetPool resource in the specified project and region using the |
| 6729 * data included in the request. | 6813 * data included in the request. |
| 6730 * | 6814 * |
| 6731 * [request] - The metadata request object. | 6815 * [request] - The metadata request object. |
| 6732 * | 6816 * |
| 6733 * Request parameters: | 6817 * Request parameters: |
| 6734 * | 6818 * |
| 6735 * [project] - Name of the project scoping this request. | 6819 * [project] - Name of the project scoping this request. |
| 6736 * Value must have pattern | 6820 * Value must have pattern |
| 6737 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 6821 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 6738 * | 6822 * |
| 6739 * [region] - Name of the region scoping this request. | 6823 * [region] - Name of the region scoping this request. |
| 6740 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6824 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6741 * | 6825 * |
| 6742 * Completes with a [Operation]. | 6826 * Completes with a [Operation]. |
| 6743 * | 6827 * |
| 6744 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6828 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6745 * error. | 6829 * error. |
| 6746 * | 6830 * |
| 6747 * If the used [http.Client] completes with an error when making a REST call, | 6831 * If the used [http.Client] completes with an error when making a REST call, |
| 6748 * this method will complete with the same error. | 6832 * this method will complete with the same error. |
| 6749 */ | 6833 */ |
| 6750 async.Future<Operation> insert(TargetPool request, core.String project, core.S
tring region) { | 6834 async.Future<Operation> insert(TargetPool request, core.String project, core.S
tring region) { |
| 6751 var _url = null; | 6835 var _url = null; |
| 6752 var _queryParams = new core.Map(); | 6836 var _queryParams = new core.Map(); |
| 6753 var _uploadMedia = null; | 6837 var _uploadMedia = null; |
| 6754 var _uploadOptions = null; | 6838 var _uploadOptions = null; |
| 6755 var _downloadOptions = common.DownloadOptions.Metadata; | 6839 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6756 var _body = null; | 6840 var _body = null; |
| 6757 | 6841 |
| 6758 if (request != null) { | 6842 if (request != null) { |
| 6759 _body = convert.JSON.encode((request).toJson()); | 6843 _body = convert.JSON.encode((request).toJson()); |
| 6760 } | 6844 } |
| 6761 if (project == null) { | 6845 if (project == null) { |
| 6762 throw new core.ArgumentError("Parameter project is required."); | 6846 throw new core.ArgumentError("Parameter project is required."); |
| 6763 } | 6847 } |
| 6764 if (region == null) { | 6848 if (region == null) { |
| 6765 throw new core.ArgumentError("Parameter region is required."); | 6849 throw new core.ArgumentError("Parameter region is required."); |
| 6766 } | 6850 } |
| 6767 | 6851 |
| 6768 | 6852 |
| 6769 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools'; | 6853 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools'; |
| 6770 | 6854 |
| 6771 var _response = _requester.request(_url, | 6855 var _response = _requester.request(_url, |
| 6772 "POST", | 6856 "POST", |
| 6773 body: _body, | 6857 body: _body, |
| 6774 queryParams: _queryParams, | 6858 queryParams: _queryParams, |
| 6775 uploadOptions: _uploadOptions, | 6859 uploadOptions: _uploadOptions, |
| 6776 uploadMedia: _uploadMedia, | 6860 uploadMedia: _uploadMedia, |
| 6777 downloadOptions: _downloadOptions); | 6861 downloadOptions: _downloadOptions); |
| 6778 return _response.then((data) => new Operation.fromJson(data)); | 6862 return _response.then((data) => new Operation.fromJson(data)); |
| 6779 } | 6863 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 6795 * | 6879 * |
| 6796 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 6880 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 6797 * value is 500 and default value is 500. | 6881 * value is 500 and default value is 500. |
| 6798 * Value must be between "0" and "500". | 6882 * Value must be between "0" and "500". |
| 6799 * | 6883 * |
| 6800 * [pageToken] - Optional. Tag returned by a previous list request truncated | 6884 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 6801 * by maxResults. Used to continue a previous list request. | 6885 * by maxResults. Used to continue a previous list request. |
| 6802 * | 6886 * |
| 6803 * Completes with a [TargetPoolList]. | 6887 * Completes with a [TargetPoolList]. |
| 6804 * | 6888 * |
| 6805 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6889 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6806 * error. | 6890 * error. |
| 6807 * | 6891 * |
| 6808 * If the used [http.Client] completes with an error when making a REST call, | 6892 * If the used [http.Client] completes with an error when making a REST call, |
| 6809 * this method will complete with the same error. | 6893 * this method will complete with the same error. |
| 6810 */ | 6894 */ |
| 6811 async.Future<TargetPoolList> list(core.String project, core.String region, {co
re.String filter, core.int maxResults, core.String pageToken}) { | 6895 async.Future<TargetPoolList> list(core.String project, core.String region, {co
re.String filter, core.int maxResults, core.String pageToken}) { |
| 6812 var _url = null; | 6896 var _url = null; |
| 6813 var _queryParams = new core.Map(); | 6897 var _queryParams = new core.Map(); |
| 6814 var _uploadMedia = null; | 6898 var _uploadMedia = null; |
| 6815 var _uploadOptions = null; | 6899 var _uploadOptions = null; |
| 6816 var _downloadOptions = common.DownloadOptions.Metadata; | 6900 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6817 var _body = null; | 6901 var _body = null; |
| 6818 | 6902 |
| 6819 if (project == null) { | 6903 if (project == null) { |
| 6820 throw new core.ArgumentError("Parameter project is required."); | 6904 throw new core.ArgumentError("Parameter project is required."); |
| 6821 } | 6905 } |
| 6822 if (region == null) { | 6906 if (region == null) { |
| 6823 throw new core.ArgumentError("Parameter region is required."); | 6907 throw new core.ArgumentError("Parameter region is required."); |
| 6824 } | 6908 } |
| 6825 if (filter != null) { | 6909 if (filter != null) { |
| 6826 _queryParams["filter"] = [filter]; | 6910 _queryParams["filter"] = [filter]; |
| 6827 } | 6911 } |
| 6828 if (maxResults != null) { | 6912 if (maxResults != null) { |
| 6829 _queryParams["maxResults"] = ["${maxResults}"]; | 6913 _queryParams["maxResults"] = ["${maxResults}"]; |
| 6830 } | 6914 } |
| 6831 if (pageToken != null) { | 6915 if (pageToken != null) { |
| 6832 _queryParams["pageToken"] = [pageToken]; | 6916 _queryParams["pageToken"] = [pageToken]; |
| 6833 } | 6917 } |
| 6834 | 6918 |
| 6835 | 6919 |
| 6836 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools'; | 6920 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools'; |
| 6837 | 6921 |
| 6838 var _response = _requester.request(_url, | 6922 var _response = _requester.request(_url, |
| 6839 "GET", | 6923 "GET", |
| 6840 body: _body, | 6924 body: _body, |
| 6841 queryParams: _queryParams, | 6925 queryParams: _queryParams, |
| 6842 uploadOptions: _uploadOptions, | 6926 uploadOptions: _uploadOptions, |
| 6843 uploadMedia: _uploadMedia, | 6927 uploadMedia: _uploadMedia, |
| 6844 downloadOptions: _downloadOptions); | 6928 downloadOptions: _downloadOptions); |
| 6845 return _response.then((data) => new TargetPoolList.fromJson(data)); | 6929 return _response.then((data) => new TargetPoolList.fromJson(data)); |
| 6846 } | 6930 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6858 * | 6942 * |
| 6859 * [region] - Name of the region scoping this request. | 6943 * [region] - Name of the region scoping this request. |
| 6860 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6944 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6861 * | 6945 * |
| 6862 * [targetPool] - Name of the TargetPool resource to which health_check_url is | 6946 * [targetPool] - Name of the TargetPool resource to which health_check_url is |
| 6863 * to be removed. | 6947 * to be removed. |
| 6864 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 6948 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6865 * | 6949 * |
| 6866 * Completes with a [Operation]. | 6950 * Completes with a [Operation]. |
| 6867 * | 6951 * |
| 6868 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6869 * error. | 6953 * error. |
| 6870 * | 6954 * |
| 6871 * If the used [http.Client] completes with an error when making a REST call, | 6955 * If the used [http.Client] completes with an error when making a REST call, |
| 6872 * this method will complete with the same error. | 6956 * this method will complete with the same error. |
| 6873 */ | 6957 */ |
| 6874 async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest
request, core.String project, core.String region, core.String targetPool) { | 6958 async.Future<Operation> removeHealthCheck(TargetPoolsRemoveHealthCheckRequest
request, core.String project, core.String region, core.String targetPool) { |
| 6875 var _url = null; | 6959 var _url = null; |
| 6876 var _queryParams = new core.Map(); | 6960 var _queryParams = new core.Map(); |
| 6877 var _uploadMedia = null; | 6961 var _uploadMedia = null; |
| 6878 var _uploadOptions = null; | 6962 var _uploadOptions = null; |
| 6879 var _downloadOptions = common.DownloadOptions.Metadata; | 6963 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6880 var _body = null; | 6964 var _body = null; |
| 6881 | 6965 |
| 6882 if (request != null) { | 6966 if (request != null) { |
| 6883 _body = convert.JSON.encode((request).toJson()); | 6967 _body = convert.JSON.encode((request).toJson()); |
| 6884 } | 6968 } |
| 6885 if (project == null) { | 6969 if (project == null) { |
| 6886 throw new core.ArgumentError("Parameter project is required."); | 6970 throw new core.ArgumentError("Parameter project is required."); |
| 6887 } | 6971 } |
| 6888 if (region == null) { | 6972 if (region == null) { |
| 6889 throw new core.ArgumentError("Parameter region is required."); | 6973 throw new core.ArgumentError("Parameter region is required."); |
| 6890 } | 6974 } |
| 6891 if (targetPool == null) { | 6975 if (targetPool == null) { |
| 6892 throw new core.ArgumentError("Parameter targetPool is required."); | 6976 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6893 } | 6977 } |
| 6894 | 6978 |
| 6895 | 6979 |
| 6896 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/removeHealthCheck'; | 6980 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/removeHealthCheck'; |
| 6897 | 6981 |
| 6898 var _response = _requester.request(_url, | 6982 var _response = _requester.request(_url, |
| 6899 "POST", | 6983 "POST", |
| 6900 body: _body, | 6984 body: _body, |
| 6901 queryParams: _queryParams, | 6985 queryParams: _queryParams, |
| 6902 uploadOptions: _uploadOptions, | 6986 uploadOptions: _uploadOptions, |
| 6903 uploadMedia: _uploadMedia, | 6987 uploadMedia: _uploadMedia, |
| 6904 downloadOptions: _downloadOptions); | 6988 downloadOptions: _downloadOptions); |
| 6905 return _response.then((data) => new Operation.fromJson(data)); | 6989 return _response.then((data) => new Operation.fromJson(data)); |
| 6906 } | 6990 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6918 * | 7002 * |
| 6919 * [region] - Name of the region scoping this request. | 7003 * [region] - Name of the region scoping this request. |
| 6920 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7004 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6921 * | 7005 * |
| 6922 * [targetPool] - Name of the TargetPool resource to which instance_url is to | 7006 * [targetPool] - Name of the TargetPool resource to which instance_url is to |
| 6923 * be removed. | 7007 * be removed. |
| 6924 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7008 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6925 * | 7009 * |
| 6926 * Completes with a [Operation]. | 7010 * Completes with a [Operation]. |
| 6927 * | 7011 * |
| 6928 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7012 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6929 * error. | 7013 * error. |
| 6930 * | 7014 * |
| 6931 * If the used [http.Client] completes with an error when making a REST call, | 7015 * If the used [http.Client] completes with an error when making a REST call, |
| 6932 * this method will complete with the same error. | 7016 * this method will complete with the same error. |
| 6933 */ | 7017 */ |
| 6934 async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest reques
t, core.String project, core.String region, core.String targetPool) { | 7018 async.Future<Operation> removeInstance(TargetPoolsRemoveInstanceRequest reques
t, core.String project, core.String region, core.String targetPool) { |
| 6935 var _url = null; | 7019 var _url = null; |
| 6936 var _queryParams = new core.Map(); | 7020 var _queryParams = new core.Map(); |
| 6937 var _uploadMedia = null; | 7021 var _uploadMedia = null; |
| 6938 var _uploadOptions = null; | 7022 var _uploadOptions = null; |
| 6939 var _downloadOptions = common.DownloadOptions.Metadata; | 7023 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6940 var _body = null; | 7024 var _body = null; |
| 6941 | 7025 |
| 6942 if (request != null) { | 7026 if (request != null) { |
| 6943 _body = convert.JSON.encode((request).toJson()); | 7027 _body = convert.JSON.encode((request).toJson()); |
| 6944 } | 7028 } |
| 6945 if (project == null) { | 7029 if (project == null) { |
| 6946 throw new core.ArgumentError("Parameter project is required."); | 7030 throw new core.ArgumentError("Parameter project is required."); |
| 6947 } | 7031 } |
| 6948 if (region == null) { | 7032 if (region == null) { |
| 6949 throw new core.ArgumentError("Parameter region is required."); | 7033 throw new core.ArgumentError("Parameter region is required."); |
| 6950 } | 7034 } |
| 6951 if (targetPool == null) { | 7035 if (targetPool == null) { |
| 6952 throw new core.ArgumentError("Parameter targetPool is required."); | 7036 throw new core.ArgumentError("Parameter targetPool is required."); |
| 6953 } | 7037 } |
| 6954 | 7038 |
| 6955 | 7039 |
| 6956 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/removeInstance'; | 7040 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/removeInstance'; |
| 6957 | 7041 |
| 6958 var _response = _requester.request(_url, | 7042 var _response = _requester.request(_url, |
| 6959 "POST", | 7043 "POST", |
| 6960 body: _body, | 7044 body: _body, |
| 6961 queryParams: _queryParams, | 7045 queryParams: _queryParams, |
| 6962 uploadOptions: _uploadOptions, | 7046 uploadOptions: _uploadOptions, |
| 6963 uploadMedia: _uploadMedia, | 7047 uploadMedia: _uploadMedia, |
| 6964 downloadOptions: _downloadOptions); | 7048 downloadOptions: _downloadOptions); |
| 6965 return _response.then((data) => new Operation.fromJson(data)); | 7049 return _response.then((data) => new Operation.fromJson(data)); |
| 6966 } | 7050 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6980 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7064 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6981 * | 7065 * |
| 6982 * [targetPool] - Name of the TargetPool resource for which the backup is to | 7066 * [targetPool] - Name of the TargetPool resource for which the backup is to |
| 6983 * be set. | 7067 * be set. |
| 6984 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7068 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 6985 * | 7069 * |
| 6986 * [failoverRatio] - New failoverRatio value for the containing target pool. | 7070 * [failoverRatio] - New failoverRatio value for the containing target pool. |
| 6987 * | 7071 * |
| 6988 * Completes with a [Operation]. | 7072 * Completes with a [Operation]. |
| 6989 * | 7073 * |
| 6990 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7074 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6991 * error. | 7075 * error. |
| 6992 * | 7076 * |
| 6993 * If the used [http.Client] completes with an error when making a REST call, | 7077 * If the used [http.Client] completes with an error when making a REST call, |
| 6994 * this method will complete with the same error. | 7078 * this method will complete with the same error. |
| 6995 */ | 7079 */ |
| 6996 async.Future<Operation> setBackup(TargetReference request, core.String project
, core.String region, core.String targetPool, {core.double failoverRatio}) { | 7080 async.Future<Operation> setBackup(TargetReference request, core.String project
, core.String region, core.String targetPool, {core.double failoverRatio}) { |
| 6997 var _url = null; | 7081 var _url = null; |
| 6998 var _queryParams = new core.Map(); | 7082 var _queryParams = new core.Map(); |
| 6999 var _uploadMedia = null; | 7083 var _uploadMedia = null; |
| 7000 var _uploadOptions = null; | 7084 var _uploadOptions = null; |
| 7001 var _downloadOptions = common.DownloadOptions.Metadata; | 7085 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7002 var _body = null; | 7086 var _body = null; |
| 7003 | 7087 |
| 7004 if (request != null) { | 7088 if (request != null) { |
| 7005 _body = convert.JSON.encode((request).toJson()); | 7089 _body = convert.JSON.encode((request).toJson()); |
| 7006 } | 7090 } |
| 7007 if (project == null) { | 7091 if (project == null) { |
| 7008 throw new core.ArgumentError("Parameter project is required."); | 7092 throw new core.ArgumentError("Parameter project is required."); |
| 7009 } | 7093 } |
| 7010 if (region == null) { | 7094 if (region == null) { |
| 7011 throw new core.ArgumentError("Parameter region is required."); | 7095 throw new core.ArgumentError("Parameter region is required."); |
| 7012 } | 7096 } |
| 7013 if (targetPool == null) { | 7097 if (targetPool == null) { |
| 7014 throw new core.ArgumentError("Parameter targetPool is required."); | 7098 throw new core.ArgumentError("Parameter targetPool is required."); |
| 7015 } | 7099 } |
| 7016 if (failoverRatio != null) { | 7100 if (failoverRatio != null) { |
| 7017 _queryParams["failoverRatio"] = ["${failoverRatio}"]; | 7101 _queryParams["failoverRatio"] = ["${failoverRatio}"]; |
| 7018 } | 7102 } |
| 7019 | 7103 |
| 7020 | 7104 |
| 7021 _url = common_internal.Escaper.ecapeVariable('$project') + '/regions/' + com
mon_internal.Escaper.ecapeVariable('$region') + '/targetPools/' + common_interna
l.Escaper.ecapeVariable('$targetPool') + '/setBackup'; | 7105 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetPools/' + commons.Escaper.ecapeVariable(
'$targetPool') + '/setBackup'; |
| 7022 | 7106 |
| 7023 var _response = _requester.request(_url, | 7107 var _response = _requester.request(_url, |
| 7024 "POST", | 7108 "POST", |
| 7025 body: _body, | 7109 body: _body, |
| 7026 queryParams: _queryParams, | 7110 queryParams: _queryParams, |
| 7027 uploadOptions: _uploadOptions, | 7111 uploadOptions: _uploadOptions, |
| 7028 uploadMedia: _uploadMedia, | 7112 uploadMedia: _uploadMedia, |
| 7029 downloadOptions: _downloadOptions); | 7113 downloadOptions: _downloadOptions); |
| 7030 return _response.then((data) => new Operation.fromJson(data)); | 7114 return _response.then((data) => new Operation.fromJson(data)); |
| 7031 } | 7115 } |
| 7032 | 7116 |
| 7033 } | 7117 } |
| 7034 | 7118 |
| 7035 | 7119 |
| 7036 /** Not documented yet. */ | 7120 class TargetVpnGatewaysResourceApi { |
| 7037 class UrlMapsResourceApi { | 7121 final commons.ApiRequester _requester; |
| 7038 final common_internal.ApiRequester _requester; | |
| 7039 | 7122 |
| 7040 UrlMapsResourceApi(common_internal.ApiRequester client) : | 7123 TargetVpnGatewaysResourceApi(commons.ApiRequester client) : |
| 7041 _requester = client; | 7124 _requester = client; |
| 7042 | 7125 |
| 7043 /** | 7126 /** |
| 7044 * Deletes the specified UrlMap resource. | 7127 * Retrieves the list of target VPN gateways grouped by scope. |
| 7045 * | 7128 * |
| 7046 * Request parameters: | 7129 * Request parameters: |
| 7047 * | 7130 * |
| 7048 * [project] - Name of the project scoping this request. | 7131 * [project] - Project ID for this request. |
| 7049 * Value must have pattern | 7132 * Value must have pattern |
| 7050 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7133 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7051 * | 7134 * |
| 7052 * [urlMap] - Name of the UrlMap resource to delete. | 7135 * [filter] - Optional. Filter expression for filtering listed resources. |
| 7053 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | |
| 7054 * | 7136 * |
| 7055 * Completes with a [Operation]. | 7137 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 7138 * value is 500 and default value is 500. |
| 7139 * Value must be between "0" and "500". |
| 7056 * | 7140 * |
| 7057 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7141 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 7142 * by maxResults. Used to continue a previous list request. |
| 7143 * |
| 7144 * Completes with a [TargetVpnGatewayAggregatedList]. |
| 7145 * |
| 7146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7058 * error. | 7147 * error. |
| 7059 * | 7148 * |
| 7060 * If the used [http.Client] completes with an error when making a REST call, | 7149 * If the used [http.Client] completes with an error when making a REST call, |
| 7061 * this method will complete with the same error. | 7150 * this method will complete with the same error. |
| 7062 */ | 7151 */ |
| 7063 async.Future<Operation> delete(core.String project, core.String urlMap) { | 7152 async.Future<TargetVpnGatewayAggregatedList> aggregatedList(core.String projec
t, {core.String filter, core.int maxResults, core.String pageToken}) { |
| 7064 var _url = null; | 7153 var _url = null; |
| 7065 var _queryParams = new core.Map(); | 7154 var _queryParams = new core.Map(); |
| 7066 var _uploadMedia = null; | 7155 var _uploadMedia = null; |
| 7067 var _uploadOptions = null; | 7156 var _uploadOptions = null; |
| 7068 var _downloadOptions = common.DownloadOptions.Metadata; | 7157 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7069 var _body = null; | 7158 var _body = null; |
| 7070 | 7159 |
| 7071 if (project == null) { | 7160 if (project == null) { |
| 7072 throw new core.ArgumentError("Parameter project is required."); | 7161 throw new core.ArgumentError("Parameter project is required."); |
| 7073 } | 7162 } |
| 7074 if (urlMap == null) { | 7163 if (filter != null) { |
| 7075 throw new core.ArgumentError("Parameter urlMap is required."); | 7164 _queryParams["filter"] = [filter]; |
| 7165 } |
| 7166 if (maxResults != null) { |
| 7167 _queryParams["maxResults"] = ["${maxResults}"]; |
| 7168 } |
| 7169 if (pageToken != null) { |
| 7170 _queryParams["pageToken"] = [pageToken]; |
| 7076 } | 7171 } |
| 7077 | 7172 |
| 7078 | 7173 |
| 7079 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/
' + common_internal.Escaper.ecapeVariable('$urlMap'); | 7174 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/targetVpnGat
eways'; |
| 7175 |
| 7176 var _response = _requester.request(_url, |
| 7177 "GET", |
| 7178 body: _body, |
| 7179 queryParams: _queryParams, |
| 7180 uploadOptions: _uploadOptions, |
| 7181 uploadMedia: _uploadMedia, |
| 7182 downloadOptions: _downloadOptions); |
| 7183 return _response.then((data) => new TargetVpnGatewayAggregatedList.fromJson(
data)); |
| 7184 } |
| 7185 |
| 7186 /** |
| 7187 * Deletes the specified TargetVpnGateway resource. |
| 7188 * |
| 7189 * Request parameters: |
| 7190 * |
| 7191 * [project] - Project ID for this request. |
| 7192 * Value must have pattern |
| 7193 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7194 * |
| 7195 * [region] - The name of the region for this request. |
| 7196 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7197 * |
| 7198 * [targetVpnGateway] - Name of the TargetVpnGateway resource to delete. |
| 7199 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7200 * |
| 7201 * Completes with a [Operation]. |
| 7202 * |
| 7203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7204 * error. |
| 7205 * |
| 7206 * If the used [http.Client] completes with an error when making a REST call, |
| 7207 * this method will complete with the same error. |
| 7208 */ |
| 7209 async.Future<Operation> delete(core.String project, core.String region, core.S
tring targetVpnGateway) { |
| 7210 var _url = null; |
| 7211 var _queryParams = new core.Map(); |
| 7212 var _uploadMedia = null; |
| 7213 var _uploadOptions = null; |
| 7214 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7215 var _body = null; |
| 7216 |
| 7217 if (project == null) { |
| 7218 throw new core.ArgumentError("Parameter project is required."); |
| 7219 } |
| 7220 if (region == null) { |
| 7221 throw new core.ArgumentError("Parameter region is required."); |
| 7222 } |
| 7223 if (targetVpnGateway == null) { |
| 7224 throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
| 7225 } |
| 7226 |
| 7227 |
| 7228 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVar
iable('$targetVpnGateway'); |
| 7080 | 7229 |
| 7081 var _response = _requester.request(_url, | 7230 var _response = _requester.request(_url, |
| 7082 "DELETE", | 7231 "DELETE", |
| 7083 body: _body, | 7232 body: _body, |
| 7084 queryParams: _queryParams, | 7233 queryParams: _queryParams, |
| 7085 uploadOptions: _uploadOptions, | 7234 uploadOptions: _uploadOptions, |
| 7086 uploadMedia: _uploadMedia, | 7235 uploadMedia: _uploadMedia, |
| 7087 downloadOptions: _downloadOptions); | 7236 downloadOptions: _downloadOptions); |
| 7088 return _response.then((data) => new Operation.fromJson(data)); | 7237 return _response.then((data) => new Operation.fromJson(data)); |
| 7089 } | 7238 } |
| 7090 | 7239 |
| 7091 /** | 7240 /** |
| 7092 * Returns the specified UrlMap resource. | 7241 * Returns the specified TargetVpnGateway resource. |
| 7093 * | 7242 * |
| 7094 * Request parameters: | 7243 * Request parameters: |
| 7095 * | 7244 * |
| 7096 * [project] - Name of the project scoping this request. | 7245 * [project] - Project ID for this request. |
| 7097 * Value must have pattern | 7246 * Value must have pattern |
| 7098 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7247 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7099 * | 7248 * |
| 7100 * [urlMap] - Name of the UrlMap resource to return. | 7249 * [region] - The name of the region for this request. |
| 7101 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7250 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7102 * | 7251 * |
| 7103 * Completes with a [UrlMap]. | 7252 * [targetVpnGateway] - Name of the TargetVpnGateway resource to return. |
| 7253 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7104 * | 7254 * |
| 7105 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7255 * Completes with a [TargetVpnGateway]. |
| 7256 * |
| 7257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7106 * error. | 7258 * error. |
| 7107 * | 7259 * |
| 7108 * If the used [http.Client] completes with an error when making a REST call, | 7260 * If the used [http.Client] completes with an error when making a REST call, |
| 7109 * this method will complete with the same error. | 7261 * this method will complete with the same error. |
| 7110 */ | 7262 */ |
| 7111 async.Future<UrlMap> get(core.String project, core.String urlMap) { | 7263 async.Future<TargetVpnGateway> get(core.String project, core.String region, co
re.String targetVpnGateway) { |
| 7112 var _url = null; | 7264 var _url = null; |
| 7113 var _queryParams = new core.Map(); | 7265 var _queryParams = new core.Map(); |
| 7114 var _uploadMedia = null; | 7266 var _uploadMedia = null; |
| 7115 var _uploadOptions = null; | 7267 var _uploadOptions = null; |
| 7116 var _downloadOptions = common.DownloadOptions.Metadata; | 7268 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7117 var _body = null; | 7269 var _body = null; |
| 7118 | 7270 |
| 7119 if (project == null) { | 7271 if (project == null) { |
| 7120 throw new core.ArgumentError("Parameter project is required."); | 7272 throw new core.ArgumentError("Parameter project is required."); |
| 7121 } | 7273 } |
| 7122 if (urlMap == null) { | 7274 if (region == null) { |
| 7123 throw new core.ArgumentError("Parameter urlMap is required."); | 7275 throw new core.ArgumentError("Parameter region is required."); |
| 7276 } |
| 7277 if (targetVpnGateway == null) { |
| 7278 throw new core.ArgumentError("Parameter targetVpnGateway is required."); |
| 7124 } | 7279 } |
| 7125 | 7280 |
| 7126 | 7281 |
| 7127 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/
' + common_internal.Escaper.ecapeVariable('$urlMap'); | 7282 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetVpnGateways/' + commons.Escaper.ecapeVar
iable('$targetVpnGateway'); |
| 7128 | 7283 |
| 7129 var _response = _requester.request(_url, | 7284 var _response = _requester.request(_url, |
| 7130 "GET", | 7285 "GET", |
| 7131 body: _body, | 7286 body: _body, |
| 7132 queryParams: _queryParams, | 7287 queryParams: _queryParams, |
| 7133 uploadOptions: _uploadOptions, | 7288 uploadOptions: _uploadOptions, |
| 7134 uploadMedia: _uploadMedia, | 7289 uploadMedia: _uploadMedia, |
| 7135 downloadOptions: _downloadOptions); | 7290 downloadOptions: _downloadOptions); |
| 7136 return _response.then((data) => new UrlMap.fromJson(data)); | 7291 return _response.then((data) => new TargetVpnGateway.fromJson(data)); |
| 7137 } | 7292 } |
| 7138 | 7293 |
| 7139 /** | 7294 /** |
| 7140 * Creates a UrlMap resource in the specified project using the data included | 7295 * Creates a TargetVpnGateway resource in the specified project and region |
| 7141 * in the request. | 7296 * using the data included in the request. |
| 7142 * | 7297 * |
| 7143 * [request] - The metadata request object. | 7298 * [request] - The metadata request object. |
| 7144 * | 7299 * |
| 7145 * Request parameters: | 7300 * Request parameters: |
| 7146 * | 7301 * |
| 7147 * [project] - Name of the project scoping this request. | 7302 * [project] - Project ID for this request. |
| 7148 * Value must have pattern | 7303 * Value must have pattern |
| 7149 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7304 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7150 * | 7305 * |
| 7306 * [region] - The name of the region for this request. |
| 7307 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7308 * |
| 7151 * Completes with a [Operation]. | 7309 * Completes with a [Operation]. |
| 7152 * | 7310 * |
| 7153 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7311 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7154 * error. | 7312 * error. |
| 7155 * | 7313 * |
| 7156 * If the used [http.Client] completes with an error when making a REST call, | 7314 * If the used [http.Client] completes with an error when making a REST call, |
| 7157 * this method will complete with the same error. | 7315 * this method will complete with the same error. |
| 7158 */ | 7316 */ |
| 7159 async.Future<Operation> insert(UrlMap request, core.String project) { | 7317 async.Future<Operation> insert(TargetVpnGateway request, core.String project,
core.String region) { |
| 7160 var _url = null; | 7318 var _url = null; |
| 7161 var _queryParams = new core.Map(); | 7319 var _queryParams = new core.Map(); |
| 7162 var _uploadMedia = null; | 7320 var _uploadMedia = null; |
| 7163 var _uploadOptions = null; | 7321 var _uploadOptions = null; |
| 7164 var _downloadOptions = common.DownloadOptions.Metadata; | 7322 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7165 var _body = null; | 7323 var _body = null; |
| 7166 | 7324 |
| 7167 if (request != null) { | 7325 if (request != null) { |
| 7168 _body = convert.JSON.encode((request).toJson()); | 7326 _body = convert.JSON.encode((request).toJson()); |
| 7169 } | 7327 } |
| 7170 if (project == null) { | 7328 if (project == null) { |
| 7171 throw new core.ArgumentError("Parameter project is required."); | 7329 throw new core.ArgumentError("Parameter project is required."); |
| 7172 } | 7330 } |
| 7331 if (region == null) { |
| 7332 throw new core.ArgumentError("Parameter region is required."); |
| 7333 } |
| 7173 | 7334 |
| 7174 | 7335 |
| 7175 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps'
; | 7336 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetVpnGateways'; |
| 7176 | 7337 |
| 7177 var _response = _requester.request(_url, | 7338 var _response = _requester.request(_url, |
| 7178 "POST", | 7339 "POST", |
| 7179 body: _body, | 7340 body: _body, |
| 7180 queryParams: _queryParams, | 7341 queryParams: _queryParams, |
| 7181 uploadOptions: _uploadOptions, | 7342 uploadOptions: _uploadOptions, |
| 7182 uploadMedia: _uploadMedia, | 7343 uploadMedia: _uploadMedia, |
| 7183 downloadOptions: _downloadOptions); | 7344 downloadOptions: _downloadOptions); |
| 7184 return _response.then((data) => new Operation.fromJson(data)); | 7345 return _response.then((data) => new Operation.fromJson(data)); |
| 7185 } | 7346 } |
| 7186 | 7347 |
| 7187 /** | 7348 /** |
| 7188 * Retrieves the list of UrlMap resources available to the specified project. | 7349 * Retrieves the list of TargetVpnGateway resources available to the specified |
| 7350 * project and region. |
| 7189 * | 7351 * |
| 7190 * Request parameters: | 7352 * Request parameters: |
| 7191 * | 7353 * |
| 7192 * [project] - Name of the project scoping this request. | 7354 * [project] - Project ID for this request. |
| 7193 * Value must have pattern | 7355 * Value must have pattern |
| 7194 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7356 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7195 * | 7357 * |
| 7358 * [region] - The name of the region for this request. |
| 7359 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7360 * |
| 7196 * [filter] - Optional. Filter expression for filtering listed resources. | 7361 * [filter] - Optional. Filter expression for filtering listed resources. |
| 7197 * | 7362 * |
| 7198 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 7363 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 7199 * value is 500 and default value is 500. | 7364 * value is 500 and default value is 500. |
| 7200 * Value must be between "0" and "500". | 7365 * Value must be between "0" and "500". |
| 7201 * | 7366 * |
| 7202 * [pageToken] - Optional. Tag returned by a previous list request truncated | 7367 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 7203 * by maxResults. Used to continue a previous list request. | 7368 * by maxResults. Used to continue a previous list request. |
| 7204 * | 7369 * |
| 7205 * Completes with a [UrlMapList]. | 7370 * Completes with a [TargetVpnGatewayList]. |
| 7206 * | 7371 * |
| 7207 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7372 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7208 * error. | 7373 * error. |
| 7209 * | 7374 * |
| 7210 * If the used [http.Client] completes with an error when making a REST call, | 7375 * If the used [http.Client] completes with an error when making a REST call, |
| 7211 * this method will complete with the same error. | 7376 * this method will complete with the same error. |
| 7212 */ | 7377 */ |
| 7213 async.Future<UrlMapList> list(core.String project, {core.String filter, core.i
nt maxResults, core.String pageToken}) { | 7378 async.Future<TargetVpnGatewayList> list(core.String project, core.String regio
n, {core.String filter, core.int maxResults, core.String pageToken}) { |
| 7214 var _url = null; | 7379 var _url = null; |
| 7215 var _queryParams = new core.Map(); | 7380 var _queryParams = new core.Map(); |
| 7216 var _uploadMedia = null; | 7381 var _uploadMedia = null; |
| 7217 var _uploadOptions = null; | 7382 var _uploadOptions = null; |
| 7218 var _downloadOptions = common.DownloadOptions.Metadata; | 7383 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7219 var _body = null; | 7384 var _body = null; |
| 7220 | 7385 |
| 7221 if (project == null) { | 7386 if (project == null) { |
| 7222 throw new core.ArgumentError("Parameter project is required."); | 7387 throw new core.ArgumentError("Parameter project is required."); |
| 7223 } | 7388 } |
| 7389 if (region == null) { |
| 7390 throw new core.ArgumentError("Parameter region is required."); |
| 7391 } |
| 7224 if (filter != null) { | 7392 if (filter != null) { |
| 7225 _queryParams["filter"] = [filter]; | 7393 _queryParams["filter"] = [filter]; |
| 7226 } | 7394 } |
| 7227 if (maxResults != null) { | 7395 if (maxResults != null) { |
| 7228 _queryParams["maxResults"] = ["${maxResults}"]; | 7396 _queryParams["maxResults"] = ["${maxResults}"]; |
| 7229 } | 7397 } |
| 7230 if (pageToken != null) { | 7398 if (pageToken != null) { |
| 7231 _queryParams["pageToken"] = [pageToken]; | 7399 _queryParams["pageToken"] = [pageToken]; |
| 7232 } | 7400 } |
| 7233 | 7401 |
| 7234 | 7402 |
| 7235 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps'
; | 7403 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/targetVpnGateways'; |
| 7236 | 7404 |
| 7237 var _response = _requester.request(_url, | 7405 var _response = _requester.request(_url, |
| 7238 "GET", | 7406 "GET", |
| 7239 body: _body, | 7407 body: _body, |
| 7240 queryParams: _queryParams, | 7408 queryParams: _queryParams, |
| 7241 uploadOptions: _uploadOptions, | 7409 uploadOptions: _uploadOptions, |
| 7242 uploadMedia: _uploadMedia, | 7410 uploadMedia: _uploadMedia, |
| 7243 downloadOptions: _downloadOptions); | 7411 downloadOptions: _downloadOptions); |
| 7244 return _response.then((data) => new UrlMapList.fromJson(data)); | 7412 return _response.then((data) => new TargetVpnGatewayList.fromJson(data)); |
| 7245 } | 7413 } |
| 7246 | 7414 |
| 7415 } |
| 7416 |
| 7417 |
| 7418 class UrlMapsResourceApi { |
| 7419 final commons.ApiRequester _requester; |
| 7420 |
| 7421 UrlMapsResourceApi(commons.ApiRequester client) : |
| 7422 _requester = client; |
| 7423 |
| 7247 /** | 7424 /** |
| 7248 * Update the entire content of the UrlMap resource. This method supports | 7425 * Deletes the specified UrlMap resource. |
| 7249 * patch semantics. | |
| 7250 * | |
| 7251 * [request] - The metadata request object. | |
| 7252 * | 7426 * |
| 7253 * Request parameters: | 7427 * Request parameters: |
| 7254 * | 7428 * |
| 7255 * [project] - Name of the project scoping this request. | 7429 * [project] - Name of the project scoping this request. |
| 7256 * Value must have pattern | 7430 * Value must have pattern |
| 7257 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7431 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7258 * | 7432 * |
| 7259 * [urlMap] - Name of the UrlMap resource to update. | 7433 * [urlMap] - Name of the UrlMap resource to delete. |
| 7260 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7434 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7261 * | 7435 * |
| 7262 * Completes with a [Operation]. | 7436 * Completes with a [Operation]. |
| 7263 * | 7437 * |
| 7264 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7265 * error. | 7439 * error. |
| 7266 * | 7440 * |
| 7267 * If the used [http.Client] completes with an error when making a REST call, | 7441 * If the used [http.Client] completes with an error when making a REST call, |
| 7268 * this method will complete with the same error. | 7442 * this method will complete with the same error. |
| 7269 */ | 7443 */ |
| 7270 async.Future<Operation> patch(UrlMap request, core.String project, core.String
urlMap) { | 7444 async.Future<Operation> delete(core.String project, core.String urlMap) { |
| 7271 var _url = null; | 7445 var _url = null; |
| 7272 var _queryParams = new core.Map(); | 7446 var _queryParams = new core.Map(); |
| 7273 var _uploadMedia = null; | 7447 var _uploadMedia = null; |
| 7274 var _uploadOptions = null; | 7448 var _uploadOptions = null; |
| 7275 var _downloadOptions = common.DownloadOptions.Metadata; | 7449 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7276 var _body = null; | 7450 var _body = null; |
| 7277 | 7451 |
| 7278 if (request != null) { | |
| 7279 _body = convert.JSON.encode((request).toJson()); | |
| 7280 } | |
| 7281 if (project == null) { | 7452 if (project == null) { |
| 7282 throw new core.ArgumentError("Parameter project is required."); | 7453 throw new core.ArgumentError("Parameter project is required."); |
| 7283 } | 7454 } |
| 7284 if (urlMap == null) { | 7455 if (urlMap == null) { |
| 7285 throw new core.ArgumentError("Parameter urlMap is required."); | 7456 throw new core.ArgumentError("Parameter urlMap is required."); |
| 7286 } | 7457 } |
| 7287 | 7458 |
| 7288 | 7459 |
| 7289 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/
' + common_internal.Escaper.ecapeVariable('$urlMap'); | 7460 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + comm
ons.Escaper.ecapeVariable('$urlMap'); |
| 7290 | 7461 |
| 7291 var _response = _requester.request(_url, | 7462 var _response = _requester.request(_url, |
| 7292 "PATCH", | 7463 "DELETE", |
| 7293 body: _body, | 7464 body: _body, |
| 7294 queryParams: _queryParams, | 7465 queryParams: _queryParams, |
| 7295 uploadOptions: _uploadOptions, | 7466 uploadOptions: _uploadOptions, |
| 7296 uploadMedia: _uploadMedia, | 7467 uploadMedia: _uploadMedia, |
| 7297 downloadOptions: _downloadOptions); | 7468 downloadOptions: _downloadOptions); |
| 7298 return _response.then((data) => new Operation.fromJson(data)); | 7469 return _response.then((data) => new Operation.fromJson(data)); |
| 7299 } | 7470 } |
| 7300 | 7471 |
| 7301 /** | 7472 /** |
| 7302 * Update the entire content of the UrlMap resource. | 7473 * Returns the specified UrlMap resource. |
| 7303 * | |
| 7304 * [request] - The metadata request object. | |
| 7305 * | 7474 * |
| 7306 * Request parameters: | 7475 * Request parameters: |
| 7307 * | 7476 * |
| 7308 * [project] - Name of the project scoping this request. | 7477 * [project] - Name of the project scoping this request. |
| 7309 * Value must have pattern | 7478 * Value must have pattern |
| 7310 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7479 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7311 * | 7480 * |
| 7312 * [urlMap] - Name of the UrlMap resource to update. | 7481 * [urlMap] - Name of the UrlMap resource to return. |
| 7313 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7482 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7314 * | 7483 * |
| 7315 * Completes with a [Operation]. | 7484 * Completes with a [UrlMap]. |
| 7316 * | 7485 * |
| 7317 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7318 * error. | 7487 * error. |
| 7319 * | 7488 * |
| 7320 * If the used [http.Client] completes with an error when making a REST call, | 7489 * If the used [http.Client] completes with an error when making a REST call, |
| 7321 * this method will complete with the same error. | 7490 * this method will complete with the same error. |
| 7322 */ | 7491 */ |
| 7323 async.Future<Operation> update(UrlMap request, core.String project, core.Strin
g urlMap) { | 7492 async.Future<UrlMap> get(core.String project, core.String urlMap) { |
| 7324 var _url = null; | 7493 var _url = null; |
| 7325 var _queryParams = new core.Map(); | 7494 var _queryParams = new core.Map(); |
| 7326 var _uploadMedia = null; | 7495 var _uploadMedia = null; |
| 7327 var _uploadOptions = null; | 7496 var _uploadOptions = null; |
| 7328 var _downloadOptions = common.DownloadOptions.Metadata; | 7497 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7329 var _body = null; | 7498 var _body = null; |
| 7330 | 7499 |
| 7331 if (request != null) { | |
| 7332 _body = convert.JSON.encode((request).toJson()); | |
| 7333 } | |
| 7334 if (project == null) { | 7500 if (project == null) { |
| 7335 throw new core.ArgumentError("Parameter project is required."); | 7501 throw new core.ArgumentError("Parameter project is required."); |
| 7336 } | 7502 } |
| 7337 if (urlMap == null) { | 7503 if (urlMap == null) { |
| 7338 throw new core.ArgumentError("Parameter urlMap is required."); | 7504 throw new core.ArgumentError("Parameter urlMap is required."); |
| 7339 } | 7505 } |
| 7340 | 7506 |
| 7341 | 7507 |
| 7342 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/
' + common_internal.Escaper.ecapeVariable('$urlMap'); | 7508 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + comm
ons.Escaper.ecapeVariable('$urlMap'); |
| 7343 | 7509 |
| 7344 var _response = _requester.request(_url, | 7510 var _response = _requester.request(_url, |
| 7345 "PUT", | 7511 "GET", |
| 7346 body: _body, | 7512 body: _body, |
| 7347 queryParams: _queryParams, | 7513 queryParams: _queryParams, |
| 7348 uploadOptions: _uploadOptions, | 7514 uploadOptions: _uploadOptions, |
| 7349 uploadMedia: _uploadMedia, | 7515 uploadMedia: _uploadMedia, |
| 7350 downloadOptions: _downloadOptions); | 7516 downloadOptions: _downloadOptions); |
| 7351 return _response.then((data) => new Operation.fromJson(data)); | 7517 return _response.then((data) => new UrlMap.fromJson(data)); |
| 7352 } | 7518 } |
| 7353 | 7519 |
| 7354 /** | 7520 /** |
| 7355 * Run static validation for the UrlMap. In particular, the tests of the | 7521 * Creates a UrlMap resource in the specified project using the data included |
| 7356 * provided UrlMap will be run. Calling this method does NOT create the | 7522 * in the request. |
| 7357 * UrlMap. | |
| 7358 * | 7523 * |
| 7359 * [request] - The metadata request object. | 7524 * [request] - The metadata request object. |
| 7360 * | 7525 * |
| 7361 * Request parameters: | 7526 * Request parameters: |
| 7362 * | 7527 * |
| 7363 * [project] - Name of the project scoping this request. | 7528 * [project] - Name of the project scoping this request. |
| 7364 * Value must have pattern | 7529 * Value must have pattern |
| 7365 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7530 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7366 * | 7531 * |
| 7367 * [urlMap] - Name of the UrlMap resource to be validated as. | 7532 * Completes with a [Operation]. |
| 7368 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | |
| 7369 * | 7533 * |
| 7370 * Completes with a [UrlMapsValidateResponse]. | 7534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7371 * | |
| 7372 * Completes with a [common.ApiRequestError] if the API endpoint returned an | |
| 7373 * error. | 7535 * error. |
| 7374 * | 7536 * |
| 7375 * If the used [http.Client] completes with an error when making a REST call, | 7537 * If the used [http.Client] completes with an error when making a REST call, |
| 7376 * this method will complete with the same error. | 7538 * this method will complete with the same error. |
| 7377 */ | 7539 */ |
| 7378 async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request,
core.String project, core.String urlMap) { | 7540 async.Future<Operation> insert(UrlMap request, core.String project) { |
| 7379 var _url = null; | 7541 var _url = null; |
| 7380 var _queryParams = new core.Map(); | 7542 var _queryParams = new core.Map(); |
| 7381 var _uploadMedia = null; | 7543 var _uploadMedia = null; |
| 7382 var _uploadOptions = null; | 7544 var _uploadOptions = null; |
| 7383 var _downloadOptions = common.DownloadOptions.Metadata; | 7545 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7384 var _body = null; | 7546 var _body = null; |
| 7385 | 7547 |
| 7386 if (request != null) { | 7548 if (request != null) { |
| 7387 _body = convert.JSON.encode((request).toJson()); | 7549 _body = convert.JSON.encode((request).toJson()); |
| 7388 } | 7550 } |
| 7389 if (project == null) { | 7551 if (project == null) { |
| 7390 throw new core.ArgumentError("Parameter project is required."); | 7552 throw new core.ArgumentError("Parameter project is required."); |
| 7391 } | 7553 } |
| 7392 if (urlMap == null) { | |
| 7393 throw new core.ArgumentError("Parameter urlMap is required."); | |
| 7394 } | |
| 7395 | 7554 |
| 7396 | 7555 |
| 7397 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/urlMaps/
' + common_internal.Escaper.ecapeVariable('$urlMap') + '/validate'; | 7556 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
| 7398 | 7557 |
| 7399 var _response = _requester.request(_url, | 7558 var _response = _requester.request(_url, |
| 7400 "POST", | 7559 "POST", |
| 7401 body: _body, | 7560 body: _body, |
| 7402 queryParams: _queryParams, | 7561 queryParams: _queryParams, |
| 7403 uploadOptions: _uploadOptions, | 7562 uploadOptions: _uploadOptions, |
| 7404 uploadMedia: _uploadMedia, | 7563 uploadMedia: _uploadMedia, |
| 7405 downloadOptions: _downloadOptions); | 7564 downloadOptions: _downloadOptions); |
| 7406 return _response.then((data) => new UrlMapsValidateResponse.fromJson(data)); | 7565 return _response.then((data) => new Operation.fromJson(data)); |
| 7407 } | 7566 } |
| 7408 | 7567 |
| 7409 } | |
| 7410 | |
| 7411 | |
| 7412 /** Not documented yet. */ | |
| 7413 class ZoneOperationsResourceApi { | |
| 7414 final common_internal.ApiRequester _requester; | |
| 7415 | |
| 7416 ZoneOperationsResourceApi(common_internal.ApiRequester client) : | |
| 7417 _requester = client; | |
| 7418 | |
| 7419 /** | 7568 /** |
| 7420 * Deletes the specified zone-specific operation resource. | 7569 * Retrieves the list of UrlMap resources available to the specified project. |
| 7421 * | 7570 * |
| 7422 * Request parameters: | 7571 * Request parameters: |
| 7423 * | 7572 * |
| 7424 * [project] - Name of the project scoping this request. | 7573 * [project] - Name of the project scoping this request. |
| 7425 * Value must have pattern | 7574 * Value must have pattern |
| 7426 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7575 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7427 * | 7576 * |
| 7428 * [zone] - Name of the zone scoping this request. | 7577 * [filter] - Optional. Filter expression for filtering listed resources. |
| 7429 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | |
| 7430 * | 7578 * |
| 7431 * [operation] - Name of the operation resource to delete. | 7579 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 7432 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7580 * value is 500 and default value is 500. |
| 7581 * Value must be between "0" and "500". |
| 7433 * | 7582 * |
| 7434 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7583 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 7584 * by maxResults. Used to continue a previous list request. |
| 7585 * |
| 7586 * Completes with a [UrlMapList]. |
| 7587 * |
| 7588 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7435 * error. | 7589 * error. |
| 7436 * | 7590 * |
| 7437 * If the used [http.Client] completes with an error when making a REST call, | 7591 * If the used [http.Client] completes with an error when making a REST call, |
| 7438 * this method will complete with the same error. | 7592 * this method will complete with the same error. |
| 7439 */ | 7593 */ |
| 7440 async.Future delete(core.String project, core.String zone, core.String operati
on) { | 7594 async.Future<UrlMapList> list(core.String project, {core.String filter, core.i
nt maxResults, core.String pageToken}) { |
| 7441 var _url = null; | 7595 var _url = null; |
| 7442 var _queryParams = new core.Map(); | 7596 var _queryParams = new core.Map(); |
| 7443 var _uploadMedia = null; | 7597 var _uploadMedia = null; |
| 7444 var _uploadOptions = null; | 7598 var _uploadOptions = null; |
| 7445 var _downloadOptions = common.DownloadOptions.Metadata; | 7599 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7446 var _body = null; | 7600 var _body = null; |
| 7447 | 7601 |
| 7448 if (project == null) { | 7602 if (project == null) { |
| 7449 throw new core.ArgumentError("Parameter project is required."); | 7603 throw new core.ArgumentError("Parameter project is required."); |
| 7450 } | 7604 } |
| 7451 if (zone == null) { | 7605 if (filter != null) { |
| 7452 throw new core.ArgumentError("Parameter zone is required."); | 7606 _queryParams["filter"] = [filter]; |
| 7453 } | 7607 } |
| 7454 if (operation == null) { | 7608 if (maxResults != null) { |
| 7455 throw new core.ArgumentError("Parameter operation is required."); | 7609 _queryParams["maxResults"] = ["${maxResults}"]; |
| 7610 } |
| 7611 if (pageToken != null) { |
| 7612 _queryParams["pageToken"] = [pageToken]; |
| 7456 } | 7613 } |
| 7457 | 7614 |
| 7458 _downloadOptions = null; | |
| 7459 | 7615 |
| 7460 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc
aper.ecapeVariable('$operation'); | 7616 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps'; |
| 7461 | 7617 |
| 7462 var _response = _requester.request(_url, | 7618 var _response = _requester.request(_url, |
| 7463 "DELETE", | 7619 "GET", |
| 7464 body: _body, | 7620 body: _body, |
| 7465 queryParams: _queryParams, | 7621 queryParams: _queryParams, |
| 7466 uploadOptions: _uploadOptions, | 7622 uploadOptions: _uploadOptions, |
| 7467 uploadMedia: _uploadMedia, | 7623 uploadMedia: _uploadMedia, |
| 7468 downloadOptions: _downloadOptions); | 7624 downloadOptions: _downloadOptions); |
| 7469 return _response.then((data) => null); | 7625 return _response.then((data) => new UrlMapList.fromJson(data)); |
| 7470 } | 7626 } |
| 7471 | 7627 |
| 7472 /** | 7628 /** |
| 7473 * Retrieves the specified zone-specific operation resource. | 7629 * Update the entire content of the UrlMap resource. This method supports |
| 7630 * patch semantics. |
| 7631 * |
| 7632 * [request] - The metadata request object. |
| 7474 * | 7633 * |
| 7475 * Request parameters: | 7634 * Request parameters: |
| 7476 * | 7635 * |
| 7477 * [project] - Name of the project scoping this request. | 7636 * [project] - Name of the project scoping this request. |
| 7478 * Value must have pattern | 7637 * Value must have pattern |
| 7479 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7638 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7480 * | 7639 * |
| 7481 * [zone] - Name of the zone scoping this request. | 7640 * [urlMap] - Name of the UrlMap resource to update. |
| 7482 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | |
| 7483 * | |
| 7484 * [operation] - Name of the operation resource to return. | |
| 7485 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7641 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7486 * | 7642 * |
| 7487 * Completes with a [Operation]. | 7643 * Completes with a [Operation]. |
| 7488 * | 7644 * |
| 7489 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7490 * error. | 7646 * error. |
| 7491 * | 7647 * |
| 7492 * If the used [http.Client] completes with an error when making a REST call, | 7648 * If the used [http.Client] completes with an error when making a REST call, |
| 7493 * this method will complete with the same error. | 7649 * this method will complete with the same error. |
| 7494 */ | 7650 */ |
| 7495 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { | 7651 async.Future<Operation> patch(UrlMap request, core.String project, core.String
urlMap) { |
| 7496 var _url = null; | 7652 var _url = null; |
| 7497 var _queryParams = new core.Map(); | 7653 var _queryParams = new core.Map(); |
| 7498 var _uploadMedia = null; | 7654 var _uploadMedia = null; |
| 7499 var _uploadOptions = null; | 7655 var _uploadOptions = null; |
| 7500 var _downloadOptions = common.DownloadOptions.Metadata; | 7656 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7501 var _body = null; | 7657 var _body = null; |
| 7502 | 7658 |
| 7659 if (request != null) { |
| 7660 _body = convert.JSON.encode((request).toJson()); |
| 7661 } |
| 7503 if (project == null) { | 7662 if (project == null) { |
| 7504 throw new core.ArgumentError("Parameter project is required."); | 7663 throw new core.ArgumentError("Parameter project is required."); |
| 7505 } | 7664 } |
| 7506 if (zone == null) { | 7665 if (urlMap == null) { |
| 7507 throw new core.ArgumentError("Parameter zone is required."); | 7666 throw new core.ArgumentError("Parameter urlMap is required."); |
| 7508 } | |
| 7509 if (operation == null) { | |
| 7510 throw new core.ArgumentError("Parameter operation is required."); | |
| 7511 } | 7667 } |
| 7512 | 7668 |
| 7513 | 7669 |
| 7514 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc
aper.ecapeVariable('$operation'); | 7670 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + comm
ons.Escaper.ecapeVariable('$urlMap'); |
| 7515 | 7671 |
| 7516 var _response = _requester.request(_url, | 7672 var _response = _requester.request(_url, |
| 7517 "GET", | 7673 "PATCH", |
| 7518 body: _body, | 7674 body: _body, |
| 7519 queryParams: _queryParams, | 7675 queryParams: _queryParams, |
| 7520 uploadOptions: _uploadOptions, | 7676 uploadOptions: _uploadOptions, |
| 7521 uploadMedia: _uploadMedia, | 7677 uploadMedia: _uploadMedia, |
| 7522 downloadOptions: _downloadOptions); | 7678 downloadOptions: _downloadOptions); |
| 7523 return _response.then((data) => new Operation.fromJson(data)); | 7679 return _response.then((data) => new Operation.fromJson(data)); |
| 7524 } | 7680 } |
| 7525 | 7681 |
| 7526 /** | 7682 /** |
| 7527 * Retrieves the list of operation resources contained within the specified | 7683 * Update the entire content of the UrlMap resource. |
| 7528 * zone. | 7684 * |
| 7685 * [request] - The metadata request object. |
| 7529 * | 7686 * |
| 7530 * Request parameters: | 7687 * Request parameters: |
| 7531 * | 7688 * |
| 7532 * [project] - Name of the project scoping this request. | 7689 * [project] - Name of the project scoping this request. |
| 7533 * Value must have pattern | 7690 * Value must have pattern |
| 7534 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7691 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7535 * | 7692 * |
| 7536 * [zone] - Name of the zone scoping this request. | 7693 * [urlMap] - Name of the UrlMap resource to update. |
| 7537 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7694 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7538 * | 7695 * |
| 7539 * [filter] - Optional. Filter expression for filtering listed resources. | 7696 * Completes with a [Operation]. |
| 7540 * | 7697 * |
| 7541 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 7698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7542 * value is 500 and default value is 500. | |
| 7543 * Value must be between "0" and "500". | |
| 7544 * | |
| 7545 * [pageToken] - Optional. Tag returned by a previous list request truncated | |
| 7546 * by maxResults. Used to continue a previous list request. | |
| 7547 * | |
| 7548 * Completes with a [OperationList]. | |
| 7549 * | |
| 7550 * Completes with a [common.ApiRequestError] if the API endpoint returned an | |
| 7551 * error. | 7699 * error. |
| 7552 * | 7700 * |
| 7553 * If the used [http.Client] completes with an error when making a REST call, | 7701 * If the used [http.Client] completes with an error when making a REST call, |
| 7554 * this method will complete with the same error. | 7702 * this method will complete with the same error. |
| 7555 */ | 7703 */ |
| 7556 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { | 7704 async.Future<Operation> update(UrlMap request, core.String project, core.Strin
g urlMap) { |
| 7557 var _url = null; | 7705 var _url = null; |
| 7558 var _queryParams = new core.Map(); | 7706 var _queryParams = new core.Map(); |
| 7559 var _uploadMedia = null; | 7707 var _uploadMedia = null; |
| 7560 var _uploadOptions = null; | 7708 var _uploadOptions = null; |
| 7561 var _downloadOptions = common.DownloadOptions.Metadata; | 7709 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7562 var _body = null; | 7710 var _body = null; |
| 7563 | 7711 |
| 7712 if (request != null) { |
| 7713 _body = convert.JSON.encode((request).toJson()); |
| 7714 } |
| 7564 if (project == null) { | 7715 if (project == null) { |
| 7565 throw new core.ArgumentError("Parameter project is required."); | 7716 throw new core.ArgumentError("Parameter project is required."); |
| 7566 } | 7717 } |
| 7567 if (zone == null) { | 7718 if (urlMap == null) { |
| 7568 throw new core.ArgumentError("Parameter zone is required."); | 7719 throw new core.ArgumentError("Parameter urlMap is required."); |
| 7569 } | |
| 7570 if (filter != null) { | |
| 7571 _queryParams["filter"] = [filter]; | |
| 7572 } | |
| 7573 if (maxResults != null) { | |
| 7574 _queryParams["maxResults"] = ["${maxResults}"]; | |
| 7575 } | |
| 7576 if (pageToken != null) { | |
| 7577 _queryParams["pageToken"] = [pageToken]; | |
| 7578 } | 7720 } |
| 7579 | 7721 |
| 7580 | 7722 |
| 7581 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations'; | 7723 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + comm
ons.Escaper.ecapeVariable('$urlMap'); |
| 7582 | 7724 |
| 7583 var _response = _requester.request(_url, | 7725 var _response = _requester.request(_url, |
| 7584 "GET", | 7726 "PUT", |
| 7585 body: _body, | 7727 body: _body, |
| 7586 queryParams: _queryParams, | 7728 queryParams: _queryParams, |
| 7587 uploadOptions: _uploadOptions, | 7729 uploadOptions: _uploadOptions, |
| 7588 uploadMedia: _uploadMedia, | 7730 uploadMedia: _uploadMedia, |
| 7589 downloadOptions: _downloadOptions); | 7731 downloadOptions: _downloadOptions); |
| 7590 return _response.then((data) => new OperationList.fromJson(data)); | 7732 return _response.then((data) => new Operation.fromJson(data)); |
| 7591 } | 7733 } |
| 7592 | 7734 |
| 7593 } | |
| 7594 | |
| 7595 | |
| 7596 /** Not documented yet. */ | |
| 7597 class ZonesResourceApi { | |
| 7598 final common_internal.ApiRequester _requester; | |
| 7599 | |
| 7600 ZonesResourceApi(common_internal.ApiRequester client) : | |
| 7601 _requester = client; | |
| 7602 | |
| 7603 /** | 7735 /** |
| 7604 * Returns the specified zone resource. | 7736 * Run static validation for the UrlMap. In particular, the tests of the |
| 7737 * provided UrlMap will be run. Calling this method does NOT create the |
| 7738 * UrlMap. |
| 7739 * |
| 7740 * [request] - The metadata request object. |
| 7605 * | 7741 * |
| 7606 * Request parameters: | 7742 * Request parameters: |
| 7607 * | 7743 * |
| 7608 * [project] - Name of the project scoping this request. | 7744 * [project] - Name of the project scoping this request. |
| 7609 * Value must have pattern | 7745 * Value must have pattern |
| 7610 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7746 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7611 * | 7747 * |
| 7612 * [zone] - Name of the zone resource to return. | 7748 * [urlMap] - Name of the UrlMap resource to be validated as. |
| 7613 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 7749 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7614 * | 7750 * |
| 7615 * Completes with a [Zone]. | 7751 * Completes with a [UrlMapsValidateResponse]. |
| 7616 * | 7752 * |
| 7617 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7753 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7618 * error. | 7754 * error. |
| 7619 * | 7755 * |
| 7620 * If the used [http.Client] completes with an error when making a REST call, | 7756 * If the used [http.Client] completes with an error when making a REST call, |
| 7621 * this method will complete with the same error. | 7757 * this method will complete with the same error. |
| 7622 */ | 7758 */ |
| 7623 async.Future<Zone> get(core.String project, core.String zone) { | 7759 async.Future<UrlMapsValidateResponse> validate(UrlMapsValidateRequest request,
core.String project, core.String urlMap) { |
| 7624 var _url = null; | 7760 var _url = null; |
| 7625 var _queryParams = new core.Map(); | 7761 var _queryParams = new core.Map(); |
| 7626 var _uploadMedia = null; | 7762 var _uploadMedia = null; |
| 7627 var _uploadOptions = null; | 7763 var _uploadOptions = null; |
| 7628 var _downloadOptions = common.DownloadOptions.Metadata; | 7764 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7629 var _body = null; | 7765 var _body = null; |
| 7630 | 7766 |
| 7767 if (request != null) { |
| 7768 _body = convert.JSON.encode((request).toJson()); |
| 7769 } |
| 7631 if (project == null) { | 7770 if (project == null) { |
| 7632 throw new core.ArgumentError("Parameter project is required."); | 7771 throw new core.ArgumentError("Parameter project is required."); |
| 7633 } | 7772 } |
| 7634 if (zone == null) { | 7773 if (urlMap == null) { |
| 7635 throw new core.ArgumentError("Parameter zone is required."); | 7774 throw new core.ArgumentError("Parameter urlMap is required."); |
| 7636 } | 7775 } |
| 7637 | 7776 |
| 7638 | 7777 |
| 7639 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone'); | 7778 _url = commons.Escaper.ecapeVariable('$project') + '/global/urlMaps/' + comm
ons.Escaper.ecapeVariable('$urlMap') + '/validate'; |
| 7640 | 7779 |
| 7641 var _response = _requester.request(_url, | 7780 var _response = _requester.request(_url, |
| 7642 "GET", | 7781 "POST", |
| 7643 body: _body, | 7782 body: _body, |
| 7644 queryParams: _queryParams, | 7783 queryParams: _queryParams, |
| 7645 uploadOptions: _uploadOptions, | 7784 uploadOptions: _uploadOptions, |
| 7646 uploadMedia: _uploadMedia, | 7785 uploadMedia: _uploadMedia, |
| 7647 downloadOptions: _downloadOptions); | 7786 downloadOptions: _downloadOptions); |
| 7648 return _response.then((data) => new Zone.fromJson(data)); | 7787 return _response.then((data) => new UrlMapsValidateResponse.fromJson(data)); |
| 7649 } | 7788 } |
| 7650 | 7789 |
| 7790 } |
| 7791 |
| 7792 |
| 7793 class VpnTunnelsResourceApi { |
| 7794 final commons.ApiRequester _requester; |
| 7795 |
| 7796 VpnTunnelsResourceApi(commons.ApiRequester client) : |
| 7797 _requester = client; |
| 7798 |
| 7651 /** | 7799 /** |
| 7652 * Retrieves the list of zone resources available to the specified project. | 7800 * Retrieves the list of VPN tunnels grouped by scope. |
| 7653 * | 7801 * |
| 7654 * Request parameters: | 7802 * Request parameters: |
| 7655 * | 7803 * |
| 7656 * [project] - Name of the project scoping this request. | 7804 * [project] - Project ID for this request. |
| 7657 * Value must have pattern | 7805 * Value must have pattern |
| 7658 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 7806 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7659 * | 7807 * |
| 7660 * [filter] - Optional. Filter expression for filtering listed resources. | 7808 * [filter] - Optional. Filter expression for filtering listed resources. |
| 7661 * | 7809 * |
| 7662 * [maxResults] - Optional. Maximum count of results to be returned. Maximum | 7810 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 7663 * value is 500 and default value is 500. | 7811 * value is 500 and default value is 500. |
| 7664 * Value must be between "0" and "500". | 7812 * Value must be between "0" and "500". |
| 7665 * | 7813 * |
| 7666 * [pageToken] - Optional. Tag returned by a previous list request truncated | 7814 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 7667 * by maxResults. Used to continue a previous list request. | 7815 * by maxResults. Used to continue a previous list request. |
| 7668 * | 7816 * |
| 7669 * Completes with a [ZoneList]. | 7817 * Completes with a [VpnTunnelAggregatedList]. |
| 7670 * | 7818 * |
| 7671 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7672 * error. | 7820 * error. |
| 7673 * | 7821 * |
| 7674 * If the used [http.Client] completes with an error when making a REST call, | 7822 * If the used [http.Client] completes with an error when making a REST call, |
| 7675 * this method will complete with the same error. | 7823 * this method will complete with the same error. |
| 7676 */ | 7824 */ |
| 7677 async.Future<ZoneList> list(core.String project, {core.String filter, core.int
maxResults, core.String pageToken}) { | 7825 async.Future<VpnTunnelAggregatedList> aggregatedList(core.String project, {cor
e.String filter, core.int maxResults, core.String pageToken}) { |
| 7678 var _url = null; | 7826 var _url = null; |
| 7679 var _queryParams = new core.Map(); | 7827 var _queryParams = new core.Map(); |
| 7680 var _uploadMedia = null; | 7828 var _uploadMedia = null; |
| 7681 var _uploadOptions = null; | 7829 var _uploadOptions = null; |
| 7682 var _downloadOptions = common.DownloadOptions.Metadata; | 7830 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7683 var _body = null; | 7831 var _body = null; |
| 7684 | 7832 |
| 7685 if (project == null) { | 7833 if (project == null) { |
| 7686 throw new core.ArgumentError("Parameter project is required."); | 7834 throw new core.ArgumentError("Parameter project is required."); |
| 7687 } | 7835 } |
| 7688 if (filter != null) { | 7836 if (filter != null) { |
| 7689 _queryParams["filter"] = [filter]; | 7837 _queryParams["filter"] = [filter]; |
| 7690 } | 7838 } |
| 7691 if (maxResults != null) { | 7839 if (maxResults != null) { |
| 7692 _queryParams["maxResults"] = ["${maxResults}"]; | 7840 _queryParams["maxResults"] = ["${maxResults}"]; |
| 7693 } | 7841 } |
| 7694 if (pageToken != null) { | 7842 if (pageToken != null) { |
| 7695 _queryParams["pageToken"] = [pageToken]; | 7843 _queryParams["pageToken"] = [pageToken]; |
| 7696 } | 7844 } |
| 7697 | 7845 |
| 7698 | 7846 |
| 7699 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones'; | 7847 _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/vpnTunnels'; |
| 7700 | 7848 |
| 7701 var _response = _requester.request(_url, | 7849 var _response = _requester.request(_url, |
| 7702 "GET", | 7850 "GET", |
| 7703 body: _body, | 7851 body: _body, |
| 7704 queryParams: _queryParams, | 7852 queryParams: _queryParams, |
| 7705 uploadOptions: _uploadOptions, | 7853 uploadOptions: _uploadOptions, |
| 7706 uploadMedia: _uploadMedia, | 7854 uploadMedia: _uploadMedia, |
| 7707 downloadOptions: _downloadOptions); | 7855 downloadOptions: _downloadOptions); |
| 7856 return _response.then((data) => new VpnTunnelAggregatedList.fromJson(data)); |
| 7857 } |
| 7858 |
| 7859 /** |
| 7860 * Deletes the specified VpnTunnel resource. |
| 7861 * |
| 7862 * Request parameters: |
| 7863 * |
| 7864 * [project] - Project ID for this request. |
| 7865 * Value must have pattern |
| 7866 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7867 * |
| 7868 * [region] - The name of the region for this request. |
| 7869 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7870 * |
| 7871 * [vpnTunnel] - Name of the VpnTunnel resource to delete. |
| 7872 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7873 * |
| 7874 * Completes with a [Operation]. |
| 7875 * |
| 7876 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7877 * error. |
| 7878 * |
| 7879 * If the used [http.Client] completes with an error when making a REST call, |
| 7880 * this method will complete with the same error. |
| 7881 */ |
| 7882 async.Future<Operation> delete(core.String project, core.String region, core.S
tring vpnTunnel) { |
| 7883 var _url = null; |
| 7884 var _queryParams = new core.Map(); |
| 7885 var _uploadMedia = null; |
| 7886 var _uploadOptions = null; |
| 7887 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7888 var _body = null; |
| 7889 |
| 7890 if (project == null) { |
| 7891 throw new core.ArgumentError("Parameter project is required."); |
| 7892 } |
| 7893 if (region == null) { |
| 7894 throw new core.ArgumentError("Parameter region is required."); |
| 7895 } |
| 7896 if (vpnTunnel == null) { |
| 7897 throw new core.ArgumentError("Parameter vpnTunnel is required."); |
| 7898 } |
| 7899 |
| 7900 |
| 7901 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('
$vpnTunnel'); |
| 7902 |
| 7903 var _response = _requester.request(_url, |
| 7904 "DELETE", |
| 7905 body: _body, |
| 7906 queryParams: _queryParams, |
| 7907 uploadOptions: _uploadOptions, |
| 7908 uploadMedia: _uploadMedia, |
| 7909 downloadOptions: _downloadOptions); |
| 7910 return _response.then((data) => new Operation.fromJson(data)); |
| 7911 } |
| 7912 |
| 7913 /** |
| 7914 * Returns the specified VpnTunnel resource. |
| 7915 * |
| 7916 * Request parameters: |
| 7917 * |
| 7918 * [project] - Project ID for this request. |
| 7919 * Value must have pattern |
| 7920 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7921 * |
| 7922 * [region] - The name of the region for this request. |
| 7923 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7924 * |
| 7925 * [vpnTunnel] - Name of the VpnTunnel resource to return. |
| 7926 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7927 * |
| 7928 * Completes with a [VpnTunnel]. |
| 7929 * |
| 7930 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7931 * error. |
| 7932 * |
| 7933 * If the used [http.Client] completes with an error when making a REST call, |
| 7934 * this method will complete with the same error. |
| 7935 */ |
| 7936 async.Future<VpnTunnel> get(core.String project, core.String region, core.Stri
ng vpnTunnel) { |
| 7937 var _url = null; |
| 7938 var _queryParams = new core.Map(); |
| 7939 var _uploadMedia = null; |
| 7940 var _uploadOptions = null; |
| 7941 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7942 var _body = null; |
| 7943 |
| 7944 if (project == null) { |
| 7945 throw new core.ArgumentError("Parameter project is required."); |
| 7946 } |
| 7947 if (region == null) { |
| 7948 throw new core.ArgumentError("Parameter region is required."); |
| 7949 } |
| 7950 if (vpnTunnel == null) { |
| 7951 throw new core.ArgumentError("Parameter vpnTunnel is required."); |
| 7952 } |
| 7953 |
| 7954 |
| 7955 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/vpnTunnels/' + commons.Escaper.ecapeVariable('
$vpnTunnel'); |
| 7956 |
| 7957 var _response = _requester.request(_url, |
| 7958 "GET", |
| 7959 body: _body, |
| 7960 queryParams: _queryParams, |
| 7961 uploadOptions: _uploadOptions, |
| 7962 uploadMedia: _uploadMedia, |
| 7963 downloadOptions: _downloadOptions); |
| 7964 return _response.then((data) => new VpnTunnel.fromJson(data)); |
| 7965 } |
| 7966 |
| 7967 /** |
| 7968 * Creates a VpnTunnel resource in the specified project and region using the |
| 7969 * data included in the request. |
| 7970 * |
| 7971 * [request] - The metadata request object. |
| 7972 * |
| 7973 * Request parameters: |
| 7974 * |
| 7975 * [project] - Project ID for this request. |
| 7976 * Value must have pattern |
| 7977 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 7978 * |
| 7979 * [region] - The name of the region for this request. |
| 7980 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 7981 * |
| 7982 * Completes with a [Operation]. |
| 7983 * |
| 7984 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7985 * error. |
| 7986 * |
| 7987 * If the used [http.Client] completes with an error when making a REST call, |
| 7988 * this method will complete with the same error. |
| 7989 */ |
| 7990 async.Future<Operation> insert(VpnTunnel request, core.String project, core.St
ring region) { |
| 7991 var _url = null; |
| 7992 var _queryParams = new core.Map(); |
| 7993 var _uploadMedia = null; |
| 7994 var _uploadOptions = null; |
| 7995 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7996 var _body = null; |
| 7997 |
| 7998 if (request != null) { |
| 7999 _body = convert.JSON.encode((request).toJson()); |
| 8000 } |
| 8001 if (project == null) { |
| 8002 throw new core.ArgumentError("Parameter project is required."); |
| 8003 } |
| 8004 if (region == null) { |
| 8005 throw new core.ArgumentError("Parameter region is required."); |
| 8006 } |
| 8007 |
| 8008 |
| 8009 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/vpnTunnels'; |
| 8010 |
| 8011 var _response = _requester.request(_url, |
| 8012 "POST", |
| 8013 body: _body, |
| 8014 queryParams: _queryParams, |
| 8015 uploadOptions: _uploadOptions, |
| 8016 uploadMedia: _uploadMedia, |
| 8017 downloadOptions: _downloadOptions); |
| 8018 return _response.then((data) => new Operation.fromJson(data)); |
| 8019 } |
| 8020 |
| 8021 /** |
| 8022 * Retrieves the list of VpnTunnel resources contained in the specified |
| 8023 * project and region. |
| 8024 * |
| 8025 * Request parameters: |
| 8026 * |
| 8027 * [project] - Project ID for this request. |
| 8028 * Value must have pattern |
| 8029 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8030 * |
| 8031 * [region] - The name of the region for this request. |
| 8032 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8033 * |
| 8034 * [filter] - Optional. Filter expression for filtering listed resources. |
| 8035 * |
| 8036 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 8037 * value is 500 and default value is 500. |
| 8038 * Value must be between "0" and "500". |
| 8039 * |
| 8040 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 8041 * by maxResults. Used to continue a previous list request. |
| 8042 * |
| 8043 * Completes with a [VpnTunnelList]. |
| 8044 * |
| 8045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8046 * error. |
| 8047 * |
| 8048 * If the used [http.Client] completes with an error when making a REST call, |
| 8049 * this method will complete with the same error. |
| 8050 */ |
| 8051 async.Future<VpnTunnelList> list(core.String project, core.String region, {cor
e.String filter, core.int maxResults, core.String pageToken}) { |
| 8052 var _url = null; |
| 8053 var _queryParams = new core.Map(); |
| 8054 var _uploadMedia = null; |
| 8055 var _uploadOptions = null; |
| 8056 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8057 var _body = null; |
| 8058 |
| 8059 if (project == null) { |
| 8060 throw new core.ArgumentError("Parameter project is required."); |
| 8061 } |
| 8062 if (region == null) { |
| 8063 throw new core.ArgumentError("Parameter region is required."); |
| 8064 } |
| 8065 if (filter != null) { |
| 8066 _queryParams["filter"] = [filter]; |
| 8067 } |
| 8068 if (maxResults != null) { |
| 8069 _queryParams["maxResults"] = ["${maxResults}"]; |
| 8070 } |
| 8071 if (pageToken != null) { |
| 8072 _queryParams["pageToken"] = [pageToken]; |
| 8073 } |
| 8074 |
| 8075 |
| 8076 _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Esc
aper.ecapeVariable('$region') + '/vpnTunnels'; |
| 8077 |
| 8078 var _response = _requester.request(_url, |
| 8079 "GET", |
| 8080 body: _body, |
| 8081 queryParams: _queryParams, |
| 8082 uploadOptions: _uploadOptions, |
| 8083 uploadMedia: _uploadMedia, |
| 8084 downloadOptions: _downloadOptions); |
| 8085 return _response.then((data) => new VpnTunnelList.fromJson(data)); |
| 8086 } |
| 8087 |
| 8088 } |
| 8089 |
| 8090 |
| 8091 class ZoneOperationsResourceApi { |
| 8092 final commons.ApiRequester _requester; |
| 8093 |
| 8094 ZoneOperationsResourceApi(commons.ApiRequester client) : |
| 8095 _requester = client; |
| 8096 |
| 8097 /** |
| 8098 * Deletes the specified zone-specific operation resource. |
| 8099 * |
| 8100 * Request parameters: |
| 8101 * |
| 8102 * [project] - Project ID for this request. |
| 8103 * Value must have pattern |
| 8104 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8105 * |
| 8106 * [zone] - Name of the zone scoping this request. |
| 8107 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8108 * |
| 8109 * [operation] - Name of the operation resource to delete. |
| 8110 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8111 * |
| 8112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8113 * error. |
| 8114 * |
| 8115 * If the used [http.Client] completes with an error when making a REST call, |
| 8116 * this method will complete with the same error. |
| 8117 */ |
| 8118 async.Future delete(core.String project, core.String zone, core.String operati
on) { |
| 8119 var _url = null; |
| 8120 var _queryParams = new core.Map(); |
| 8121 var _uploadMedia = null; |
| 8122 var _uploadOptions = null; |
| 8123 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8124 var _body = null; |
| 8125 |
| 8126 if (project == null) { |
| 8127 throw new core.ArgumentError("Parameter project is required."); |
| 8128 } |
| 8129 if (zone == null) { |
| 8130 throw new core.ArgumentError("Parameter zone is required."); |
| 8131 } |
| 8132 if (operation == null) { |
| 8133 throw new core.ArgumentError("Parameter operation is required."); |
| 8134 } |
| 8135 |
| 8136 _downloadOptions = null; |
| 8137 |
| 8138 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); |
| 8139 |
| 8140 var _response = _requester.request(_url, |
| 8141 "DELETE", |
| 8142 body: _body, |
| 8143 queryParams: _queryParams, |
| 8144 uploadOptions: _uploadOptions, |
| 8145 uploadMedia: _uploadMedia, |
| 8146 downloadOptions: _downloadOptions); |
| 8147 return _response.then((data) => null); |
| 8148 } |
| 8149 |
| 8150 /** |
| 8151 * Retrieves the specified zone-specific operation resource. |
| 8152 * |
| 8153 * Request parameters: |
| 8154 * |
| 8155 * [project] - Project ID for this request. |
| 8156 * Value must have pattern |
| 8157 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8158 * |
| 8159 * [zone] - Name of the zone scoping this request. |
| 8160 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8161 * |
| 8162 * [operation] - Name of the operation resource to return. |
| 8163 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8164 * |
| 8165 * Completes with a [Operation]. |
| 8166 * |
| 8167 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8168 * error. |
| 8169 * |
| 8170 * If the used [http.Client] completes with an error when making a REST call, |
| 8171 * this method will complete with the same error. |
| 8172 */ |
| 8173 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { |
| 8174 var _url = null; |
| 8175 var _queryParams = new core.Map(); |
| 8176 var _uploadMedia = null; |
| 8177 var _uploadOptions = null; |
| 8178 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8179 var _body = null; |
| 8180 |
| 8181 if (project == null) { |
| 8182 throw new core.ArgumentError("Parameter project is required."); |
| 8183 } |
| 8184 if (zone == null) { |
| 8185 throw new core.ArgumentError("Parameter zone is required."); |
| 8186 } |
| 8187 if (operation == null) { |
| 8188 throw new core.ArgumentError("Parameter operation is required."); |
| 8189 } |
| 8190 |
| 8191 |
| 8192 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); |
| 8193 |
| 8194 var _response = _requester.request(_url, |
| 8195 "GET", |
| 8196 body: _body, |
| 8197 queryParams: _queryParams, |
| 8198 uploadOptions: _uploadOptions, |
| 8199 uploadMedia: _uploadMedia, |
| 8200 downloadOptions: _downloadOptions); |
| 8201 return _response.then((data) => new Operation.fromJson(data)); |
| 8202 } |
| 8203 |
| 8204 /** |
| 8205 * Retrieves the list of operation resources contained within the specified |
| 8206 * zone. |
| 8207 * |
| 8208 * Request parameters: |
| 8209 * |
| 8210 * [project] - Project ID for this request. |
| 8211 * Value must have pattern |
| 8212 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8213 * |
| 8214 * [zone] - Name of the zone scoping this request. |
| 8215 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8216 * |
| 8217 * [filter] - Optional. Filter expression for filtering listed resources. |
| 8218 * |
| 8219 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 8220 * value is 500 and default value is 500. |
| 8221 * Value must be between "0" and "500". |
| 8222 * |
| 8223 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 8224 * by maxResults. Used to continue a previous list request. |
| 8225 * |
| 8226 * Completes with a [OperationList]. |
| 8227 * |
| 8228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8229 * error. |
| 8230 * |
| 8231 * If the used [http.Client] completes with an error when making a REST call, |
| 8232 * this method will complete with the same error. |
| 8233 */ |
| 8234 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { |
| 8235 var _url = null; |
| 8236 var _queryParams = new core.Map(); |
| 8237 var _uploadMedia = null; |
| 8238 var _uploadOptions = null; |
| 8239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8240 var _body = null; |
| 8241 |
| 8242 if (project == null) { |
| 8243 throw new core.ArgumentError("Parameter project is required."); |
| 8244 } |
| 8245 if (zone == null) { |
| 8246 throw new core.ArgumentError("Parameter zone is required."); |
| 8247 } |
| 8248 if (filter != null) { |
| 8249 _queryParams["filter"] = [filter]; |
| 8250 } |
| 8251 if (maxResults != null) { |
| 8252 _queryParams["maxResults"] = ["${maxResults}"]; |
| 8253 } |
| 8254 if (pageToken != null) { |
| 8255 _queryParams["pageToken"] = [pageToken]; |
| 8256 } |
| 8257 |
| 8258 |
| 8259 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations'; |
| 8260 |
| 8261 var _response = _requester.request(_url, |
| 8262 "GET", |
| 8263 body: _body, |
| 8264 queryParams: _queryParams, |
| 8265 uploadOptions: _uploadOptions, |
| 8266 uploadMedia: _uploadMedia, |
| 8267 downloadOptions: _downloadOptions); |
| 8268 return _response.then((data) => new OperationList.fromJson(data)); |
| 8269 } |
| 8270 |
| 8271 } |
| 8272 |
| 8273 |
| 8274 class ZonesResourceApi { |
| 8275 final commons.ApiRequester _requester; |
| 8276 |
| 8277 ZonesResourceApi(commons.ApiRequester client) : |
| 8278 _requester = client; |
| 8279 |
| 8280 /** |
| 8281 * Returns the specified zone resource. |
| 8282 * |
| 8283 * Request parameters: |
| 8284 * |
| 8285 * [project] - Project ID for this request. |
| 8286 * Value must have pattern |
| 8287 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8288 * |
| 8289 * [zone] - Name of the zone resource to return. |
| 8290 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 8291 * |
| 8292 * Completes with a [Zone]. |
| 8293 * |
| 8294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8295 * error. |
| 8296 * |
| 8297 * If the used [http.Client] completes with an error when making a REST call, |
| 8298 * this method will complete with the same error. |
| 8299 */ |
| 8300 async.Future<Zone> get(core.String project, core.String zone) { |
| 8301 var _url = null; |
| 8302 var _queryParams = new core.Map(); |
| 8303 var _uploadMedia = null; |
| 8304 var _uploadOptions = null; |
| 8305 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8306 var _body = null; |
| 8307 |
| 8308 if (project == null) { |
| 8309 throw new core.ArgumentError("Parameter project is required."); |
| 8310 } |
| 8311 if (zone == null) { |
| 8312 throw new core.ArgumentError("Parameter zone is required."); |
| 8313 } |
| 8314 |
| 8315 |
| 8316 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone'); |
| 8317 |
| 8318 var _response = _requester.request(_url, |
| 8319 "GET", |
| 8320 body: _body, |
| 8321 queryParams: _queryParams, |
| 8322 uploadOptions: _uploadOptions, |
| 8323 uploadMedia: _uploadMedia, |
| 8324 downloadOptions: _downloadOptions); |
| 8325 return _response.then((data) => new Zone.fromJson(data)); |
| 8326 } |
| 8327 |
| 8328 /** |
| 8329 * Retrieves the list of zone resources available to the specified project. |
| 8330 * |
| 8331 * Request parameters: |
| 8332 * |
| 8333 * [project] - Project ID for this request. |
| 8334 * Value must have pattern |
| 8335 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 8336 * |
| 8337 * [filter] - Optional. Filter expression for filtering listed resources. |
| 8338 * |
| 8339 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 8340 * value is 500 and default value is 500. |
| 8341 * Value must be between "0" and "500". |
| 8342 * |
| 8343 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 8344 * by maxResults. Used to continue a previous list request. |
| 8345 * |
| 8346 * Completes with a [ZoneList]. |
| 8347 * |
| 8348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8349 * error. |
| 8350 * |
| 8351 * If the used [http.Client] completes with an error when making a REST call, |
| 8352 * this method will complete with the same error. |
| 8353 */ |
| 8354 async.Future<ZoneList> list(core.String project, {core.String filter, core.int
maxResults, core.String pageToken}) { |
| 8355 var _url = null; |
| 8356 var _queryParams = new core.Map(); |
| 8357 var _uploadMedia = null; |
| 8358 var _uploadOptions = null; |
| 8359 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8360 var _body = null; |
| 8361 |
| 8362 if (project == null) { |
| 8363 throw new core.ArgumentError("Parameter project is required."); |
| 8364 } |
| 8365 if (filter != null) { |
| 8366 _queryParams["filter"] = [filter]; |
| 8367 } |
| 8368 if (maxResults != null) { |
| 8369 _queryParams["maxResults"] = ["${maxResults}"]; |
| 8370 } |
| 8371 if (pageToken != null) { |
| 8372 _queryParams["pageToken"] = [pageToken]; |
| 8373 } |
| 8374 |
| 8375 |
| 8376 _url = commons.Escaper.ecapeVariable('$project') + '/zones'; |
| 8377 |
| 8378 var _response = _requester.request(_url, |
| 8379 "GET", |
| 8380 body: _body, |
| 8381 queryParams: _queryParams, |
| 8382 uploadOptions: _uploadOptions, |
| 8383 uploadMedia: _uploadMedia, |
| 8384 downloadOptions: _downloadOptions); |
| 7708 return _response.then((data) => new ZoneList.fromJson(data)); | 8385 return _response.then((data) => new ZoneList.fromJson(data)); |
| 7709 } | 8386 } |
| 7710 | 8387 |
| 7711 } | 8388 } |
| 7712 | 8389 |
| 7713 | 8390 |
| 7714 | 8391 |
| 7715 /** An access configuration attached to an instance's network interface. */ | 8392 /** An access configuration attached to an instance's network interface. */ |
| 7716 class AccessConfig { | 8393 class AccessConfig { |
| 7717 /** Type of the resource. */ | 8394 /** |
| 8395 * [Output Only] Type of the resource. Always compute#accessConfig for access |
| 8396 * configs. |
| 8397 */ |
| 7718 core.String kind; | 8398 core.String kind; |
| 7719 | 8399 |
| 7720 /** Name of this access configuration. */ | 8400 /** Name of this access configuration. */ |
| 7721 core.String name; | 8401 core.String name; |
| 7722 | 8402 |
| 7723 /** | 8403 /** |
| 7724 * An external IP address associated with this instance. Specify an unused | 8404 * An external IP address associated with this instance. Specify an unused |
| 7725 * static IP address available to the project. If not specified, the external | 8405 * static external IP address available to the project or leave this field |
| 7726 * IP will be drawn from a shared ephemeral pool. | 8406 * undefined to use an IP from a shared ephemeral IP address pool. If you |
| 8407 * specify a static external IP address, it must live in the same region as |
| 8408 * the zone of the instance. |
| 7727 */ | 8409 */ |
| 7728 core.String natIP; | 8410 core.String natIP; |
| 7729 | 8411 |
| 7730 /** | 8412 /** |
| 7731 * Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures | 8413 * The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
| 7732 * port-for-port NAT to the internet. | |
| 7733 * Possible string values are: | 8414 * Possible string values are: |
| 7734 * - "ONE_TO_ONE_NAT" | 8415 * - "ONE_TO_ONE_NAT" |
| 7735 */ | 8416 */ |
| 7736 core.String type; | 8417 core.String type; |
| 7737 | 8418 |
| 7738 | 8419 |
| 7739 AccessConfig(); | 8420 AccessConfig(); |
| 7740 | 8421 |
| 7741 AccessConfig.fromJson(core.Map _json) { | 8422 AccessConfig.fromJson(core.Map _json) { |
| 7742 if (_json.containsKey("kind")) { | 8423 if (_json.containsKey("kind")) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7767 if (type != null) { | 8448 if (type != null) { |
| 7768 _json["type"] = type; | 8449 _json["type"] = type; |
| 7769 } | 8450 } |
| 7770 return _json; | 8451 return _json; |
| 7771 } | 8452 } |
| 7772 } | 8453 } |
| 7773 | 8454 |
| 7774 | 8455 |
| 7775 /** A reserved address resource. */ | 8456 /** A reserved address resource. */ |
| 7776 class Address { | 8457 class Address { |
| 7777 /** The IP address represented by this resource. */ | 8458 /** The static external IP address represented by this resource. */ |
| 7778 core.String address; | 8459 core.String address; |
| 7779 | 8460 |
| 8461 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 8462 core.String creationTimestamp; |
| 8463 |
| 8464 /** |
| 8465 * An optional textual description of the resource; provided by the client |
| 8466 * when the resource is created. |
| 8467 */ |
| 8468 core.String description; |
| 8469 |
| 8470 /** |
| 8471 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8472 */ |
| 8473 core.String id; |
| 8474 |
| 8475 /** |
| 8476 * [Output Only] Type of the resource. Always compute#address for addresses. |
| 8477 */ |
| 8478 core.String kind; |
| 8479 |
| 8480 /** |
| 8481 * Name of the resource; provided by the client when the resource is created. |
| 8482 * The name must be 1-63 characters long, and comply with RFC1035. |
| 8483 * Specifically, the name must be 1-63 characters long and match the regular |
| 8484 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 8485 * be a lowercase letter, and all following characters must be a dash, |
| 8486 * lowercase letter, or digit, except the last character, which cannot be a |
| 8487 * dash. |
| 8488 */ |
| 8489 core.String name; |
| 8490 |
| 8491 /** |
| 8492 * [Output Only] URL of the region where the regional address resides. This |
| 8493 * field is not applicable to global addresses. |
| 8494 */ |
| 8495 core.String region; |
| 8496 |
| 8497 /** [Output Only] Server defined URL for the resource. */ |
| 8498 core.String selfLink; |
| 8499 |
| 8500 /** |
| 8501 * [Output Only] The status of the address, which can be either IN_USE or |
| 8502 * RESERVED. An address that is RESERVED is currently reserved and available |
| 8503 * to use. An IN_USE address is currently being used by another resource and |
| 8504 * is not available. |
| 8505 * Possible string values are: |
| 8506 * - "IN_USE" |
| 8507 * - "RESERVED" |
| 8508 */ |
| 8509 core.String status; |
| 8510 |
| 8511 /** [Output Only] The URLs of the resources that are using this address. */ |
| 8512 core.List<core.String> users; |
| 8513 |
| 8514 |
| 8515 Address(); |
| 8516 |
| 8517 Address.fromJson(core.Map _json) { |
| 8518 if (_json.containsKey("address")) { |
| 8519 address = _json["address"]; |
| 8520 } |
| 8521 if (_json.containsKey("creationTimestamp")) { |
| 8522 creationTimestamp = _json["creationTimestamp"]; |
| 8523 } |
| 8524 if (_json.containsKey("description")) { |
| 8525 description = _json["description"]; |
| 8526 } |
| 8527 if (_json.containsKey("id")) { |
| 8528 id = _json["id"]; |
| 8529 } |
| 8530 if (_json.containsKey("kind")) { |
| 8531 kind = _json["kind"]; |
| 8532 } |
| 8533 if (_json.containsKey("name")) { |
| 8534 name = _json["name"]; |
| 8535 } |
| 8536 if (_json.containsKey("region")) { |
| 8537 region = _json["region"]; |
| 8538 } |
| 8539 if (_json.containsKey("selfLink")) { |
| 8540 selfLink = _json["selfLink"]; |
| 8541 } |
| 8542 if (_json.containsKey("status")) { |
| 8543 status = _json["status"]; |
| 8544 } |
| 8545 if (_json.containsKey("users")) { |
| 8546 users = _json["users"]; |
| 8547 } |
| 8548 } |
| 8549 |
| 8550 core.Map toJson() { |
| 8551 var _json = new core.Map(); |
| 8552 if (address != null) { |
| 8553 _json["address"] = address; |
| 8554 } |
| 8555 if (creationTimestamp != null) { |
| 8556 _json["creationTimestamp"] = creationTimestamp; |
| 8557 } |
| 8558 if (description != null) { |
| 8559 _json["description"] = description; |
| 8560 } |
| 8561 if (id != null) { |
| 8562 _json["id"] = id; |
| 8563 } |
| 8564 if (kind != null) { |
| 8565 _json["kind"] = kind; |
| 8566 } |
| 8567 if (name != null) { |
| 8568 _json["name"] = name; |
| 8569 } |
| 8570 if (region != null) { |
| 8571 _json["region"] = region; |
| 8572 } |
| 8573 if (selfLink != null) { |
| 8574 _json["selfLink"] = selfLink; |
| 8575 } |
| 8576 if (status != null) { |
| 8577 _json["status"] = status; |
| 8578 } |
| 8579 if (users != null) { |
| 8580 _json["users"] = users; |
| 8581 } |
| 8582 return _json; |
| 8583 } |
| 8584 } |
| 8585 |
| 8586 |
| 8587 class AddressAggregatedList { |
| 8588 /** |
| 8589 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8590 */ |
| 8591 core.String id; |
| 8592 |
| 8593 /** [Output Only] A map of scoped address lists. */ |
| 8594 core.Map<core.String, AddressesScopedList> items; |
| 8595 |
| 8596 /** |
| 8597 * [Output Only] Type of resource. Always compute#addressAggregatedList for |
| 8598 * aggregated lists of addresses. |
| 8599 */ |
| 8600 core.String kind; |
| 8601 |
| 8602 /** [Output Only] A token used to continue a truncated list request. */ |
| 8603 core.String nextPageToken; |
| 8604 |
| 8605 /** [Output Only] Server defined URL for this resource. */ |
| 8606 core.String selfLink; |
| 8607 |
| 8608 |
| 8609 AddressAggregatedList(); |
| 8610 |
| 8611 AddressAggregatedList.fromJson(core.Map _json) { |
| 8612 if (_json.containsKey("id")) { |
| 8613 id = _json["id"]; |
| 8614 } |
| 8615 if (_json.containsKey("items")) { |
| 8616 items = commons.mapMap(_json["items"], (item) => new AddressesScopedList.f
romJson(item)); |
| 8617 } |
| 8618 if (_json.containsKey("kind")) { |
| 8619 kind = _json["kind"]; |
| 8620 } |
| 8621 if (_json.containsKey("nextPageToken")) { |
| 8622 nextPageToken = _json["nextPageToken"]; |
| 8623 } |
| 8624 if (_json.containsKey("selfLink")) { |
| 8625 selfLink = _json["selfLink"]; |
| 8626 } |
| 8627 } |
| 8628 |
| 8629 core.Map toJson() { |
| 8630 var _json = new core.Map(); |
| 8631 if (id != null) { |
| 8632 _json["id"] = id; |
| 8633 } |
| 8634 if (items != null) { |
| 8635 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 8636 } |
| 8637 if (kind != null) { |
| 8638 _json["kind"] = kind; |
| 8639 } |
| 8640 if (nextPageToken != null) { |
| 8641 _json["nextPageToken"] = nextPageToken; |
| 8642 } |
| 8643 if (selfLink != null) { |
| 8644 _json["selfLink"] = selfLink; |
| 8645 } |
| 8646 return _json; |
| 8647 } |
| 8648 } |
| 8649 |
| 8650 |
| 8651 /** Contains a list of address resources. */ |
| 8652 class AddressList { |
| 8653 /** |
| 8654 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8655 */ |
| 8656 core.String id; |
| 8657 |
| 8658 /** [Output Only] A list of Address resources. */ |
| 8659 core.List<Address> items; |
| 8660 |
| 8661 /** |
| 8662 * [Output Only] Type of resource. Always compute#addressList for lists of |
| 8663 * addresses. |
| 8664 */ |
| 8665 core.String kind; |
| 8666 |
| 8667 /** [Output Only] A token used to continue a truncated list request. */ |
| 8668 core.String nextPageToken; |
| 8669 |
| 8670 /** [Output Only] Server defined URL for the resource. */ |
| 8671 core.String selfLink; |
| 8672 |
| 8673 |
| 8674 AddressList(); |
| 8675 |
| 8676 AddressList.fromJson(core.Map _json) { |
| 8677 if (_json.containsKey("id")) { |
| 8678 id = _json["id"]; |
| 8679 } |
| 8680 if (_json.containsKey("items")) { |
| 8681 items = _json["items"].map((value) => new Address.fromJson(value)).toList(
); |
| 8682 } |
| 8683 if (_json.containsKey("kind")) { |
| 8684 kind = _json["kind"]; |
| 8685 } |
| 8686 if (_json.containsKey("nextPageToken")) { |
| 8687 nextPageToken = _json["nextPageToken"]; |
| 8688 } |
| 8689 if (_json.containsKey("selfLink")) { |
| 8690 selfLink = _json["selfLink"]; |
| 8691 } |
| 8692 } |
| 8693 |
| 8694 core.Map toJson() { |
| 8695 var _json = new core.Map(); |
| 8696 if (id != null) { |
| 8697 _json["id"] = id; |
| 8698 } |
| 8699 if (items != null) { |
| 8700 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 8701 } |
| 8702 if (kind != null) { |
| 8703 _json["kind"] = kind; |
| 8704 } |
| 8705 if (nextPageToken != null) { |
| 8706 _json["nextPageToken"] = nextPageToken; |
| 8707 } |
| 8708 if (selfLink != null) { |
| 8709 _json["selfLink"] = selfLink; |
| 8710 } |
| 8711 return _json; |
| 8712 } |
| 8713 } |
| 8714 |
| 8715 |
| 8716 class AddressesScopedListWarningData { |
| 8717 /** [Output Only] A key for the warning data. */ |
| 8718 core.String key; |
| 8719 |
| 8720 /** [Output Only] A warning data value corresponding to the key. */ |
| 8721 core.String value; |
| 8722 |
| 8723 |
| 8724 AddressesScopedListWarningData(); |
| 8725 |
| 8726 AddressesScopedListWarningData.fromJson(core.Map _json) { |
| 8727 if (_json.containsKey("key")) { |
| 8728 key = _json["key"]; |
| 8729 } |
| 8730 if (_json.containsKey("value")) { |
| 8731 value = _json["value"]; |
| 8732 } |
| 8733 } |
| 8734 |
| 8735 core.Map toJson() { |
| 8736 var _json = new core.Map(); |
| 8737 if (key != null) { |
| 8738 _json["key"] = key; |
| 8739 } |
| 8740 if (value != null) { |
| 8741 _json["value"] = value; |
| 8742 } |
| 8743 return _json; |
| 8744 } |
| 8745 } |
| 8746 |
| 8747 |
| 8748 /** |
| 8749 * [Output Only] Informational warning which replaces the list of addresses when |
| 8750 * the list is empty. |
| 8751 */ |
| 8752 class AddressesScopedListWarning { |
| 8753 /** |
| 8754 * [Output Only] The warning type identifier for this warning. |
| 8755 * Possible string values are: |
| 8756 * - "DEPRECATED_RESOURCE_USED" |
| 8757 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 8758 * - "INJECTED_KERNELS_DEPRECATED" |
| 8759 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 8760 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 8761 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 8762 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 8763 * - "NEXT_HOP_NOT_RUNNING" |
| 8764 * - "NO_RESULTS_ON_PAGE" |
| 8765 * - "REQUIRED_TOS_AGREEMENT" |
| 8766 * - "RESOURCE_NOT_DELETED" |
| 8767 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 8768 * - "UNREACHABLE" |
| 8769 */ |
| 8770 core.String code; |
| 8771 |
| 8772 /** [Output Only] Metadata for this warning in key: value format. */ |
| 8773 core.List<AddressesScopedListWarningData> data; |
| 8774 |
| 8775 /** [Output Only] Optional human-readable details for this warning. */ |
| 8776 core.String message; |
| 8777 |
| 8778 |
| 8779 AddressesScopedListWarning(); |
| 8780 |
| 8781 AddressesScopedListWarning.fromJson(core.Map _json) { |
| 8782 if (_json.containsKey("code")) { |
| 8783 code = _json["code"]; |
| 8784 } |
| 8785 if (_json.containsKey("data")) { |
| 8786 data = _json["data"].map((value) => new AddressesScopedListWarningData.fro
mJson(value)).toList(); |
| 8787 } |
| 8788 if (_json.containsKey("message")) { |
| 8789 message = _json["message"]; |
| 8790 } |
| 8791 } |
| 8792 |
| 8793 core.Map toJson() { |
| 8794 var _json = new core.Map(); |
| 8795 if (code != null) { |
| 8796 _json["code"] = code; |
| 8797 } |
| 8798 if (data != null) { |
| 8799 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 8800 } |
| 8801 if (message != null) { |
| 8802 _json["message"] = message; |
| 8803 } |
| 8804 return _json; |
| 8805 } |
| 8806 } |
| 8807 |
| 8808 |
| 8809 class AddressesScopedList { |
| 8810 /** [Output Only] List of addresses contained in this scope. */ |
| 8811 core.List<Address> addresses; |
| 8812 |
| 8813 /** |
| 8814 * [Output Only] Informational warning which replaces the list of addresses |
| 8815 * when the list is empty. |
| 8816 */ |
| 8817 AddressesScopedListWarning warning; |
| 8818 |
| 8819 |
| 8820 AddressesScopedList(); |
| 8821 |
| 8822 AddressesScopedList.fromJson(core.Map _json) { |
| 8823 if (_json.containsKey("addresses")) { |
| 8824 addresses = _json["addresses"].map((value) => new Address.fromJson(value))
.toList(); |
| 8825 } |
| 8826 if (_json.containsKey("warning")) { |
| 8827 warning = new AddressesScopedListWarning.fromJson(_json["warning"]); |
| 8828 } |
| 8829 } |
| 8830 |
| 8831 core.Map toJson() { |
| 8832 var _json = new core.Map(); |
| 8833 if (addresses != null) { |
| 8834 _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); |
| 8835 } |
| 8836 if (warning != null) { |
| 8837 _json["warning"] = (warning).toJson(); |
| 8838 } |
| 8839 return _json; |
| 8840 } |
| 8841 } |
| 8842 |
| 8843 |
| 8844 /** An instance-attached disk resource. */ |
| 8845 class AttachedDisk { |
| 8846 /** |
| 8847 * Specifies whether the disk will be auto-deleted when the instance is |
| 8848 * deleted (but not when the disk is detached from the instance). |
| 8849 */ |
| 8850 core.bool autoDelete; |
| 8851 |
| 8852 /** |
| 8853 * Indicates that this is a boot disk. The virtual machine will use the first |
| 8854 * partition of the disk for its root filesystem. |
| 8855 */ |
| 8856 core.bool boot; |
| 8857 |
| 8858 /** |
| 8859 * Specifies a unique device name of your choice that is reflected into the |
| 8860 * /dev/ tree of a Linux operating system running within the instance. This |
| 8861 * name can be used to reference the device for mounting, resizing, and so on, |
| 8862 * from within the instance. |
| 8863 * |
| 8864 * If not specified, the server chooses a default device name to apply to this |
| 8865 * disk, in the form persistent-disks-x, where x is a number assigned by |
| 8866 * Google Compute Engine. This field is only applicable for persistent disks. |
| 8867 */ |
| 8868 core.String deviceName; |
| 8869 |
| 8870 /** |
| 8871 * Assigns a zero-based index to this disk, where 0 is reserved for the boot |
| 8872 * disk. For example, if you have many disks attached to an instance, each |
| 8873 * disk would have a unique index number. If not specified, the server will |
| 8874 * choose an appropriate value. |
| 8875 */ |
| 8876 core.int index; |
| 8877 |
| 8878 /** |
| 8879 * [Input Only] Specifies the parameters for a new disk that will be created |
| 8880 * alongside the new instance. Use initialization parameters to create boot |
| 8881 * disks or local SSDs attached to the new instance. |
| 8882 * |
| 8883 * This property is mutually exclusive with the source property; you can only |
| 8884 * define one or the other, but not both. |
| 8885 */ |
| 8886 AttachedDiskInitializeParams initializeParams; |
| 8887 |
| 8888 /** |
| 8889 * |
| 8890 * Possible string values are: |
| 8891 * - "NVME" |
| 8892 * - "SCSI" |
| 8893 */ |
| 8894 core.String interface; |
| 8895 |
| 8896 /** |
| 8897 * [Output Only] Type of the resource. Always compute#attachedDisk for |
| 8898 * attached disks. |
| 8899 */ |
| 8900 core.String kind; |
| 8901 |
| 8902 /** [Output Only] Any valid publicly visible licenses. */ |
| 8903 core.List<core.String> licenses; |
| 8904 |
| 8905 /** |
| 8906 * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If |
| 8907 * not specified, the default is to attach the disk in READ_WRITE mode. |
| 8908 * Possible string values are: |
| 8909 * - "READ_ONLY" |
| 8910 * - "READ_WRITE" |
| 8911 */ |
| 8912 core.String mode; |
| 8913 |
| 8914 /** |
| 8915 * Specifies a valid partial or full URL to an existing Persistent Disk |
| 8916 * resource. This field is only applicable for persistent disks. |
| 8917 */ |
| 8918 core.String source; |
| 8919 |
| 8920 /** |
| 8921 * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not |
| 8922 * specified, the default is PERSISTENT. |
| 8923 * Possible string values are: |
| 8924 * - "PERSISTENT" |
| 8925 * - "SCRATCH" |
| 8926 */ |
| 8927 core.String type; |
| 8928 |
| 8929 |
| 8930 AttachedDisk(); |
| 8931 |
| 8932 AttachedDisk.fromJson(core.Map _json) { |
| 8933 if (_json.containsKey("autoDelete")) { |
| 8934 autoDelete = _json["autoDelete"]; |
| 8935 } |
| 8936 if (_json.containsKey("boot")) { |
| 8937 boot = _json["boot"]; |
| 8938 } |
| 8939 if (_json.containsKey("deviceName")) { |
| 8940 deviceName = _json["deviceName"]; |
| 8941 } |
| 8942 if (_json.containsKey("index")) { |
| 8943 index = _json["index"]; |
| 8944 } |
| 8945 if (_json.containsKey("initializeParams")) { |
| 8946 initializeParams = new AttachedDiskInitializeParams.fromJson(_json["initia
lizeParams"]); |
| 8947 } |
| 8948 if (_json.containsKey("interface")) { |
| 8949 interface = _json["interface"]; |
| 8950 } |
| 8951 if (_json.containsKey("kind")) { |
| 8952 kind = _json["kind"]; |
| 8953 } |
| 8954 if (_json.containsKey("licenses")) { |
| 8955 licenses = _json["licenses"]; |
| 8956 } |
| 8957 if (_json.containsKey("mode")) { |
| 8958 mode = _json["mode"]; |
| 8959 } |
| 8960 if (_json.containsKey("source")) { |
| 8961 source = _json["source"]; |
| 8962 } |
| 8963 if (_json.containsKey("type")) { |
| 8964 type = _json["type"]; |
| 8965 } |
| 8966 } |
| 8967 |
| 8968 core.Map toJson() { |
| 8969 var _json = new core.Map(); |
| 8970 if (autoDelete != null) { |
| 8971 _json["autoDelete"] = autoDelete; |
| 8972 } |
| 8973 if (boot != null) { |
| 8974 _json["boot"] = boot; |
| 8975 } |
| 8976 if (deviceName != null) { |
| 8977 _json["deviceName"] = deviceName; |
| 8978 } |
| 8979 if (index != null) { |
| 8980 _json["index"] = index; |
| 8981 } |
| 8982 if (initializeParams != null) { |
| 8983 _json["initializeParams"] = (initializeParams).toJson(); |
| 8984 } |
| 8985 if (interface != null) { |
| 8986 _json["interface"] = interface; |
| 8987 } |
| 8988 if (kind != null) { |
| 8989 _json["kind"] = kind; |
| 8990 } |
| 8991 if (licenses != null) { |
| 8992 _json["licenses"] = licenses; |
| 8993 } |
| 8994 if (mode != null) { |
| 8995 _json["mode"] = mode; |
| 8996 } |
| 8997 if (source != null) { |
| 8998 _json["source"] = source; |
| 8999 } |
| 9000 if (type != null) { |
| 9001 _json["type"] = type; |
| 9002 } |
| 9003 return _json; |
| 9004 } |
| 9005 } |
| 9006 |
| 9007 |
| 9008 /** |
| 9009 * [Input Only] Specifies the parameters for a new disk that will be created |
| 9010 * alongside the new instance. Use initialization parameters to create boot |
| 9011 * disks or local SSDs attached to the new instance. |
| 9012 * |
| 9013 * This property is mutually exclusive with the source property; you can only |
| 9014 * define one or the other, but not both. |
| 9015 */ |
| 9016 class AttachedDiskInitializeParams { |
| 9017 /** |
| 9018 * Specifies the disk name. If not specified, the default is to use the name |
| 9019 * of the instance. |
| 9020 */ |
| 9021 core.String diskName; |
| 9022 |
| 9023 /** Specifies the size of the disk in base-2 GB. */ |
| 9024 core.String diskSizeGb; |
| 9025 |
| 9026 /** |
| 9027 * Specifies the disk type to use to create the instance. If not specified, |
| 9028 * the default is pd-standard, specified using the full URL. For example: |
| 9029 * |
| 9030 * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes
/pd-standard |
| 9031 * |
| 9032 * Other values include pd-ssd and local-ssd. If you define this field, you |
| 9033 * can provide either the full or partial URL. For example, the following are |
| 9034 * valid values: |
| 9035 * - |
| 9036 * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes
/diskType |
| 9037 * - projects/project/zones/zone/diskTypes/diskType |
| 9038 * - zones/zone/diskTypes/diskType |
| 9039 */ |
| 9040 core.String diskType; |
| 9041 |
| 9042 /** |
| 9043 * A source image used to create the disk. You can provide a private (custom) |
| 9044 * image, and Compute Engine will use the corresponding image from your |
| 9045 * project. For example: |
| 9046 * |
| 9047 * global/images/my-private-image |
| 9048 * |
| 9049 * Or you can provide an image from a publicly-available project. For example, |
| 9050 * to use a Debian image from the debian-cloud project, make sure to include |
| 9051 * the project in the URL: |
| 9052 * |
| 9053 * projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD |
| 9054 * |
| 9055 * where vYYYYMMDD is the image version. The fully-qualified URL will also |
| 9056 * work in both cases. |
| 9057 */ |
| 9058 core.String sourceImage; |
| 9059 |
| 9060 |
| 9061 AttachedDiskInitializeParams(); |
| 9062 |
| 9063 AttachedDiskInitializeParams.fromJson(core.Map _json) { |
| 9064 if (_json.containsKey("diskName")) { |
| 9065 diskName = _json["diskName"]; |
| 9066 } |
| 9067 if (_json.containsKey("diskSizeGb")) { |
| 9068 diskSizeGb = _json["diskSizeGb"]; |
| 9069 } |
| 9070 if (_json.containsKey("diskType")) { |
| 9071 diskType = _json["diskType"]; |
| 9072 } |
| 9073 if (_json.containsKey("sourceImage")) { |
| 9074 sourceImage = _json["sourceImage"]; |
| 9075 } |
| 9076 } |
| 9077 |
| 9078 core.Map toJson() { |
| 9079 var _json = new core.Map(); |
| 9080 if (diskName != null) { |
| 9081 _json["diskName"] = diskName; |
| 9082 } |
| 9083 if (diskSizeGb != null) { |
| 9084 _json["diskSizeGb"] = diskSizeGb; |
| 9085 } |
| 9086 if (diskType != null) { |
| 9087 _json["diskType"] = diskType; |
| 9088 } |
| 9089 if (sourceImage != null) { |
| 9090 _json["sourceImage"] = sourceImage; |
| 9091 } |
| 9092 return _json; |
| 9093 } |
| 9094 } |
| 9095 |
| 9096 |
| 9097 /** Message containing information of one individual backend. */ |
| 9098 class Backend { |
| 9099 /** |
| 9100 * The balancing mode of this backend, default is UTILIZATION. |
| 9101 * Possible string values are: |
| 9102 * - "RATE" |
| 9103 * - "UTILIZATION" |
| 9104 */ |
| 9105 core.String balancingMode; |
| 9106 |
| 9107 /** |
| 9108 * The multiplier (a value between 0 and 1e6) of the max capacity (CPU or RPS, |
| 9109 * depending on 'balancingMode') the group should serve up to. 0 means the |
| 9110 * group is totally drained. Default value is 1. Valid range is [0, 1e6]. |
| 9111 */ |
| 9112 core.double capacityScaler; |
| 9113 |
| 9114 /** |
| 9115 * An optional textual description of the resource, which is provided by the |
| 9116 * client when the resource is created. |
| 9117 */ |
| 9118 core.String description; |
| 9119 |
| 9120 /** |
| 9121 * URL of a zonal Cloud Resource View resource. This resource view defines the |
| 9122 * list of instances that serve traffic. Member virtual machine instances from |
| 9123 * each resource view must live in the same zone as the resource view itself. |
| 9124 * No two backends in a backend service are allowed to use same Resource View |
| 9125 * resource. |
| 9126 */ |
| 9127 core.String group; |
| 9128 |
| 9129 /** |
| 9130 * The max RPS of the group. Can be used with either balancing mode, but |
| 9131 * required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance |
| 9132 * must be set. |
| 9133 */ |
| 9134 core.int maxRate; |
| 9135 |
| 9136 /** |
| 9137 * The max RPS that a single backed instance can handle. This is used to |
| 9138 * calculate the capacity of the group. Can be used in either balancing mode. |
| 9139 * For RATE mode, either maxRate or maxRatePerInstance must be set. |
| 9140 */ |
| 9141 core.double maxRatePerInstance; |
| 9142 |
| 9143 /** |
| 9144 * Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU |
| 9145 * utilization target for the group. The default is 0.8. Valid range is [0, |
| 9146 * 1]. |
| 9147 */ |
| 9148 core.double maxUtilization; |
| 9149 |
| 9150 |
| 9151 Backend(); |
| 9152 |
| 9153 Backend.fromJson(core.Map _json) { |
| 9154 if (_json.containsKey("balancingMode")) { |
| 9155 balancingMode = _json["balancingMode"]; |
| 9156 } |
| 9157 if (_json.containsKey("capacityScaler")) { |
| 9158 capacityScaler = _json["capacityScaler"]; |
| 9159 } |
| 9160 if (_json.containsKey("description")) { |
| 9161 description = _json["description"]; |
| 9162 } |
| 9163 if (_json.containsKey("group")) { |
| 9164 group = _json["group"]; |
| 9165 } |
| 9166 if (_json.containsKey("maxRate")) { |
| 9167 maxRate = _json["maxRate"]; |
| 9168 } |
| 9169 if (_json.containsKey("maxRatePerInstance")) { |
| 9170 maxRatePerInstance = _json["maxRatePerInstance"]; |
| 9171 } |
| 9172 if (_json.containsKey("maxUtilization")) { |
| 9173 maxUtilization = _json["maxUtilization"]; |
| 9174 } |
| 9175 } |
| 9176 |
| 9177 core.Map toJson() { |
| 9178 var _json = new core.Map(); |
| 9179 if (balancingMode != null) { |
| 9180 _json["balancingMode"] = balancingMode; |
| 9181 } |
| 9182 if (capacityScaler != null) { |
| 9183 _json["capacityScaler"] = capacityScaler; |
| 9184 } |
| 9185 if (description != null) { |
| 9186 _json["description"] = description; |
| 9187 } |
| 9188 if (group != null) { |
| 9189 _json["group"] = group; |
| 9190 } |
| 9191 if (maxRate != null) { |
| 9192 _json["maxRate"] = maxRate; |
| 9193 } |
| 9194 if (maxRatePerInstance != null) { |
| 9195 _json["maxRatePerInstance"] = maxRatePerInstance; |
| 9196 } |
| 9197 if (maxUtilization != null) { |
| 9198 _json["maxUtilization"] = maxUtilization; |
| 9199 } |
| 9200 return _json; |
| 9201 } |
| 9202 } |
| 9203 |
| 9204 |
| 9205 /** |
| 9206 * A BackendService resource. This resource defines a group of backend VMs |
| 9207 * together with their serving capacity. |
| 9208 */ |
| 9209 class BackendService { |
| 9210 /** The list of backends that serve this BackendService. */ |
| 9211 core.List<Backend> backends; |
| 9212 |
| 7780 /** Creation timestamp in RFC3339 text format (output only). */ | 9213 /** Creation timestamp in RFC3339 text format (output only). */ |
| 7781 core.String creationTimestamp; | 9214 core.String creationTimestamp; |
| 7782 | 9215 |
| 7783 /** | 9216 /** |
| 7784 * An optional textual description of the resource; provided by the client | 9217 * An optional textual description of the resource; provided by the client |
| 7785 * when the resource is created. | 9218 * when the resource is created. |
| 7786 */ | 9219 */ |
| 7787 core.String description; | 9220 core.String description; |
| 7788 | 9221 |
| 7789 /** | 9222 /** |
| 9223 * Fingerprint of this resource. A hash of the contents stored in this object. |
| 9224 * This field is used in optimistic locking. This field will be ignored when |
| 9225 * inserting a BackendService. An up-to-date fingerprint must be provided in |
| 9226 * order to update the BackendService. |
| 9227 */ |
| 9228 core.String fingerprint; |
| 9229 |
| 9230 core.List<core.int> get fingerprintAsBytes { |
| 9231 return crypto.CryptoUtils.base64StringToBytes(fingerprint); |
| 9232 } |
| 9233 |
| 9234 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 9235 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| 9236 } |
| 9237 |
| 9238 /** |
| 9239 * The list of URLs to the HttpHealthCheck resource for health checking this |
| 9240 * BackendService. Currently at most one health check can be specified, and a |
| 9241 * health check is required. |
| 9242 */ |
| 9243 core.List<core.String> healthChecks; |
| 9244 |
| 9245 /** |
| 7790 * Unique identifier for the resource; defined by the server (output only). | 9246 * Unique identifier for the resource; defined by the server (output only). |
| 7791 */ | 9247 */ |
| 7792 core.String id; | 9248 core.String id; |
| 7793 | 9249 |
| 7794 /** Type of the resource. */ | 9250 /** Type of the resource. */ |
| 7795 core.String kind; | 9251 core.String kind; |
| 7796 | 9252 |
| 7797 /** | 9253 /** |
| 7798 * Name of the resource; provided by the client when the resource is created. | 9254 * Name of the resource; provided by the client when the resource is created. |
| 7799 * The name must be 1-63 characters long, and comply with RFC1035. | 9255 * The name must be 1-63 characters long, and comply with RFC1035. |
| 7800 */ | 9256 */ |
| 7801 core.String name; | 9257 core.String name; |
| 7802 | 9258 |
| 7803 /** | 9259 /** |
| 7804 * URL of the region where the regional address resides (output only). This | 9260 * Deprecated in favor of port_name. The TCP port to connect on the backend. |
| 7805 * field is not applicable to global addresses. | 9261 * The default value is 80. |
| 7806 */ | 9262 */ |
| 7807 core.String region; | 9263 core.int port; |
| 9264 |
| 9265 /** |
| 9266 * Name of backend port. The same name should appear in the resource views |
| 9267 * referenced by this service. Required. |
| 9268 */ |
| 9269 core.String portName; |
| 9270 |
| 9271 /** |
| 9272 * |
| 9273 * Possible string values are: |
| 9274 * - "HTTP" |
| 9275 */ |
| 9276 core.String protocol; |
| 7808 | 9277 |
| 7809 /** Server defined URL for the resource (output only). */ | 9278 /** Server defined URL for the resource (output only). */ |
| 7810 core.String selfLink; | 9279 core.String selfLink; |
| 7811 | 9280 |
| 7812 /** | 9281 /** |
| 7813 * The status of the address (output only). | 9282 * How many seconds to wait for the backend before considering it a failed |
| 7814 * Possible string values are: | 9283 * request. Default is 30 seconds. |
| 7815 * - "IN_USE" | |
| 7816 * - "RESERVED" | |
| 7817 */ | 9284 */ |
| 7818 core.String status; | 9285 core.int timeoutSec; |
| 7819 | |
| 7820 /** The resources that are using this address resource. */ | |
| 7821 core.List<core.String> users; | |
| 7822 | 9286 |
| 7823 | 9287 |
| 7824 Address(); | 9288 BackendService(); |
| 7825 | 9289 |
| 7826 Address.fromJson(core.Map _json) { | 9290 BackendService.fromJson(core.Map _json) { |
| 7827 if (_json.containsKey("address")) { | 9291 if (_json.containsKey("backends")) { |
| 7828 address = _json["address"]; | 9292 backends = _json["backends"].map((value) => new Backend.fromJson(value)).t
oList(); |
| 7829 } | 9293 } |
| 7830 if (_json.containsKey("creationTimestamp")) { | 9294 if (_json.containsKey("creationTimestamp")) { |
| 7831 creationTimestamp = _json["creationTimestamp"]; | 9295 creationTimestamp = _json["creationTimestamp"]; |
| 7832 } | 9296 } |
| 7833 if (_json.containsKey("description")) { | 9297 if (_json.containsKey("description")) { |
| 7834 description = _json["description"]; | 9298 description = _json["description"]; |
| 7835 } | 9299 } |
| 9300 if (_json.containsKey("fingerprint")) { |
| 9301 fingerprint = _json["fingerprint"]; |
| 9302 } |
| 9303 if (_json.containsKey("healthChecks")) { |
| 9304 healthChecks = _json["healthChecks"]; |
| 9305 } |
| 7836 if (_json.containsKey("id")) { | 9306 if (_json.containsKey("id")) { |
| 7837 id = _json["id"]; | 9307 id = _json["id"]; |
| 7838 } | 9308 } |
| 7839 if (_json.containsKey("kind")) { | 9309 if (_json.containsKey("kind")) { |
| 7840 kind = _json["kind"]; | 9310 kind = _json["kind"]; |
| 7841 } | 9311 } |
| 7842 if (_json.containsKey("name")) { | 9312 if (_json.containsKey("name")) { |
| 7843 name = _json["name"]; | 9313 name = _json["name"]; |
| 7844 } | 9314 } |
| 7845 if (_json.containsKey("region")) { | 9315 if (_json.containsKey("port")) { |
| 7846 region = _json["region"]; | 9316 port = _json["port"]; |
| 9317 } |
| 9318 if (_json.containsKey("portName")) { |
| 9319 portName = _json["portName"]; |
| 9320 } |
| 9321 if (_json.containsKey("protocol")) { |
| 9322 protocol = _json["protocol"]; |
| 7847 } | 9323 } |
| 7848 if (_json.containsKey("selfLink")) { | 9324 if (_json.containsKey("selfLink")) { |
| 7849 selfLink = _json["selfLink"]; | 9325 selfLink = _json["selfLink"]; |
| 7850 } | 9326 } |
| 7851 if (_json.containsKey("status")) { | 9327 if (_json.containsKey("timeoutSec")) { |
| 7852 status = _json["status"]; | 9328 timeoutSec = _json["timeoutSec"]; |
| 7853 } | |
| 7854 if (_json.containsKey("users")) { | |
| 7855 users = _json["users"]; | |
| 7856 } | 9329 } |
| 7857 } | 9330 } |
| 7858 | 9331 |
| 7859 core.Map toJson() { | 9332 core.Map toJson() { |
| 7860 var _json = new core.Map(); | 9333 var _json = new core.Map(); |
| 7861 if (address != null) { | 9334 if (backends != null) { |
| 7862 _json["address"] = address; | 9335 _json["backends"] = backends.map((value) => (value).toJson()).toList(); |
| 7863 } | 9336 } |
| 7864 if (creationTimestamp != null) { | 9337 if (creationTimestamp != null) { |
| 7865 _json["creationTimestamp"] = creationTimestamp; | 9338 _json["creationTimestamp"] = creationTimestamp; |
| 7866 } | 9339 } |
| 7867 if (description != null) { | 9340 if (description != null) { |
| 7868 _json["description"] = description; | 9341 _json["description"] = description; |
| 7869 } | 9342 } |
| 9343 if (fingerprint != null) { |
| 9344 _json["fingerprint"] = fingerprint; |
| 9345 } |
| 9346 if (healthChecks != null) { |
| 9347 _json["healthChecks"] = healthChecks; |
| 9348 } |
| 7870 if (id != null) { | 9349 if (id != null) { |
| 7871 _json["id"] = id; | 9350 _json["id"] = id; |
| 7872 } | 9351 } |
| 7873 if (kind != null) { | 9352 if (kind != null) { |
| 7874 _json["kind"] = kind; | 9353 _json["kind"] = kind; |
| 7875 } | 9354 } |
| 7876 if (name != null) { | 9355 if (name != null) { |
| 7877 _json["name"] = name; | 9356 _json["name"] = name; |
| 7878 } | 9357 } |
| 7879 if (region != null) { | 9358 if (port != null) { |
| 7880 _json["region"] = region; | 9359 _json["port"] = port; |
| 9360 } |
| 9361 if (portName != null) { |
| 9362 _json["portName"] = portName; |
| 9363 } |
| 9364 if (protocol != null) { |
| 9365 _json["protocol"] = protocol; |
| 7881 } | 9366 } |
| 7882 if (selfLink != null) { | 9367 if (selfLink != null) { |
| 7883 _json["selfLink"] = selfLink; | 9368 _json["selfLink"] = selfLink; |
| 7884 } | 9369 } |
| 7885 if (status != null) { | 9370 if (timeoutSec != null) { |
| 7886 _json["status"] = status; | 9371 _json["timeoutSec"] = timeoutSec; |
| 7887 } | |
| 7888 if (users != null) { | |
| 7889 _json["users"] = users; | |
| 7890 } | 9372 } |
| 7891 return _json; | 9373 return _json; |
| 7892 } | 9374 } |
| 7893 } | 9375 } |
| 7894 | 9376 |
| 7895 | 9377 |
| 7896 /** Not documented yet. */ | 9378 class BackendServiceGroupHealth { |
| 7897 class AddressAggregatedList { | 9379 core.List<HealthStatus> healthStatus; |
| 7898 /** | |
| 7899 * Unique identifier for the resource; defined by the server (output only). | |
| 7900 */ | |
| 7901 core.String id; | |
| 7902 | |
| 7903 /** A map of scoped address lists. */ | |
| 7904 core.Map<core.String, AddressesScopedList> items; | |
| 7905 | 9380 |
| 7906 /** Type of resource. */ | 9381 /** Type of resource. */ |
| 7907 core.String kind; | 9382 core.String kind; |
| 7908 | 9383 |
| 7909 /** A token used to continue a truncated list request (output only). */ | |
| 7910 core.String nextPageToken; | |
| 7911 | 9384 |
| 7912 /** Server defined URL for this resource (output only). */ | 9385 BackendServiceGroupHealth(); |
| 7913 core.String selfLink; | |
| 7914 | 9386 |
| 7915 | 9387 BackendServiceGroupHealth.fromJson(core.Map _json) { |
| 7916 AddressAggregatedList(); | 9388 if (_json.containsKey("healthStatus")) { |
| 7917 | 9389 healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJ
son(value)).toList(); |
| 7918 AddressAggregatedList.fromJson(core.Map _json) { | |
| 7919 if (_json.containsKey("id")) { | |
| 7920 id = _json["id"]; | |
| 7921 } | |
| 7922 if (_json.containsKey("items")) { | |
| 7923 items = common_internal.mapMap(_json["items"], (item) => new AddressesScop
edList.fromJson(item)); | |
| 7924 } | 9390 } |
| 7925 if (_json.containsKey("kind")) { | 9391 if (_json.containsKey("kind")) { |
| 7926 kind = _json["kind"]; | 9392 kind = _json["kind"]; |
| 7927 } | 9393 } |
| 7928 if (_json.containsKey("nextPageToken")) { | |
| 7929 nextPageToken = _json["nextPageToken"]; | |
| 7930 } | |
| 7931 if (_json.containsKey("selfLink")) { | |
| 7932 selfLink = _json["selfLink"]; | |
| 7933 } | |
| 7934 } | 9394 } |
| 7935 | 9395 |
| 7936 core.Map toJson() { | 9396 core.Map toJson() { |
| 7937 var _json = new core.Map(); | 9397 var _json = new core.Map(); |
| 7938 if (id != null) { | 9398 if (healthStatus != null) { |
| 7939 _json["id"] = id; | 9399 _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toLi
st(); |
| 7940 } | |
| 7941 if (items != null) { | |
| 7942 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | |
| 7943 } | 9400 } |
| 7944 if (kind != null) { | 9401 if (kind != null) { |
| 7945 _json["kind"] = kind; | 9402 _json["kind"] = kind; |
| 7946 } | 9403 } |
| 7947 if (nextPageToken != null) { | |
| 7948 _json["nextPageToken"] = nextPageToken; | |
| 7949 } | |
| 7950 if (selfLink != null) { | |
| 7951 _json["selfLink"] = selfLink; | |
| 7952 } | |
| 7953 return _json; | 9404 return _json; |
| 7954 } | 9405 } |
| 7955 } | 9406 } |
| 7956 | 9407 |
| 7957 | 9408 |
| 7958 /** Contains a list of address resources. */ | 9409 /** Contains a list of BackendService resources. */ |
| 7959 class AddressList { | 9410 class BackendServiceList { |
| 7960 /** | 9411 /** |
| 7961 * Unique identifier for the resource; defined by the server (output only). | 9412 * Unique identifier for the resource; defined by the server (output only). |
| 7962 */ | 9413 */ |
| 7963 core.String id; | 9414 core.String id; |
| 7964 | 9415 |
| 7965 /** A list of Address resources. */ | 9416 /** A list of BackendService resources. */ |
| 7966 core.List<Address> items; | 9417 core.List<BackendService> items; |
| 7967 | 9418 |
| 7968 /** Type of resource. */ | 9419 /** Type of resource. */ |
| 7969 core.String kind; | 9420 core.String kind; |
| 7970 | 9421 |
| 7971 /** A token used to continue a truncated list request (output only). */ | 9422 /** A token used to continue a truncated list request (output only). */ |
| 7972 core.String nextPageToken; | 9423 core.String nextPageToken; |
| 7973 | 9424 |
| 7974 /** Server defined URL for the resource (output only). */ | 9425 /** Server defined URL for this resource (output only). */ |
| 7975 core.String selfLink; | 9426 core.String selfLink; |
| 7976 | 9427 |
| 7977 | 9428 |
| 7978 AddressList(); | 9429 BackendServiceList(); |
| 7979 | 9430 |
| 7980 AddressList.fromJson(core.Map _json) { | 9431 BackendServiceList.fromJson(core.Map _json) { |
| 7981 if (_json.containsKey("id")) { | 9432 if (_json.containsKey("id")) { |
| 7982 id = _json["id"]; | 9433 id = _json["id"]; |
| 7983 } | 9434 } |
| 7984 if (_json.containsKey("items")) { | 9435 if (_json.containsKey("items")) { |
| 7985 items = _json["items"].map((value) => new Address.fromJson(value)).toList(
); | 9436 items = _json["items"].map((value) => new BackendService.fromJson(value)).
toList(); |
| 7986 } | 9437 } |
| 7987 if (_json.containsKey("kind")) { | 9438 if (_json.containsKey("kind")) { |
| 7988 kind = _json["kind"]; | 9439 kind = _json["kind"]; |
| 7989 } | 9440 } |
| 7990 if (_json.containsKey("nextPageToken")) { | 9441 if (_json.containsKey("nextPageToken")) { |
| 7991 nextPageToken = _json["nextPageToken"]; | 9442 nextPageToken = _json["nextPageToken"]; |
| 7992 } | 9443 } |
| 7993 if (_json.containsKey("selfLink")) { | 9444 if (_json.containsKey("selfLink")) { |
| 7994 selfLink = _json["selfLink"]; | 9445 selfLink = _json["selfLink"]; |
| 7995 } | 9446 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8010 _json["nextPageToken"] = nextPageToken; | 9461 _json["nextPageToken"] = nextPageToken; |
| 8011 } | 9462 } |
| 8012 if (selfLink != null) { | 9463 if (selfLink != null) { |
| 8013 _json["selfLink"] = selfLink; | 9464 _json["selfLink"] = selfLink; |
| 8014 } | 9465 } |
| 8015 return _json; | 9466 return _json; |
| 8016 } | 9467 } |
| 8017 } | 9468 } |
| 8018 | 9469 |
| 8019 | 9470 |
| 8020 /** Not documented yet. */ | 9471 /** Deprecation status for a public resource. */ |
| 8021 class AddressesScopedListWarningData { | 9472 class DeprecationStatus { |
| 8022 /** A key for the warning data. */ | 9473 /** |
| 8023 core.String key; | 9474 * An optional RFC3339 timestamp on or after which the deprecation state of |
| 8024 | 9475 * this resource will be changed to DELETED. |
| 8025 /** A warning data value corresponding to the key. */ | 9476 */ |
| 8026 core.String value; | 9477 core.String deleted; |
| 8027 | 9478 |
| 8028 | 9479 /** |
| 8029 AddressesScopedListWarningData(); | 9480 * An optional RFC3339 timestamp on or after which the deprecation state of |
| 8030 | 9481 * this resource will be changed to DEPRECATED. |
| 8031 AddressesScopedListWarningData.fromJson(core.Map _json) { | 9482 */ |
| 8032 if (_json.containsKey("key")) { | 9483 core.String deprecated; |
| 8033 key = _json["key"]; | 9484 |
| 8034 } | 9485 /** |
| 8035 if (_json.containsKey("value")) { | 9486 * An optional RFC3339 timestamp on or after which the deprecation state of |
| 8036 value = _json["value"]; | 9487 * this resource will be changed to OBSOLETE. |
| 9488 */ |
| 9489 core.String obsolete; |
| 9490 |
| 9491 /** |
| 9492 * The URL of the suggested replacement for a deprecated resource. The |
| 9493 * suggested replacement resource must be the same kind of resource as the |
| 9494 * deprecated resource. |
| 9495 */ |
| 9496 core.String replacement; |
| 9497 |
| 9498 /** |
| 9499 * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, |
| 9500 * or DELETED. Operations which create a new resource using a DEPRECATED |
| 9501 * resource will return successfully, but with a warning indicating the |
| 9502 * deprecated resource and recommending its replacement. Operations which use |
| 9503 * OBSOLETE or DELETED resources will be rejected and result in an error. |
| 9504 * Possible string values are: |
| 9505 * - "DELETED" |
| 9506 * - "DEPRECATED" |
| 9507 * - "OBSOLETE" |
| 9508 */ |
| 9509 core.String state; |
| 9510 |
| 9511 |
| 9512 DeprecationStatus(); |
| 9513 |
| 9514 DeprecationStatus.fromJson(core.Map _json) { |
| 9515 if (_json.containsKey("deleted")) { |
| 9516 deleted = _json["deleted"]; |
| 9517 } |
| 9518 if (_json.containsKey("deprecated")) { |
| 9519 deprecated = _json["deprecated"]; |
| 9520 } |
| 9521 if (_json.containsKey("obsolete")) { |
| 9522 obsolete = _json["obsolete"]; |
| 9523 } |
| 9524 if (_json.containsKey("replacement")) { |
| 9525 replacement = _json["replacement"]; |
| 9526 } |
| 9527 if (_json.containsKey("state")) { |
| 9528 state = _json["state"]; |
| 8037 } | 9529 } |
| 8038 } | 9530 } |
| 8039 | 9531 |
| 8040 core.Map toJson() { | 9532 core.Map toJson() { |
| 8041 var _json = new core.Map(); | 9533 var _json = new core.Map(); |
| 8042 if (key != null) { | 9534 if (deleted != null) { |
| 8043 _json["key"] = key; | 9535 _json["deleted"] = deleted; |
| 8044 } | 9536 } |
| 8045 if (value != null) { | 9537 if (deprecated != null) { |
| 8046 _json["value"] = value; | 9538 _json["deprecated"] = deprecated; |
| 9539 } |
| 9540 if (obsolete != null) { |
| 9541 _json["obsolete"] = obsolete; |
| 9542 } |
| 9543 if (replacement != null) { |
| 9544 _json["replacement"] = replacement; |
| 9545 } |
| 9546 if (state != null) { |
| 9547 _json["state"] = state; |
| 8047 } | 9548 } |
| 8048 return _json; | 9549 return _json; |
| 8049 } | 9550 } |
| 8050 } | 9551 } |
| 8051 | 9552 |
| 8052 | 9553 |
| 8053 /** | 9554 /** A Disk resource. */ |
| 8054 * Informational warning which replaces the list of addresses when the list is | 9555 class Disk { |
| 8055 * empty. | 9556 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 8056 */ | 9557 core.String creationTimestamp; |
| 8057 class AddressesScopedListWarning { | 9558 |
| 8058 /** | 9559 /** |
| 8059 * The warning type identifier for this warning. | 9560 * An optional textual description of the resource; provided by the client |
| 9561 * when the resource is created. |
| 9562 */ |
| 9563 core.String description; |
| 9564 |
| 9565 /** |
| 9566 * [Output Only] Unique identifier for the resource; defined by the server. |
| 9567 */ |
| 9568 core.String id; |
| 9569 |
| 9570 /** [Output Only] Type of the resource. Always compute#disk for disks. */ |
| 9571 core.String kind; |
| 9572 |
| 9573 /** Any applicable publicly visible licenses. */ |
| 9574 core.List<core.String> licenses; |
| 9575 |
| 9576 /** |
| 9577 * Name of the resource; provided by the client when the resource is created. |
| 9578 * The name must be 1-63 characters long, and comply with RFC1035. |
| 9579 * Specifically, the name must be 1-63 characters long and match the regular |
| 9580 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 9581 * be a lowercase letter, and all following characters must be a dash, |
| 9582 * lowercase letter, or digit, except the last character, which cannot be a |
| 9583 * dash. |
| 9584 */ |
| 9585 core.String name; |
| 9586 |
| 9587 /** Internal use only. */ |
| 9588 core.String options; |
| 9589 |
| 9590 /** [Output Only] Server-defined fully-qualified URL for this resource. */ |
| 9591 core.String selfLink; |
| 9592 |
| 9593 /** |
| 9594 * Size of the persistent disk, specified in GB. You can specify this field |
| 9595 * when creating a persistent disk using the sourceImage or sourceSnapshot |
| 9596 * parameter, or specify it alone to create an empty persistent disk. |
| 9597 * |
| 9598 * If you specify this field along with sourceImage or sourceSnapshot, the |
| 9599 * value of sizeGb must not be less than the size of the sourceImage or the |
| 9600 * size of the snapshot. |
| 9601 */ |
| 9602 core.String sizeGb; |
| 9603 |
| 9604 /** |
| 9605 * The source image used to create this disk. If the source image is deleted |
| 9606 * from the system, this field will not be set, even if an image with the same |
| 9607 * name has been re-created. |
| 9608 * |
| 9609 * When creating a disk, you can provide a private (custom) image using the |
| 9610 * following input, and Compute Engine will use the corresponding image from |
| 9611 * your project. For example: |
| 9612 * |
| 9613 * global/images/my-private-image |
| 9614 * |
| 9615 * Or you can provide an image from a publicly-available project. For example, |
| 9616 * to use a Debian image from the debian-cloud project, make sure to include |
| 9617 * the project in the URL: |
| 9618 * |
| 9619 * projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD |
| 9620 * |
| 9621 * where vYYYYMMDD is the image version. The fully-qualified URL will also |
| 9622 * work in both cases. |
| 9623 */ |
| 9624 core.String sourceImage; |
| 9625 |
| 9626 /** |
| 9627 * The ID value of the image used to create this disk. This value identifies |
| 9628 * the exact image that was used to create this persistent disk. For example, |
| 9629 * if you created the persistent disk from an image that was later deleted and |
| 9630 * recreated under the same name, the source image ID would identify the exact |
| 9631 * version of the image that was used. |
| 9632 */ |
| 9633 core.String sourceImageId; |
| 9634 |
| 9635 /** |
| 9636 * The source snapshot used to create this disk. You can provide this as a |
| 9637 * partial or full URL to the resource. For example, the following are valid |
| 9638 * values: |
| 9639 * - |
| 9640 * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/sna
pshot |
| 9641 * - projects/project/global/snapshots/snapshot |
| 9642 * - global/snapshots/snapshot |
| 9643 */ |
| 9644 core.String sourceSnapshot; |
| 9645 |
| 9646 /** |
| 9647 * [Output Only] The unique ID of the snapshot used to create this disk. This |
| 9648 * value identifies the exact snapshot that was used to create this persistent |
| 9649 * disk. For example, if you created the persistent disk from a snapshot that |
| 9650 * was later deleted and recreated under the same name, the source snapshot ID |
| 9651 * would identify the exact version of the snapshot that was used. |
| 9652 */ |
| 9653 core.String sourceSnapshotId; |
| 9654 |
| 9655 /** |
| 9656 * [Output Only] The status of disk creation. Applicable statuses includes: |
| 9657 * CREATING, FAILED, READY, RESTORING. |
| 8060 * Possible string values are: | 9658 * Possible string values are: |
| 8061 * - "DEPRECATED_RESOURCE_USED" | 9659 * - "CREATING" |
| 8062 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 9660 * - "FAILED" |
| 8063 * - "INJECTED_KERNELS_DEPRECATED" | 9661 * - "READY" |
| 8064 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 9662 * - "RESTORING" |
| 8065 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 9663 */ |
| 8066 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 9664 core.String status; |
| 8067 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 9665 |
| 8068 * - "NEXT_HOP_NOT_RUNNING" | 9666 /** |
| 8069 * - "NO_RESULTS_ON_PAGE" | 9667 * URL of the disk type resource describing which disk type to use to create |
| 8070 * - "REQUIRED_TOS_AGREEMENT" | 9668 * the disk; provided by the client when the disk is created. |
| 8071 * - "RESOURCE_NOT_DELETED" | |
| 8072 * - "UNREACHABLE" | |
| 8073 */ | |
| 8074 core.String code; | |
| 8075 | |
| 8076 /** Metadata for this warning in 'key: value' format. */ | |
| 8077 core.List<AddressesScopedListWarningData> data; | |
| 8078 | |
| 8079 /** Optional human-readable details for this warning. */ | |
| 8080 core.String message; | |
| 8081 | |
| 8082 | |
| 8083 AddressesScopedListWarning(); | |
| 8084 | |
| 8085 AddressesScopedListWarning.fromJson(core.Map _json) { | |
| 8086 if (_json.containsKey("code")) { | |
| 8087 code = _json["code"]; | |
| 8088 } | |
| 8089 if (_json.containsKey("data")) { | |
| 8090 data = _json["data"].map((value) => new AddressesScopedListWarningData.fro
mJson(value)).toList(); | |
| 8091 } | |
| 8092 if (_json.containsKey("message")) { | |
| 8093 message = _json["message"]; | |
| 8094 } | |
| 8095 } | |
| 8096 | |
| 8097 core.Map toJson() { | |
| 8098 var _json = new core.Map(); | |
| 8099 if (code != null) { | |
| 8100 _json["code"] = code; | |
| 8101 } | |
| 8102 if (data != null) { | |
| 8103 _json["data"] = data.map((value) => (value).toJson()).toList(); | |
| 8104 } | |
| 8105 if (message != null) { | |
| 8106 _json["message"] = message; | |
| 8107 } | |
| 8108 return _json; | |
| 8109 } | |
| 8110 } | |
| 8111 | |
| 8112 | |
| 8113 /** Not documented yet. */ | |
| 8114 class AddressesScopedList { | |
| 8115 /** List of addresses contained in this scope. */ | |
| 8116 core.List<Address> addresses; | |
| 8117 | |
| 8118 /** | |
| 8119 * Informational warning which replaces the list of addresses when the list is | |
| 8120 * empty. | |
| 8121 */ | |
| 8122 AddressesScopedListWarning warning; | |
| 8123 | |
| 8124 | |
| 8125 AddressesScopedList(); | |
| 8126 | |
| 8127 AddressesScopedList.fromJson(core.Map _json) { | |
| 8128 if (_json.containsKey("addresses")) { | |
| 8129 addresses = _json["addresses"].map((value) => new Address.fromJson(value))
.toList(); | |
| 8130 } | |
| 8131 if (_json.containsKey("warning")) { | |
| 8132 warning = new AddressesScopedListWarning.fromJson(_json["warning"]); | |
| 8133 } | |
| 8134 } | |
| 8135 | |
| 8136 core.Map toJson() { | |
| 8137 var _json = new core.Map(); | |
| 8138 if (addresses != null) { | |
| 8139 _json["addresses"] = addresses.map((value) => (value).toJson()).toList(); | |
| 8140 } | |
| 8141 if (warning != null) { | |
| 8142 _json["warning"] = (warning).toJson(); | |
| 8143 } | |
| 8144 return _json; | |
| 8145 } | |
| 8146 } | |
| 8147 | |
| 8148 | |
| 8149 /** An instance-attached disk resource. */ | |
| 8150 class AttachedDisk { | |
| 8151 /** | |
| 8152 * Whether the disk will be auto-deleted when the instance is deleted (but not | |
| 8153 * when the disk is detached from the instance). | |
| 8154 */ | |
| 8155 core.bool autoDelete; | |
| 8156 | |
| 8157 /** | |
| 8158 * Indicates that this is a boot disk. VM will use the first partition of the | |
| 8159 * disk for its root filesystem. | |
| 8160 */ | |
| 8161 core.bool boot; | |
| 8162 | |
| 8163 /** | |
| 8164 * Persistent disk only; must be unique within the instance when specified. | |
| 8165 * This represents a unique device name that is reflected into the /dev/ tree | |
| 8166 * of a Linux operating system running within the instance. If not specified, | |
| 8167 * a default will be chosen by the system. | |
| 8168 */ | |
| 8169 core.String deviceName; | |
| 8170 | |
| 8171 /** | |
| 8172 * A zero-based index to assign to this disk, where 0 is reserved for the boot | |
| 8173 * disk. If not specified, the server will choose an appropriate value (output | |
| 8174 * only). | |
| 8175 */ | |
| 8176 core.int index; | |
| 8177 | |
| 8178 /** Initialization parameters. */ | |
| 8179 AttachedDiskInitializeParams initializeParams; | |
| 8180 | |
| 8181 /** | |
| 8182 * Not documented yet. | |
| 8183 * Possible string values are: | |
| 8184 * - "NVME" | |
| 8185 * - "SCSI" | |
| 8186 */ | |
| 8187 core.String interface; | |
| 8188 | |
| 8189 /** Type of the resource. */ | |
| 8190 core.String kind; | |
| 8191 | |
| 8192 /** Public visible licenses. */ | |
| 8193 core.List<core.String> licenses; | |
| 8194 | |
| 8195 /** | |
| 8196 * The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY". | |
| 8197 * Possible string values are: | |
| 8198 * - "READ_ONLY" | |
| 8199 * - "READ_WRITE" | |
| 8200 */ | |
| 8201 core.String mode; | |
| 8202 | |
| 8203 /** Persistent disk only; the URL of the persistent disk resource. */ | |
| 8204 core.String source; | |
| 8205 | |
| 8206 /** | |
| 8207 * Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent | |
| 8208 * disks must be created before you can specify them here. | |
| 8209 * Possible string values are: | |
| 8210 * - "PERSISTENT" | |
| 8211 * - "SCRATCH" | |
| 8212 */ | 9669 */ |
| 8213 core.String type; | 9670 core.String type; |
| 8214 | 9671 |
| 8215 | 9672 /** [Output Only] URL of the zone where the disk resides. */ |
| 8216 AttachedDisk(); | 9673 core.String zone; |
| 8217 | 9674 |
| 8218 AttachedDisk.fromJson(core.Map _json) { | 9675 |
| 8219 if (_json.containsKey("autoDelete")) { | 9676 Disk(); |
| 8220 autoDelete = _json["autoDelete"]; | 9677 |
| 8221 } | 9678 Disk.fromJson(core.Map _json) { |
| 8222 if (_json.containsKey("boot")) { | 9679 if (_json.containsKey("creationTimestamp")) { |
| 8223 boot = _json["boot"]; | 9680 creationTimestamp = _json["creationTimestamp"]; |
| 8224 } | 9681 } |
| 8225 if (_json.containsKey("deviceName")) { | 9682 if (_json.containsKey("description")) { |
| 8226 deviceName = _json["deviceName"]; | 9683 description = _json["description"]; |
| 8227 } | 9684 } |
| 8228 if (_json.containsKey("index")) { | 9685 if (_json.containsKey("id")) { |
| 8229 index = _json["index"]; | 9686 id = _json["id"]; |
| 8230 } | |
| 8231 if (_json.containsKey("initializeParams")) { | |
| 8232 initializeParams = new AttachedDiskInitializeParams.fromJson(_json["initia
lizeParams"]); | |
| 8233 } | |
| 8234 if (_json.containsKey("interface")) { | |
| 8235 interface = _json["interface"]; | |
| 8236 } | 9687 } |
| 8237 if (_json.containsKey("kind")) { | 9688 if (_json.containsKey("kind")) { |
| 8238 kind = _json["kind"]; | 9689 kind = _json["kind"]; |
| 8239 } | 9690 } |
| 8240 if (_json.containsKey("licenses")) { | 9691 if (_json.containsKey("licenses")) { |
| 8241 licenses = _json["licenses"]; | 9692 licenses = _json["licenses"]; |
| 8242 } | 9693 } |
| 8243 if (_json.containsKey("mode")) { | 9694 if (_json.containsKey("name")) { |
| 8244 mode = _json["mode"]; | 9695 name = _json["name"]; |
| 8245 } | 9696 } |
| 8246 if (_json.containsKey("source")) { | 9697 if (_json.containsKey("options")) { |
| 8247 source = _json["source"]; | 9698 options = _json["options"]; |
| 9699 } |
| 9700 if (_json.containsKey("selfLink")) { |
| 9701 selfLink = _json["selfLink"]; |
| 9702 } |
| 9703 if (_json.containsKey("sizeGb")) { |
| 9704 sizeGb = _json["sizeGb"]; |
| 9705 } |
| 9706 if (_json.containsKey("sourceImage")) { |
| 9707 sourceImage = _json["sourceImage"]; |
| 9708 } |
| 9709 if (_json.containsKey("sourceImageId")) { |
| 9710 sourceImageId = _json["sourceImageId"]; |
| 9711 } |
| 9712 if (_json.containsKey("sourceSnapshot")) { |
| 9713 sourceSnapshot = _json["sourceSnapshot"]; |
| 9714 } |
| 9715 if (_json.containsKey("sourceSnapshotId")) { |
| 9716 sourceSnapshotId = _json["sourceSnapshotId"]; |
| 9717 } |
| 9718 if (_json.containsKey("status")) { |
| 9719 status = _json["status"]; |
| 8248 } | 9720 } |
| 8249 if (_json.containsKey("type")) { | 9721 if (_json.containsKey("type")) { |
| 8250 type = _json["type"]; | 9722 type = _json["type"]; |
| 8251 } | 9723 } |
| 9724 if (_json.containsKey("zone")) { |
| 9725 zone = _json["zone"]; |
| 9726 } |
| 8252 } | 9727 } |
| 8253 | 9728 |
| 8254 core.Map toJson() { | 9729 core.Map toJson() { |
| 8255 var _json = new core.Map(); | 9730 var _json = new core.Map(); |
| 8256 if (autoDelete != null) { | 9731 if (creationTimestamp != null) { |
| 8257 _json["autoDelete"] = autoDelete; | 9732 _json["creationTimestamp"] = creationTimestamp; |
| 8258 } | 9733 } |
| 8259 if (boot != null) { | 9734 if (description != null) { |
| 8260 _json["boot"] = boot; | 9735 _json["description"] = description; |
| 8261 } | 9736 } |
| 8262 if (deviceName != null) { | 9737 if (id != null) { |
| 8263 _json["deviceName"] = deviceName; | 9738 _json["id"] = id; |
| 8264 } | |
| 8265 if (index != null) { | |
| 8266 _json["index"] = index; | |
| 8267 } | |
| 8268 if (initializeParams != null) { | |
| 8269 _json["initializeParams"] = (initializeParams).toJson(); | |
| 8270 } | |
| 8271 if (interface != null) { | |
| 8272 _json["interface"] = interface; | |
| 8273 } | 9739 } |
| 8274 if (kind != null) { | 9740 if (kind != null) { |
| 8275 _json["kind"] = kind; | 9741 _json["kind"] = kind; |
| 8276 } | 9742 } |
| 8277 if (licenses != null) { | 9743 if (licenses != null) { |
| 8278 _json["licenses"] = licenses; | 9744 _json["licenses"] = licenses; |
| 8279 } | 9745 } |
| 8280 if (mode != null) { | 9746 if (name != null) { |
| 8281 _json["mode"] = mode; | 9747 _json["name"] = name; |
| 8282 } | 9748 } |
| 8283 if (source != null) { | 9749 if (options != null) { |
| 8284 _json["source"] = source; | 9750 _json["options"] = options; |
| 9751 } |
| 9752 if (selfLink != null) { |
| 9753 _json["selfLink"] = selfLink; |
| 9754 } |
| 9755 if (sizeGb != null) { |
| 9756 _json["sizeGb"] = sizeGb; |
| 9757 } |
| 9758 if (sourceImage != null) { |
| 9759 _json["sourceImage"] = sourceImage; |
| 9760 } |
| 9761 if (sourceImageId != null) { |
| 9762 _json["sourceImageId"] = sourceImageId; |
| 9763 } |
| 9764 if (sourceSnapshot != null) { |
| 9765 _json["sourceSnapshot"] = sourceSnapshot; |
| 9766 } |
| 9767 if (sourceSnapshotId != null) { |
| 9768 _json["sourceSnapshotId"] = sourceSnapshotId; |
| 9769 } |
| 9770 if (status != null) { |
| 9771 _json["status"] = status; |
| 8285 } | 9772 } |
| 8286 if (type != null) { | 9773 if (type != null) { |
| 8287 _json["type"] = type; | 9774 _json["type"] = type; |
| 8288 } | 9775 } |
| 8289 return _json; | 9776 if (zone != null) { |
| 8290 } | 9777 _json["zone"] = zone; |
| 8291 } | 9778 } |
| 8292 | 9779 return _json; |
| 8293 | 9780 } |
| 8294 /** | 9781 } |
| 8295 * Initialization parameters for the new disk (input-only). Can only be | 9782 |
| 8296 * specified on the boot disk or local SSDs. Mutually exclusive with 'source'. | 9783 |
| 8297 */ | 9784 class DiskAggregatedList { |
| 8298 class AttachedDiskInitializeParams { | 9785 /** |
| 8299 /** | 9786 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8300 * Name of the disk (when not provided defaults to the name of the instance). | 9787 */ |
| 8301 */ | 9788 core.String id; |
| 8302 core.String diskName; | 9789 |
| 8303 | 9790 /** [Output Only] A map of scoped disk lists. */ |
| 8304 /** Size of the disk in base-2 GB. */ | 9791 core.Map<core.String, DisksScopedList> items; |
| 8305 core.String diskSizeGb; | 9792 |
| 8306 | 9793 /** |
| 8307 /** | 9794 * [Output Only] Type of resource. Always compute#diskAggregatedList for |
| 8308 * URL of the disk type resource describing which disk type to use to create | 9795 * aggregated lists of persistent disks. |
| 8309 * the disk; provided by the client when the disk is created. | 9796 */ |
| 8310 */ | 9797 core.String kind; |
| 8311 core.String diskType; | 9798 |
| 8312 | 9799 /** [Output Only] A token used to continue a truncated list request. */ |
| 8313 /** The source image used to create this disk. */ | 9800 core.String nextPageToken; |
| 8314 core.String sourceImage; | 9801 |
| 8315 | 9802 /** [Output Only] Server defined URL for this resource. */ |
| 8316 | 9803 core.String selfLink; |
| 8317 AttachedDiskInitializeParams(); | 9804 |
| 8318 | 9805 |
| 8319 AttachedDiskInitializeParams.fromJson(core.Map _json) { | 9806 DiskAggregatedList(); |
| 8320 if (_json.containsKey("diskName")) { | 9807 |
| 8321 diskName = _json["diskName"]; | 9808 DiskAggregatedList.fromJson(core.Map _json) { |
| 8322 } | 9809 if (_json.containsKey("id")) { |
| 8323 if (_json.containsKey("diskSizeGb")) { | 9810 id = _json["id"]; |
| 8324 diskSizeGb = _json["diskSizeGb"]; | 9811 } |
| 8325 } | 9812 if (_json.containsKey("items")) { |
| 8326 if (_json.containsKey("diskType")) { | 9813 items = commons.mapMap(_json["items"], (item) => new DisksScopedList.fromJ
son(item)); |
| 8327 diskType = _json["diskType"]; | 9814 } |
| 8328 } | 9815 if (_json.containsKey("kind")) { |
| 8329 if (_json.containsKey("sourceImage")) { | 9816 kind = _json["kind"]; |
| 8330 sourceImage = _json["sourceImage"]; | 9817 } |
| 9818 if (_json.containsKey("nextPageToken")) { |
| 9819 nextPageToken = _json["nextPageToken"]; |
| 9820 } |
| 9821 if (_json.containsKey("selfLink")) { |
| 9822 selfLink = _json["selfLink"]; |
| 8331 } | 9823 } |
| 8332 } | 9824 } |
| 8333 | 9825 |
| 8334 core.Map toJson() { | 9826 core.Map toJson() { |
| 8335 var _json = new core.Map(); | 9827 var _json = new core.Map(); |
| 8336 if (diskName != null) { | 9828 if (id != null) { |
| 8337 _json["diskName"] = diskName; | 9829 _json["id"] = id; |
| 8338 } | 9830 } |
| 8339 if (diskSizeGb != null) { | 9831 if (items != null) { |
| 8340 _json["diskSizeGb"] = diskSizeGb; | 9832 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 8341 } | 9833 } |
| 8342 if (diskType != null) { | 9834 if (kind != null) { |
| 8343 _json["diskType"] = diskType; | 9835 _json["kind"] = kind; |
| 8344 } | 9836 } |
| 8345 if (sourceImage != null) { | 9837 if (nextPageToken != null) { |
| 8346 _json["sourceImage"] = sourceImage; | 9838 _json["nextPageToken"] = nextPageToken; |
| 8347 } | 9839 } |
| 8348 return _json; | 9840 if (selfLink != null) { |
| 8349 } | 9841 _json["selfLink"] = selfLink; |
| 8350 } | 9842 } |
| 8351 | 9843 return _json; |
| 8352 | 9844 } |
| 8353 /** Message containing information of one individual backend. */ | 9845 } |
| 8354 class Backend { | 9846 |
| 8355 /** | 9847 |
| 8356 * The balancing mode of this backend, default is UTILIZATION. | 9848 /** A list of Disk resources. */ |
| 8357 * Possible string values are: | 9849 class DiskList { |
| 8358 * - "RATE" | 9850 /** |
| 8359 * - "UTILIZATION" | 9851 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8360 */ | 9852 */ |
| 8361 core.String balancingMode; | 9853 core.String id; |
| 8362 | 9854 |
| 8363 /** | 9855 /** [Output Only] A list of persistent disks. */ |
| 8364 * The multiplier (a value between 0 and 1e6) of the max capacity (CPU or RPS, | 9856 core.List<Disk> items; |
| 8365 * depending on 'balancingMode') the group should serve up to. 0 means the | 9857 |
| 8366 * group is totally drained. Default value is 1. Valid range is [0, 1e6]. | 9858 /** |
| 8367 */ | 9859 * [Output Only] Type of resource. Always compute#diskList for lists of disks. |
| 8368 core.double capacityScaler; | 9860 */ |
| 8369 | 9861 core.String kind; |
| 8370 /** | 9862 |
| 8371 * An optional textual description of the resource, which is provided by the | 9863 /** [Output Only] A token used to continue a truncated list request. */ |
| 8372 * client when the resource is created. | 9864 core.String nextPageToken; |
| 8373 */ | 9865 |
| 9866 /** [Output Only] Server defined URL for this resource. */ |
| 9867 core.String selfLink; |
| 9868 |
| 9869 |
| 9870 DiskList(); |
| 9871 |
| 9872 DiskList.fromJson(core.Map _json) { |
| 9873 if (_json.containsKey("id")) { |
| 9874 id = _json["id"]; |
| 9875 } |
| 9876 if (_json.containsKey("items")) { |
| 9877 items = _json["items"].map((value) => new Disk.fromJson(value)).toList(); |
| 9878 } |
| 9879 if (_json.containsKey("kind")) { |
| 9880 kind = _json["kind"]; |
| 9881 } |
| 9882 if (_json.containsKey("nextPageToken")) { |
| 9883 nextPageToken = _json["nextPageToken"]; |
| 9884 } |
| 9885 if (_json.containsKey("selfLink")) { |
| 9886 selfLink = _json["selfLink"]; |
| 9887 } |
| 9888 } |
| 9889 |
| 9890 core.Map toJson() { |
| 9891 var _json = new core.Map(); |
| 9892 if (id != null) { |
| 9893 _json["id"] = id; |
| 9894 } |
| 9895 if (items != null) { |
| 9896 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 9897 } |
| 9898 if (kind != null) { |
| 9899 _json["kind"] = kind; |
| 9900 } |
| 9901 if (nextPageToken != null) { |
| 9902 _json["nextPageToken"] = nextPageToken; |
| 9903 } |
| 9904 if (selfLink != null) { |
| 9905 _json["selfLink"] = selfLink; |
| 9906 } |
| 9907 return _json; |
| 9908 } |
| 9909 } |
| 9910 |
| 9911 |
| 9912 class DiskMoveRequest { |
| 9913 /** |
| 9914 * The URL of the destination zone to move the disk to. This can be a full or |
| 9915 * partial URL. For example, the following are all valid URLs to a zone: |
| 9916 * - https://www.googleapis.com/compute/v1/projects/project/zones/zone |
| 9917 * - projects/project/zones/zone |
| 9918 * - zones/zone |
| 9919 */ |
| 9920 core.String destinationZone; |
| 9921 |
| 9922 /** |
| 9923 * The URL of the target disk to move. This can be a full or partial URL. For |
| 9924 * example, the following are all valid URLs to a disk: |
| 9925 * - |
| 9926 * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/dis
k |
| 9927 * - projects/project/zones/zone/disks/disk |
| 9928 * - zones/zone/disks/disk |
| 9929 */ |
| 9930 core.String targetDisk; |
| 9931 |
| 9932 |
| 9933 DiskMoveRequest(); |
| 9934 |
| 9935 DiskMoveRequest.fromJson(core.Map _json) { |
| 9936 if (_json.containsKey("destinationZone")) { |
| 9937 destinationZone = _json["destinationZone"]; |
| 9938 } |
| 9939 if (_json.containsKey("targetDisk")) { |
| 9940 targetDisk = _json["targetDisk"]; |
| 9941 } |
| 9942 } |
| 9943 |
| 9944 core.Map toJson() { |
| 9945 var _json = new core.Map(); |
| 9946 if (destinationZone != null) { |
| 9947 _json["destinationZone"] = destinationZone; |
| 9948 } |
| 9949 if (targetDisk != null) { |
| 9950 _json["targetDisk"] = targetDisk; |
| 9951 } |
| 9952 return _json; |
| 9953 } |
| 9954 } |
| 9955 |
| 9956 |
| 9957 /** A disk type resource. */ |
| 9958 class DiskType { |
| 9959 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 9960 core.String creationTimestamp; |
| 9961 |
| 9962 /** [Output Only] Server defined default disk size in GB. */ |
| 9963 core.String defaultDiskSizeGb; |
| 9964 |
| 9965 /** [Output Only] The deprecation status associated with this disk type. */ |
| 9966 DeprecationStatus deprecated; |
| 9967 |
| 9968 /** [Output Only] An optional textual description of the resource. */ |
| 8374 core.String description; | 9969 core.String description; |
| 8375 | 9970 |
| 8376 /** | 9971 /** |
| 8377 * URL of a zonal Cloud Resource View resource. This resource view defines the | 9972 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8378 * list of instances that serve traffic. Member virtual machine instances from | 9973 */ |
| 8379 * each resource view must live in the same zone as the resource view itself. | 9974 core.String id; |
| 8380 * No two backends in a backend service are allowed to use same Resource View | 9975 |
| 8381 * resource. | 9976 /** |
| 8382 */ | 9977 * [Output Only] Type of the resource. Always compute#diskType for disk types. |
| 8383 core.String group; | 9978 */ |
| 8384 | 9979 core.String kind; |
| 8385 /** | 9980 |
| 8386 * The max RPS of the group. Can be used with either balancing mode, but | 9981 /** [Output Only] Name of the resource. */ |
| 8387 * required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance | 9982 core.String name; |
| 8388 * must be set. | 9983 |
| 8389 */ | 9984 /** [Output Only] Server defined URL for the resource. */ |
| 8390 core.int maxRate; | 9985 core.String selfLink; |
| 8391 | 9986 |
| 8392 /** | 9987 /** |
| 8393 * The max RPS that a single backed instance can handle. This is used to | 9988 * [Output Only] An optional textual description of the valid disk size, such |
| 8394 * calculate the capacity of the group. Can be used in either balancing mode. | 9989 * as "10GB-10TB". |
| 8395 * For RATE mode, either maxRate or maxRatePerInstance must be set. | 9990 */ |
| 8396 */ | 9991 core.String validDiskSize; |
| 8397 core.double maxRatePerInstance; | 9992 |
| 8398 | 9993 /** [Output Only] URL of the zone where the disk type resides. */ |
| 8399 /** | 9994 core.String zone; |
| 8400 * Used when 'balancingMode' is UTILIZATION. This ratio defines the CPU | 9995 |
| 8401 * utilization target for the group. The default is 0.8. Valid range is [0, | 9996 |
| 8402 * 1]. | 9997 DiskType(); |
| 8403 */ | 9998 |
| 8404 core.double maxUtilization; | 9999 DiskType.fromJson(core.Map _json) { |
| 8405 | 10000 if (_json.containsKey("creationTimestamp")) { |
| 8406 | 10001 creationTimestamp = _json["creationTimestamp"]; |
| 8407 Backend(); | 10002 } |
| 8408 | 10003 if (_json.containsKey("defaultDiskSizeGb")) { |
| 8409 Backend.fromJson(core.Map _json) { | 10004 defaultDiskSizeGb = _json["defaultDiskSizeGb"]; |
| 8410 if (_json.containsKey("balancingMode")) { | 10005 } |
| 8411 balancingMode = _json["balancingMode"]; | 10006 if (_json.containsKey("deprecated")) { |
| 8412 } | 10007 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); |
| 8413 if (_json.containsKey("capacityScaler")) { | |
| 8414 capacityScaler = _json["capacityScaler"]; | |
| 8415 } | 10008 } |
| 8416 if (_json.containsKey("description")) { | 10009 if (_json.containsKey("description")) { |
| 8417 description = _json["description"]; | 10010 description = _json["description"]; |
| 8418 } | 10011 } |
| 8419 if (_json.containsKey("group")) { | |
| 8420 group = _json["group"]; | |
| 8421 } | |
| 8422 if (_json.containsKey("maxRate")) { | |
| 8423 maxRate = _json["maxRate"]; | |
| 8424 } | |
| 8425 if (_json.containsKey("maxRatePerInstance")) { | |
| 8426 maxRatePerInstance = _json["maxRatePerInstance"]; | |
| 8427 } | |
| 8428 if (_json.containsKey("maxUtilization")) { | |
| 8429 maxUtilization = _json["maxUtilization"]; | |
| 8430 } | |
| 8431 } | |
| 8432 | |
| 8433 core.Map toJson() { | |
| 8434 var _json = new core.Map(); | |
| 8435 if (balancingMode != null) { | |
| 8436 _json["balancingMode"] = balancingMode; | |
| 8437 } | |
| 8438 if (capacityScaler != null) { | |
| 8439 _json["capacityScaler"] = capacityScaler; | |
| 8440 } | |
| 8441 if (description != null) { | |
| 8442 _json["description"] = description; | |
| 8443 } | |
| 8444 if (group != null) { | |
| 8445 _json["group"] = group; | |
| 8446 } | |
| 8447 if (maxRate != null) { | |
| 8448 _json["maxRate"] = maxRate; | |
| 8449 } | |
| 8450 if (maxRatePerInstance != null) { | |
| 8451 _json["maxRatePerInstance"] = maxRatePerInstance; | |
| 8452 } | |
| 8453 if (maxUtilization != null) { | |
| 8454 _json["maxUtilization"] = maxUtilization; | |
| 8455 } | |
| 8456 return _json; | |
| 8457 } | |
| 8458 } | |
| 8459 | |
| 8460 | |
| 8461 /** | |
| 8462 * A BackendService resource. This resource defines a group of backend VMs | |
| 8463 * together with their serving capacity. | |
| 8464 */ | |
| 8465 class BackendService { | |
| 8466 /** The list of backends that serve this BackendService. */ | |
| 8467 core.List<Backend> backends; | |
| 8468 | |
| 8469 /** Creation timestamp in RFC3339 text format (output only). */ | |
| 8470 core.String creationTimestamp; | |
| 8471 | |
| 8472 /** | |
| 8473 * An optional textual description of the resource; provided by the client | |
| 8474 * when the resource is created. | |
| 8475 */ | |
| 8476 core.String description; | |
| 8477 | |
| 8478 /** | |
| 8479 * Fingerprint of this resource. A hash of the contents stored in this object. | |
| 8480 * This field is used in optimistic locking. This field will be ignored when | |
| 8481 * inserting a BackendService. An up-to-date fingerprint must be provided in | |
| 8482 * order to update the BackendService. | |
| 8483 */ | |
| 8484 core.String fingerprint; | |
| 8485 | |
| 8486 core.List<core.int> get fingerprintAsBytes { | |
| 8487 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | |
| 8488 } | |
| 8489 | |
| 8490 void set fingerprintAsBytes(core.List<core.int> _bytes) { | |
| 8491 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | |
| 8492 } | |
| 8493 | |
| 8494 /** | |
| 8495 * The list of URLs to the HttpHealthCheck resource for health checking this | |
| 8496 * BackendService. Currently at most one health check can be specified, and a | |
| 8497 * health check is required. | |
| 8498 */ | |
| 8499 core.List<core.String> healthChecks; | |
| 8500 | |
| 8501 /** | |
| 8502 * Unique identifier for the resource; defined by the server (output only). | |
| 8503 */ | |
| 8504 core.String id; | |
| 8505 | |
| 8506 /** Type of the resource. */ | |
| 8507 core.String kind; | |
| 8508 | |
| 8509 /** | |
| 8510 * Name of the resource; provided by the client when the resource is created. | |
| 8511 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 8512 */ | |
| 8513 core.String name; | |
| 8514 | |
| 8515 /** | |
| 8516 * Deprecated in favor of port_name. The TCP port to connect on the backend. | |
| 8517 * The default value is 80. | |
| 8518 */ | |
| 8519 core.int port; | |
| 8520 | |
| 8521 /** | |
| 8522 * Name of backend port. The same name should appear in the resource views | |
| 8523 * referenced by this service. Required. | |
| 8524 */ | |
| 8525 core.String portName; | |
| 8526 | |
| 8527 /** | |
| 8528 * Not documented yet. | |
| 8529 * Possible string values are: | |
| 8530 * - "HTTP" | |
| 8531 */ | |
| 8532 core.String protocol; | |
| 8533 | |
| 8534 /** Server defined URL for the resource (output only). */ | |
| 8535 core.String selfLink; | |
| 8536 | |
| 8537 /** | |
| 8538 * How many seconds to wait for the backend before considering it a failed | |
| 8539 * request. Default is 30 seconds. | |
| 8540 */ | |
| 8541 core.int timeoutSec; | |
| 8542 | |
| 8543 | |
| 8544 BackendService(); | |
| 8545 | |
| 8546 BackendService.fromJson(core.Map _json) { | |
| 8547 if (_json.containsKey("backends")) { | |
| 8548 backends = _json["backends"].map((value) => new Backend.fromJson(value)).t
oList(); | |
| 8549 } | |
| 8550 if (_json.containsKey("creationTimestamp")) { | |
| 8551 creationTimestamp = _json["creationTimestamp"]; | |
| 8552 } | |
| 8553 if (_json.containsKey("description")) { | |
| 8554 description = _json["description"]; | |
| 8555 } | |
| 8556 if (_json.containsKey("fingerprint")) { | |
| 8557 fingerprint = _json["fingerprint"]; | |
| 8558 } | |
| 8559 if (_json.containsKey("healthChecks")) { | |
| 8560 healthChecks = _json["healthChecks"]; | |
| 8561 } | |
| 8562 if (_json.containsKey("id")) { | 10012 if (_json.containsKey("id")) { |
| 8563 id = _json["id"]; | 10013 id = _json["id"]; |
| 8564 } | 10014 } |
| 8565 if (_json.containsKey("kind")) { | 10015 if (_json.containsKey("kind")) { |
| 8566 kind = _json["kind"]; | 10016 kind = _json["kind"]; |
| 8567 } | 10017 } |
| 8568 if (_json.containsKey("name")) { | 10018 if (_json.containsKey("name")) { |
| 8569 name = _json["name"]; | 10019 name = _json["name"]; |
| 8570 } | 10020 } |
| 8571 if (_json.containsKey("port")) { | |
| 8572 port = _json["port"]; | |
| 8573 } | |
| 8574 if (_json.containsKey("portName")) { | |
| 8575 portName = _json["portName"]; | |
| 8576 } | |
| 8577 if (_json.containsKey("protocol")) { | |
| 8578 protocol = _json["protocol"]; | |
| 8579 } | |
| 8580 if (_json.containsKey("selfLink")) { | 10021 if (_json.containsKey("selfLink")) { |
| 8581 selfLink = _json["selfLink"]; | 10022 selfLink = _json["selfLink"]; |
| 8582 } | 10023 } |
| 8583 if (_json.containsKey("timeoutSec")) { | 10024 if (_json.containsKey("validDiskSize")) { |
| 8584 timeoutSec = _json["timeoutSec"]; | 10025 validDiskSize = _json["validDiskSize"]; |
| 10026 } |
| 10027 if (_json.containsKey("zone")) { |
| 10028 zone = _json["zone"]; |
| 8585 } | 10029 } |
| 8586 } | 10030 } |
| 8587 | 10031 |
| 8588 core.Map toJson() { | 10032 core.Map toJson() { |
| 8589 var _json = new core.Map(); | 10033 var _json = new core.Map(); |
| 8590 if (backends != null) { | |
| 8591 _json["backends"] = backends.map((value) => (value).toJson()).toList(); | |
| 8592 } | |
| 8593 if (creationTimestamp != null) { | 10034 if (creationTimestamp != null) { |
| 8594 _json["creationTimestamp"] = creationTimestamp; | 10035 _json["creationTimestamp"] = creationTimestamp; |
| 8595 } | 10036 } |
| 10037 if (defaultDiskSizeGb != null) { |
| 10038 _json["defaultDiskSizeGb"] = defaultDiskSizeGb; |
| 10039 } |
| 10040 if (deprecated != null) { |
| 10041 _json["deprecated"] = (deprecated).toJson(); |
| 10042 } |
| 8596 if (description != null) { | 10043 if (description != null) { |
| 8597 _json["description"] = description; | 10044 _json["description"] = description; |
| 8598 } | 10045 } |
| 8599 if (fingerprint != null) { | |
| 8600 _json["fingerprint"] = fingerprint; | |
| 8601 } | |
| 8602 if (healthChecks != null) { | |
| 8603 _json["healthChecks"] = healthChecks; | |
| 8604 } | |
| 8605 if (id != null) { | 10046 if (id != null) { |
| 8606 _json["id"] = id; | 10047 _json["id"] = id; |
| 8607 } | 10048 } |
| 8608 if (kind != null) { | 10049 if (kind != null) { |
| 8609 _json["kind"] = kind; | 10050 _json["kind"] = kind; |
| 8610 } | 10051 } |
| 8611 if (name != null) { | 10052 if (name != null) { |
| 8612 _json["name"] = name; | 10053 _json["name"] = name; |
| 8613 } | 10054 } |
| 8614 if (port != null) { | |
| 8615 _json["port"] = port; | |
| 8616 } | |
| 8617 if (portName != null) { | |
| 8618 _json["portName"] = portName; | |
| 8619 } | |
| 8620 if (protocol != null) { | |
| 8621 _json["protocol"] = protocol; | |
| 8622 } | |
| 8623 if (selfLink != null) { | 10055 if (selfLink != null) { |
| 8624 _json["selfLink"] = selfLink; | 10056 _json["selfLink"] = selfLink; |
| 8625 } | 10057 } |
| 8626 if (timeoutSec != null) { | 10058 if (validDiskSize != null) { |
| 8627 _json["timeoutSec"] = timeoutSec; | 10059 _json["validDiskSize"] = validDiskSize; |
| 10060 } |
| 10061 if (zone != null) { |
| 10062 _json["zone"] = zone; |
| 8628 } | 10063 } |
| 8629 return _json; | 10064 return _json; |
| 8630 } | 10065 } |
| 8631 } | 10066 } |
| 8632 | 10067 |
| 8633 | 10068 |
| 8634 /** Not documented yet. */ | 10069 class DiskTypeAggregatedList { |
| 8635 class BackendServiceGroupHealth { | 10070 /** |
| 8636 /** Not documented yet. */ | 10071 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8637 core.List<HealthStatus> healthStatus; | 10072 */ |
| 10073 core.String id; |
| 8638 | 10074 |
| 8639 /** Type of resource. */ | 10075 /** [Output Only] A map of scoped disk type lists. */ |
| 10076 core.Map<core.String, DiskTypesScopedList> items; |
| 10077 |
| 10078 /** [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */ |
| 8640 core.String kind; | 10079 core.String kind; |
| 8641 | 10080 |
| 10081 /** [Output Only] A token used to continue a truncated list request. */ |
| 10082 core.String nextPageToken; |
| 8642 | 10083 |
| 8643 BackendServiceGroupHealth(); | 10084 /** [Output Only] Server defined URL for this resource. */ |
| 10085 core.String selfLink; |
| 8644 | 10086 |
| 8645 BackendServiceGroupHealth.fromJson(core.Map _json) { | 10087 |
| 8646 if (_json.containsKey("healthStatus")) { | 10088 DiskTypeAggregatedList(); |
| 8647 healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJ
son(value)).toList(); | 10089 |
| 10090 DiskTypeAggregatedList.fromJson(core.Map _json) { |
| 10091 if (_json.containsKey("id")) { |
| 10092 id = _json["id"]; |
| 10093 } |
| 10094 if (_json.containsKey("items")) { |
| 10095 items = commons.mapMap(_json["items"], (item) => new DiskTypesScopedList.f
romJson(item)); |
| 8648 } | 10096 } |
| 8649 if (_json.containsKey("kind")) { | 10097 if (_json.containsKey("kind")) { |
| 8650 kind = _json["kind"]; | 10098 kind = _json["kind"]; |
| 8651 } | 10099 } |
| 10100 if (_json.containsKey("nextPageToken")) { |
| 10101 nextPageToken = _json["nextPageToken"]; |
| 10102 } |
| 10103 if (_json.containsKey("selfLink")) { |
| 10104 selfLink = _json["selfLink"]; |
| 10105 } |
| 8652 } | 10106 } |
| 8653 | 10107 |
| 8654 core.Map toJson() { | 10108 core.Map toJson() { |
| 8655 var _json = new core.Map(); | 10109 var _json = new core.Map(); |
| 8656 if (healthStatus != null) { | 10110 if (id != null) { |
| 8657 _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toLi
st(); | 10111 _json["id"] = id; |
| 10112 } |
| 10113 if (items != null) { |
| 10114 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 8658 } | 10115 } |
| 8659 if (kind != null) { | 10116 if (kind != null) { |
| 8660 _json["kind"] = kind; | 10117 _json["kind"] = kind; |
| 8661 } | 10118 } |
| 10119 if (nextPageToken != null) { |
| 10120 _json["nextPageToken"] = nextPageToken; |
| 10121 } |
| 10122 if (selfLink != null) { |
| 10123 _json["selfLink"] = selfLink; |
| 10124 } |
| 8662 return _json; | 10125 return _json; |
| 8663 } | 10126 } |
| 8664 } | 10127 } |
| 8665 | 10128 |
| 8666 | 10129 |
| 8667 /** Contains a list of BackendService resources. */ | 10130 /** Contains a list of disk type resources. */ |
| 8668 class BackendServiceList { | 10131 class DiskTypeList { |
| 8669 /** | 10132 /** |
| 8670 * Unique identifier for the resource; defined by the server (output only). | 10133 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8671 */ | 10134 */ |
| 8672 core.String id; | 10135 core.String id; |
| 8673 | 10136 |
| 8674 /** A list of BackendService resources. */ | 10137 /** [Output Only] A list of Disk Type resources. */ |
| 8675 core.List<BackendService> items; | 10138 core.List<DiskType> items; |
| 8676 | 10139 |
| 8677 /** Type of resource. */ | 10140 /** |
| 10141 * [Output Only] Type of resource. Always compute#diskTypeList for disk types. |
| 10142 */ |
| 8678 core.String kind; | 10143 core.String kind; |
| 8679 | 10144 |
| 8680 /** A token used to continue a truncated list request (output only). */ | 10145 /** [Output Only] A token used to continue a truncated list request. */ |
| 8681 core.String nextPageToken; | 10146 core.String nextPageToken; |
| 8682 | 10147 |
| 8683 /** Server defined URL for this resource (output only). */ | 10148 /** [Output Only] Server defined URL for this resource. */ |
| 8684 core.String selfLink; | 10149 core.String selfLink; |
| 8685 | 10150 |
| 8686 | 10151 |
| 8687 BackendServiceList(); | 10152 DiskTypeList(); |
| 8688 | 10153 |
| 8689 BackendServiceList.fromJson(core.Map _json) { | 10154 DiskTypeList.fromJson(core.Map _json) { |
| 8690 if (_json.containsKey("id")) { | 10155 if (_json.containsKey("id")) { |
| 8691 id = _json["id"]; | 10156 id = _json["id"]; |
| 8692 } | 10157 } |
| 8693 if (_json.containsKey("items")) { | 10158 if (_json.containsKey("items")) { |
| 8694 items = _json["items"].map((value) => new BackendService.fromJson(value)).
toList(); | 10159 items = _json["items"].map((value) => new DiskType.fromJson(value)).toList
(); |
| 8695 } | 10160 } |
| 8696 if (_json.containsKey("kind")) { | 10161 if (_json.containsKey("kind")) { |
| 8697 kind = _json["kind"]; | 10162 kind = _json["kind"]; |
| 8698 } | 10163 } |
| 8699 if (_json.containsKey("nextPageToken")) { | 10164 if (_json.containsKey("nextPageToken")) { |
| 8700 nextPageToken = _json["nextPageToken"]; | 10165 nextPageToken = _json["nextPageToken"]; |
| 8701 } | 10166 } |
| 8702 if (_json.containsKey("selfLink")) { | 10167 if (_json.containsKey("selfLink")) { |
| 8703 selfLink = _json["selfLink"]; | 10168 selfLink = _json["selfLink"]; |
| 8704 } | 10169 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8719 _json["nextPageToken"] = nextPageToken; | 10184 _json["nextPageToken"] = nextPageToken; |
| 8720 } | 10185 } |
| 8721 if (selfLink != null) { | 10186 if (selfLink != null) { |
| 8722 _json["selfLink"] = selfLink; | 10187 _json["selfLink"] = selfLink; |
| 8723 } | 10188 } |
| 8724 return _json; | 10189 return _json; |
| 8725 } | 10190 } |
| 8726 } | 10191 } |
| 8727 | 10192 |
| 8728 | 10193 |
| 8729 /** Deprecation status for a public resource. */ | 10194 class DiskTypesScopedListWarningData { |
| 8730 class DeprecationStatus { | 10195 /** [Output Only] A key for the warning data. */ |
| 8731 /** | 10196 core.String key; |
| 8732 * An optional RFC3339 timestamp on or after which the deprecation state of | 10197 |
| 8733 * this resource will be changed to DELETED. | 10198 /** [Output Only] A warning data value corresponding to the key. */ |
| 8734 */ | 10199 core.String value; |
| 8735 core.String deleted; | 10200 |
| 8736 | 10201 |
| 8737 /** | 10202 DiskTypesScopedListWarningData(); |
| 8738 * An optional RFC3339 timestamp on or after which the deprecation state of | 10203 |
| 8739 * this resource will be changed to DEPRECATED. | 10204 DiskTypesScopedListWarningData.fromJson(core.Map _json) { |
| 8740 */ | 10205 if (_json.containsKey("key")) { |
| 8741 core.String deprecated; | 10206 key = _json["key"]; |
| 8742 | 10207 } |
| 8743 /** | 10208 if (_json.containsKey("value")) { |
| 8744 * An optional RFC3339 timestamp on or after which the deprecation state of | 10209 value = _json["value"]; |
| 8745 * this resource will be changed to OBSOLETE. | 10210 } |
| 8746 */ | 10211 } |
| 8747 core.String obsolete; | 10212 |
| 8748 | 10213 core.Map toJson() { |
| 8749 /** | 10214 var _json = new core.Map(); |
| 8750 * A URL of the suggested replacement for the deprecated resource. The | 10215 if (key != null) { |
| 8751 * deprecated resource and its replacement must be resources of the same kind. | 10216 _json["key"] = key; |
| 8752 */ | 10217 } |
| 8753 core.String replacement; | 10218 if (value != null) { |
| 8754 | 10219 _json["value"] = value; |
| 8755 /** | 10220 } |
| 8756 * The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". | 10221 return _json; |
| 8757 * Operations which create a new resource using a "DEPRECATED" resource will | 10222 } |
| 8758 * return successfully, but with a warning indicating the deprecated resource | 10223 } |
| 8759 * and recommending its replacement. New uses of "OBSOLETE" or "DELETED" | 10224 |
| 8760 * resources will result in an error. | 10225 |
| 10226 /** |
| 10227 * [Output Only] Informational warning which replaces the list of disk types |
| 10228 * when the list is empty. |
| 10229 */ |
| 10230 class DiskTypesScopedListWarning { |
| 10231 /** |
| 10232 * [Output Only] The warning type identifier for this warning. |
| 8761 * Possible string values are: | 10233 * Possible string values are: |
| 8762 * - "DELETED" | 10234 * - "DEPRECATED_RESOURCE_USED" |
| 8763 * - "DEPRECATED" | 10235 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 8764 * - "OBSOLETE" | 10236 * - "INJECTED_KERNELS_DEPRECATED" |
| 8765 */ | 10237 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 8766 core.String state; | 10238 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 8767 | 10239 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 8768 | 10240 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 8769 DeprecationStatus(); | 10241 * - "NEXT_HOP_NOT_RUNNING" |
| 8770 | 10242 * - "NO_RESULTS_ON_PAGE" |
| 8771 DeprecationStatus.fromJson(core.Map _json) { | 10243 * - "REQUIRED_TOS_AGREEMENT" |
| 8772 if (_json.containsKey("deleted")) { | 10244 * - "RESOURCE_NOT_DELETED" |
| 8773 deleted = _json["deleted"]; | 10245 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 8774 } | 10246 * - "UNREACHABLE" |
| 8775 if (_json.containsKey("deprecated")) { | 10247 */ |
| 8776 deprecated = _json["deprecated"]; | 10248 core.String code; |
| 8777 } | 10249 |
| 8778 if (_json.containsKey("obsolete")) { | 10250 /** [Output Only] Metadata for this warning in key: value format. */ |
| 8779 obsolete = _json["obsolete"]; | 10251 core.List<DiskTypesScopedListWarningData> data; |
| 8780 } | 10252 |
| 8781 if (_json.containsKey("replacement")) { | 10253 /** [Output Only] Optional human-readable details for this warning. */ |
| 8782 replacement = _json["replacement"]; | 10254 core.String message; |
| 8783 } | 10255 |
| 8784 if (_json.containsKey("state")) { | 10256 |
| 8785 state = _json["state"]; | 10257 DiskTypesScopedListWarning(); |
| 8786 } | 10258 |
| 8787 } | 10259 DiskTypesScopedListWarning.fromJson(core.Map _json) { |
| 8788 | 10260 if (_json.containsKey("code")) { |
| 8789 core.Map toJson() { | 10261 code = _json["code"]; |
| 8790 var _json = new core.Map(); | 10262 } |
| 8791 if (deleted != null) { | 10263 if (_json.containsKey("data")) { |
| 8792 _json["deleted"] = deleted; | 10264 data = _json["data"].map((value) => new DiskTypesScopedListWarningData.fro
mJson(value)).toList(); |
| 8793 } | 10265 } |
| 8794 if (deprecated != null) { | 10266 if (_json.containsKey("message")) { |
| 8795 _json["deprecated"] = deprecated; | 10267 message = _json["message"]; |
| 8796 } | 10268 } |
| 8797 if (obsolete != null) { | 10269 } |
| 8798 _json["obsolete"] = obsolete; | 10270 |
| 8799 } | 10271 core.Map toJson() { |
| 8800 if (replacement != null) { | 10272 var _json = new core.Map(); |
| 8801 _json["replacement"] = replacement; | 10273 if (code != null) { |
| 8802 } | 10274 _json["code"] = code; |
| 8803 if (state != null) { | 10275 } |
| 8804 _json["state"] = state; | 10276 if (data != null) { |
| 8805 } | 10277 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 8806 return _json; | 10278 } |
| 8807 } | 10279 if (message != null) { |
| 8808 } | 10280 _json["message"] = message; |
| 8809 | 10281 } |
| 8810 | 10282 return _json; |
| 8811 /** A persistent disk resource. */ | 10283 } |
| 8812 class Disk { | 10284 } |
| 8813 /** Creation timestamp in RFC3339 text format (output only). */ | 10285 |
| 10286 |
| 10287 class DiskTypesScopedList { |
| 10288 /** [Output Only] List of disk types contained in this scope. */ |
| 10289 core.List<DiskType> diskTypes; |
| 10290 |
| 10291 /** |
| 10292 * [Output Only] Informational warning which replaces the list of disk types |
| 10293 * when the list is empty. |
| 10294 */ |
| 10295 DiskTypesScopedListWarning warning; |
| 10296 |
| 10297 |
| 10298 DiskTypesScopedList(); |
| 10299 |
| 10300 DiskTypesScopedList.fromJson(core.Map _json) { |
| 10301 if (_json.containsKey("diskTypes")) { |
| 10302 diskTypes = _json["diskTypes"].map((value) => new DiskType.fromJson(value)
).toList(); |
| 10303 } |
| 10304 if (_json.containsKey("warning")) { |
| 10305 warning = new DiskTypesScopedListWarning.fromJson(_json["warning"]); |
| 10306 } |
| 10307 } |
| 10308 |
| 10309 core.Map toJson() { |
| 10310 var _json = new core.Map(); |
| 10311 if (diskTypes != null) { |
| 10312 _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList(); |
| 10313 } |
| 10314 if (warning != null) { |
| 10315 _json["warning"] = (warning).toJson(); |
| 10316 } |
| 10317 return _json; |
| 10318 } |
| 10319 } |
| 10320 |
| 10321 |
| 10322 class DisksScopedListWarningData { |
| 10323 /** [Output Only] A key for the warning data. */ |
| 10324 core.String key; |
| 10325 |
| 10326 /** [Output Only] A warning data value corresponding to the key. */ |
| 10327 core.String value; |
| 10328 |
| 10329 |
| 10330 DisksScopedListWarningData(); |
| 10331 |
| 10332 DisksScopedListWarningData.fromJson(core.Map _json) { |
| 10333 if (_json.containsKey("key")) { |
| 10334 key = _json["key"]; |
| 10335 } |
| 10336 if (_json.containsKey("value")) { |
| 10337 value = _json["value"]; |
| 10338 } |
| 10339 } |
| 10340 |
| 10341 core.Map toJson() { |
| 10342 var _json = new core.Map(); |
| 10343 if (key != null) { |
| 10344 _json["key"] = key; |
| 10345 } |
| 10346 if (value != null) { |
| 10347 _json["value"] = value; |
| 10348 } |
| 10349 return _json; |
| 10350 } |
| 10351 } |
| 10352 |
| 10353 |
| 10354 /** |
| 10355 * [Output Only] Informational warning which replaces the list of disks when the |
| 10356 * list is empty. |
| 10357 */ |
| 10358 class DisksScopedListWarning { |
| 10359 /** |
| 10360 * [Output Only] The warning type identifier for this warning. |
| 10361 * Possible string values are: |
| 10362 * - "DEPRECATED_RESOURCE_USED" |
| 10363 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 10364 * - "INJECTED_KERNELS_DEPRECATED" |
| 10365 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 10366 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 10367 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 10368 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 10369 * - "NEXT_HOP_NOT_RUNNING" |
| 10370 * - "NO_RESULTS_ON_PAGE" |
| 10371 * - "REQUIRED_TOS_AGREEMENT" |
| 10372 * - "RESOURCE_NOT_DELETED" |
| 10373 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 10374 * - "UNREACHABLE" |
| 10375 */ |
| 10376 core.String code; |
| 10377 |
| 10378 /** [Output Only] Metadata for this warning in key: value format. */ |
| 10379 core.List<DisksScopedListWarningData> data; |
| 10380 |
| 10381 /** [Output Only] Optional human-readable details for this warning. */ |
| 10382 core.String message; |
| 10383 |
| 10384 |
| 10385 DisksScopedListWarning(); |
| 10386 |
| 10387 DisksScopedListWarning.fromJson(core.Map _json) { |
| 10388 if (_json.containsKey("code")) { |
| 10389 code = _json["code"]; |
| 10390 } |
| 10391 if (_json.containsKey("data")) { |
| 10392 data = _json["data"].map((value) => new DisksScopedListWarningData.fromJso
n(value)).toList(); |
| 10393 } |
| 10394 if (_json.containsKey("message")) { |
| 10395 message = _json["message"]; |
| 10396 } |
| 10397 } |
| 10398 |
| 10399 core.Map toJson() { |
| 10400 var _json = new core.Map(); |
| 10401 if (code != null) { |
| 10402 _json["code"] = code; |
| 10403 } |
| 10404 if (data != null) { |
| 10405 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 10406 } |
| 10407 if (message != null) { |
| 10408 _json["message"] = message; |
| 10409 } |
| 10410 return _json; |
| 10411 } |
| 10412 } |
| 10413 |
| 10414 |
| 10415 class DisksScopedList { |
| 10416 /** [Output Only] List of disks contained in this scope. */ |
| 10417 core.List<Disk> disks; |
| 10418 |
| 10419 /** |
| 10420 * [Output Only] Informational warning which replaces the list of disks when |
| 10421 * the list is empty. |
| 10422 */ |
| 10423 DisksScopedListWarning warning; |
| 10424 |
| 10425 |
| 10426 DisksScopedList(); |
| 10427 |
| 10428 DisksScopedList.fromJson(core.Map _json) { |
| 10429 if (_json.containsKey("disks")) { |
| 10430 disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList(); |
| 10431 } |
| 10432 if (_json.containsKey("warning")) { |
| 10433 warning = new DisksScopedListWarning.fromJson(_json["warning"]); |
| 10434 } |
| 10435 } |
| 10436 |
| 10437 core.Map toJson() { |
| 10438 var _json = new core.Map(); |
| 10439 if (disks != null) { |
| 10440 _json["disks"] = disks.map((value) => (value).toJson()).toList(); |
| 10441 } |
| 10442 if (warning != null) { |
| 10443 _json["warning"] = (warning).toJson(); |
| 10444 } |
| 10445 return _json; |
| 10446 } |
| 10447 } |
| 10448 |
| 10449 |
| 10450 class FirewallAllowed { |
| 10451 /** |
| 10452 * The IP protocol that is allowed for this rule. The protocol type is |
| 10453 * required when creating a firewall. This value can either be one of the |
| 10454 * following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or |
| 10455 * the IP protocol number. |
| 10456 */ |
| 10457 core.String IPProtocol; |
| 10458 |
| 10459 /** |
| 10460 * An optional list of ports which are allowed. This field is only applicable |
| 10461 * for UDP or TCP protocol. Each entry must be either an integer or a range. |
| 10462 * If not specified, connections through any port are allowed |
| 10463 * |
| 10464 * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. |
| 10465 */ |
| 10466 core.List<core.String> ports; |
| 10467 |
| 10468 |
| 10469 FirewallAllowed(); |
| 10470 |
| 10471 FirewallAllowed.fromJson(core.Map _json) { |
| 10472 if (_json.containsKey("IPProtocol")) { |
| 10473 IPProtocol = _json["IPProtocol"]; |
| 10474 } |
| 10475 if (_json.containsKey("ports")) { |
| 10476 ports = _json["ports"]; |
| 10477 } |
| 10478 } |
| 10479 |
| 10480 core.Map toJson() { |
| 10481 var _json = new core.Map(); |
| 10482 if (IPProtocol != null) { |
| 10483 _json["IPProtocol"] = IPProtocol; |
| 10484 } |
| 10485 if (ports != null) { |
| 10486 _json["ports"] = ports; |
| 10487 } |
| 10488 return _json; |
| 10489 } |
| 10490 } |
| 10491 |
| 10492 |
| 10493 /** A Firewall resource. */ |
| 10494 class Firewall { |
| 10495 /** |
| 10496 * The list of rules specified by this firewall. Each rule specifies a |
| 10497 * protocol and port-range tuple that describes a permitted connection. |
| 10498 */ |
| 10499 core.List<FirewallAllowed> allowed; |
| 10500 |
| 10501 /** [Output Only] Creation timestamp in RFC3339text format. */ |
| 8814 core.String creationTimestamp; | 10502 core.String creationTimestamp; |
| 8815 | 10503 |
| 8816 /** | 10504 /** |
| 8817 * An optional textual description of the resource; provided by the client | 10505 * An optional textual description of the resource; provided by the client |
| 8818 * when the resource is created. | 10506 * when the resource is created. |
| 8819 */ | 10507 */ |
| 8820 core.String description; | 10508 core.String description; |
| 8821 | 10509 |
| 8822 /** | 10510 /** |
| 8823 * Unique identifier for the resource; defined by the server (output only). | 10511 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8824 */ | 10512 */ |
| 8825 core.String id; | 10513 core.String id; |
| 8826 | 10514 |
| 8827 /** Type of the resource. */ | 10515 /** |
| 10516 * [Output Ony] Type of the resource. Always compute#firewall for firewall |
| 10517 * rules. |
| 10518 */ |
| 8828 core.String kind; | 10519 core.String kind; |
| 8829 | 10520 |
| 8830 /** Public visible licenses. */ | |
| 8831 core.List<core.String> licenses; | |
| 8832 | |
| 8833 /** | 10521 /** |
| 8834 * Name of the resource; provided by the client when the resource is created. | 10522 * Name of the resource; provided by the client when the resource is created. |
| 8835 * The name must be 1-63 characters long, and comply with RFC1035. | 10523 * The name must be 1-63 characters long, and comply with RFC1035. |
| 10524 * Specifically, the name must be 1-63 characters long and match the regular |
| 10525 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 10526 * be a lowercase letter, and all following characters must be a dash, |
| 10527 * lowercase letter, or digit, except the last character, which cannot be a |
| 10528 * dash. |
| 8836 */ | 10529 */ |
| 8837 core.String name; | 10530 core.String name; |
| 8838 | 10531 |
| 8839 /** Internal use only. */ | 10532 /** |
| 8840 core.String options; | 10533 * URL of the network resource for this firewall rule. This field is required |
| 8841 | 10534 * for creating an instance but optional when creating a firewall rule. If not |
| 8842 /** Server defined URL for the resource (output only). */ | 10535 * specified when creating a firewall rule, the default network is used: |
| 10536 * global/networks/default |
| 10537 * If you choose to specify this property, you can specify the network as a |
| 10538 * full or partial URL. For example, the following are all valid URLs: |
| 10539 * - |
| 10540 * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my
-network |
| 10541 * - projects/myproject/global/networks/my-network |
| 10542 * - global/networks/default |
| 10543 */ |
| 10544 core.String network; |
| 10545 |
| 10546 /** [Output Only] Server defined URL for the resource. */ |
| 8843 core.String selfLink; | 10547 core.String selfLink; |
| 8844 | 10548 |
| 8845 /** | 10549 /** |
| 8846 * Size of the persistent disk, specified in GB. This parameter is optional | 10550 * The IP address blocks that this rule applies to, expressed in CIDR format. |
| 8847 * when creating a disk from a disk image or a snapshot, otherwise it is | 10551 * One or both of sourceRanges and sourceTags may be set. |
| 8848 * required. | 10552 * |
| 8849 */ | 10553 * If both properties are set, an inbound connection is allowed if the range |
| 8850 core.String sizeGb; | 10554 * or the tag of the source matches the sourceRanges OR matches the sourceTags |
| 8851 | 10555 * property; the connection does not need to match both properties. |
| 8852 /** The source image used to create this disk. */ | 10556 */ |
| 8853 core.String sourceImage; | 10557 core.List<core.String> sourceRanges; |
| 8854 | 10558 |
| 8855 /** | 10559 /** |
| 8856 * The 'id' value of the image used to create this disk. This value may be | 10560 * A list of instance tags which this rule applies to. One or both of |
| 8857 * used to determine whether the disk was created from the current or a | 10561 * sourceRanges and sourceTags may be set. |
| 8858 * previous instance of a given image. | 10562 * |
| 8859 */ | 10563 * If both properties are set, an inbound connection is allowed if the range |
| 8860 core.String sourceImageId; | 10564 * or the tag of the source matches the sourceRanges OR matches the sourceTags |
| 8861 | 10565 * property; the connection does not need to match both properties. |
| 8862 /** The source snapshot used to create this disk. */ | 10566 */ |
| 8863 core.String sourceSnapshot; | 10567 core.List<core.String> sourceTags; |
| 8864 | 10568 |
| 8865 /** | 10569 /** |
| 8866 * The 'id' value of the snapshot used to create this disk. This value may be | 10570 * A list of instance tags indicating sets of instances located on network |
| 8867 * used to determine whether the disk was created from the current or a | 10571 * which may make network connections as specified in allowed[]. If no |
| 8868 * previous instance of a given disk snapshot. | 10572 * targetTags are specified, the firewall rule applies to all instances on the |
| 8869 */ | 10573 * specified network. |
| 8870 core.String sourceSnapshotId; | 10574 */ |
| 8871 | 10575 core.List<core.String> targetTags; |
| 8872 /** | 10576 |
| 8873 * The status of disk creation (output only). | 10577 |
| 8874 * Possible string values are: | 10578 Firewall(); |
| 8875 * - "CREATING" | 10579 |
| 8876 * - "FAILED" | 10580 Firewall.fromJson(core.Map _json) { |
| 8877 * - "READY" | 10581 if (_json.containsKey("allowed")) { |
| 8878 * - "RESTORING" | 10582 allowed = _json["allowed"].map((value) => new FirewallAllowed.fromJson(val
ue)).toList(); |
| 8879 */ | 10583 } |
| 8880 core.String status; | |
| 8881 | |
| 8882 /** | |
| 8883 * URL of the disk type resource describing which disk type to use to create | |
| 8884 * the disk; provided by the client when the disk is created. | |
| 8885 */ | |
| 8886 core.String type; | |
| 8887 | |
| 8888 /** URL of the zone where the disk resides (output only). */ | |
| 8889 core.String zone; | |
| 8890 | |
| 8891 | |
| 8892 Disk(); | |
| 8893 | |
| 8894 Disk.fromJson(core.Map _json) { | |
| 8895 if (_json.containsKey("creationTimestamp")) { | 10584 if (_json.containsKey("creationTimestamp")) { |
| 8896 creationTimestamp = _json["creationTimestamp"]; | 10585 creationTimestamp = _json["creationTimestamp"]; |
| 8897 } | 10586 } |
| 8898 if (_json.containsKey("description")) { | 10587 if (_json.containsKey("description")) { |
| 8899 description = _json["description"]; | 10588 description = _json["description"]; |
| 8900 } | 10589 } |
| 8901 if (_json.containsKey("id")) { | 10590 if (_json.containsKey("id")) { |
| 8902 id = _json["id"]; | 10591 id = _json["id"]; |
| 8903 } | 10592 } |
| 8904 if (_json.containsKey("kind")) { | 10593 if (_json.containsKey("kind")) { |
| 8905 kind = _json["kind"]; | 10594 kind = _json["kind"]; |
| 8906 } | 10595 } |
| 8907 if (_json.containsKey("licenses")) { | |
| 8908 licenses = _json["licenses"]; | |
| 8909 } | |
| 8910 if (_json.containsKey("name")) { | 10596 if (_json.containsKey("name")) { |
| 8911 name = _json["name"]; | 10597 name = _json["name"]; |
| 8912 } | 10598 } |
| 8913 if (_json.containsKey("options")) { | 10599 if (_json.containsKey("network")) { |
| 8914 options = _json["options"]; | 10600 network = _json["network"]; |
| 8915 } | 10601 } |
| 8916 if (_json.containsKey("selfLink")) { | 10602 if (_json.containsKey("selfLink")) { |
| 8917 selfLink = _json["selfLink"]; | 10603 selfLink = _json["selfLink"]; |
| 8918 } | 10604 } |
| 8919 if (_json.containsKey("sizeGb")) { | 10605 if (_json.containsKey("sourceRanges")) { |
| 8920 sizeGb = _json["sizeGb"]; | 10606 sourceRanges = _json["sourceRanges"]; |
| 8921 } | 10607 } |
| 8922 if (_json.containsKey("sourceImage")) { | 10608 if (_json.containsKey("sourceTags")) { |
| 8923 sourceImage = _json["sourceImage"]; | 10609 sourceTags = _json["sourceTags"]; |
| 8924 } | 10610 } |
| 8925 if (_json.containsKey("sourceImageId")) { | 10611 if (_json.containsKey("targetTags")) { |
| 8926 sourceImageId = _json["sourceImageId"]; | 10612 targetTags = _json["targetTags"]; |
| 8927 } | 10613 } |
| 8928 if (_json.containsKey("sourceSnapshot")) { | 10614 } |
| 8929 sourceSnapshot = _json["sourceSnapshot"]; | 10615 |
| 8930 } | 10616 core.Map toJson() { |
| 8931 if (_json.containsKey("sourceSnapshotId")) { | 10617 var _json = new core.Map(); |
| 8932 sourceSnapshotId = _json["sourceSnapshotId"]; | 10618 if (allowed != null) { |
| 8933 } | 10619 _json["allowed"] = allowed.map((value) => (value).toJson()).toList(); |
| 8934 if (_json.containsKey("status")) { | 10620 } |
| 8935 status = _json["status"]; | |
| 8936 } | |
| 8937 if (_json.containsKey("type")) { | |
| 8938 type = _json["type"]; | |
| 8939 } | |
| 8940 if (_json.containsKey("zone")) { | |
| 8941 zone = _json["zone"]; | |
| 8942 } | |
| 8943 } | |
| 8944 | |
| 8945 core.Map toJson() { | |
| 8946 var _json = new core.Map(); | |
| 8947 if (creationTimestamp != null) { | 10621 if (creationTimestamp != null) { |
| 8948 _json["creationTimestamp"] = creationTimestamp; | 10622 _json["creationTimestamp"] = creationTimestamp; |
| 8949 } | 10623 } |
| 8950 if (description != null) { | 10624 if (description != null) { |
| 8951 _json["description"] = description; | 10625 _json["description"] = description; |
| 8952 } | 10626 } |
| 8953 if (id != null) { | 10627 if (id != null) { |
| 8954 _json["id"] = id; | 10628 _json["id"] = id; |
| 8955 } | 10629 } |
| 8956 if (kind != null) { | 10630 if (kind != null) { |
| 8957 _json["kind"] = kind; | 10631 _json["kind"] = kind; |
| 8958 } | 10632 } |
| 8959 if (licenses != null) { | |
| 8960 _json["licenses"] = licenses; | |
| 8961 } | |
| 8962 if (name != null) { | 10633 if (name != null) { |
| 8963 _json["name"] = name; | 10634 _json["name"] = name; |
| 8964 } | 10635 } |
| 8965 if (options != null) { | 10636 if (network != null) { |
| 8966 _json["options"] = options; | 10637 _json["network"] = network; |
| 8967 } | 10638 } |
| 8968 if (selfLink != null) { | 10639 if (selfLink != null) { |
| 8969 _json["selfLink"] = selfLink; | 10640 _json["selfLink"] = selfLink; |
| 8970 } | 10641 } |
| 8971 if (sizeGb != null) { | 10642 if (sourceRanges != null) { |
| 8972 _json["sizeGb"] = sizeGb; | 10643 _json["sourceRanges"] = sourceRanges; |
| 8973 } | 10644 } |
| 8974 if (sourceImage != null) { | 10645 if (sourceTags != null) { |
| 8975 _json["sourceImage"] = sourceImage; | 10646 _json["sourceTags"] = sourceTags; |
| 8976 } | 10647 } |
| 8977 if (sourceImageId != null) { | 10648 if (targetTags != null) { |
| 8978 _json["sourceImageId"] = sourceImageId; | 10649 _json["targetTags"] = targetTags; |
| 8979 } | 10650 } |
| 8980 if (sourceSnapshot != null) { | 10651 return _json; |
| 8981 _json["sourceSnapshot"] = sourceSnapshot; | 10652 } |
| 8982 } | 10653 } |
| 8983 if (sourceSnapshotId != null) { | 10654 |
| 8984 _json["sourceSnapshotId"] = sourceSnapshotId; | 10655 |
| 8985 } | 10656 /** Contains a list of Firewall resources. */ |
| 8986 if (status != null) { | 10657 class FirewallList { |
| 8987 _json["status"] = status; | 10658 /** |
| 8988 } | 10659 * [Output Only] Unique identifier for the resource; defined by the server. |
| 8989 if (type != null) { | |
| 8990 _json["type"] = type; | |
| 8991 } | |
| 8992 if (zone != null) { | |
| 8993 _json["zone"] = zone; | |
| 8994 } | |
| 8995 return _json; | |
| 8996 } | |
| 8997 } | |
| 8998 | |
| 8999 | |
| 9000 /** Not documented yet. */ | |
| 9001 class DiskAggregatedList { | |
| 9002 /** | |
| 9003 * Unique identifier for the resource; defined by the server (output only). | |
| 9004 */ | 10660 */ |
| 9005 core.String id; | 10661 core.String id; |
| 9006 | 10662 |
| 9007 /** A map of scoped disk lists. */ | 10663 /** [Output Only] A list of Firewall resources. */ |
| 9008 core.Map<core.String, DisksScopedList> items; | 10664 core.List<Firewall> items; |
| 9009 | 10665 |
| 9010 /** Type of resource. */ | 10666 /** |
| 10667 * [Output Only] Type of resource. Always compute#firewallList for lists of |
| 10668 * firewalls. |
| 10669 */ |
| 9011 core.String kind; | 10670 core.String kind; |
| 9012 | 10671 |
| 9013 /** A token used to continue a truncated list request (output only). */ | 10672 /** [Output Only] A token used to continue a truncated list request. */ |
| 9014 core.String nextPageToken; | 10673 core.String nextPageToken; |
| 9015 | 10674 |
| 9016 /** Server defined URL for this resource (output only). */ | 10675 /** [Output Only] Server defined URL for this resource. */ |
| 9017 core.String selfLink; | 10676 core.String selfLink; |
| 9018 | 10677 |
| 9019 | 10678 |
| 9020 DiskAggregatedList(); | 10679 FirewallList(); |
| 9021 | 10680 |
| 9022 DiskAggregatedList.fromJson(core.Map _json) { | 10681 FirewallList.fromJson(core.Map _json) { |
| 9023 if (_json.containsKey("id")) { | 10682 if (_json.containsKey("id")) { |
| 9024 id = _json["id"]; | 10683 id = _json["id"]; |
| 9025 } | 10684 } |
| 9026 if (_json.containsKey("items")) { | 10685 if (_json.containsKey("items")) { |
| 9027 items = common_internal.mapMap(_json["items"], (item) => new DisksScopedLi
st.fromJson(item)); | 10686 items = _json["items"].map((value) => new Firewall.fromJson(value)).toList
(); |
| 9028 } | 10687 } |
| 9029 if (_json.containsKey("kind")) { | 10688 if (_json.containsKey("kind")) { |
| 9030 kind = _json["kind"]; | 10689 kind = _json["kind"]; |
| 9031 } | |
| 9032 if (_json.containsKey("nextPageToken")) { | |
| 9033 nextPageToken = _json["nextPageToken"]; | |
| 9034 } | |
| 9035 if (_json.containsKey("selfLink")) { | |
| 9036 selfLink = _json["selfLink"]; | |
| 9037 } | |
| 9038 } | |
| 9039 | |
| 9040 core.Map toJson() { | |
| 9041 var _json = new core.Map(); | |
| 9042 if (id != null) { | |
| 9043 _json["id"] = id; | |
| 9044 } | |
| 9045 if (items != null) { | |
| 9046 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | |
| 9047 } | |
| 9048 if (kind != null) { | |
| 9049 _json["kind"] = kind; | |
| 9050 } | |
| 9051 if (nextPageToken != null) { | |
| 9052 _json["nextPageToken"] = nextPageToken; | |
| 9053 } | |
| 9054 if (selfLink != null) { | |
| 9055 _json["selfLink"] = selfLink; | |
| 9056 } | |
| 9057 return _json; | |
| 9058 } | |
| 9059 } | |
| 9060 | |
| 9061 | |
| 9062 /** Contains a list of persistent disk resources. */ | |
| 9063 class DiskList { | |
| 9064 /** | |
| 9065 * Unique identifier for the resource; defined by the server (output only). | |
| 9066 */ | |
| 9067 core.String id; | |
| 9068 | |
| 9069 /** A list of Disk resources. */ | |
| 9070 core.List<Disk> items; | |
| 9071 | |
| 9072 /** Type of resource. */ | |
| 9073 core.String kind; | |
| 9074 | |
| 9075 /** A token used to continue a truncated list request (output only). */ | |
| 9076 core.String nextPageToken; | |
| 9077 | |
| 9078 /** Server defined URL for this resource (output only). */ | |
| 9079 core.String selfLink; | |
| 9080 | |
| 9081 | |
| 9082 DiskList(); | |
| 9083 | |
| 9084 DiskList.fromJson(core.Map _json) { | |
| 9085 if (_json.containsKey("id")) { | |
| 9086 id = _json["id"]; | |
| 9087 } | |
| 9088 if (_json.containsKey("items")) { | |
| 9089 items = _json["items"].map((value) => new Disk.fromJson(value)).toList(); | |
| 9090 } | |
| 9091 if (_json.containsKey("kind")) { | |
| 9092 kind = _json["kind"]; | |
| 9093 } | 10690 } |
| 9094 if (_json.containsKey("nextPageToken")) { | 10691 if (_json.containsKey("nextPageToken")) { |
| 9095 nextPageToken = _json["nextPageToken"]; | 10692 nextPageToken = _json["nextPageToken"]; |
| 9096 } | 10693 } |
| 9097 if (_json.containsKey("selfLink")) { | 10694 if (_json.containsKey("selfLink")) { |
| 9098 selfLink = _json["selfLink"]; | 10695 selfLink = _json["selfLink"]; |
| 9099 } | 10696 } |
| 9100 } | 10697 } |
| 9101 | 10698 |
| 9102 core.Map toJson() { | 10699 core.Map toJson() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 9114 _json["nextPageToken"] = nextPageToken; | 10711 _json["nextPageToken"] = nextPageToken; |
| 9115 } | 10712 } |
| 9116 if (selfLink != null) { | 10713 if (selfLink != null) { |
| 9117 _json["selfLink"] = selfLink; | 10714 _json["selfLink"] = selfLink; |
| 9118 } | 10715 } |
| 9119 return _json; | 10716 return _json; |
| 9120 } | 10717 } |
| 9121 } | 10718 } |
| 9122 | 10719 |
| 9123 | 10720 |
| 9124 /** A disk type resource. */ | 10721 /** |
| 9125 class DiskType { | 10722 * A ForwardingRule resource. A ForwardingRule resource specifies which pool of |
| 10723 * target VMs to forward a packet to if it matches the given [IPAddress, |
| 10724 * IPProtocol, portRange] tuple. |
| 10725 */ |
| 10726 class ForwardingRule { |
| 10727 /** |
| 10728 * Value of the reserved IP address that this forwarding rule is serving on |
| 10729 * behalf of. For global forwarding rules, the address must be a global IP; |
| 10730 * for regional forwarding rules, the address must live in the same region as |
| 10731 * the forwarding rule. If left empty (default value), an ephemeral IP from |
| 10732 * the same scope (global or regional) will be assigned. |
| 10733 */ |
| 10734 core.String IPAddress; |
| 10735 |
| 10736 /** |
| 10737 * The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', |
| 10738 * 'ESP', 'AH' or 'SCTP'. |
| 10739 * Possible string values are: |
| 10740 * - "AH" |
| 10741 * - "ESP" |
| 10742 * - "SCTP" |
| 10743 * - "TCP" |
| 10744 * - "UDP" |
| 10745 */ |
| 10746 core.String IPProtocol; |
| 10747 |
| 9126 /** Creation timestamp in RFC3339 text format (output only). */ | 10748 /** Creation timestamp in RFC3339 text format (output only). */ |
| 9127 core.String creationTimestamp; | 10749 core.String creationTimestamp; |
| 9128 | 10750 |
| 9129 /** Server defined default disk size in gb (output only). */ | 10751 /** |
| 9130 core.String defaultDiskSizeGb; | 10752 * An optional textual description of the resource; provided by the client |
| 9131 | 10753 * when the resource is created. |
| 9132 /** The deprecation status associated with this disk type. */ | 10754 */ |
| 9133 DeprecationStatus deprecated; | |
| 9134 | |
| 9135 /** An optional textual description of the resource. */ | |
| 9136 core.String description; | 10755 core.String description; |
| 9137 | 10756 |
| 9138 /** | 10757 /** |
| 9139 * Unique identifier for the resource; defined by the server (output only). | 10758 * Unique identifier for the resource; defined by the server (output only). |
| 9140 */ | 10759 */ |
| 9141 core.String id; | 10760 core.String id; |
| 9142 | 10761 |
| 9143 /** Type of the resource. */ | 10762 /** Type of the resource. */ |
| 9144 core.String kind; | 10763 core.String kind; |
| 9145 | 10764 |
| 9146 /** Name of the resource. */ | 10765 /** |
| 10766 * Name of the resource; provided by the client when the resource is created. |
| 10767 * The name must be 1-63 characters long, and comply with RFC1035. |
| 10768 */ |
| 9147 core.String name; | 10769 core.String name; |
| 9148 | 10770 |
| 10771 /** |
| 10772 * Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets |
| 10773 * addressed to ports in the specified range will be forwarded to 'target'. If |
| 10774 * 'portRange' is left empty (default value), all ports are forwarded. |
| 10775 * Forwarding rules with the same [IPAddress, IPProtocol] pair must have |
| 10776 * disjoint port ranges. |
| 10777 */ |
| 10778 core.String portRange; |
| 10779 |
| 10780 /** |
| 10781 * URL of the region where the regional forwarding rule resides (output only). |
| 10782 * This field is not applicable to global forwarding rules. |
| 10783 */ |
| 10784 core.String region; |
| 10785 |
| 9149 /** Server defined URL for the resource (output only). */ | 10786 /** Server defined URL for the resource (output only). */ |
| 9150 core.String selfLink; | 10787 core.String selfLink; |
| 9151 | 10788 |
| 9152 /** | 10789 /** |
| 9153 * An optional textual descroption of the valid disk size, e.g., "10GB-10TB". | 10790 * The URL of the target resource to receive the matched traffic. For regional |
| 10791 * forwarding rules, this target must live in the same region as the |
| 10792 * forwarding rule. For global forwarding rules, this target must be a global |
| 10793 * TargetHttpProxy resource. |
| 9154 */ | 10794 */ |
| 9155 core.String validDiskSize; | 10795 core.String target; |
| 9156 | |
| 9157 /** Url of the zone where the disk type resides (output only). */ | |
| 9158 core.String zone; | |
| 9159 | 10796 |
| 9160 | 10797 |
| 9161 DiskType(); | 10798 ForwardingRule(); |
| 9162 | 10799 |
| 9163 DiskType.fromJson(core.Map _json) { | 10800 ForwardingRule.fromJson(core.Map _json) { |
| 10801 if (_json.containsKey("IPAddress")) { |
| 10802 IPAddress = _json["IPAddress"]; |
| 10803 } |
| 10804 if (_json.containsKey("IPProtocol")) { |
| 10805 IPProtocol = _json["IPProtocol"]; |
| 10806 } |
| 9164 if (_json.containsKey("creationTimestamp")) { | 10807 if (_json.containsKey("creationTimestamp")) { |
| 9165 creationTimestamp = _json["creationTimestamp"]; | 10808 creationTimestamp = _json["creationTimestamp"]; |
| 9166 } | 10809 } |
| 9167 if (_json.containsKey("defaultDiskSizeGb")) { | |
| 9168 defaultDiskSizeGb = _json["defaultDiskSizeGb"]; | |
| 9169 } | |
| 9170 if (_json.containsKey("deprecated")) { | |
| 9171 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); | |
| 9172 } | |
| 9173 if (_json.containsKey("description")) { | 10810 if (_json.containsKey("description")) { |
| 9174 description = _json["description"]; | 10811 description = _json["description"]; |
| 9175 } | 10812 } |
| 9176 if (_json.containsKey("id")) { | 10813 if (_json.containsKey("id")) { |
| 9177 id = _json["id"]; | 10814 id = _json["id"]; |
| 9178 } | 10815 } |
| 9179 if (_json.containsKey("kind")) { | 10816 if (_json.containsKey("kind")) { |
| 9180 kind = _json["kind"]; | 10817 kind = _json["kind"]; |
| 9181 } | 10818 } |
| 9182 if (_json.containsKey("name")) { | 10819 if (_json.containsKey("name")) { |
| 9183 name = _json["name"]; | 10820 name = _json["name"]; |
| 9184 } | 10821 } |
| 10822 if (_json.containsKey("portRange")) { |
| 10823 portRange = _json["portRange"]; |
| 10824 } |
| 10825 if (_json.containsKey("region")) { |
| 10826 region = _json["region"]; |
| 10827 } |
| 9185 if (_json.containsKey("selfLink")) { | 10828 if (_json.containsKey("selfLink")) { |
| 9186 selfLink = _json["selfLink"]; | 10829 selfLink = _json["selfLink"]; |
| 9187 } | 10830 } |
| 9188 if (_json.containsKey("validDiskSize")) { | 10831 if (_json.containsKey("target")) { |
| 9189 validDiskSize = _json["validDiskSize"]; | 10832 target = _json["target"]; |
| 9190 } | |
| 9191 if (_json.containsKey("zone")) { | |
| 9192 zone = _json["zone"]; | |
| 9193 } | 10833 } |
| 9194 } | 10834 } |
| 9195 | 10835 |
| 9196 core.Map toJson() { | 10836 core.Map toJson() { |
| 9197 var _json = new core.Map(); | 10837 var _json = new core.Map(); |
| 10838 if (IPAddress != null) { |
| 10839 _json["IPAddress"] = IPAddress; |
| 10840 } |
| 10841 if (IPProtocol != null) { |
| 10842 _json["IPProtocol"] = IPProtocol; |
| 10843 } |
| 9198 if (creationTimestamp != null) { | 10844 if (creationTimestamp != null) { |
| 9199 _json["creationTimestamp"] = creationTimestamp; | 10845 _json["creationTimestamp"] = creationTimestamp; |
| 9200 } | 10846 } |
| 9201 if (defaultDiskSizeGb != null) { | |
| 9202 _json["defaultDiskSizeGb"] = defaultDiskSizeGb; | |
| 9203 } | |
| 9204 if (deprecated != null) { | |
| 9205 _json["deprecated"] = (deprecated).toJson(); | |
| 9206 } | |
| 9207 if (description != null) { | 10847 if (description != null) { |
| 9208 _json["description"] = description; | 10848 _json["description"] = description; |
| 9209 } | 10849 } |
| 9210 if (id != null) { | 10850 if (id != null) { |
| 9211 _json["id"] = id; | 10851 _json["id"] = id; |
| 9212 } | 10852 } |
| 9213 if (kind != null) { | 10853 if (kind != null) { |
| 9214 _json["kind"] = kind; | 10854 _json["kind"] = kind; |
| 9215 } | 10855 } |
| 9216 if (name != null) { | 10856 if (name != null) { |
| 9217 _json["name"] = name; | 10857 _json["name"] = name; |
| 9218 } | 10858 } |
| 10859 if (portRange != null) { |
| 10860 _json["portRange"] = portRange; |
| 10861 } |
| 10862 if (region != null) { |
| 10863 _json["region"] = region; |
| 10864 } |
| 9219 if (selfLink != null) { | 10865 if (selfLink != null) { |
| 9220 _json["selfLink"] = selfLink; | 10866 _json["selfLink"] = selfLink; |
| 9221 } | 10867 } |
| 9222 if (validDiskSize != null) { | 10868 if (target != null) { |
| 9223 _json["validDiskSize"] = validDiskSize; | 10869 _json["target"] = target; |
| 9224 } | |
| 9225 if (zone != null) { | |
| 9226 _json["zone"] = zone; | |
| 9227 } | 10870 } |
| 9228 return _json; | 10871 return _json; |
| 9229 } | 10872 } |
| 9230 } | 10873 } |
| 9231 | 10874 |
| 9232 | 10875 |
| 9233 /** Not documented yet. */ | 10876 class ForwardingRuleAggregatedList { |
| 9234 class DiskTypeAggregatedList { | |
| 9235 /** | 10877 /** |
| 9236 * Unique identifier for the resource; defined by the server (output only). | 10878 * Unique identifier for the resource; defined by the server (output only). |
| 9237 */ | 10879 */ |
| 9238 core.String id; | 10880 core.String id; |
| 9239 | 10881 |
| 9240 /** A map of scoped disk type lists. */ | 10882 /** A map of scoped forwarding rule lists. */ |
| 9241 core.Map<core.String, DiskTypesScopedList> items; | 10883 core.Map<core.String, ForwardingRulesScopedList> items; |
| 9242 | 10884 |
| 9243 /** Type of resource. */ | 10885 /** Type of resource. */ |
| 9244 core.String kind; | 10886 core.String kind; |
| 9245 | 10887 |
| 9246 /** A token used to continue a truncated list request (output only). */ | 10888 /** A token used to continue a truncated list request (output only). */ |
| 9247 core.String nextPageToken; | 10889 core.String nextPageToken; |
| 9248 | 10890 |
| 9249 /** Server defined URL for this resource (output only). */ | 10891 /** Server defined URL for this resource (output only). */ |
| 9250 core.String selfLink; | 10892 core.String selfLink; |
| 9251 | 10893 |
| 9252 | 10894 |
| 9253 DiskTypeAggregatedList(); | 10895 ForwardingRuleAggregatedList(); |
| 9254 | 10896 |
| 9255 DiskTypeAggregatedList.fromJson(core.Map _json) { | 10897 ForwardingRuleAggregatedList.fromJson(core.Map _json) { |
| 9256 if (_json.containsKey("id")) { | 10898 if (_json.containsKey("id")) { |
| 9257 id = _json["id"]; | 10899 id = _json["id"]; |
| 9258 } | 10900 } |
| 9259 if (_json.containsKey("items")) { | 10901 if (_json.containsKey("items")) { |
| 9260 items = common_internal.mapMap(_json["items"], (item) => new DiskTypesScop
edList.fromJson(item)); | 10902 items = commons.mapMap(_json["items"], (item) => new ForwardingRulesScoped
List.fromJson(item)); |
| 9261 } | 10903 } |
| 9262 if (_json.containsKey("kind")) { | 10904 if (_json.containsKey("kind")) { |
| 9263 kind = _json["kind"]; | 10905 kind = _json["kind"]; |
| 9264 } | 10906 } |
| 9265 if (_json.containsKey("nextPageToken")) { | 10907 if (_json.containsKey("nextPageToken")) { |
| 9266 nextPageToken = _json["nextPageToken"]; | 10908 nextPageToken = _json["nextPageToken"]; |
| 9267 } | 10909 } |
| 9268 if (_json.containsKey("selfLink")) { | 10910 if (_json.containsKey("selfLink")) { |
| 9269 selfLink = _json["selfLink"]; | 10911 selfLink = _json["selfLink"]; |
| 9270 } | 10912 } |
| 9271 } | 10913 } |
| 9272 | 10914 |
| 9273 core.Map toJson() { | 10915 core.Map toJson() { |
| 9274 var _json = new core.Map(); | 10916 var _json = new core.Map(); |
| 9275 if (id != null) { | 10917 if (id != null) { |
| 9276 _json["id"] = id; | 10918 _json["id"] = id; |
| 9277 } | 10919 } |
| 9278 if (items != null) { | 10920 if (items != null) { |
| 9279 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | 10921 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 9280 } | 10922 } |
| 9281 if (kind != null) { | 10923 if (kind != null) { |
| 9282 _json["kind"] = kind; | 10924 _json["kind"] = kind; |
| 9283 } | 10925 } |
| 9284 if (nextPageToken != null) { | 10926 if (nextPageToken != null) { |
| 9285 _json["nextPageToken"] = nextPageToken; | 10927 _json["nextPageToken"] = nextPageToken; |
| 9286 } | 10928 } |
| 9287 if (selfLink != null) { | 10929 if (selfLink != null) { |
| 9288 _json["selfLink"] = selfLink; | 10930 _json["selfLink"] = selfLink; |
| 9289 } | 10931 } |
| 9290 return _json; | 10932 return _json; |
| 9291 } | 10933 } |
| 9292 } | 10934 } |
| 9293 | 10935 |
| 9294 | 10936 |
| 9295 /** Contains a list of disk type resources. */ | 10937 /** Contains a list of ForwardingRule resources. */ |
| 9296 class DiskTypeList { | 10938 class ForwardingRuleList { |
| 9297 /** | 10939 /** |
| 9298 * Unique identifier for the resource; defined by the server (output only). | 10940 * Unique identifier for the resource; defined by the server (output only). |
| 9299 */ | 10941 */ |
| 9300 core.String id; | 10942 core.String id; |
| 9301 | 10943 |
| 9302 /** A list of DiskType resources. */ | 10944 /** A list of ForwardingRule resources. */ |
| 9303 core.List<DiskType> items; | 10945 core.List<ForwardingRule> items; |
| 9304 | 10946 |
| 9305 /** Type of resource. */ | 10947 /** Type of resource. */ |
| 9306 core.String kind; | 10948 core.String kind; |
| 9307 | 10949 |
| 9308 /** A token used to continue a truncated list request (output only). */ | 10950 /** A token used to continue a truncated list request (output only). */ |
| 9309 core.String nextPageToken; | 10951 core.String nextPageToken; |
| 9310 | 10952 |
| 9311 /** Server defined URL for this resource (output only). */ | 10953 /** Server defined URL for this resource (output only). */ |
| 9312 core.String selfLink; | 10954 core.String selfLink; |
| 9313 | 10955 |
| 9314 | 10956 |
| 9315 DiskTypeList(); | 10957 ForwardingRuleList(); |
| 9316 | 10958 |
| 9317 DiskTypeList.fromJson(core.Map _json) { | 10959 ForwardingRuleList.fromJson(core.Map _json) { |
| 9318 if (_json.containsKey("id")) { | 10960 if (_json.containsKey("id")) { |
| 9319 id = _json["id"]; | 10961 id = _json["id"]; |
| 9320 } | 10962 } |
| 9321 if (_json.containsKey("items")) { | 10963 if (_json.containsKey("items")) { |
| 9322 items = _json["items"].map((value) => new DiskType.fromJson(value)).toList
(); | 10964 items = _json["items"].map((value) => new ForwardingRule.fromJson(value)).
toList(); |
| 9323 } | 10965 } |
| 9324 if (_json.containsKey("kind")) { | 10966 if (_json.containsKey("kind")) { |
| 9325 kind = _json["kind"]; | 10967 kind = _json["kind"]; |
| 9326 } | 10968 } |
| 9327 if (_json.containsKey("nextPageToken")) { | 10969 if (_json.containsKey("nextPageToken")) { |
| 9328 nextPageToken = _json["nextPageToken"]; | 10970 nextPageToken = _json["nextPageToken"]; |
| 9329 } | 10971 } |
| 9330 if (_json.containsKey("selfLink")) { | 10972 if (_json.containsKey("selfLink")) { |
| 9331 selfLink = _json["selfLink"]; | 10973 selfLink = _json["selfLink"]; |
| 9332 } | 10974 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9347 _json["nextPageToken"] = nextPageToken; | 10989 _json["nextPageToken"] = nextPageToken; |
| 9348 } | 10990 } |
| 9349 if (selfLink != null) { | 10991 if (selfLink != null) { |
| 9350 _json["selfLink"] = selfLink; | 10992 _json["selfLink"] = selfLink; |
| 9351 } | 10993 } |
| 9352 return _json; | 10994 return _json; |
| 9353 } | 10995 } |
| 9354 } | 10996 } |
| 9355 | 10997 |
| 9356 | 10998 |
| 9357 /** Not documented yet. */ | 10999 class ForwardingRulesScopedListWarningData { |
| 9358 class DiskTypesScopedListWarningData { | 11000 /** [Output Only] A key for the warning data. */ |
| 9359 /** A key for the warning data. */ | |
| 9360 core.String key; | 11001 core.String key; |
| 9361 | 11002 |
| 9362 /** A warning data value corresponding to the key. */ | 11003 /** [Output Only] A warning data value corresponding to the key. */ |
| 9363 core.String value; | 11004 core.String value; |
| 9364 | 11005 |
| 9365 | 11006 |
| 9366 DiskTypesScopedListWarningData(); | 11007 ForwardingRulesScopedListWarningData(); |
| 9367 | 11008 |
| 9368 DiskTypesScopedListWarningData.fromJson(core.Map _json) { | 11009 ForwardingRulesScopedListWarningData.fromJson(core.Map _json) { |
| 9369 if (_json.containsKey("key")) { | 11010 if (_json.containsKey("key")) { |
| 9370 key = _json["key"]; | 11011 key = _json["key"]; |
| 9371 } | 11012 } |
| 9372 if (_json.containsKey("value")) { | 11013 if (_json.containsKey("value")) { |
| 9373 value = _json["value"]; | 11014 value = _json["value"]; |
| 9374 } | 11015 } |
| 9375 } | 11016 } |
| 9376 | 11017 |
| 9377 core.Map toJson() { | 11018 core.Map toJson() { |
| 9378 var _json = new core.Map(); | 11019 var _json = new core.Map(); |
| 9379 if (key != null) { | 11020 if (key != null) { |
| 9380 _json["key"] = key; | 11021 _json["key"] = key; |
| 9381 } | 11022 } |
| 9382 if (value != null) { | 11023 if (value != null) { |
| 9383 _json["value"] = value; | 11024 _json["value"] = value; |
| 9384 } | 11025 } |
| 9385 return _json; | 11026 return _json; |
| 9386 } | 11027 } |
| 9387 } | 11028 } |
| 9388 | 11029 |
| 9389 | 11030 |
| 9390 /** | 11031 /** |
| 9391 * Informational warning which replaces the list of disk types when the list is | 11032 * Informational warning which replaces the list of forwarding rules when the |
| 9392 * empty. | 11033 * list is empty. |
| 9393 */ | 11034 */ |
| 9394 class DiskTypesScopedListWarning { | 11035 class ForwardingRulesScopedListWarning { |
| 9395 /** | 11036 /** |
| 9396 * The warning type identifier for this warning. | 11037 * [Output Only] The warning type identifier for this warning. |
| 9397 * Possible string values are: | 11038 * Possible string values are: |
| 9398 * - "DEPRECATED_RESOURCE_USED" | 11039 * - "DEPRECATED_RESOURCE_USED" |
| 9399 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 11040 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 9400 * - "INJECTED_KERNELS_DEPRECATED" | 11041 * - "INJECTED_KERNELS_DEPRECATED" |
| 9401 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 11042 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 9402 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 11043 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 9403 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 11044 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 9404 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 11045 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 9405 * - "NEXT_HOP_NOT_RUNNING" | 11046 * - "NEXT_HOP_NOT_RUNNING" |
| 9406 * - "NO_RESULTS_ON_PAGE" | 11047 * - "NO_RESULTS_ON_PAGE" |
| 9407 * - "REQUIRED_TOS_AGREEMENT" | 11048 * - "REQUIRED_TOS_AGREEMENT" |
| 9408 * - "RESOURCE_NOT_DELETED" | 11049 * - "RESOURCE_NOT_DELETED" |
| 11050 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 9409 * - "UNREACHABLE" | 11051 * - "UNREACHABLE" |
| 9410 */ | 11052 */ |
| 9411 core.String code; | 11053 core.String code; |
| 9412 | 11054 |
| 9413 /** Metadata for this warning in 'key: value' format. */ | 11055 /** [Output Only] Metadata for this warning in key: value format. */ |
| 9414 core.List<DiskTypesScopedListWarningData> data; | 11056 core.List<ForwardingRulesScopedListWarningData> data; |
| 9415 | 11057 |
| 9416 /** Optional human-readable details for this warning. */ | 11058 /** [Output Only] Optional human-readable details for this warning. */ |
| 9417 core.String message; | 11059 core.String message; |
| 9418 | 11060 |
| 9419 | 11061 |
| 9420 DiskTypesScopedListWarning(); | 11062 ForwardingRulesScopedListWarning(); |
| 9421 | 11063 |
| 9422 DiskTypesScopedListWarning.fromJson(core.Map _json) { | 11064 ForwardingRulesScopedListWarning.fromJson(core.Map _json) { |
| 9423 if (_json.containsKey("code")) { | 11065 if (_json.containsKey("code")) { |
| 9424 code = _json["code"]; | 11066 code = _json["code"]; |
| 9425 } | 11067 } |
| 9426 if (_json.containsKey("data")) { | 11068 if (_json.containsKey("data")) { |
| 9427 data = _json["data"].map((value) => new DiskTypesScopedListWarningData.fro
mJson(value)).toList(); | 11069 data = _json["data"].map((value) => new ForwardingRulesScopedListWarningDa
ta.fromJson(value)).toList(); |
| 9428 } | 11070 } |
| 9429 if (_json.containsKey("message")) { | 11071 if (_json.containsKey("message")) { |
| 9430 message = _json["message"]; | 11072 message = _json["message"]; |
| 9431 } | 11073 } |
| 9432 } | 11074 } |
| 9433 | 11075 |
| 9434 core.Map toJson() { | 11076 core.Map toJson() { |
| 9435 var _json = new core.Map(); | 11077 var _json = new core.Map(); |
| 9436 if (code != null) { | 11078 if (code != null) { |
| 9437 _json["code"] = code; | 11079 _json["code"] = code; |
| 9438 } | 11080 } |
| 9439 if (data != null) { | 11081 if (data != null) { |
| 9440 _json["data"] = data.map((value) => (value).toJson()).toList(); | 11082 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 9441 } | 11083 } |
| 9442 if (message != null) { | 11084 if (message != null) { |
| 9443 _json["message"] = message; | 11085 _json["message"] = message; |
| 9444 } | 11086 } |
| 9445 return _json; | 11087 return _json; |
| 9446 } | 11088 } |
| 9447 } | 11089 } |
| 9448 | 11090 |
| 9449 | 11091 |
| 9450 /** Not documented yet. */ | 11092 class ForwardingRulesScopedList { |
| 9451 class DiskTypesScopedList { | 11093 /** List of forwarding rules contained in this scope. */ |
| 9452 /** List of disk types contained in this scope. */ | 11094 core.List<ForwardingRule> forwardingRules; |
| 9453 core.List<DiskType> diskTypes; | 11095 |
| 9454 | 11096 /** |
| 9455 /** | 11097 * Informational warning which replaces the list of forwarding rules when the |
| 9456 * Informational warning which replaces the list of disk types when the list | 11098 * list is empty. |
| 9457 * is empty. | 11099 */ |
| 9458 */ | 11100 ForwardingRulesScopedListWarning warning; |
| 9459 DiskTypesScopedListWarning warning; | 11101 |
| 9460 | 11102 |
| 9461 | 11103 ForwardingRulesScopedList(); |
| 9462 DiskTypesScopedList(); | 11104 |
| 9463 | 11105 ForwardingRulesScopedList.fromJson(core.Map _json) { |
| 9464 DiskTypesScopedList.fromJson(core.Map _json) { | 11106 if (_json.containsKey("forwardingRules")) { |
| 9465 if (_json.containsKey("diskTypes")) { | 11107 forwardingRules = _json["forwardingRules"].map((value) => new ForwardingRu
le.fromJson(value)).toList(); |
| 9466 diskTypes = _json["diskTypes"].map((value) => new DiskType.fromJson(value)
).toList(); | |
| 9467 } | 11108 } |
| 9468 if (_json.containsKey("warning")) { | 11109 if (_json.containsKey("warning")) { |
| 9469 warning = new DiskTypesScopedListWarning.fromJson(_json["warning"]); | 11110 warning = new ForwardingRulesScopedListWarning.fromJson(_json["warning"]); |
| 9470 } | 11111 } |
| 9471 } | 11112 } |
| 9472 | 11113 |
| 9473 core.Map toJson() { | 11114 core.Map toJson() { |
| 9474 var _json = new core.Map(); | 11115 var _json = new core.Map(); |
| 9475 if (diskTypes != null) { | 11116 if (forwardingRules != null) { |
| 9476 _json["diskTypes"] = diskTypes.map((value) => (value).toJson()).toList(); | 11117 _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()
).toList(); |
| 9477 } | 11118 } |
| 9478 if (warning != null) { | 11119 if (warning != null) { |
| 9479 _json["warning"] = (warning).toJson(); | 11120 _json["warning"] = (warning).toJson(); |
| 9480 } | 11121 } |
| 9481 return _json; | 11122 return _json; |
| 9482 } | 11123 } |
| 9483 } | 11124 } |
| 9484 | 11125 |
| 9485 | 11126 |
| 9486 /** Not documented yet. */ | 11127 class HealthCheckReference { |
| 9487 class DisksScopedListWarningData { | 11128 core.String healthCheck; |
| 9488 /** A key for the warning data. */ | 11129 |
| 9489 core.String key; | 11130 |
| 9490 | 11131 HealthCheckReference(); |
| 9491 /** A warning data value corresponding to the key. */ | 11132 |
| 9492 core.String value; | 11133 HealthCheckReference.fromJson(core.Map _json) { |
| 9493 | 11134 if (_json.containsKey("healthCheck")) { |
| 9494 | 11135 healthCheck = _json["healthCheck"]; |
| 9495 DisksScopedListWarningData(); | 11136 } |
| 9496 | 11137 } |
| 9497 DisksScopedListWarningData.fromJson(core.Map _json) { | 11138 |
| 9498 if (_json.containsKey("key")) { | 11139 core.Map toJson() { |
| 9499 key = _json["key"]; | 11140 var _json = new core.Map(); |
| 9500 } | 11141 if (healthCheck != null) { |
| 9501 if (_json.containsKey("value")) { | 11142 _json["healthCheck"] = healthCheck; |
| 9502 value = _json["value"]; | 11143 } |
| 9503 } | 11144 return _json; |
| 9504 } | 11145 } |
| 9505 | 11146 } |
| 9506 core.Map toJson() { | 11147 |
| 9507 var _json = new core.Map(); | 11148 |
| 9508 if (key != null) { | 11149 class HealthStatus { |
| 9509 _json["key"] = key; | 11150 /** |
| 9510 } | 11151 * Health state of the instance. |
| 9511 if (value != null) { | 11152 * Possible string values are: |
| 9512 _json["value"] = value; | 11153 * - "HEALTHY" |
| 11154 * - "UNHEALTHY" |
| 11155 */ |
| 11156 core.String healthState; |
| 11157 |
| 11158 /** URL of the instance resource. */ |
| 11159 core.String instance; |
| 11160 |
| 11161 /** The IP address represented by this resource. */ |
| 11162 core.String ipAddress; |
| 11163 |
| 11164 /** The port on the instance. */ |
| 11165 core.int port; |
| 11166 |
| 11167 |
| 11168 HealthStatus(); |
| 11169 |
| 11170 HealthStatus.fromJson(core.Map _json) { |
| 11171 if (_json.containsKey("healthState")) { |
| 11172 healthState = _json["healthState"]; |
| 11173 } |
| 11174 if (_json.containsKey("instance")) { |
| 11175 instance = _json["instance"]; |
| 11176 } |
| 11177 if (_json.containsKey("ipAddress")) { |
| 11178 ipAddress = _json["ipAddress"]; |
| 11179 } |
| 11180 if (_json.containsKey("port")) { |
| 11181 port = _json["port"]; |
| 11182 } |
| 11183 } |
| 11184 |
| 11185 core.Map toJson() { |
| 11186 var _json = new core.Map(); |
| 11187 if (healthState != null) { |
| 11188 _json["healthState"] = healthState; |
| 11189 } |
| 11190 if (instance != null) { |
| 11191 _json["instance"] = instance; |
| 11192 } |
| 11193 if (ipAddress != null) { |
| 11194 _json["ipAddress"] = ipAddress; |
| 11195 } |
| 11196 if (port != null) { |
| 11197 _json["port"] = port; |
| 9513 } | 11198 } |
| 9514 return _json; | 11199 return _json; |
| 9515 } | 11200 } |
| 9516 } | 11201 } |
| 9517 | 11202 |
| 9518 | 11203 |
| 9519 /** | 11204 /** |
| 9520 * Informational warning which replaces the list of disks when the list is | 11205 * A host-matching rule for a URL. If matched, will use the named PathMatcher to |
| 9521 * empty. | 11206 * select the BackendService. |
| 9522 */ | 11207 */ |
| 9523 class DisksScopedListWarning { | 11208 class HostRule { |
| 9524 /** | 11209 core.String description; |
| 9525 * The warning type identifier for this warning. | 11210 |
| 9526 * Possible string values are: | 11211 /** |
| 9527 * - "DEPRECATED_RESOURCE_USED" | 11212 * The list of host patterns to match. They must be valid hostnames except |
| 9528 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 11213 * that they may start with *. or *-. The * acts like a glob and will match |
| 9529 * - "INJECTED_KERNELS_DEPRECATED" | 11214 * any string of atoms (separated by .s and -s) to the left. |
| 9530 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 11215 */ |
| 9531 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 11216 core.List<core.String> hosts; |
| 9532 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 11217 |
| 9533 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 11218 /** |
| 9534 * - "NEXT_HOP_NOT_RUNNING" | 11219 * The name of the PathMatcher to match the path portion of the URL, if the |
| 9535 * - "NO_RESULTS_ON_PAGE" | 11220 * this HostRule matches the URL's host portion. |
| 9536 * - "REQUIRED_TOS_AGREEMENT" | 11221 */ |
| 9537 * - "RESOURCE_NOT_DELETED" | 11222 core.String pathMatcher; |
| 9538 * - "UNREACHABLE" | 11223 |
| 9539 */ | 11224 |
| 9540 core.String code; | 11225 HostRule(); |
| 9541 | 11226 |
| 9542 /** Metadata for this warning in 'key: value' format. */ | 11227 HostRule.fromJson(core.Map _json) { |
| 9543 core.List<DisksScopedListWarningData> data; | 11228 if (_json.containsKey("description")) { |
| 9544 | 11229 description = _json["description"]; |
| 9545 /** Optional human-readable details for this warning. */ | 11230 } |
| 9546 core.String message; | 11231 if (_json.containsKey("hosts")) { |
| 9547 | 11232 hosts = _json["hosts"]; |
| 9548 | 11233 } |
| 9549 DisksScopedListWarning(); | 11234 if (_json.containsKey("pathMatcher")) { |
| 9550 | 11235 pathMatcher = _json["pathMatcher"]; |
| 9551 DisksScopedListWarning.fromJson(core.Map _json) { | 11236 } |
| 9552 if (_json.containsKey("code")) { | 11237 } |
| 9553 code = _json["code"]; | 11238 |
| 9554 } | 11239 core.Map toJson() { |
| 9555 if (_json.containsKey("data")) { | 11240 var _json = new core.Map(); |
| 9556 data = _json["data"].map((value) => new DisksScopedListWarningData.fromJso
n(value)).toList(); | 11241 if (description != null) { |
| 9557 } | 11242 _json["description"] = description; |
| 9558 if (_json.containsKey("message")) { | 11243 } |
| 9559 message = _json["message"]; | 11244 if (hosts != null) { |
| 9560 } | 11245 _json["hosts"] = hosts; |
| 9561 } | 11246 } |
| 9562 | 11247 if (pathMatcher != null) { |
| 9563 core.Map toJson() { | 11248 _json["pathMatcher"] = pathMatcher; |
| 9564 var _json = new core.Map(); | 11249 } |
| 9565 if (code != null) { | 11250 return _json; |
| 9566 _json["code"] = code; | 11251 } |
| 9567 } | 11252 } |
| 9568 if (data != null) { | 11253 |
| 9569 _json["data"] = data.map((value) => (value).toJson()).toList(); | 11254 |
| 9570 } | 11255 /** |
| 9571 if (message != null) { | 11256 * An HttpHealthCheck resource. This resource defines a template for how |
| 9572 _json["message"] = message; | 11257 * individual VMs should be checked for health, via HTTP. |
| 9573 } | 11258 */ |
| 9574 return _json; | 11259 class HttpHealthCheck { |
| 9575 } | 11260 /** |
| 9576 } | 11261 * How often (in seconds) to send a health check. The default value is 5 |
| 9577 | 11262 * seconds. |
| 9578 | 11263 */ |
| 9579 /** Not documented yet. */ | 11264 core.int checkIntervalSec; |
| 9580 class DisksScopedList { | |
| 9581 /** List of disks contained in this scope. */ | |
| 9582 core.List<Disk> disks; | |
| 9583 | |
| 9584 /** | |
| 9585 * Informational warning which replaces the list of disks when the list is | |
| 9586 * empty. | |
| 9587 */ | |
| 9588 DisksScopedListWarning warning; | |
| 9589 | |
| 9590 | |
| 9591 DisksScopedList(); | |
| 9592 | |
| 9593 DisksScopedList.fromJson(core.Map _json) { | |
| 9594 if (_json.containsKey("disks")) { | |
| 9595 disks = _json["disks"].map((value) => new Disk.fromJson(value)).toList(); | |
| 9596 } | |
| 9597 if (_json.containsKey("warning")) { | |
| 9598 warning = new DisksScopedListWarning.fromJson(_json["warning"]); | |
| 9599 } | |
| 9600 } | |
| 9601 | |
| 9602 core.Map toJson() { | |
| 9603 var _json = new core.Map(); | |
| 9604 if (disks != null) { | |
| 9605 _json["disks"] = disks.map((value) => (value).toJson()).toList(); | |
| 9606 } | |
| 9607 if (warning != null) { | |
| 9608 _json["warning"] = (warning).toJson(); | |
| 9609 } | |
| 9610 return _json; | |
| 9611 } | |
| 9612 } | |
| 9613 | |
| 9614 | |
| 9615 /** Not documented yet. */ | |
| 9616 class FirewallAllowed { | |
| 9617 /** | |
| 9618 * Required; this is the IP protocol that is allowed for this rule. This can | |
| 9619 * either be one of the following well known protocol strings ["tcp", "udp", | |
| 9620 * "icmp", "esp", "ah", "sctp"], or the IP protocol number. | |
| 9621 */ | |
| 9622 core.String IPProtocol; | |
| 9623 | |
| 9624 /** | |
| 9625 * An optional list of ports which are allowed. It is an error to specify this | |
| 9626 * for any protocol that isn't UDP or TCP. Each entry must be either an | |
| 9627 * integer or a range. If not specified, connections through any port are | |
| 9628 * allowed. | |
| 9629 * | |
| 9630 * Example inputs include: ["22"], ["80","443"] and ["12345-12349"]. | |
| 9631 */ | |
| 9632 core.List<core.String> ports; | |
| 9633 | |
| 9634 | |
| 9635 FirewallAllowed(); | |
| 9636 | |
| 9637 FirewallAllowed.fromJson(core.Map _json) { | |
| 9638 if (_json.containsKey("IPProtocol")) { | |
| 9639 IPProtocol = _json["IPProtocol"]; | |
| 9640 } | |
| 9641 if (_json.containsKey("ports")) { | |
| 9642 ports = _json["ports"]; | |
| 9643 } | |
| 9644 } | |
| 9645 | |
| 9646 core.Map toJson() { | |
| 9647 var _json = new core.Map(); | |
| 9648 if (IPProtocol != null) { | |
| 9649 _json["IPProtocol"] = IPProtocol; | |
| 9650 } | |
| 9651 if (ports != null) { | |
| 9652 _json["ports"] = ports; | |
| 9653 } | |
| 9654 return _json; | |
| 9655 } | |
| 9656 } | |
| 9657 | |
| 9658 | |
| 9659 /** A firewall resource. */ | |
| 9660 class Firewall { | |
| 9661 /** | |
| 9662 * The list of rules specified by this firewall. Each rule specifies a | |
| 9663 * protocol and port-range tuple that describes a permitted connection. | |
| 9664 */ | |
| 9665 core.List<FirewallAllowed> allowed; | |
| 9666 | 11265 |
| 9667 /** Creation timestamp in RFC3339 text format (output only). */ | 11266 /** Creation timestamp in RFC3339 text format (output only). */ |
| 9668 core.String creationTimestamp; | 11267 core.String creationTimestamp; |
| 9669 | 11268 |
| 9670 /** | 11269 /** |
| 9671 * An optional textual description of the resource; provided by the client | 11270 * An optional textual description of the resource; provided by the client |
| 9672 * when the resource is created. | 11271 * when the resource is created. |
| 9673 */ | 11272 */ |
| 9674 core.String description; | 11273 core.String description; |
| 9675 | 11274 |
| 9676 /** | 11275 /** |
| 11276 * A so-far unhealthy VM will be marked healthy after this many consecutive |
| 11277 * successes. The default value is 2. |
| 11278 */ |
| 11279 core.int healthyThreshold; |
| 11280 |
| 11281 /** |
| 11282 * The value of the host header in the HTTP health check request. If left |
| 11283 * empty (default value), the public IP on behalf of which this health check |
| 11284 * is performed will be used. |
| 11285 */ |
| 11286 core.String host; |
| 11287 |
| 11288 /** |
| 9677 * Unique identifier for the resource; defined by the server (output only). | 11289 * Unique identifier for the resource; defined by the server (output only). |
| 9678 */ | 11290 */ |
| 9679 core.String id; | 11291 core.String id; |
| 9680 | 11292 |
| 9681 /** Type of the resource. */ | 11293 /** Type of the resource. */ |
| 9682 core.String kind; | 11294 core.String kind; |
| 9683 | 11295 |
| 9684 /** | 11296 /** |
| 9685 * Name of the resource; provided by the client when the resource is created. | 11297 * Name of the resource; provided by the client when the resource is created. |
| 9686 * The name must be 1-63 characters long, and comply with RFC1035. | 11298 * The name must be 1-63 characters long, and comply with RFC1035. |
| 9687 */ | 11299 */ |
| 9688 core.String name; | 11300 core.String name; |
| 9689 | 11301 |
| 9690 /** | 11302 /** |
| 9691 * URL of the network to which this firewall is applied; provided by the | 11303 * The TCP port number for the HTTP health check request. The default value is |
| 9692 * client when the firewall is created. | 11304 * 80. |
| 9693 */ | 11305 */ |
| 9694 core.String network; | 11306 core.int port; |
| 11307 |
| 11308 /** |
| 11309 * The request path of the HTTP health check request. The default value is |
| 11310 * "/". |
| 11311 */ |
| 11312 core.String requestPath; |
| 9695 | 11313 |
| 9696 /** Server defined URL for the resource (output only). */ | 11314 /** Server defined URL for the resource (output only). */ |
| 9697 core.String selfLink; | 11315 core.String selfLink; |
| 9698 | 11316 |
| 9699 /** | 11317 /** |
| 9700 * A list of IP address blocks expressed in CIDR format which this rule | 11318 * How long (in seconds) to wait before claiming failure. The default value is |
| 9701 * applies to. One or both of sourceRanges and sourceTags may be set; an | 11319 * 5 seconds. It is invalid for timeoutSec to have greater value than |
| 9702 * inbound connection is allowed if either the range or the tag of the source | 11320 * checkIntervalSec. |
| 9703 * matches. | 11321 */ |
| 9704 */ | 11322 core.int timeoutSec; |
| 9705 core.List<core.String> sourceRanges; | 11323 |
| 9706 | 11324 /** |
| 9707 /** | 11325 * A so-far healthy VM will be marked unhealthy after this many consecutive |
| 9708 * A list of instance tags which this rule applies to. One or both of | 11326 * failures. The default value is 2. |
| 9709 * sourceRanges and sourceTags may be set; an inbound connection is allowed if | 11327 */ |
| 9710 * either the range or the tag of the source matches. | 11328 core.int unhealthyThreshold; |
| 9711 */ | 11329 |
| 9712 core.List<core.String> sourceTags; | 11330 |
| 9713 | 11331 HttpHealthCheck(); |
| 9714 /** | 11332 |
| 9715 * A list of instance tags indicating sets of instances located on network | 11333 HttpHealthCheck.fromJson(core.Map _json) { |
| 9716 * which may make network connections as specified in allowed. If no | 11334 if (_json.containsKey("checkIntervalSec")) { |
| 9717 * targetTags are specified, the firewall rule applies to all instances on the | 11335 checkIntervalSec = _json["checkIntervalSec"]; |
| 9718 * specified network. | |
| 9719 */ | |
| 9720 core.List<core.String> targetTags; | |
| 9721 | |
| 9722 | |
| 9723 Firewall(); | |
| 9724 | |
| 9725 Firewall.fromJson(core.Map _json) { | |
| 9726 if (_json.containsKey("allowed")) { | |
| 9727 allowed = _json["allowed"].map((value) => new FirewallAllowed.fromJson(val
ue)).toList(); | |
| 9728 } | 11336 } |
| 9729 if (_json.containsKey("creationTimestamp")) { | 11337 if (_json.containsKey("creationTimestamp")) { |
| 9730 creationTimestamp = _json["creationTimestamp"]; | 11338 creationTimestamp = _json["creationTimestamp"]; |
| 9731 } | 11339 } |
| 9732 if (_json.containsKey("description")) { | 11340 if (_json.containsKey("description")) { |
| 9733 description = _json["description"]; | 11341 description = _json["description"]; |
| 9734 } | 11342 } |
| 11343 if (_json.containsKey("healthyThreshold")) { |
| 11344 healthyThreshold = _json["healthyThreshold"]; |
| 11345 } |
| 11346 if (_json.containsKey("host")) { |
| 11347 host = _json["host"]; |
| 11348 } |
| 9735 if (_json.containsKey("id")) { | 11349 if (_json.containsKey("id")) { |
| 9736 id = _json["id"]; | 11350 id = _json["id"]; |
| 9737 } | 11351 } |
| 9738 if (_json.containsKey("kind")) { | 11352 if (_json.containsKey("kind")) { |
| 9739 kind = _json["kind"]; | 11353 kind = _json["kind"]; |
| 9740 } | 11354 } |
| 9741 if (_json.containsKey("name")) { | 11355 if (_json.containsKey("name")) { |
| 9742 name = _json["name"]; | 11356 name = _json["name"]; |
| 9743 } | 11357 } |
| 9744 if (_json.containsKey("network")) { | 11358 if (_json.containsKey("port")) { |
| 9745 network = _json["network"]; | 11359 port = _json["port"]; |
| 11360 } |
| 11361 if (_json.containsKey("requestPath")) { |
| 11362 requestPath = _json["requestPath"]; |
| 9746 } | 11363 } |
| 9747 if (_json.containsKey("selfLink")) { | 11364 if (_json.containsKey("selfLink")) { |
| 9748 selfLink = _json["selfLink"]; | 11365 selfLink = _json["selfLink"]; |
| 9749 } | 11366 } |
| 9750 if (_json.containsKey("sourceRanges")) { | 11367 if (_json.containsKey("timeoutSec")) { |
| 9751 sourceRanges = _json["sourceRanges"]; | 11368 timeoutSec = _json["timeoutSec"]; |
| 9752 } | 11369 } |
| 9753 if (_json.containsKey("sourceTags")) { | 11370 if (_json.containsKey("unhealthyThreshold")) { |
| 9754 sourceTags = _json["sourceTags"]; | 11371 unhealthyThreshold = _json["unhealthyThreshold"]; |
| 9755 } | 11372 } |
| 9756 if (_json.containsKey("targetTags")) { | 11373 } |
| 9757 targetTags = _json["targetTags"]; | 11374 |
| 9758 } | 11375 core.Map toJson() { |
| 9759 } | 11376 var _json = new core.Map(); |
| 9760 | 11377 if (checkIntervalSec != null) { |
| 9761 core.Map toJson() { | 11378 _json["checkIntervalSec"] = checkIntervalSec; |
| 9762 var _json = new core.Map(); | |
| 9763 if (allowed != null) { | |
| 9764 _json["allowed"] = allowed.map((value) => (value).toJson()).toList(); | |
| 9765 } | 11379 } |
| 9766 if (creationTimestamp != null) { | 11380 if (creationTimestamp != null) { |
| 9767 _json["creationTimestamp"] = creationTimestamp; | 11381 _json["creationTimestamp"] = creationTimestamp; |
| 9768 } | 11382 } |
| 9769 if (description != null) { | 11383 if (description != null) { |
| 9770 _json["description"] = description; | 11384 _json["description"] = description; |
| 9771 } | 11385 } |
| 11386 if (healthyThreshold != null) { |
| 11387 _json["healthyThreshold"] = healthyThreshold; |
| 11388 } |
| 11389 if (host != null) { |
| 11390 _json["host"] = host; |
| 11391 } |
| 9772 if (id != null) { | 11392 if (id != null) { |
| 9773 _json["id"] = id; | 11393 _json["id"] = id; |
| 9774 } | 11394 } |
| 9775 if (kind != null) { | 11395 if (kind != null) { |
| 9776 _json["kind"] = kind; | 11396 _json["kind"] = kind; |
| 9777 } | 11397 } |
| 9778 if (name != null) { | 11398 if (name != null) { |
| 9779 _json["name"] = name; | 11399 _json["name"] = name; |
| 9780 } | 11400 } |
| 9781 if (network != null) { | 11401 if (port != null) { |
| 9782 _json["network"] = network; | 11402 _json["port"] = port; |
| 11403 } |
| 11404 if (requestPath != null) { |
| 11405 _json["requestPath"] = requestPath; |
| 9783 } | 11406 } |
| 9784 if (selfLink != null) { | 11407 if (selfLink != null) { |
| 9785 _json["selfLink"] = selfLink; | 11408 _json["selfLink"] = selfLink; |
| 9786 } | 11409 } |
| 9787 if (sourceRanges != null) { | 11410 if (timeoutSec != null) { |
| 9788 _json["sourceRanges"] = sourceRanges; | 11411 _json["timeoutSec"] = timeoutSec; |
| 9789 } | 11412 } |
| 9790 if (sourceTags != null) { | 11413 if (unhealthyThreshold != null) { |
| 9791 _json["sourceTags"] = sourceTags; | 11414 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 9792 } | 11415 } |
| 9793 if (targetTags != null) { | 11416 return _json; |
| 9794 _json["targetTags"] = targetTags; | 11417 } |
| 9795 } | 11418 } |
| 9796 return _json; | 11419 |
| 9797 } | 11420 |
| 9798 } | 11421 /** Contains a list of HttpHealthCheck resources. */ |
| 9799 | 11422 class HttpHealthCheckList { |
| 9800 | |
| 9801 /** Contains a list of firewall resources. */ | |
| 9802 class FirewallList { | |
| 9803 /** | 11423 /** |
| 9804 * Unique identifier for the resource; defined by the server (output only). | 11424 * Unique identifier for the resource; defined by the server (output only). |
| 9805 */ | 11425 */ |
| 9806 core.String id; | 11426 core.String id; |
| 9807 | 11427 |
| 9808 /** A list of Firewall resources. */ | 11428 /** A list of HttpHealthCheck resources. */ |
| 9809 core.List<Firewall> items; | 11429 core.List<HttpHealthCheck> items; |
| 9810 | 11430 |
| 9811 /** Type of resource. */ | 11431 /** Type of resource. */ |
| 9812 core.String kind; | 11432 core.String kind; |
| 11433 |
| 11434 /** A token used to continue a truncated list request (output only). */ |
| 11435 core.String nextPageToken; |
| 11436 |
| 11437 /** Server defined URL for this resource (output only). */ |
| 11438 core.String selfLink; |
| 11439 |
| 11440 |
| 11441 HttpHealthCheckList(); |
| 11442 |
| 11443 HttpHealthCheckList.fromJson(core.Map _json) { |
| 11444 if (_json.containsKey("id")) { |
| 11445 id = _json["id"]; |
| 11446 } |
| 11447 if (_json.containsKey("items")) { |
| 11448 items = _json["items"].map((value) => new HttpHealthCheck.fromJson(value))
.toList(); |
| 11449 } |
| 11450 if (_json.containsKey("kind")) { |
| 11451 kind = _json["kind"]; |
| 11452 } |
| 11453 if (_json.containsKey("nextPageToken")) { |
| 11454 nextPageToken = _json["nextPageToken"]; |
| 11455 } |
| 11456 if (_json.containsKey("selfLink")) { |
| 11457 selfLink = _json["selfLink"]; |
| 11458 } |
| 11459 } |
| 11460 |
| 11461 core.Map toJson() { |
| 11462 var _json = new core.Map(); |
| 11463 if (id != null) { |
| 11464 _json["id"] = id; |
| 11465 } |
| 11466 if (items != null) { |
| 11467 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11468 } |
| 11469 if (kind != null) { |
| 11470 _json["kind"] = kind; |
| 11471 } |
| 11472 if (nextPageToken != null) { |
| 11473 _json["nextPageToken"] = nextPageToken; |
| 11474 } |
| 11475 if (selfLink != null) { |
| 11476 _json["selfLink"] = selfLink; |
| 11477 } |
| 11478 return _json; |
| 11479 } |
| 11480 } |
| 11481 |
| 11482 |
| 11483 /** The parameters of the raw disk image. */ |
| 11484 class ImageRawDisk { |
| 11485 /** |
| 11486 * The format used to encode and transmit the block device, which should be |
| 11487 * TAR. This is just a container and transmission format and not a runtime |
| 11488 * format. Provided by the client when the disk image is created. |
| 11489 * Possible string values are: |
| 11490 * - "TAR" |
| 11491 */ |
| 11492 core.String containerType; |
| 11493 |
| 11494 /** |
| 11495 * An optional SHA1 checksum of the disk image before unpackaging; provided by |
| 11496 * the client when the disk image is created. |
| 11497 */ |
| 11498 core.String sha1Checksum; |
| 11499 |
| 11500 /** |
| 11501 * The full Google Cloud Storage URL where the disk image is stored. You must |
| 11502 * provide either this property or the sourceDisk property but not both. |
| 11503 */ |
| 11504 core.String source; |
| 11505 |
| 11506 |
| 11507 ImageRawDisk(); |
| 11508 |
| 11509 ImageRawDisk.fromJson(core.Map _json) { |
| 11510 if (_json.containsKey("containerType")) { |
| 11511 containerType = _json["containerType"]; |
| 11512 } |
| 11513 if (_json.containsKey("sha1Checksum")) { |
| 11514 sha1Checksum = _json["sha1Checksum"]; |
| 11515 } |
| 11516 if (_json.containsKey("source")) { |
| 11517 source = _json["source"]; |
| 11518 } |
| 11519 } |
| 11520 |
| 11521 core.Map toJson() { |
| 11522 var _json = new core.Map(); |
| 11523 if (containerType != null) { |
| 11524 _json["containerType"] = containerType; |
| 11525 } |
| 11526 if (sha1Checksum != null) { |
| 11527 _json["sha1Checksum"] = sha1Checksum; |
| 11528 } |
| 11529 if (source != null) { |
| 11530 _json["source"] = source; |
| 11531 } |
| 11532 return _json; |
| 11533 } |
| 11534 } |
| 11535 |
| 11536 |
| 11537 /** An Image resource. */ |
| 11538 class Image { |
| 11539 /** |
| 11540 * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). |
| 11541 */ |
| 11542 core.String archiveSizeBytes; |
| 11543 |
| 11544 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 11545 core.String creationTimestamp; |
| 11546 |
| 11547 /** The deprecation status associated with this image. */ |
| 11548 DeprecationStatus deprecated; |
| 11549 |
| 11550 /** |
| 11551 * Textual description of the resource; provided by the client when the |
| 11552 * resource is created. |
| 11553 */ |
| 11554 core.String description; |
| 11555 |
| 11556 /** Size of the image when restored onto a persistent disk (in GB). */ |
| 11557 core.String diskSizeGb; |
| 11558 |
| 11559 /** |
| 11560 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11561 */ |
| 11562 core.String id; |
| 11563 |
| 11564 /** [Output Only] Type of the resource. Always compute#image for images. */ |
| 11565 core.String kind; |
| 11566 |
| 11567 /** Any applicable publicly visible licenses. */ |
| 11568 core.List<core.String> licenses; |
| 11569 |
| 11570 /** |
| 11571 * Name of the resource; provided by the client when the resource is created. |
| 11572 * The name must be 1-63 characters long, and comply with RFC1035. |
| 11573 * Specifically, the name must be 1-63 characters long and match the regular |
| 11574 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 11575 * be a lowercase letter, and all following characters must be a dash, |
| 11576 * lowercase letter, or digit, except the last character, which cannot be a |
| 11577 * dash. |
| 11578 */ |
| 11579 core.String name; |
| 11580 |
| 11581 /** The parameters of the raw disk image. */ |
| 11582 ImageRawDisk rawDisk; |
| 11583 |
| 11584 /** [Output Only] Server defined URL for the resource. */ |
| 11585 core.String selfLink; |
| 11586 |
| 11587 /** |
| 11588 * URL of the The source disk used to create this image. This can be a full or |
| 11589 * valid partial URL. You must provide either this property or the |
| 11590 * rawDisk.source property but not both to create an image. For example, the |
| 11591 * following are valid values: |
| 11592 * - |
| 11593 * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk |
| 11594 * - projects/project/zones/zone/disk/disk |
| 11595 * - zones/zone/disks/disk |
| 11596 */ |
| 11597 core.String sourceDisk; |
| 11598 |
| 11599 /** |
| 11600 * The ID value of the disk used to create this image. This value may be used |
| 11601 * to determine whether the image was taken from the current or a previous |
| 11602 * instance of a given disk name. |
| 11603 */ |
| 11604 core.String sourceDiskId; |
| 11605 |
| 11606 /** |
| 11607 * The type of the image used to create this disk. The default and only value |
| 11608 * is RAW |
| 11609 * Possible string values are: |
| 11610 * - "RAW" |
| 11611 */ |
| 11612 core.String sourceType; |
| 11613 |
| 11614 /** |
| 11615 * [Output Only] The status of the image. An image can be used to create other |
| 11616 * resources, such as instances, only after the image has been successfully |
| 11617 * created and the status is set to READY. Possible values are FAILED, |
| 11618 * PENDING, or READY. |
| 11619 * Possible string values are: |
| 11620 * - "FAILED" |
| 11621 * - "PENDING" |
| 11622 * - "READY" |
| 11623 */ |
| 11624 core.String status; |
| 11625 |
| 11626 |
| 11627 Image(); |
| 11628 |
| 11629 Image.fromJson(core.Map _json) { |
| 11630 if (_json.containsKey("archiveSizeBytes")) { |
| 11631 archiveSizeBytes = _json["archiveSizeBytes"]; |
| 11632 } |
| 11633 if (_json.containsKey("creationTimestamp")) { |
| 11634 creationTimestamp = _json["creationTimestamp"]; |
| 11635 } |
| 11636 if (_json.containsKey("deprecated")) { |
| 11637 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); |
| 11638 } |
| 11639 if (_json.containsKey("description")) { |
| 11640 description = _json["description"]; |
| 11641 } |
| 11642 if (_json.containsKey("diskSizeGb")) { |
| 11643 diskSizeGb = _json["diskSizeGb"]; |
| 11644 } |
| 11645 if (_json.containsKey("id")) { |
| 11646 id = _json["id"]; |
| 11647 } |
| 11648 if (_json.containsKey("kind")) { |
| 11649 kind = _json["kind"]; |
| 11650 } |
| 11651 if (_json.containsKey("licenses")) { |
| 11652 licenses = _json["licenses"]; |
| 11653 } |
| 11654 if (_json.containsKey("name")) { |
| 11655 name = _json["name"]; |
| 11656 } |
| 11657 if (_json.containsKey("rawDisk")) { |
| 11658 rawDisk = new ImageRawDisk.fromJson(_json["rawDisk"]); |
| 11659 } |
| 11660 if (_json.containsKey("selfLink")) { |
| 11661 selfLink = _json["selfLink"]; |
| 11662 } |
| 11663 if (_json.containsKey("sourceDisk")) { |
| 11664 sourceDisk = _json["sourceDisk"]; |
| 11665 } |
| 11666 if (_json.containsKey("sourceDiskId")) { |
| 11667 sourceDiskId = _json["sourceDiskId"]; |
| 11668 } |
| 11669 if (_json.containsKey("sourceType")) { |
| 11670 sourceType = _json["sourceType"]; |
| 11671 } |
| 11672 if (_json.containsKey("status")) { |
| 11673 status = _json["status"]; |
| 11674 } |
| 11675 } |
| 11676 |
| 11677 core.Map toJson() { |
| 11678 var _json = new core.Map(); |
| 11679 if (archiveSizeBytes != null) { |
| 11680 _json["archiveSizeBytes"] = archiveSizeBytes; |
| 11681 } |
| 11682 if (creationTimestamp != null) { |
| 11683 _json["creationTimestamp"] = creationTimestamp; |
| 11684 } |
| 11685 if (deprecated != null) { |
| 11686 _json["deprecated"] = (deprecated).toJson(); |
| 11687 } |
| 11688 if (description != null) { |
| 11689 _json["description"] = description; |
| 11690 } |
| 11691 if (diskSizeGb != null) { |
| 11692 _json["diskSizeGb"] = diskSizeGb; |
| 11693 } |
| 11694 if (id != null) { |
| 11695 _json["id"] = id; |
| 11696 } |
| 11697 if (kind != null) { |
| 11698 _json["kind"] = kind; |
| 11699 } |
| 11700 if (licenses != null) { |
| 11701 _json["licenses"] = licenses; |
| 11702 } |
| 11703 if (name != null) { |
| 11704 _json["name"] = name; |
| 11705 } |
| 11706 if (rawDisk != null) { |
| 11707 _json["rawDisk"] = (rawDisk).toJson(); |
| 11708 } |
| 11709 if (selfLink != null) { |
| 11710 _json["selfLink"] = selfLink; |
| 11711 } |
| 11712 if (sourceDisk != null) { |
| 11713 _json["sourceDisk"] = sourceDisk; |
| 11714 } |
| 11715 if (sourceDiskId != null) { |
| 11716 _json["sourceDiskId"] = sourceDiskId; |
| 11717 } |
| 11718 if (sourceType != null) { |
| 11719 _json["sourceType"] = sourceType; |
| 11720 } |
| 11721 if (status != null) { |
| 11722 _json["status"] = status; |
| 11723 } |
| 11724 return _json; |
| 11725 } |
| 11726 } |
| 11727 |
| 11728 |
| 11729 /** Contains a list of Image resources. */ |
| 11730 class ImageList { |
| 11731 /** |
| 11732 * Unique identifier for the resource; defined by the server (output only). |
| 11733 */ |
| 11734 core.String id; |
| 11735 |
| 11736 /** A list of Image resources. */ |
| 11737 core.List<Image> items; |
| 11738 |
| 11739 /** Type of resource. */ |
| 11740 core.String kind; |
| 9813 | 11741 |
| 9814 /** A token used to continue a truncated list request (output only). */ | 11742 /** A token used to continue a truncated list request (output only). */ |
| 9815 core.String nextPageToken; | 11743 core.String nextPageToken; |
| 9816 | 11744 |
| 9817 /** Server defined URL for this resource (output only). */ | 11745 /** Server defined URL for this resource (output only). */ |
| 9818 core.String selfLink; | 11746 core.String selfLink; |
| 9819 | 11747 |
| 9820 | 11748 |
| 9821 FirewallList(); | 11749 ImageList(); |
| 9822 | 11750 |
| 9823 FirewallList.fromJson(core.Map _json) { | 11751 ImageList.fromJson(core.Map _json) { |
| 9824 if (_json.containsKey("id")) { | 11752 if (_json.containsKey("id")) { |
| 9825 id = _json["id"]; | 11753 id = _json["id"]; |
| 9826 } | 11754 } |
| 9827 if (_json.containsKey("items")) { | 11755 if (_json.containsKey("items")) { |
| 9828 items = _json["items"].map((value) => new Firewall.fromJson(value)).toList
(); | 11756 items = _json["items"].map((value) => new Image.fromJson(value)).toList(); |
| 9829 } | 11757 } |
| 9830 if (_json.containsKey("kind")) { | 11758 if (_json.containsKey("kind")) { |
| 9831 kind = _json["kind"]; | 11759 kind = _json["kind"]; |
| 9832 } | 11760 } |
| 9833 if (_json.containsKey("nextPageToken")) { | 11761 if (_json.containsKey("nextPageToken")) { |
| 9834 nextPageToken = _json["nextPageToken"]; | 11762 nextPageToken = _json["nextPageToken"]; |
| 9835 } | 11763 } |
| 9836 if (_json.containsKey("selfLink")) { | 11764 if (_json.containsKey("selfLink")) { |
| 9837 selfLink = _json["selfLink"]; | 11765 selfLink = _json["selfLink"]; |
| 9838 } | 11766 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9853 _json["nextPageToken"] = nextPageToken; | 11781 _json["nextPageToken"] = nextPageToken; |
| 9854 } | 11782 } |
| 9855 if (selfLink != null) { | 11783 if (selfLink != null) { |
| 9856 _json["selfLink"] = selfLink; | 11784 _json["selfLink"] = selfLink; |
| 9857 } | 11785 } |
| 9858 return _json; | 11786 return _json; |
| 9859 } | 11787 } |
| 9860 } | 11788 } |
| 9861 | 11789 |
| 9862 | 11790 |
| 9863 /** | 11791 /** An Instance resource. */ |
| 9864 * A ForwardingRule resource. A ForwardingRule resource specifies which pool of | 11792 class Instance { |
| 9865 * target VMs to forward a packet to if it matches the given [IPAddress, | |
| 9866 * IPProtocol, portRange] tuple. | |
| 9867 */ | |
| 9868 class ForwardingRule { | |
| 9869 /** | 11793 /** |
| 9870 * Value of the reserved IP address that this forwarding rule is serving on | 11794 * Allows this instance to send and receive packets with non-matching |
| 9871 * behalf of. For global forwarding rules, the address must be a global IP; | 11795 * destination or source IPs. This is required if you plan to use this |
| 9872 * for regional forwarding rules, the address must live in the same region as | 11796 * instance to forward routes. For more information, see Enabling IP |
| 9873 * the forwarding rule. If left empty (default value), an ephemeral IP from | 11797 * Forwarding. |
| 9874 * the same scope (global or regional) will be assigned. | |
| 9875 */ | 11798 */ |
| 9876 core.String IPAddress; | 11799 core.bool canIpForward; |
| 9877 | 11800 |
| 9878 /** | 11801 /** [Output Only] The CPU platform used by this instance. */ |
| 9879 * The IP protocol to which this rule applies, valid options are 'TCP', 'UDP', | 11802 core.String cpuPlatform; |
| 9880 * 'ESP', 'AH' or 'SCTP'. | |
| 9881 * Possible string values are: | |
| 9882 * - "AH" | |
| 9883 * - "ESP" | |
| 9884 * - "SCTP" | |
| 9885 * - "TCP" | |
| 9886 * - "UDP" | |
| 9887 */ | |
| 9888 core.String IPProtocol; | |
| 9889 | 11803 |
| 9890 /** Creation timestamp in RFC3339 text format (output only). */ | 11804 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 9891 core.String creationTimestamp; | 11805 core.String creationTimestamp; |
| 9892 | 11806 |
| 9893 /** | 11807 /** |
| 9894 * An optional textual description of the resource; provided by the client | 11808 * An optional textual description of the resource; provided by the client |
| 9895 * when the resource is created. | 11809 * when the resource is created. |
| 9896 */ | 11810 */ |
| 9897 core.String description; | 11811 core.String description; |
| 9898 | 11812 |
| 9899 /** | 11813 /** |
| 9900 * Unique identifier for the resource; defined by the server (output only). | 11814 * Array of disks associated with this instance. Persistent disks must be |
| 11815 * created before you can assign them. |
| 11816 */ |
| 11817 core.List<AttachedDisk> disks; |
| 11818 |
| 11819 /** |
| 11820 * [Output Only] Unique identifier for the resource; defined by the server. |
| 9901 */ | 11821 */ |
| 9902 core.String id; | 11822 core.String id; |
| 9903 | 11823 |
| 9904 /** Type of the resource. */ | 11824 /** |
| 11825 * [Output Only] Type of the resource. Always compute#instance for instances. |
| 11826 */ |
| 9905 core.String kind; | 11827 core.String kind; |
| 9906 | 11828 |
| 9907 /** | 11829 /** |
| 11830 * Full or partial URL of the machine type resource to use for this instance. |
| 11831 * This is provided by the client when the instance is created. For example, |
| 11832 * the following is a valid partial url: |
| 11833 * |
| 11834 * zones/zone/machineTypes/machine-type |
| 11835 */ |
| 11836 core.String machineType; |
| 11837 |
| 11838 /** |
| 11839 * The metadata key/value pairs assigned to this instance. This includes |
| 11840 * custom metadata and predefined keys. |
| 11841 */ |
| 11842 Metadata metadata; |
| 11843 |
| 11844 /** |
| 9908 * Name of the resource; provided by the client when the resource is created. | 11845 * Name of the resource; provided by the client when the resource is created. |
| 9909 * The name must be 1-63 characters long, and comply with RFC1035. | 11846 * The name must be 1-63 characters long, and comply with RFC1035. |
| 11847 * Specifically, the name must be 1-63 characters long and match the regular |
| 11848 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 11849 * be a lowercase letter, and all following characters must be a dash, |
| 11850 * lowercase letter, or digit, except the last character, which cannot be a |
| 11851 * dash. |
| 9910 */ | 11852 */ |
| 9911 core.String name; | 11853 core.String name; |
| 9912 | 11854 |
| 9913 /** | 11855 /** |
| 9914 * Applicable only when 'IPProtocol' is 'TCP', 'UDP' or 'SCTP', only packets | 11856 * An array of configurations for this interface. This specifies how this |
| 9915 * addressed to ports in the specified range will be forwarded to 'target'. If | 11857 * interface is configured to interact with other network services, such as |
| 9916 * 'portRange' is left empty (default value), all ports are forwarded. | 11858 * connecting to the internet. |
| 9917 * Forwarding rules with the same [IPAddress, IPProtocol] pair must have | |
| 9918 * disjoint port ranges. | |
| 9919 */ | 11859 */ |
| 9920 core.String portRange; | 11860 core.List<NetworkInterface> networkInterfaces; |
| 9921 | 11861 |
| 9922 /** | 11862 /** Scheduling options for this instance. */ |
| 9923 * URL of the region where the regional forwarding rule resides (output only). | 11863 Scheduling scheduling; |
| 9924 * This field is not applicable to global forwarding rules. | |
| 9925 */ | |
| 9926 core.String region; | |
| 9927 | 11864 |
| 9928 /** Server defined URL for the resource (output only). */ | 11865 /** [Output Only] Server defined URL for this resource. */ |
| 9929 core.String selfLink; | 11866 core.String selfLink; |
| 9930 | 11867 |
| 9931 /** | 11868 /** |
| 9932 * The URL of the target resource to receive the matched traffic. For regional | 11869 * A list of service accounts, with their specified scopes, authorized for |
| 9933 * forwarding rules, this target must live in the same region as the | 11870 * this instance. Service accounts generate access tokens that can be accessed |
| 9934 * forwarding rule. For global forwarding rules, this target must be a global | 11871 * through the metadata server and used to authenticate applications on the |
| 9935 * TargetHttpProxy resource. | 11872 * instance. See Authenticating from Google Compute Engine for more |
| 11873 * information. |
| 9936 */ | 11874 */ |
| 9937 core.String target; | 11875 core.List<ServiceAccount> serviceAccounts; |
| 11876 |
| 11877 /** |
| 11878 * [Output Only] The status of the instance. One of the following values: |
| 11879 * PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, TERMINATED. |
| 11880 * Possible string values are: |
| 11881 * - "PROVISIONING" |
| 11882 * - "RUNNING" |
| 11883 * - "STAGING" |
| 11884 * - "STOPPED" |
| 11885 * - "STOPPING" |
| 11886 * - "TERMINATED" |
| 11887 */ |
| 11888 core.String status; |
| 11889 |
| 11890 /** [Output Only] An optional, human-readable explanation of the status. */ |
| 11891 core.String statusMessage; |
| 11892 |
| 11893 /** |
| 11894 * A list of tags to appy to this instance. Tags are used to identify valid |
| 11895 * sources or targets for network firewalls and are specified by the client |
| 11896 * during instance creation. The tags can be later modified by the setTags |
| 11897 * method. Each tag within the list must comply with RFC1035. |
| 11898 */ |
| 11899 Tags tags; |
| 11900 |
| 11901 /** [Output Only] URL of the zone where the instance resides. */ |
| 11902 core.String zone; |
| 9938 | 11903 |
| 9939 | 11904 |
| 9940 ForwardingRule(); | 11905 Instance(); |
| 9941 | 11906 |
| 9942 ForwardingRule.fromJson(core.Map _json) { | 11907 Instance.fromJson(core.Map _json) { |
| 9943 if (_json.containsKey("IPAddress")) { | 11908 if (_json.containsKey("canIpForward")) { |
| 9944 IPAddress = _json["IPAddress"]; | 11909 canIpForward = _json["canIpForward"]; |
| 9945 } | 11910 } |
| 9946 if (_json.containsKey("IPProtocol")) { | 11911 if (_json.containsKey("cpuPlatform")) { |
| 9947 IPProtocol = _json["IPProtocol"]; | 11912 cpuPlatform = _json["cpuPlatform"]; |
| 9948 } | 11913 } |
| 9949 if (_json.containsKey("creationTimestamp")) { | 11914 if (_json.containsKey("creationTimestamp")) { |
| 9950 creationTimestamp = _json["creationTimestamp"]; | 11915 creationTimestamp = _json["creationTimestamp"]; |
| 9951 } | 11916 } |
| 9952 if (_json.containsKey("description")) { | 11917 if (_json.containsKey("description")) { |
| 9953 description = _json["description"]; | 11918 description = _json["description"]; |
| 9954 } | 11919 } |
| 11920 if (_json.containsKey("disks")) { |
| 11921 disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).to
List(); |
| 11922 } |
| 9955 if (_json.containsKey("id")) { | 11923 if (_json.containsKey("id")) { |
| 9956 id = _json["id"]; | 11924 id = _json["id"]; |
| 9957 } | 11925 } |
| 9958 if (_json.containsKey("kind")) { | 11926 if (_json.containsKey("kind")) { |
| 9959 kind = _json["kind"]; | 11927 kind = _json["kind"]; |
| 9960 } | 11928 } |
| 11929 if (_json.containsKey("machineType")) { |
| 11930 machineType = _json["machineType"]; |
| 11931 } |
| 11932 if (_json.containsKey("metadata")) { |
| 11933 metadata = new Metadata.fromJson(_json["metadata"]); |
| 11934 } |
| 9961 if (_json.containsKey("name")) { | 11935 if (_json.containsKey("name")) { |
| 9962 name = _json["name"]; | 11936 name = _json["name"]; |
| 9963 } | 11937 } |
| 9964 if (_json.containsKey("portRange")) { | 11938 if (_json.containsKey("networkInterfaces")) { |
| 9965 portRange = _json["portRange"]; | 11939 networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkI
nterface.fromJson(value)).toList(); |
| 9966 } | 11940 } |
| 9967 if (_json.containsKey("region")) { | 11941 if (_json.containsKey("scheduling")) { |
| 9968 region = _json["region"]; | 11942 scheduling = new Scheduling.fromJson(_json["scheduling"]); |
| 9969 } | 11943 } |
| 9970 if (_json.containsKey("selfLink")) { | 11944 if (_json.containsKey("selfLink")) { |
| 9971 selfLink = _json["selfLink"]; | 11945 selfLink = _json["selfLink"]; |
| 9972 } | 11946 } |
| 9973 if (_json.containsKey("target")) { | 11947 if (_json.containsKey("serviceAccounts")) { |
| 9974 target = _json["target"]; | 11948 serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccou
nt.fromJson(value)).toList(); |
| 11949 } |
| 11950 if (_json.containsKey("status")) { |
| 11951 status = _json["status"]; |
| 11952 } |
| 11953 if (_json.containsKey("statusMessage")) { |
| 11954 statusMessage = _json["statusMessage"]; |
| 11955 } |
| 11956 if (_json.containsKey("tags")) { |
| 11957 tags = new Tags.fromJson(_json["tags"]); |
| 11958 } |
| 11959 if (_json.containsKey("zone")) { |
| 11960 zone = _json["zone"]; |
| 9975 } | 11961 } |
| 9976 } | 11962 } |
| 9977 | 11963 |
| 9978 core.Map toJson() { | 11964 core.Map toJson() { |
| 9979 var _json = new core.Map(); | 11965 var _json = new core.Map(); |
| 9980 if (IPAddress != null) { | 11966 if (canIpForward != null) { |
| 9981 _json["IPAddress"] = IPAddress; | 11967 _json["canIpForward"] = canIpForward; |
| 9982 } | 11968 } |
| 9983 if (IPProtocol != null) { | 11969 if (cpuPlatform != null) { |
| 9984 _json["IPProtocol"] = IPProtocol; | 11970 _json["cpuPlatform"] = cpuPlatform; |
| 9985 } | 11971 } |
| 9986 if (creationTimestamp != null) { | 11972 if (creationTimestamp != null) { |
| 9987 _json["creationTimestamp"] = creationTimestamp; | 11973 _json["creationTimestamp"] = creationTimestamp; |
| 9988 } | 11974 } |
| 9989 if (description != null) { | 11975 if (description != null) { |
| 9990 _json["description"] = description; | 11976 _json["description"] = description; |
| 9991 } | 11977 } |
| 11978 if (disks != null) { |
| 11979 _json["disks"] = disks.map((value) => (value).toJson()).toList(); |
| 11980 } |
| 9992 if (id != null) { | 11981 if (id != null) { |
| 9993 _json["id"] = id; | 11982 _json["id"] = id; |
| 9994 } | 11983 } |
| 9995 if (kind != null) { | 11984 if (kind != null) { |
| 9996 _json["kind"] = kind; | 11985 _json["kind"] = kind; |
| 9997 } | 11986 } |
| 11987 if (machineType != null) { |
| 11988 _json["machineType"] = machineType; |
| 11989 } |
| 11990 if (metadata != null) { |
| 11991 _json["metadata"] = (metadata).toJson(); |
| 11992 } |
| 9998 if (name != null) { | 11993 if (name != null) { |
| 9999 _json["name"] = name; | 11994 _json["name"] = name; |
| 10000 } | 11995 } |
| 10001 if (portRange != null) { | 11996 if (networkInterfaces != null) { |
| 10002 _json["portRange"] = portRange; | 11997 _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJs
on()).toList(); |
| 10003 } | 11998 } |
| 10004 if (region != null) { | 11999 if (scheduling != null) { |
| 10005 _json["region"] = region; | 12000 _json["scheduling"] = (scheduling).toJson(); |
| 10006 } | 12001 } |
| 10007 if (selfLink != null) { | 12002 if (selfLink != null) { |
| 10008 _json["selfLink"] = selfLink; | 12003 _json["selfLink"] = selfLink; |
| 10009 } | 12004 } |
| 10010 if (target != null) { | 12005 if (serviceAccounts != null) { |
| 10011 _json["target"] = target; | 12006 _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()
).toList(); |
| 12007 } |
| 12008 if (status != null) { |
| 12009 _json["status"] = status; |
| 12010 } |
| 12011 if (statusMessage != null) { |
| 12012 _json["statusMessage"] = statusMessage; |
| 12013 } |
| 12014 if (tags != null) { |
| 12015 _json["tags"] = (tags).toJson(); |
| 12016 } |
| 12017 if (zone != null) { |
| 12018 _json["zone"] = zone; |
| 10012 } | 12019 } |
| 10013 return _json; | 12020 return _json; |
| 10014 } | 12021 } |
| 10015 } | 12022 } |
| 10016 | 12023 |
| 10017 | 12024 |
| 10018 /** Not documented yet. */ | 12025 class InstanceAggregatedList { |
| 10019 class ForwardingRuleAggregatedList { | |
| 10020 /** | 12026 /** |
| 10021 * Unique identifier for the resource; defined by the server (output only). | 12027 * [Output Only] Unique identifier for the resource; defined by the server. |
| 10022 */ | 12028 */ |
| 10023 core.String id; | 12029 core.String id; |
| 10024 | 12030 |
| 10025 /** A map of scoped forwarding rule lists. */ | 12031 /** [Output Only] A map of scoped instance lists. */ |
| 10026 core.Map<core.String, ForwardingRulesScopedList> items; | 12032 core.Map<core.String, InstancesScopedList> items; |
| 10027 | 12033 |
| 10028 /** Type of resource. */ | 12034 /** |
| 12035 * [Output Only] Type of resource. Always compute#instanceAggregatedList for |
| 12036 * aggregated lists of Instance resources. |
| 12037 */ |
| 10029 core.String kind; | 12038 core.String kind; |
| 10030 | 12039 |
| 10031 /** A token used to continue a truncated list request (output only). */ | 12040 /** [Output Only] A token used to continue a truncated list request. */ |
| 10032 core.String nextPageToken; | 12041 core.String nextPageToken; |
| 10033 | 12042 |
| 10034 /** Server defined URL for this resource (output only). */ | 12043 /** [Output Only] Server defined URL for this resource. */ |
| 10035 core.String selfLink; | 12044 core.String selfLink; |
| 10036 | 12045 |
| 10037 | 12046 |
| 10038 ForwardingRuleAggregatedList(); | 12047 InstanceAggregatedList(); |
| 10039 | 12048 |
| 10040 ForwardingRuleAggregatedList.fromJson(core.Map _json) { | 12049 InstanceAggregatedList.fromJson(core.Map _json) { |
| 10041 if (_json.containsKey("id")) { | 12050 if (_json.containsKey("id")) { |
| 10042 id = _json["id"]; | 12051 id = _json["id"]; |
| 10043 } | 12052 } |
| 10044 if (_json.containsKey("items")) { | 12053 if (_json.containsKey("items")) { |
| 10045 items = common_internal.mapMap(_json["items"], (item) => new ForwardingRul
esScopedList.fromJson(item)); | 12054 items = commons.mapMap(_json["items"], (item) => new InstancesScopedList.f
romJson(item)); |
| 10046 } | 12055 } |
| 10047 if (_json.containsKey("kind")) { | 12056 if (_json.containsKey("kind")) { |
| 10048 kind = _json["kind"]; | 12057 kind = _json["kind"]; |
| 10049 } | 12058 } |
| 10050 if (_json.containsKey("nextPageToken")) { | 12059 if (_json.containsKey("nextPageToken")) { |
| 10051 nextPageToken = _json["nextPageToken"]; | 12060 nextPageToken = _json["nextPageToken"]; |
| 10052 } | 12061 } |
| 10053 if (_json.containsKey("selfLink")) { | 12062 if (_json.containsKey("selfLink")) { |
| 10054 selfLink = _json["selfLink"]; | 12063 selfLink = _json["selfLink"]; |
| 10055 } | 12064 } |
| 10056 } | 12065 } |
| 10057 | 12066 |
| 10058 core.Map toJson() { | 12067 core.Map toJson() { |
| 10059 var _json = new core.Map(); | 12068 var _json = new core.Map(); |
| 10060 if (id != null) { | 12069 if (id != null) { |
| 10061 _json["id"] = id; | 12070 _json["id"] = id; |
| 10062 } | 12071 } |
| 10063 if (items != null) { | 12072 if (items != null) { |
| 10064 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | 12073 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 10065 } | 12074 } |
| 10066 if (kind != null) { | 12075 if (kind != null) { |
| 10067 _json["kind"] = kind; | 12076 _json["kind"] = kind; |
| 10068 } | 12077 } |
| 10069 if (nextPageToken != null) { | 12078 if (nextPageToken != null) { |
| 10070 _json["nextPageToken"] = nextPageToken; | 12079 _json["nextPageToken"] = nextPageToken; |
| 10071 } | 12080 } |
| 10072 if (selfLink != null) { | 12081 if (selfLink != null) { |
| 10073 _json["selfLink"] = selfLink; | 12082 _json["selfLink"] = selfLink; |
| 10074 } | 12083 } |
| 10075 return _json; | 12084 return _json; |
| 10076 } | 12085 } |
| 10077 } | 12086 } |
| 10078 | 12087 |
| 10079 | 12088 |
| 10080 /** Contains a list of ForwardingRule resources. */ | 12089 /** Contains a list of instance resources. */ |
| 10081 class ForwardingRuleList { | 12090 class InstanceList { |
| 10082 /** | 12091 /** |
| 10083 * Unique identifier for the resource; defined by the server (output only). | 12092 * [Output Only] Unique identifier for the resource; defined by the server. |
| 10084 */ | 12093 */ |
| 10085 core.String id; | 12094 core.String id; |
| 10086 | 12095 |
| 10087 /** A list of ForwardingRule resources. */ | 12096 /** [Output Only] A list of Instance resources. */ |
| 10088 core.List<ForwardingRule> items; | 12097 core.List<Instance> items; |
| 10089 | 12098 |
| 10090 /** Type of resource. */ | 12099 /** |
| 12100 * [Output Only] Type of resource. Always compute#instanceList for lists of |
| 12101 * Instance resources. |
| 12102 */ |
| 10091 core.String kind; | 12103 core.String kind; |
| 10092 | 12104 |
| 10093 /** A token used to continue a truncated list request (output only). */ | 12105 /** [Output Only] A token used to continue a truncated list request. */ |
| 10094 core.String nextPageToken; | 12106 core.String nextPageToken; |
| 10095 | 12107 |
| 10096 /** Server defined URL for this resource (output only). */ | 12108 /** [Output Only] Server defined URL for this resource. */ |
| 10097 core.String selfLink; | 12109 core.String selfLink; |
| 10098 | 12110 |
| 10099 | 12111 |
| 10100 ForwardingRuleList(); | 12112 InstanceList(); |
| 10101 | 12113 |
| 10102 ForwardingRuleList.fromJson(core.Map _json) { | 12114 InstanceList.fromJson(core.Map _json) { |
| 10103 if (_json.containsKey("id")) { | 12115 if (_json.containsKey("id")) { |
| 10104 id = _json["id"]; | 12116 id = _json["id"]; |
| 10105 } | 12117 } |
| 10106 if (_json.containsKey("items")) { | 12118 if (_json.containsKey("items")) { |
| 10107 items = _json["items"].map((value) => new ForwardingRule.fromJson(value)).
toList(); | 12119 items = _json["items"].map((value) => new Instance.fromJson(value)).toList
(); |
| 10108 } | 12120 } |
| 10109 if (_json.containsKey("kind")) { | 12121 if (_json.containsKey("kind")) { |
| 10110 kind = _json["kind"]; | 12122 kind = _json["kind"]; |
| 10111 } | 12123 } |
| 10112 if (_json.containsKey("nextPageToken")) { | 12124 if (_json.containsKey("nextPageToken")) { |
| 10113 nextPageToken = _json["nextPageToken"]; | 12125 nextPageToken = _json["nextPageToken"]; |
| 10114 } | 12126 } |
| 10115 if (_json.containsKey("selfLink")) { | 12127 if (_json.containsKey("selfLink")) { |
| 10116 selfLink = _json["selfLink"]; | 12128 selfLink = _json["selfLink"]; |
| 10117 } | 12129 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 10132 _json["nextPageToken"] = nextPageToken; | 12144 _json["nextPageToken"] = nextPageToken; |
| 10133 } | 12145 } |
| 10134 if (selfLink != null) { | 12146 if (selfLink != null) { |
| 10135 _json["selfLink"] = selfLink; | 12147 _json["selfLink"] = selfLink; |
| 10136 } | 12148 } |
| 10137 return _json; | 12149 return _json; |
| 10138 } | 12150 } |
| 10139 } | 12151 } |
| 10140 | 12152 |
| 10141 | 12153 |
| 10142 /** Not documented yet. */ | 12154 class InstanceMoveRequest { |
| 10143 class ForwardingRulesScopedListWarningData { | 12155 /** |
| 10144 /** A key for the warning data. */ | 12156 * The URL of the destination zone to move the instance to. This can be a full |
| 10145 core.String key; | 12157 * or partial URL. For example, the following are all valid URLs to a zone: |
| 10146 | 12158 * - https://www.googleapis.com/compute/v1/projects/project/zones/zone |
| 10147 /** A warning data value corresponding to the key. */ | 12159 * - projects/project/zones/zone |
| 10148 core.String value; | 12160 * - zones/zone |
| 10149 | 12161 */ |
| 10150 | 12162 core.String destinationZone; |
| 10151 ForwardingRulesScopedListWarningData(); | 12163 |
| 10152 | 12164 /** |
| 10153 ForwardingRulesScopedListWarningData.fromJson(core.Map _json) { | 12165 * The URL of the target instance to move. This can be a full or partial URL. |
| 10154 if (_json.containsKey("key")) { | 12166 * For example, the following are all valid URLs to an instance: |
| 10155 key = _json["key"]; | 12167 * - |
| 10156 } | 12168 * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances
/instance |
| 10157 if (_json.containsKey("value")) { | 12169 * - projects/project/zones/zone/instances/instance |
| 10158 value = _json["value"]; | 12170 * - zones/zone/instances/instance |
| 12171 */ |
| 12172 core.String targetInstance; |
| 12173 |
| 12174 |
| 12175 InstanceMoveRequest(); |
| 12176 |
| 12177 InstanceMoveRequest.fromJson(core.Map _json) { |
| 12178 if (_json.containsKey("destinationZone")) { |
| 12179 destinationZone = _json["destinationZone"]; |
| 12180 } |
| 12181 if (_json.containsKey("targetInstance")) { |
| 12182 targetInstance = _json["targetInstance"]; |
| 10159 } | 12183 } |
| 10160 } | 12184 } |
| 10161 | 12185 |
| 10162 core.Map toJson() { | 12186 core.Map toJson() { |
| 10163 var _json = new core.Map(); | 12187 var _json = new core.Map(); |
| 10164 if (key != null) { | 12188 if (destinationZone != null) { |
| 10165 _json["key"] = key; | 12189 _json["destinationZone"] = destinationZone; |
| 10166 } | 12190 } |
| 10167 if (value != null) { | 12191 if (targetInstance != null) { |
| 10168 _json["value"] = value; | 12192 _json["targetInstance"] = targetInstance; |
| 10169 } | 12193 } |
| 10170 return _json; | 12194 return _json; |
| 10171 } | 12195 } |
| 10172 } | 12196 } |
| 10173 | 12197 |
| 10174 | 12198 |
| 10175 /** | 12199 class InstanceProperties { |
| 10176 * Informational warning which replaces the list of forwarding rules when the | 12200 /** |
| 10177 * list is empty. | 12201 * Allows instances created based on this template to send packets with source |
| 10178 */ | 12202 * IP addresses other than their own and receive packets with destination IP |
| 10179 class ForwardingRulesScopedListWarning { | 12203 * addresses other than their own. If these instances will be used as an IP |
| 10180 /** | 12204 * gateway or it will be set as the next-hop in a Route resource, say true. If |
| 10181 * The warning type identifier for this warning. | 12205 * unsure, leave this set to false. |
| 10182 * Possible string values are: | 12206 */ |
| 10183 * - "DEPRECATED_RESOURCE_USED" | 12207 core.bool canIpForward; |
| 10184 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 12208 |
| 10185 * - "INJECTED_KERNELS_DEPRECATED" | 12209 /** |
| 10186 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 12210 * An optional textual description for the instances created based on the |
| 10187 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 12211 * instance template resource; provided by the client when the template is |
| 10188 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 12212 * created. |
| 10189 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 12213 */ |
| 10190 * - "NEXT_HOP_NOT_RUNNING" | 12214 core.String description; |
| 10191 * - "NO_RESULTS_ON_PAGE" | 12215 |
| 10192 * - "REQUIRED_TOS_AGREEMENT" | 12216 /** |
| 10193 * - "RESOURCE_NOT_DELETED" | 12217 * Array of disks associated with instance created based on this template. |
| 10194 * - "UNREACHABLE" | 12218 */ |
| 10195 */ | 12219 core.List<AttachedDisk> disks; |
| 10196 core.String code; | 12220 |
| 10197 | 12221 /** |
| 10198 /** Metadata for this warning in 'key: value' format. */ | 12222 * Name of the machine type resource describing which machine type to use to |
| 10199 core.List<ForwardingRulesScopedListWarningData> data; | 12223 * host the instances created based on this template; provided by the client |
| 10200 | 12224 * when the instance template is created. |
| 10201 /** Optional human-readable details for this warning. */ | 12225 */ |
| 10202 core.String message; | 12226 core.String machineType; |
| 10203 | 12227 |
| 10204 | 12228 /** |
| 10205 ForwardingRulesScopedListWarning(); | 12229 * Metadata key/value pairs assigned to instances created based on this |
| 10206 | 12230 * template. Consists of custom metadata or predefined keys; see Instance |
| 10207 ForwardingRulesScopedListWarning.fromJson(core.Map _json) { | 12231 * documentation for more information. |
| 10208 if (_json.containsKey("code")) { | 12232 */ |
| 10209 code = _json["code"]; | 12233 Metadata metadata; |
| 10210 } | 12234 |
| 10211 if (_json.containsKey("data")) { | 12235 /** |
| 10212 data = _json["data"].map((value) => new ForwardingRulesScopedListWarningDa
ta.fromJson(value)).toList(); | 12236 * Array of configurations for this interface. This specifies how this |
| 10213 } | 12237 * interface is configured to interact with other network services, such as |
| 10214 if (_json.containsKey("message")) { | 12238 * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access |
| 10215 message = _json["message"]; | 12239 * config supported. If there are no accessConfigs specified, then this |
| 12240 * instances created based based on this template will have no external |
| 12241 * internet access. |
| 12242 */ |
| 12243 core.List<NetworkInterface> networkInterfaces; |
| 12244 |
| 12245 /** Scheduling options for the instances created based on this template. */ |
| 12246 Scheduling scheduling; |
| 12247 |
| 12248 /** |
| 12249 * A list of service accounts each with specified scopes, for which access |
| 12250 * tokens are to be made available to the instances created based on this |
| 12251 * template, through metadata queries. |
| 12252 */ |
| 12253 core.List<ServiceAccount> serviceAccounts; |
| 12254 |
| 12255 /** |
| 12256 * A list of tags to be applied to the instances created based on this |
| 12257 * template used to identify valid sources or targets for network firewalls. |
| 12258 * Provided by the client on instance creation. The tags can be later modified |
| 12259 * by the setTags method. Each tag within the list must comply with RFC1035. |
| 12260 */ |
| 12261 Tags tags; |
| 12262 |
| 12263 |
| 12264 InstanceProperties(); |
| 12265 |
| 12266 InstanceProperties.fromJson(core.Map _json) { |
| 12267 if (_json.containsKey("canIpForward")) { |
| 12268 canIpForward = _json["canIpForward"]; |
| 12269 } |
| 12270 if (_json.containsKey("description")) { |
| 12271 description = _json["description"]; |
| 12272 } |
| 12273 if (_json.containsKey("disks")) { |
| 12274 disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).to
List(); |
| 12275 } |
| 12276 if (_json.containsKey("machineType")) { |
| 12277 machineType = _json["machineType"]; |
| 12278 } |
| 12279 if (_json.containsKey("metadata")) { |
| 12280 metadata = new Metadata.fromJson(_json["metadata"]); |
| 12281 } |
| 12282 if (_json.containsKey("networkInterfaces")) { |
| 12283 networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkI
nterface.fromJson(value)).toList(); |
| 12284 } |
| 12285 if (_json.containsKey("scheduling")) { |
| 12286 scheduling = new Scheduling.fromJson(_json["scheduling"]); |
| 12287 } |
| 12288 if (_json.containsKey("serviceAccounts")) { |
| 12289 serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccou
nt.fromJson(value)).toList(); |
| 12290 } |
| 12291 if (_json.containsKey("tags")) { |
| 12292 tags = new Tags.fromJson(_json["tags"]); |
| 10216 } | 12293 } |
| 10217 } | 12294 } |
| 10218 | 12295 |
| 10219 core.Map toJson() { | 12296 core.Map toJson() { |
| 10220 var _json = new core.Map(); | 12297 var _json = new core.Map(); |
| 10221 if (code != null) { | 12298 if (canIpForward != null) { |
| 10222 _json["code"] = code; | 12299 _json["canIpForward"] = canIpForward; |
| 10223 } | 12300 } |
| 10224 if (data != null) { | 12301 if (description != null) { |
| 10225 _json["data"] = data.map((value) => (value).toJson()).toList(); | 12302 _json["description"] = description; |
| 10226 } | 12303 } |
| 10227 if (message != null) { | 12304 if (disks != null) { |
| 10228 _json["message"] = message; | 12305 _json["disks"] = disks.map((value) => (value).toJson()).toList(); |
| 12306 } |
| 12307 if (machineType != null) { |
| 12308 _json["machineType"] = machineType; |
| 12309 } |
| 12310 if (metadata != null) { |
| 12311 _json["metadata"] = (metadata).toJson(); |
| 12312 } |
| 12313 if (networkInterfaces != null) { |
| 12314 _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJs
on()).toList(); |
| 12315 } |
| 12316 if (scheduling != null) { |
| 12317 _json["scheduling"] = (scheduling).toJson(); |
| 12318 } |
| 12319 if (serviceAccounts != null) { |
| 12320 _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()
).toList(); |
| 12321 } |
| 12322 if (tags != null) { |
| 12323 _json["tags"] = (tags).toJson(); |
| 10229 } | 12324 } |
| 10230 return _json; | 12325 return _json; |
| 10231 } | 12326 } |
| 10232 } | 12327 } |
| 10233 | 12328 |
| 10234 | 12329 |
| 10235 /** Not documented yet. */ | 12330 class InstanceReference { |
| 10236 class ForwardingRulesScopedList { | 12331 core.String instance; |
| 10237 /** List of forwarding rules contained in this scope. */ | 12332 |
| 10238 core.List<ForwardingRule> forwardingRules; | 12333 |
| 10239 | 12334 InstanceReference(); |
| 10240 /** | 12335 |
| 10241 * Informational warning which replaces the list of forwarding rules when the | 12336 InstanceReference.fromJson(core.Map _json) { |
| 10242 * list is empty. | 12337 if (_json.containsKey("instance")) { |
| 10243 */ | 12338 instance = _json["instance"]; |
| 10244 ForwardingRulesScopedListWarning warning; | |
| 10245 | |
| 10246 | |
| 10247 ForwardingRulesScopedList(); | |
| 10248 | |
| 10249 ForwardingRulesScopedList.fromJson(core.Map _json) { | |
| 10250 if (_json.containsKey("forwardingRules")) { | |
| 10251 forwardingRules = _json["forwardingRules"].map((value) => new ForwardingRu
le.fromJson(value)).toList(); | |
| 10252 } | |
| 10253 if (_json.containsKey("warning")) { | |
| 10254 warning = new ForwardingRulesScopedListWarning.fromJson(_json["warning"]); | |
| 10255 } | 12339 } |
| 10256 } | 12340 } |
| 10257 | 12341 |
| 10258 core.Map toJson() { | 12342 core.Map toJson() { |
| 10259 var _json = new core.Map(); | 12343 var _json = new core.Map(); |
| 10260 if (forwardingRules != null) { | |
| 10261 _json["forwardingRules"] = forwardingRules.map((value) => (value).toJson()
).toList(); | |
| 10262 } | |
| 10263 if (warning != null) { | |
| 10264 _json["warning"] = (warning).toJson(); | |
| 10265 } | |
| 10266 return _json; | |
| 10267 } | |
| 10268 } | |
| 10269 | |
| 10270 | |
| 10271 /** Not documented yet. */ | |
| 10272 class HealthCheckReference { | |
| 10273 /** Not documented yet. */ | |
| 10274 core.String healthCheck; | |
| 10275 | |
| 10276 | |
| 10277 HealthCheckReference(); | |
| 10278 | |
| 10279 HealthCheckReference.fromJson(core.Map _json) { | |
| 10280 if (_json.containsKey("healthCheck")) { | |
| 10281 healthCheck = _json["healthCheck"]; | |
| 10282 } | |
| 10283 } | |
| 10284 | |
| 10285 core.Map toJson() { | |
| 10286 var _json = new core.Map(); | |
| 10287 if (healthCheck != null) { | |
| 10288 _json["healthCheck"] = healthCheck; | |
| 10289 } | |
| 10290 return _json; | |
| 10291 } | |
| 10292 } | |
| 10293 | |
| 10294 | |
| 10295 /** Not documented yet. */ | |
| 10296 class HealthStatus { | |
| 10297 /** | |
| 10298 * Health state of the instance. | |
| 10299 * Possible string values are: | |
| 10300 * - "HEALTHY" | |
| 10301 * - "UNHEALTHY" | |
| 10302 */ | |
| 10303 core.String healthState; | |
| 10304 | |
| 10305 /** URL of the instance resource. */ | |
| 10306 core.String instance; | |
| 10307 | |
| 10308 /** The IP address represented by this resource. */ | |
| 10309 core.String ipAddress; | |
| 10310 | |
| 10311 /** The port on the instance. */ | |
| 10312 core.int port; | |
| 10313 | |
| 10314 | |
| 10315 HealthStatus(); | |
| 10316 | |
| 10317 HealthStatus.fromJson(core.Map _json) { | |
| 10318 if (_json.containsKey("healthState")) { | |
| 10319 healthState = _json["healthState"]; | |
| 10320 } | |
| 10321 if (_json.containsKey("instance")) { | |
| 10322 instance = _json["instance"]; | |
| 10323 } | |
| 10324 if (_json.containsKey("ipAddress")) { | |
| 10325 ipAddress = _json["ipAddress"]; | |
| 10326 } | |
| 10327 if (_json.containsKey("port")) { | |
| 10328 port = _json["port"]; | |
| 10329 } | |
| 10330 } | |
| 10331 | |
| 10332 core.Map toJson() { | |
| 10333 var _json = new core.Map(); | |
| 10334 if (healthState != null) { | |
| 10335 _json["healthState"] = healthState; | |
| 10336 } | |
| 10337 if (instance != null) { | 12344 if (instance != null) { |
| 10338 _json["instance"] = instance; | 12345 _json["instance"] = instance; |
| 10339 } | 12346 } |
| 10340 if (ipAddress != null) { | |
| 10341 _json["ipAddress"] = ipAddress; | |
| 10342 } | |
| 10343 if (port != null) { | |
| 10344 _json["port"] = port; | |
| 10345 } | |
| 10346 return _json; | 12347 return _json; |
| 10347 } | 12348 } |
| 10348 } | 12349 } |
| 10349 | 12350 |
| 10350 | 12351 |
| 10351 /** | 12352 /** An Instance Template resource. */ |
| 10352 * A host-matching rule for a URL. If matched, will use the named PathMatcher to | 12353 class InstanceTemplate { |
| 10353 * select the BackendService. | |
| 10354 */ | |
| 10355 class HostRule { | |
| 10356 /** Not documented yet. */ | |
| 10357 core.String description; | |
| 10358 | |
| 10359 /** | |
| 10360 * The list of host patterns to match. They must be valid hostnames except | |
| 10361 * that they may start with *. or *-. The * acts like a glob and will match | |
| 10362 * any string of atoms (separated by .s and -s) to the left. | |
| 10363 */ | |
| 10364 core.List<core.String> hosts; | |
| 10365 | |
| 10366 /** | |
| 10367 * The name of the PathMatcher to match the path portion of the URL, if the | |
| 10368 * this HostRule matches the URL's host portion. | |
| 10369 */ | |
| 10370 core.String pathMatcher; | |
| 10371 | |
| 10372 | |
| 10373 HostRule(); | |
| 10374 | |
| 10375 HostRule.fromJson(core.Map _json) { | |
| 10376 if (_json.containsKey("description")) { | |
| 10377 description = _json["description"]; | |
| 10378 } | |
| 10379 if (_json.containsKey("hosts")) { | |
| 10380 hosts = _json["hosts"]; | |
| 10381 } | |
| 10382 if (_json.containsKey("pathMatcher")) { | |
| 10383 pathMatcher = _json["pathMatcher"]; | |
| 10384 } | |
| 10385 } | |
| 10386 | |
| 10387 core.Map toJson() { | |
| 10388 var _json = new core.Map(); | |
| 10389 if (description != null) { | |
| 10390 _json["description"] = description; | |
| 10391 } | |
| 10392 if (hosts != null) { | |
| 10393 _json["hosts"] = hosts; | |
| 10394 } | |
| 10395 if (pathMatcher != null) { | |
| 10396 _json["pathMatcher"] = pathMatcher; | |
| 10397 } | |
| 10398 return _json; | |
| 10399 } | |
| 10400 } | |
| 10401 | |
| 10402 | |
| 10403 /** | |
| 10404 * An HttpHealthCheck resource. This resource defines a template for how | |
| 10405 * individual VMs should be checked for health, via HTTP. | |
| 10406 */ | |
| 10407 class HttpHealthCheck { | |
| 10408 /** | |
| 10409 * How often (in seconds) to send a health check. The default value is 5 | |
| 10410 * seconds. | |
| 10411 */ | |
| 10412 core.int checkIntervalSec; | |
| 10413 | |
| 10414 /** Creation timestamp in RFC3339 text format (output only). */ | 12354 /** Creation timestamp in RFC3339 text format (output only). */ |
| 10415 core.String creationTimestamp; | 12355 core.String creationTimestamp; |
| 10416 | 12356 |
| 10417 /** | 12357 /** |
| 10418 * An optional textual description of the resource; provided by the client | 12358 * An optional textual description of the instance template resource; provided |
| 10419 * when the resource is created. | 12359 * by the client when the resource is created. |
| 10420 */ | 12360 */ |
| 10421 core.String description; | 12361 core.String description; |
| 10422 | 12362 |
| 10423 /** | 12363 /** |
| 10424 * A so-far unhealthy VM will be marked healthy after this many consecutive | |
| 10425 * successes. The default value is 2. | |
| 10426 */ | |
| 10427 core.int healthyThreshold; | |
| 10428 | |
| 10429 /** | |
| 10430 * The value of the host header in the HTTP health check request. If left | |
| 10431 * empty (default value), the public IP on behalf of which this health check | |
| 10432 * is performed will be used. | |
| 10433 */ | |
| 10434 core.String host; | |
| 10435 | |
| 10436 /** | |
| 10437 * Unique identifier for the resource; defined by the server (output only). | 12364 * Unique identifier for the resource; defined by the server (output only). |
| 10438 */ | 12365 */ |
| 10439 core.String id; | 12366 core.String id; |
| 10440 | 12367 |
| 10441 /** Type of the resource. */ | 12368 /** Type of the resource. */ |
| 10442 core.String kind; | 12369 core.String kind; |
| 10443 | 12370 |
| 10444 /** | 12371 /** |
| 10445 * Name of the resource; provided by the client when the resource is created. | 12372 * Name of the instance template resource; provided by the client when the |
| 10446 * The name must be 1-63 characters long, and comply with RFC1035. | 12373 * resource is created. The name must be 1-63 characters long, and comply with |
| 12374 * RFC1035 |
| 10447 */ | 12375 */ |
| 10448 core.String name; | 12376 core.String name; |
| 10449 | 12377 |
| 10450 /** | 12378 /** The instance properties portion of this instance template resource. */ |
| 10451 * The TCP port number for the HTTP health check request. The default value is | 12379 InstanceProperties properties; |
| 10452 * 80. | |
| 10453 */ | |
| 10454 core.int port; | |
| 10455 | |
| 10456 /** | |
| 10457 * The request path of the HTTP health check request. The default value is | |
| 10458 * "/". | |
| 10459 */ | |
| 10460 core.String requestPath; | |
| 10461 | 12380 |
| 10462 /** Server defined URL for the resource (output only). */ | 12381 /** Server defined URL for the resource (output only). */ |
| 10463 core.String selfLink; | 12382 core.String selfLink; |
| 10464 | 12383 |
| 10465 /** | |
| 10466 * How long (in seconds) to wait before claiming failure. The default value is | |
| 10467 * 5 seconds. It is invalid for timeoutSec to have greater value than | |
| 10468 * checkIntervalSec. | |
| 10469 */ | |
| 10470 core.int timeoutSec; | |
| 10471 | 12384 |
| 10472 /** | 12385 InstanceTemplate(); |
| 10473 * A so-far healthy VM will be marked unhealthy after this many consecutive | |
| 10474 * failures. The default value is 2. | |
| 10475 */ | |
| 10476 core.int unhealthyThreshold; | |
| 10477 | 12386 |
| 10478 | 12387 InstanceTemplate.fromJson(core.Map _json) { |
| 10479 HttpHealthCheck(); | |
| 10480 | |
| 10481 HttpHealthCheck.fromJson(core.Map _json) { | |
| 10482 if (_json.containsKey("checkIntervalSec")) { | |
| 10483 checkIntervalSec = _json["checkIntervalSec"]; | |
| 10484 } | |
| 10485 if (_json.containsKey("creationTimestamp")) { | 12388 if (_json.containsKey("creationTimestamp")) { |
| 10486 creationTimestamp = _json["creationTimestamp"]; | 12389 creationTimestamp = _json["creationTimestamp"]; |
| 10487 } | 12390 } |
| 10488 if (_json.containsKey("description")) { | 12391 if (_json.containsKey("description")) { |
| 10489 description = _json["description"]; | 12392 description = _json["description"]; |
| 10490 } | 12393 } |
| 10491 if (_json.containsKey("healthyThreshold")) { | |
| 10492 healthyThreshold = _json["healthyThreshold"]; | |
| 10493 } | |
| 10494 if (_json.containsKey("host")) { | |
| 10495 host = _json["host"]; | |
| 10496 } | |
| 10497 if (_json.containsKey("id")) { | 12394 if (_json.containsKey("id")) { |
| 10498 id = _json["id"]; | 12395 id = _json["id"]; |
| 10499 } | 12396 } |
| 10500 if (_json.containsKey("kind")) { | 12397 if (_json.containsKey("kind")) { |
| 10501 kind = _json["kind"]; | 12398 kind = _json["kind"]; |
| 10502 } | 12399 } |
| 10503 if (_json.containsKey("name")) { | 12400 if (_json.containsKey("name")) { |
| 10504 name = _json["name"]; | 12401 name = _json["name"]; |
| 10505 } | 12402 } |
| 10506 if (_json.containsKey("port")) { | 12403 if (_json.containsKey("properties")) { |
| 10507 port = _json["port"]; | 12404 properties = new InstanceProperties.fromJson(_json["properties"]); |
| 10508 } | |
| 10509 if (_json.containsKey("requestPath")) { | |
| 10510 requestPath = _json["requestPath"]; | |
| 10511 } | 12405 } |
| 10512 if (_json.containsKey("selfLink")) { | 12406 if (_json.containsKey("selfLink")) { |
| 10513 selfLink = _json["selfLink"]; | 12407 selfLink = _json["selfLink"]; |
| 10514 } | 12408 } |
| 10515 if (_json.containsKey("timeoutSec")) { | |
| 10516 timeoutSec = _json["timeoutSec"]; | |
| 10517 } | |
| 10518 if (_json.containsKey("unhealthyThreshold")) { | |
| 10519 unhealthyThreshold = _json["unhealthyThreshold"]; | |
| 10520 } | |
| 10521 } | 12409 } |
| 10522 | 12410 |
| 10523 core.Map toJson() { | 12411 core.Map toJson() { |
| 10524 var _json = new core.Map(); | 12412 var _json = new core.Map(); |
| 10525 if (checkIntervalSec != null) { | |
| 10526 _json["checkIntervalSec"] = checkIntervalSec; | |
| 10527 } | |
| 10528 if (creationTimestamp != null) { | 12413 if (creationTimestamp != null) { |
| 10529 _json["creationTimestamp"] = creationTimestamp; | 12414 _json["creationTimestamp"] = creationTimestamp; |
| 10530 } | 12415 } |
| 10531 if (description != null) { | 12416 if (description != null) { |
| 10532 _json["description"] = description; | 12417 _json["description"] = description; |
| 10533 } | 12418 } |
| 10534 if (healthyThreshold != null) { | |
| 10535 _json["healthyThreshold"] = healthyThreshold; | |
| 10536 } | |
| 10537 if (host != null) { | |
| 10538 _json["host"] = host; | |
| 10539 } | |
| 10540 if (id != null) { | 12419 if (id != null) { |
| 10541 _json["id"] = id; | 12420 _json["id"] = id; |
| 10542 } | 12421 } |
| 10543 if (kind != null) { | 12422 if (kind != null) { |
| 10544 _json["kind"] = kind; | 12423 _json["kind"] = kind; |
| 10545 } | 12424 } |
| 10546 if (name != null) { | 12425 if (name != null) { |
| 10547 _json["name"] = name; | 12426 _json["name"] = name; |
| 10548 } | 12427 } |
| 10549 if (port != null) { | 12428 if (properties != null) { |
| 10550 _json["port"] = port; | 12429 _json["properties"] = (properties).toJson(); |
| 10551 } | |
| 10552 if (requestPath != null) { | |
| 10553 _json["requestPath"] = requestPath; | |
| 10554 } | 12430 } |
| 10555 if (selfLink != null) { | 12431 if (selfLink != null) { |
| 10556 _json["selfLink"] = selfLink; | 12432 _json["selfLink"] = selfLink; |
| 10557 } | 12433 } |
| 10558 if (timeoutSec != null) { | |
| 10559 _json["timeoutSec"] = timeoutSec; | |
| 10560 } | |
| 10561 if (unhealthyThreshold != null) { | |
| 10562 _json["unhealthyThreshold"] = unhealthyThreshold; | |
| 10563 } | |
| 10564 return _json; | 12434 return _json; |
| 10565 } | 12435 } |
| 10566 } | 12436 } |
| 10567 | 12437 |
| 10568 | 12438 |
| 10569 /** Contains a list of HttpHealthCheck resources. */ | 12439 /** Contains a list of instance template resources. */ |
| 10570 class HttpHealthCheckList { | 12440 class InstanceTemplateList { |
| 10571 /** | 12441 /** |
| 10572 * Unique identifier for the resource; defined by the server (output only). | 12442 * Unique identifier for the resource; defined by the server (output only). |
| 10573 */ | 12443 */ |
| 10574 core.String id; | 12444 core.String id; |
| 10575 | 12445 |
| 10576 /** A list of HttpHealthCheck resources. */ | 12446 /** A list of InstanceTemplate resources. */ |
| 10577 core.List<HttpHealthCheck> items; | 12447 core.List<InstanceTemplate> items; |
| 10578 | 12448 |
| 10579 /** Type of resource. */ | 12449 /** Type of resource. */ |
| 10580 core.String kind; | 12450 core.String kind; |
| 10581 | 12451 |
| 10582 /** A token used to continue a truncated list request (output only). */ | 12452 /** A token used to continue a truncated list request (output only). */ |
| 10583 core.String nextPageToken; | 12453 core.String nextPageToken; |
| 10584 | 12454 |
| 10585 /** Server defined URL for this resource (output only). */ | 12455 /** Server defined URL for this resource (output only). */ |
| 10586 core.String selfLink; | 12456 core.String selfLink; |
| 10587 | 12457 |
| 10588 | 12458 |
| 10589 HttpHealthCheckList(); | 12459 InstanceTemplateList(); |
| 10590 | 12460 |
| 10591 HttpHealthCheckList.fromJson(core.Map _json) { | 12461 InstanceTemplateList.fromJson(core.Map _json) { |
| 10592 if (_json.containsKey("id")) { | 12462 if (_json.containsKey("id")) { |
| 10593 id = _json["id"]; | 12463 id = _json["id"]; |
| 10594 } | 12464 } |
| 10595 if (_json.containsKey("items")) { | 12465 if (_json.containsKey("items")) { |
| 10596 items = _json["items"].map((value) => new HttpHealthCheck.fromJson(value))
.toList(); | 12466 items = _json["items"].map((value) => new InstanceTemplate.fromJson(value)
).toList(); |
| 10597 } | 12467 } |
| 10598 if (_json.containsKey("kind")) { | 12468 if (_json.containsKey("kind")) { |
| 10599 kind = _json["kind"]; | 12469 kind = _json["kind"]; |
| 10600 } | 12470 } |
| 10601 if (_json.containsKey("nextPageToken")) { | 12471 if (_json.containsKey("nextPageToken")) { |
| 10602 nextPageToken = _json["nextPageToken"]; | 12472 nextPageToken = _json["nextPageToken"]; |
| 10603 } | 12473 } |
| 10604 if (_json.containsKey("selfLink")) { | 12474 if (_json.containsKey("selfLink")) { |
| 10605 selfLink = _json["selfLink"]; | 12475 selfLink = _json["selfLink"]; |
| 10606 } | 12476 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 10621 _json["nextPageToken"] = nextPageToken; | 12491 _json["nextPageToken"] = nextPageToken; |
| 10622 } | 12492 } |
| 10623 if (selfLink != null) { | 12493 if (selfLink != null) { |
| 10624 _json["selfLink"] = selfLink; | 12494 _json["selfLink"] = selfLink; |
| 10625 } | 12495 } |
| 10626 return _json; | 12496 return _json; |
| 10627 } | 12497 } |
| 10628 } | 12498 } |
| 10629 | 12499 |
| 10630 | 12500 |
| 10631 /** The raw disk image parameters. */ | 12501 class InstancesScopedListWarningData { |
| 10632 class ImageRawDisk { | 12502 /** [Output Only] A key for the warning data. */ |
| 10633 /** | 12503 core.String key; |
| 10634 * The format used to encode and transmit the block device. Should be TAR. | |
| 10635 * This is just a container and transmission format and not a runtime format. | |
| 10636 * Provided by the client when the disk image is created. | |
| 10637 * Possible string values are: | |
| 10638 * - "TAR" | |
| 10639 */ | |
| 10640 core.String containerType; | |
| 10641 | 12504 |
| 10642 /** | 12505 /** [Output Only] A warning data value corresponding to the key. */ |
| 10643 * An optional SHA1 checksum of the disk image before unpackaging; provided by | 12506 core.String value; |
| 10644 * the client when the disk image is created. | |
| 10645 */ | |
| 10646 core.String sha1Checksum; | |
| 10647 | |
| 10648 /** | |
| 10649 * The full Google Cloud Storage URL where the disk image is stored; provided | |
| 10650 * by the client when the disk image is created. | |
| 10651 */ | |
| 10652 core.String source; | |
| 10653 | 12507 |
| 10654 | 12508 |
| 10655 ImageRawDisk(); | 12509 InstancesScopedListWarningData(); |
| 10656 | 12510 |
| 10657 ImageRawDisk.fromJson(core.Map _json) { | 12511 InstancesScopedListWarningData.fromJson(core.Map _json) { |
| 10658 if (_json.containsKey("containerType")) { | 12512 if (_json.containsKey("key")) { |
| 10659 containerType = _json["containerType"]; | 12513 key = _json["key"]; |
| 10660 } | 12514 } |
| 10661 if (_json.containsKey("sha1Checksum")) { | 12515 if (_json.containsKey("value")) { |
| 10662 sha1Checksum = _json["sha1Checksum"]; | 12516 value = _json["value"]; |
| 10663 } | |
| 10664 if (_json.containsKey("source")) { | |
| 10665 source = _json["source"]; | |
| 10666 } | 12517 } |
| 10667 } | 12518 } |
| 10668 | 12519 |
| 10669 core.Map toJson() { | 12520 core.Map toJson() { |
| 10670 var _json = new core.Map(); | 12521 var _json = new core.Map(); |
| 10671 if (containerType != null) { | 12522 if (key != null) { |
| 10672 _json["containerType"] = containerType; | 12523 _json["key"] = key; |
| 10673 } | 12524 } |
| 10674 if (sha1Checksum != null) { | 12525 if (value != null) { |
| 10675 _json["sha1Checksum"] = sha1Checksum; | 12526 _json["value"] = value; |
| 10676 } | |
| 10677 if (source != null) { | |
| 10678 _json["source"] = source; | |
| 10679 } | 12527 } |
| 10680 return _json; | 12528 return _json; |
| 10681 } | 12529 } |
| 10682 } | 12530 } |
| 10683 | 12531 |
| 10684 | 12532 |
| 10685 /** A disk image resource. */ | 12533 /** |
| 10686 class Image { | 12534 * [Output Only] Informational warning which replaces the list of instances when |
| 12535 * the list is empty. |
| 12536 */ |
| 12537 class InstancesScopedListWarning { |
| 10687 /** | 12538 /** |
| 10688 * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). | 12539 * [Output Only] The warning type identifier for this warning. |
| 12540 * Possible string values are: |
| 12541 * - "DEPRECATED_RESOURCE_USED" |
| 12542 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 12543 * - "INJECTED_KERNELS_DEPRECATED" |
| 12544 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 12545 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 12546 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 12547 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 12548 * - "NEXT_HOP_NOT_RUNNING" |
| 12549 * - "NO_RESULTS_ON_PAGE" |
| 12550 * - "REQUIRED_TOS_AGREEMENT" |
| 12551 * - "RESOURCE_NOT_DELETED" |
| 12552 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 12553 * - "UNREACHABLE" |
| 10689 */ | 12554 */ |
| 10690 core.String archiveSizeBytes; | 12555 core.String code; |
| 10691 | 12556 |
| 10692 /** Creation timestamp in RFC3339 text format (output only). */ | 12557 /** [Output Only] Metadata for this warning in key: value format. */ |
| 10693 core.String creationTimestamp; | 12558 core.List<InstancesScopedListWarningData> data; |
| 10694 | 12559 |
| 10695 /** The deprecation status associated with this image. */ | 12560 /** [Output Only] Optional human-readable details for this warning. */ |
| 10696 DeprecationStatus deprecated; | 12561 core.String message; |
| 10697 | |
| 10698 /** | |
| 10699 * Textual description of the resource; provided by the client when the | |
| 10700 * resource is created. | |
| 10701 */ | |
| 10702 core.String description; | |
| 10703 | |
| 10704 /** Size of the image when restored onto a disk (in GiB). */ | |
| 10705 core.String diskSizeGb; | |
| 10706 | |
| 10707 /** | |
| 10708 * Unique identifier for the resource; defined by the server (output only). | |
| 10709 */ | |
| 10710 core.String id; | |
| 10711 | |
| 10712 /** Type of the resource. */ | |
| 10713 core.String kind; | |
| 10714 | |
| 10715 /** Public visible licenses. */ | |
| 10716 core.List<core.String> licenses; | |
| 10717 | |
| 10718 /** | |
| 10719 * Name of the resource; provided by the client when the resource is created. | |
| 10720 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 10721 */ | |
| 10722 core.String name; | |
| 10723 | |
| 10724 /** The raw disk image parameters. */ | |
| 10725 ImageRawDisk rawDisk; | |
| 10726 | |
| 10727 /** Server defined URL for the resource (output only). */ | |
| 10728 core.String selfLink; | |
| 10729 | |
| 10730 /** The source disk used to create this image. */ | |
| 10731 core.String sourceDisk; | |
| 10732 | |
| 10733 /** | |
| 10734 * The 'id' value of the disk used to create this image. This value may be | |
| 10735 * used to determine whether the image was taken from the current or a | |
| 10736 * previous instance of a given disk name. | |
| 10737 */ | |
| 10738 core.String sourceDiskId; | |
| 10739 | |
| 10740 /** | |
| 10741 * Must be "RAW"; provided by the client when the disk image is created. | |
| 10742 * Possible string values are: | |
| 10743 * - "RAW" | |
| 10744 */ | |
| 10745 core.String sourceType; | |
| 10746 | |
| 10747 /** | |
| 10748 * Status of the image (output only). It will be one of the following READY - | |
| 10749 * after image has been successfully created and is ready for use FAILED - if | |
| 10750 * creating the image fails for some reason PENDING - the image creation is in | |
| 10751 * progress An image can be used to create other resources suck as instances | |
| 10752 * only after the image has been successfully created and the status is set to | |
| 10753 * READY. | |
| 10754 * Possible string values are: | |
| 10755 * - "FAILED" | |
| 10756 * - "PENDING" | |
| 10757 * - "READY" | |
| 10758 */ | |
| 10759 core.String status; | |
| 10760 | 12562 |
| 10761 | 12563 |
| 10762 Image(); | 12564 InstancesScopedListWarning(); |
| 10763 | 12565 |
| 10764 Image.fromJson(core.Map _json) { | 12566 InstancesScopedListWarning.fromJson(core.Map _json) { |
| 10765 if (_json.containsKey("archiveSizeBytes")) { | 12567 if (_json.containsKey("code")) { |
| 10766 archiveSizeBytes = _json["archiveSizeBytes"]; | 12568 code = _json["code"]; |
| 10767 } | 12569 } |
| 10768 if (_json.containsKey("creationTimestamp")) { | 12570 if (_json.containsKey("data")) { |
| 10769 creationTimestamp = _json["creationTimestamp"]; | 12571 data = _json["data"].map((value) => new InstancesScopedListWarningData.fro
mJson(value)).toList(); |
| 10770 } | 12572 } |
| 10771 if (_json.containsKey("deprecated")) { | 12573 if (_json.containsKey("message")) { |
| 10772 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); | 12574 message = _json["message"]; |
| 10773 } | |
| 10774 if (_json.containsKey("description")) { | |
| 10775 description = _json["description"]; | |
| 10776 } | |
| 10777 if (_json.containsKey("diskSizeGb")) { | |
| 10778 diskSizeGb = _json["diskSizeGb"]; | |
| 10779 } | |
| 10780 if (_json.containsKey("id")) { | |
| 10781 id = _json["id"]; | |
| 10782 } | |
| 10783 if (_json.containsKey("kind")) { | |
| 10784 kind = _json["kind"]; | |
| 10785 } | |
| 10786 if (_json.containsKey("licenses")) { | |
| 10787 licenses = _json["licenses"]; | |
| 10788 } | |
| 10789 if (_json.containsKey("name")) { | |
| 10790 name = _json["name"]; | |
| 10791 } | |
| 10792 if (_json.containsKey("rawDisk")) { | |
| 10793 rawDisk = new ImageRawDisk.fromJson(_json["rawDisk"]); | |
| 10794 } | |
| 10795 if (_json.containsKey("selfLink")) { | |
| 10796 selfLink = _json["selfLink"]; | |
| 10797 } | |
| 10798 if (_json.containsKey("sourceDisk")) { | |
| 10799 sourceDisk = _json["sourceDisk"]; | |
| 10800 } | |
| 10801 if (_json.containsKey("sourceDiskId")) { | |
| 10802 sourceDiskId = _json["sourceDiskId"]; | |
| 10803 } | |
| 10804 if (_json.containsKey("sourceType")) { | |
| 10805 sourceType = _json["sourceType"]; | |
| 10806 } | |
| 10807 if (_json.containsKey("status")) { | |
| 10808 status = _json["status"]; | |
| 10809 } | 12575 } |
| 10810 } | 12576 } |
| 10811 | 12577 |
| 10812 core.Map toJson() { | 12578 core.Map toJson() { |
| 10813 var _json = new core.Map(); | 12579 var _json = new core.Map(); |
| 10814 if (archiveSizeBytes != null) { | 12580 if (code != null) { |
| 10815 _json["archiveSizeBytes"] = archiveSizeBytes; | 12581 _json["code"] = code; |
| 10816 } | 12582 } |
| 10817 if (creationTimestamp != null) { | 12583 if (data != null) { |
| 10818 _json["creationTimestamp"] = creationTimestamp; | 12584 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 10819 } | 12585 } |
| 10820 if (deprecated != null) { | 12586 if (message != null) { |
| 10821 _json["deprecated"] = (deprecated).toJson(); | 12587 _json["message"] = message; |
| 10822 } | |
| 10823 if (description != null) { | |
| 10824 _json["description"] = description; | |
| 10825 } | |
| 10826 if (diskSizeGb != null) { | |
| 10827 _json["diskSizeGb"] = diskSizeGb; | |
| 10828 } | |
| 10829 if (id != null) { | |
| 10830 _json["id"] = id; | |
| 10831 } | |
| 10832 if (kind != null) { | |
| 10833 _json["kind"] = kind; | |
| 10834 } | |
| 10835 if (licenses != null) { | |
| 10836 _json["licenses"] = licenses; | |
| 10837 } | |
| 10838 if (name != null) { | |
| 10839 _json["name"] = name; | |
| 10840 } | |
| 10841 if (rawDisk != null) { | |
| 10842 _json["rawDisk"] = (rawDisk).toJson(); | |
| 10843 } | |
| 10844 if (selfLink != null) { | |
| 10845 _json["selfLink"] = selfLink; | |
| 10846 } | |
| 10847 if (sourceDisk != null) { | |
| 10848 _json["sourceDisk"] = sourceDisk; | |
| 10849 } | |
| 10850 if (sourceDiskId != null) { | |
| 10851 _json["sourceDiskId"] = sourceDiskId; | |
| 10852 } | |
| 10853 if (sourceType != null) { | |
| 10854 _json["sourceType"] = sourceType; | |
| 10855 } | |
| 10856 if (status != null) { | |
| 10857 _json["status"] = status; | |
| 10858 } | 12588 } |
| 10859 return _json; | 12589 return _json; |
| 10860 } | 12590 } |
| 10861 } | 12591 } |
| 10862 | 12592 |
| 10863 | 12593 |
| 10864 /** Contains a list of disk image resources. */ | 12594 class InstancesScopedList { |
| 10865 class ImageList { | 12595 /** [Output Only] List of instances contained in this scope. */ |
| 12596 core.List<Instance> instances; |
| 12597 |
| 10866 /** | 12598 /** |
| 10867 * Unique identifier for the resource; defined by the server (output only). | 12599 * [Output Only] Informational warning which replaces the list of instances |
| 12600 * when the list is empty. |
| 10868 */ | 12601 */ |
| 10869 core.String id; | 12602 InstancesScopedListWarning warning; |
| 10870 | 12603 |
| 10871 /** A list of Image resources. */ | |
| 10872 core.List<Image> items; | |
| 10873 | 12604 |
| 10874 /** Type of resource. */ | 12605 InstancesScopedList(); |
| 12606 |
| 12607 InstancesScopedList.fromJson(core.Map _json) { |
| 12608 if (_json.containsKey("instances")) { |
| 12609 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); |
| 12610 } |
| 12611 if (_json.containsKey("warning")) { |
| 12612 warning = new InstancesScopedListWarning.fromJson(_json["warning"]); |
| 12613 } |
| 12614 } |
| 12615 |
| 12616 core.Map toJson() { |
| 12617 var _json = new core.Map(); |
| 12618 if (instances != null) { |
| 12619 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 12620 } |
| 12621 if (warning != null) { |
| 12622 _json["warning"] = (warning).toJson(); |
| 12623 } |
| 12624 return _json; |
| 12625 } |
| 12626 } |
| 12627 |
| 12628 |
| 12629 /** A license resource. */ |
| 12630 class License { |
| 12631 /** |
| 12632 * If true, the customer will be charged license fee for running software that |
| 12633 * contains this license on an instance. |
| 12634 */ |
| 12635 core.bool chargesUseFee; |
| 12636 |
| 12637 /** [Output Only] Type of resource. Always compute#license for licenses. */ |
| 10875 core.String kind; | 12638 core.String kind; |
| 10876 | 12639 |
| 10877 /** A token used to continue a truncated list request (output only). */ | 12640 /** |
| 10878 core.String nextPageToken; | 12641 * Name of the resource. The name must be 1-63 characters long, and comply |
| 12642 * with RCF1035. |
| 12643 */ |
| 12644 core.String name; |
| 10879 | 12645 |
| 10880 /** Server defined URL for this resource (output only). */ | 12646 /** [Output Only] Server defined URL for the resource. */ |
| 10881 core.String selfLink; | 12647 core.String selfLink; |
| 10882 | 12648 |
| 10883 | 12649 |
| 10884 ImageList(); | 12650 License(); |
| 10885 | 12651 |
| 10886 ImageList.fromJson(core.Map _json) { | 12652 License.fromJson(core.Map _json) { |
| 10887 if (_json.containsKey("id")) { | 12653 if (_json.containsKey("chargesUseFee")) { |
| 10888 id = _json["id"]; | 12654 chargesUseFee = _json["chargesUseFee"]; |
| 10889 } | |
| 10890 if (_json.containsKey("items")) { | |
| 10891 items = _json["items"].map((value) => new Image.fromJson(value)).toList(); | |
| 10892 } | 12655 } |
| 10893 if (_json.containsKey("kind")) { | 12656 if (_json.containsKey("kind")) { |
| 10894 kind = _json["kind"]; | 12657 kind = _json["kind"]; |
| 10895 } | 12658 } |
| 10896 if (_json.containsKey("nextPageToken")) { | 12659 if (_json.containsKey("name")) { |
| 10897 nextPageToken = _json["nextPageToken"]; | 12660 name = _json["name"]; |
| 10898 } | 12661 } |
| 10899 if (_json.containsKey("selfLink")) { | 12662 if (_json.containsKey("selfLink")) { |
| 10900 selfLink = _json["selfLink"]; | 12663 selfLink = _json["selfLink"]; |
| 10901 } | 12664 } |
| 10902 } | 12665 } |
| 10903 | 12666 |
| 10904 core.Map toJson() { | 12667 core.Map toJson() { |
| 10905 var _json = new core.Map(); | 12668 var _json = new core.Map(); |
| 10906 if (id != null) { | 12669 if (chargesUseFee != null) { |
| 10907 _json["id"] = id; | 12670 _json["chargesUseFee"] = chargesUseFee; |
| 10908 } | |
| 10909 if (items != null) { | |
| 10910 _json["items"] = items.map((value) => (value).toJson()).toList(); | |
| 10911 } | 12671 } |
| 10912 if (kind != null) { | 12672 if (kind != null) { |
| 10913 _json["kind"] = kind; | 12673 _json["kind"] = kind; |
| 10914 } | 12674 } |
| 10915 if (nextPageToken != null) { | 12675 if (name != null) { |
| 10916 _json["nextPageToken"] = nextPageToken; | 12676 _json["name"] = name; |
| 10917 } | 12677 } |
| 10918 if (selfLink != null) { | 12678 if (selfLink != null) { |
| 10919 _json["selfLink"] = selfLink; | 12679 _json["selfLink"] = selfLink; |
| 10920 } | 12680 } |
| 10921 return _json; | 12681 return _json; |
| 10922 } | 12682 } |
| 10923 } | 12683 } |
| 10924 | 12684 |
| 10925 | 12685 |
| 10926 /** An instance resource. */ | 12686 class MachineTypeScratchDisks { |
| 10927 class Instance { | 12687 /** Size of the scratch disk, defined in GB. */ |
| 10928 /** | 12688 core.int diskGb; |
| 10929 * Allows this instance to send packets with source IP addresses other than | |
| 10930 * its own and receive packets with destination IP addresses other than its | |
| 10931 * own. If this instance will be used as an IP gateway or it will be set as | |
| 10932 * the next-hop in a Route resource, say true. If unsure, leave this set to | |
| 10933 * false. | |
| 10934 */ | |
| 10935 core.bool canIpForward; | |
| 10936 | 12689 |
| 10937 /** Creation timestamp in RFC3339 text format (output only). */ | 12690 |
| 12691 MachineTypeScratchDisks(); |
| 12692 |
| 12693 MachineTypeScratchDisks.fromJson(core.Map _json) { |
| 12694 if (_json.containsKey("diskGb")) { |
| 12695 diskGb = _json["diskGb"]; |
| 12696 } |
| 12697 } |
| 12698 |
| 12699 core.Map toJson() { |
| 12700 var _json = new core.Map(); |
| 12701 if (diskGb != null) { |
| 12702 _json["diskGb"] = diskGb; |
| 12703 } |
| 12704 return _json; |
| 12705 } |
| 12706 } |
| 12707 |
| 12708 |
| 12709 /** A Machine Type resource. */ |
| 12710 class MachineType { |
| 12711 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 10938 core.String creationTimestamp; | 12712 core.String creationTimestamp; |
| 10939 | 12713 |
| 10940 /** | 12714 /** |
| 10941 * An optional textual description of the resource; provided by the client | 12715 * [Output Only] The deprecation status associated with this machine type. |
| 10942 * when the resource is created. | |
| 10943 */ | 12716 */ |
| 12717 DeprecationStatus deprecated; |
| 12718 |
| 12719 /** [Output Only] An optional textual description of the resource. */ |
| 10944 core.String description; | 12720 core.String description; |
| 10945 | 12721 |
| 10946 /** | 12722 /** [Output Only] The tumber of CPUs exposed to the instance. */ |
| 10947 * Array of disks associated with this instance. Persistent disks must be | 12723 core.int guestCpus; |
| 10948 * created before you can assign them. | |
| 10949 */ | |
| 10950 core.List<AttachedDisk> disks; | |
| 10951 | 12724 |
| 10952 /** | 12725 /** |
| 10953 * Unique identifier for the resource; defined by the server (output only). | 12726 * [Output Only] Unique identifier for the resource; defined by the server. |
| 10954 */ | 12727 */ |
| 10955 core.String id; | 12728 core.String id; |
| 10956 | 12729 |
| 12730 /** |
| 12731 * [Deprecated] This property is deprecated and will never be populated with |
| 12732 * any relevant values. |
| 12733 */ |
| 12734 core.int imageSpaceGb; |
| 12735 |
| 10957 /** Type of the resource. */ | 12736 /** Type of the resource. */ |
| 10958 core.String kind; | 12737 core.String kind; |
| 10959 | 12738 |
| 10960 /** | 12739 /** [Output Only] Maximum persistent disks allowed. */ |
| 10961 * URL of the machine type resource describing which machine type to use to | 12740 core.int maximumPersistentDisks; |
| 10962 * host the instance; provided by the client when the instance is created. | 12741 |
| 10963 */ | 12742 /** [Output Only] Maximum total persistent disks size (GB) allowed. */ |
| 10964 core.String machineType; | 12743 core.String maximumPersistentDisksSizeGb; |
| 10965 | 12744 |
| 10966 /** | 12745 /** |
| 10967 * Metadata key/value pairs assigned to this instance. Consists of custom | 12746 * [Output Only] The amount of physical memory available to the instance, |
| 10968 * metadata or predefined keys; see Instance documentation for more | 12747 * defined in MB. |
| 10969 * information. | |
| 10970 */ | 12748 */ |
| 10971 Metadata metadata; | 12749 core.int memoryMb; |
| 10972 | 12750 |
| 10973 /** | 12751 /** [Output Only] Name of the resource. */ |
| 10974 * Name of the resource; provided by the client when the resource is created. | |
| 10975 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 10976 */ | |
| 10977 core.String name; | 12752 core.String name; |
| 10978 | 12753 |
| 10979 /** | 12754 /** [Output Only] List of extended scratch disks assigned to the instance. */ |
| 10980 * Array of configurations for this interface. This specifies how this | 12755 core.List<MachineTypeScratchDisks> scratchDisks; |
| 10981 * interface is configured to interact with other network services, such as | |
| 10982 * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access | |
| 10983 * config supported. If there are no accessConfigs specified, then this | |
| 10984 * instance will have no external internet access. | |
| 10985 */ | |
| 10986 core.List<NetworkInterface> networkInterfaces; | |
| 10987 | 12756 |
| 10988 /** Scheduling options for this instance. */ | 12757 /** [Output Only] Server defined URL for the resource. */ |
| 10989 Scheduling scheduling; | |
| 10990 | |
| 10991 /** Server defined URL for this resource (output only). */ | |
| 10992 core.String selfLink; | 12758 core.String selfLink; |
| 10993 | 12759 |
| 10994 /** | 12760 /** |
| 10995 * A list of service accounts each with specified scopes, for which access | 12761 * [Output Only] The name of the zone where the machine type resides, such as |
| 10996 * tokens are to be made available to the instance through metadata queries. | 12762 * us-central1-a. |
| 10997 */ | 12763 */ |
| 10998 core.List<ServiceAccount> serviceAccounts; | |
| 10999 | |
| 11000 /** | |
| 11001 * Instance status. One of the following values: "PROVISIONING", "STAGING", | |
| 11002 * "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only). | |
| 11003 * Possible string values are: | |
| 11004 * - "PROVISIONING" | |
| 11005 * - "RUNNING" | |
| 11006 * - "STAGING" | |
| 11007 * - "STOPPED" | |
| 11008 * - "STOPPING" | |
| 11009 * - "TERMINATED" | |
| 11010 */ | |
| 11011 core.String status; | |
| 11012 | |
| 11013 /** An optional, human-readable explanation of the status (output only). */ | |
| 11014 core.String statusMessage; | |
| 11015 | |
| 11016 /** | |
| 11017 * A list of tags to be applied to this instance. Used to identify valid | |
| 11018 * sources or targets for network firewalls. Provided by the client on | |
| 11019 * instance creation. The tags can be later modified by the setTags method. | |
| 11020 * Each tag within the list must comply with RFC1035. | |
| 11021 */ | |
| 11022 Tags tags; | |
| 11023 | |
| 11024 /** URL of the zone where the instance resides (output only). */ | |
| 11025 core.String zone; | 12764 core.String zone; |
| 11026 | 12765 |
| 11027 | 12766 |
| 11028 Instance(); | 12767 MachineType(); |
| 11029 | 12768 |
| 11030 Instance.fromJson(core.Map _json) { | 12769 MachineType.fromJson(core.Map _json) { |
| 11031 if (_json.containsKey("canIpForward")) { | |
| 11032 canIpForward = _json["canIpForward"]; | |
| 11033 } | |
| 11034 if (_json.containsKey("creationTimestamp")) { | 12770 if (_json.containsKey("creationTimestamp")) { |
| 11035 creationTimestamp = _json["creationTimestamp"]; | 12771 creationTimestamp = _json["creationTimestamp"]; |
| 11036 } | 12772 } |
| 12773 if (_json.containsKey("deprecated")) { |
| 12774 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); |
| 12775 } |
| 11037 if (_json.containsKey("description")) { | 12776 if (_json.containsKey("description")) { |
| 11038 description = _json["description"]; | 12777 description = _json["description"]; |
| 11039 } | 12778 } |
| 11040 if (_json.containsKey("disks")) { | 12779 if (_json.containsKey("guestCpus")) { |
| 11041 disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).to
List(); | 12780 guestCpus = _json["guestCpus"]; |
| 11042 } | 12781 } |
| 11043 if (_json.containsKey("id")) { | 12782 if (_json.containsKey("id")) { |
| 11044 id = _json["id"]; | 12783 id = _json["id"]; |
| 11045 } | 12784 } |
| 12785 if (_json.containsKey("imageSpaceGb")) { |
| 12786 imageSpaceGb = _json["imageSpaceGb"]; |
| 12787 } |
| 11046 if (_json.containsKey("kind")) { | 12788 if (_json.containsKey("kind")) { |
| 11047 kind = _json["kind"]; | 12789 kind = _json["kind"]; |
| 11048 } | 12790 } |
| 11049 if (_json.containsKey("machineType")) { | 12791 if (_json.containsKey("maximumPersistentDisks")) { |
| 11050 machineType = _json["machineType"]; | 12792 maximumPersistentDisks = _json["maximumPersistentDisks"]; |
| 11051 } | 12793 } |
| 11052 if (_json.containsKey("metadata")) { | 12794 if (_json.containsKey("maximumPersistentDisksSizeGb")) { |
| 11053 metadata = new Metadata.fromJson(_json["metadata"]); | 12795 maximumPersistentDisksSizeGb = _json["maximumPersistentDisksSizeGb"]; |
| 12796 } |
| 12797 if (_json.containsKey("memoryMb")) { |
| 12798 memoryMb = _json["memoryMb"]; |
| 11054 } | 12799 } |
| 11055 if (_json.containsKey("name")) { | 12800 if (_json.containsKey("name")) { |
| 11056 name = _json["name"]; | 12801 name = _json["name"]; |
| 11057 } | 12802 } |
| 11058 if (_json.containsKey("networkInterfaces")) { | 12803 if (_json.containsKey("scratchDisks")) { |
| 11059 networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkI
nterface.fromJson(value)).toList(); | 12804 scratchDisks = _json["scratchDisks"].map((value) => new MachineTypeScratch
Disks.fromJson(value)).toList(); |
| 11060 } | |
| 11061 if (_json.containsKey("scheduling")) { | |
| 11062 scheduling = new Scheduling.fromJson(_json["scheduling"]); | |
| 11063 } | 12805 } |
| 11064 if (_json.containsKey("selfLink")) { | 12806 if (_json.containsKey("selfLink")) { |
| 11065 selfLink = _json["selfLink"]; | 12807 selfLink = _json["selfLink"]; |
| 11066 } | 12808 } |
| 11067 if (_json.containsKey("serviceAccounts")) { | |
| 11068 serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccou
nt.fromJson(value)).toList(); | |
| 11069 } | |
| 11070 if (_json.containsKey("status")) { | |
| 11071 status = _json["status"]; | |
| 11072 } | |
| 11073 if (_json.containsKey("statusMessage")) { | |
| 11074 statusMessage = _json["statusMessage"]; | |
| 11075 } | |
| 11076 if (_json.containsKey("tags")) { | |
| 11077 tags = new Tags.fromJson(_json["tags"]); | |
| 11078 } | |
| 11079 if (_json.containsKey("zone")) { | 12809 if (_json.containsKey("zone")) { |
| 11080 zone = _json["zone"]; | 12810 zone = _json["zone"]; |
| 11081 } | 12811 } |
| 11082 } | 12812 } |
| 11083 | 12813 |
| 11084 core.Map toJson() { | 12814 core.Map toJson() { |
| 11085 var _json = new core.Map(); | 12815 var _json = new core.Map(); |
| 11086 if (canIpForward != null) { | |
| 11087 _json["canIpForward"] = canIpForward; | |
| 11088 } | |
| 11089 if (creationTimestamp != null) { | 12816 if (creationTimestamp != null) { |
| 11090 _json["creationTimestamp"] = creationTimestamp; | 12817 _json["creationTimestamp"] = creationTimestamp; |
| 11091 } | 12818 } |
| 12819 if (deprecated != null) { |
| 12820 _json["deprecated"] = (deprecated).toJson(); |
| 12821 } |
| 11092 if (description != null) { | 12822 if (description != null) { |
| 11093 _json["description"] = description; | 12823 _json["description"] = description; |
| 11094 } | 12824 } |
| 11095 if (disks != null) { | 12825 if (guestCpus != null) { |
| 11096 _json["disks"] = disks.map((value) => (value).toJson()).toList(); | 12826 _json["guestCpus"] = guestCpus; |
| 11097 } | 12827 } |
| 11098 if (id != null) { | 12828 if (id != null) { |
| 11099 _json["id"] = id; | 12829 _json["id"] = id; |
| 11100 } | 12830 } |
| 12831 if (imageSpaceGb != null) { |
| 12832 _json["imageSpaceGb"] = imageSpaceGb; |
| 12833 } |
| 11101 if (kind != null) { | 12834 if (kind != null) { |
| 11102 _json["kind"] = kind; | 12835 _json["kind"] = kind; |
| 11103 } | 12836 } |
| 11104 if (machineType != null) { | 12837 if (maximumPersistentDisks != null) { |
| 11105 _json["machineType"] = machineType; | 12838 _json["maximumPersistentDisks"] = maximumPersistentDisks; |
| 11106 } | 12839 } |
| 11107 if (metadata != null) { | 12840 if (maximumPersistentDisksSizeGb != null) { |
| 11108 _json["metadata"] = (metadata).toJson(); | 12841 _json["maximumPersistentDisksSizeGb"] = maximumPersistentDisksSizeGb; |
| 12842 } |
| 12843 if (memoryMb != null) { |
| 12844 _json["memoryMb"] = memoryMb; |
| 11109 } | 12845 } |
| 11110 if (name != null) { | 12846 if (name != null) { |
| 11111 _json["name"] = name; | 12847 _json["name"] = name; |
| 11112 } | 12848 } |
| 11113 if (networkInterfaces != null) { | 12849 if (scratchDisks != null) { |
| 11114 _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJs
on()).toList(); | 12850 _json["scratchDisks"] = scratchDisks.map((value) => (value).toJson()).toLi
st(); |
| 11115 } | |
| 11116 if (scheduling != null) { | |
| 11117 _json["scheduling"] = (scheduling).toJson(); | |
| 11118 } | 12851 } |
| 11119 if (selfLink != null) { | 12852 if (selfLink != null) { |
| 11120 _json["selfLink"] = selfLink; | 12853 _json["selfLink"] = selfLink; |
| 11121 } | 12854 } |
| 11122 if (serviceAccounts != null) { | |
| 11123 _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()
).toList(); | |
| 11124 } | |
| 11125 if (status != null) { | |
| 11126 _json["status"] = status; | |
| 11127 } | |
| 11128 if (statusMessage != null) { | |
| 11129 _json["statusMessage"] = statusMessage; | |
| 11130 } | |
| 11131 if (tags != null) { | |
| 11132 _json["tags"] = (tags).toJson(); | |
| 11133 } | |
| 11134 if (zone != null) { | 12855 if (zone != null) { |
| 11135 _json["zone"] = zone; | 12856 _json["zone"] = zone; |
| 11136 } | 12857 } |
| 11137 return _json; | 12858 return _json; |
| 11138 } | 12859 } |
| 11139 } | 12860 } |
| 11140 | 12861 |
| 11141 | 12862 |
| 11142 /** Not documented yet. */ | 12863 class MachineTypeAggregatedList { |
| 11143 class InstanceAggregatedList { | |
| 11144 /** | 12864 /** |
| 11145 * Unique identifier for the resource; defined by the server (output only). | 12865 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11146 */ | 12866 */ |
| 11147 core.String id; | 12867 core.String id; |
| 11148 | 12868 |
| 11149 /** A map of scoped instance lists. */ | 12869 /** [Output Only] A map of scoped machine type lists. */ |
| 11150 core.Map<core.String, InstancesScopedList> items; | 12870 core.Map<core.String, MachineTypesScopedList> items; |
| 11151 | 12871 |
| 11152 /** Type of resource. */ | 12872 /** |
| 12873 * [Output Only] Type of resource. Always compute#machineTypeAggregatedList |
| 12874 * for aggregated lists of machine types. |
| 12875 */ |
| 11153 core.String kind; | 12876 core.String kind; |
| 11154 | 12877 |
| 11155 /** A token used to continue a truncated list request (output only). */ | 12878 /** [Output Only] A token used to continue a truncated list request. */ |
| 11156 core.String nextPageToken; | 12879 core.String nextPageToken; |
| 11157 | 12880 |
| 11158 /** Server defined URL for this resource (output only). */ | 12881 /** [Output Only] Server defined URL for this resource. */ |
| 11159 core.String selfLink; | 12882 core.String selfLink; |
| 11160 | 12883 |
| 11161 | 12884 |
| 11162 InstanceAggregatedList(); | 12885 MachineTypeAggregatedList(); |
| 11163 | 12886 |
| 11164 InstanceAggregatedList.fromJson(core.Map _json) { | 12887 MachineTypeAggregatedList.fromJson(core.Map _json) { |
| 11165 if (_json.containsKey("id")) { | 12888 if (_json.containsKey("id")) { |
| 11166 id = _json["id"]; | 12889 id = _json["id"]; |
| 11167 } | 12890 } |
| 11168 if (_json.containsKey("items")) { | 12891 if (_json.containsKey("items")) { |
| 11169 items = common_internal.mapMap(_json["items"], (item) => new InstancesScop
edList.fromJson(item)); | 12892 items = commons.mapMap(_json["items"], (item) => new MachineTypesScopedLis
t.fromJson(item)); |
| 11170 } | 12893 } |
| 11171 if (_json.containsKey("kind")) { | 12894 if (_json.containsKey("kind")) { |
| 11172 kind = _json["kind"]; | 12895 kind = _json["kind"]; |
| 11173 } | 12896 } |
| 11174 if (_json.containsKey("nextPageToken")) { | 12897 if (_json.containsKey("nextPageToken")) { |
| 11175 nextPageToken = _json["nextPageToken"]; | 12898 nextPageToken = _json["nextPageToken"]; |
| 11176 } | 12899 } |
| 11177 if (_json.containsKey("selfLink")) { | 12900 if (_json.containsKey("selfLink")) { |
| 11178 selfLink = _json["selfLink"]; | 12901 selfLink = _json["selfLink"]; |
| 11179 } | 12902 } |
| 11180 } | 12903 } |
| 11181 | 12904 |
| 11182 core.Map toJson() { | 12905 core.Map toJson() { |
| 11183 var _json = new core.Map(); | 12906 var _json = new core.Map(); |
| 11184 if (id != null) { | 12907 if (id != null) { |
| 11185 _json["id"] = id; | 12908 _json["id"] = id; |
| 11186 } | 12909 } |
| 11187 if (items != null) { | 12910 if (items != null) { |
| 11188 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | 12911 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 11189 } | 12912 } |
| 11190 if (kind != null) { | 12913 if (kind != null) { |
| 11191 _json["kind"] = kind; | 12914 _json["kind"] = kind; |
| 11192 } | 12915 } |
| 11193 if (nextPageToken != null) { | 12916 if (nextPageToken != null) { |
| 11194 _json["nextPageToken"] = nextPageToken; | 12917 _json["nextPageToken"] = nextPageToken; |
| 11195 } | 12918 } |
| 11196 if (selfLink != null) { | 12919 if (selfLink != null) { |
| 11197 _json["selfLink"] = selfLink; | 12920 _json["selfLink"] = selfLink; |
| 11198 } | 12921 } |
| 11199 return _json; | 12922 return _json; |
| 11200 } | 12923 } |
| 11201 } | 12924 } |
| 11202 | 12925 |
| 11203 | 12926 |
| 11204 /** Contains a list of instance resources. */ | 12927 /** Contains a list of Machine Type resources. */ |
| 11205 class InstanceList { | 12928 class MachineTypeList { |
| 11206 /** | 12929 /** |
| 11207 * Unique identifier for the resource; defined by the server (output only). | 12930 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11208 */ | 12931 */ |
| 11209 core.String id; | 12932 core.String id; |
| 11210 | 12933 |
| 11211 /** A list of Instance resources. */ | 12934 /** [Output Only] A list of Machine Type resources. */ |
| 11212 core.List<Instance> items; | 12935 core.List<MachineType> items; |
| 11213 | 12936 |
| 11214 /** Type of resource. */ | 12937 /** |
| 12938 * [Output Only] Type of resource. Always compute#machineTypeList for lists of |
| 12939 * machine types. |
| 12940 */ |
| 11215 core.String kind; | 12941 core.String kind; |
| 11216 | 12942 |
| 11217 /** A token used to continue a truncated list request (output only). */ | 12943 /** [Output Only] A token used to continue a truncated list request. */ |
| 11218 core.String nextPageToken; | 12944 core.String nextPageToken; |
| 11219 | 12945 |
| 11220 /** Server defined URL for this resource (output only). */ | 12946 /** [Output Only] Server defined URL for this resource. */ |
| 11221 core.String selfLink; | 12947 core.String selfLink; |
| 11222 | 12948 |
| 11223 | 12949 |
| 11224 InstanceList(); | 12950 MachineTypeList(); |
| 11225 | 12951 |
| 11226 InstanceList.fromJson(core.Map _json) { | 12952 MachineTypeList.fromJson(core.Map _json) { |
| 11227 if (_json.containsKey("id")) { | 12953 if (_json.containsKey("id")) { |
| 11228 id = _json["id"]; | 12954 id = _json["id"]; |
| 11229 } | 12955 } |
| 11230 if (_json.containsKey("items")) { | 12956 if (_json.containsKey("items")) { |
| 11231 items = _json["items"].map((value) => new Instance.fromJson(value)).toList
(); | 12957 items = _json["items"].map((value) => new MachineType.fromJson(value)).toL
ist(); |
| 11232 } | 12958 } |
| 11233 if (_json.containsKey("kind")) { | 12959 if (_json.containsKey("kind")) { |
| 11234 kind = _json["kind"]; | 12960 kind = _json["kind"]; |
| 11235 } | 12961 } |
| 11236 if (_json.containsKey("nextPageToken")) { | 12962 if (_json.containsKey("nextPageToken")) { |
| 11237 nextPageToken = _json["nextPageToken"]; | 12963 nextPageToken = _json["nextPageToken"]; |
| 11238 } | 12964 } |
| 11239 if (_json.containsKey("selfLink")) { | 12965 if (_json.containsKey("selfLink")) { |
| 11240 selfLink = _json["selfLink"]; | 12966 selfLink = _json["selfLink"]; |
| 11241 } | 12967 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11256 _json["nextPageToken"] = nextPageToken; | 12982 _json["nextPageToken"] = nextPageToken; |
| 11257 } | 12983 } |
| 11258 if (selfLink != null) { | 12984 if (selfLink != null) { |
| 11259 _json["selfLink"] = selfLink; | 12985 _json["selfLink"] = selfLink; |
| 11260 } | 12986 } |
| 11261 return _json; | 12987 return _json; |
| 11262 } | 12988 } |
| 11263 } | 12989 } |
| 11264 | 12990 |
| 11265 | 12991 |
| 11266 /** Not documented yet. */ | 12992 class MachineTypesScopedListWarningData { |
| 11267 class InstanceProperties { | 12993 /** [Output Only] A key for the warning data. */ |
| 11268 /** | 12994 core.String key; |
| 11269 * Allows instances created based on this template to send packets with source | 12995 |
| 11270 * IP addresses other than their own and receive packets with destination IP | 12996 /** [Output Only] A warning data value corresponding to the key. */ |
| 11271 * addresses other than their own. If these instances will be used as an IP | 12997 core.String value; |
| 11272 * gateway or it will be set as the next-hop in a Route resource, say true. If | 12998 |
| 11273 * unsure, leave this set to false. | 12999 |
| 11274 */ | 13000 MachineTypesScopedListWarningData(); |
| 11275 core.bool canIpForward; | 13001 |
| 11276 | 13002 MachineTypesScopedListWarningData.fromJson(core.Map _json) { |
| 11277 /** | 13003 if (_json.containsKey("key")) { |
| 11278 * An optional textual description for the instances created based on the | 13004 key = _json["key"]; |
| 11279 * instance template resource; provided by the client when the template is | 13005 } |
| 11280 * created. | 13006 if (_json.containsKey("value")) { |
| 13007 value = _json["value"]; |
| 13008 } |
| 13009 } |
| 13010 |
| 13011 core.Map toJson() { |
| 13012 var _json = new core.Map(); |
| 13013 if (key != null) { |
| 13014 _json["key"] = key; |
| 13015 } |
| 13016 if (value != null) { |
| 13017 _json["value"] = value; |
| 13018 } |
| 13019 return _json; |
| 13020 } |
| 13021 } |
| 13022 |
| 13023 |
| 13024 /** |
| 13025 * [Output Only] An informational warning that appears when the machine types |
| 13026 * list is empty. |
| 13027 */ |
| 13028 class MachineTypesScopedListWarning { |
| 13029 /** |
| 13030 * [Output Only] The warning type identifier for this warning. |
| 13031 * Possible string values are: |
| 13032 * - "DEPRECATED_RESOURCE_USED" |
| 13033 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 13034 * - "INJECTED_KERNELS_DEPRECATED" |
| 13035 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 13036 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 13037 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 13038 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 13039 * - "NEXT_HOP_NOT_RUNNING" |
| 13040 * - "NO_RESULTS_ON_PAGE" |
| 13041 * - "REQUIRED_TOS_AGREEMENT" |
| 13042 * - "RESOURCE_NOT_DELETED" |
| 13043 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 13044 * - "UNREACHABLE" |
| 13045 */ |
| 13046 core.String code; |
| 13047 |
| 13048 /** [Output Only] Metadata for this warning in key: value format. */ |
| 13049 core.List<MachineTypesScopedListWarningData> data; |
| 13050 |
| 13051 /** [Output Only] Optional human-readable details for this warning. */ |
| 13052 core.String message; |
| 13053 |
| 13054 |
| 13055 MachineTypesScopedListWarning(); |
| 13056 |
| 13057 MachineTypesScopedListWarning.fromJson(core.Map _json) { |
| 13058 if (_json.containsKey("code")) { |
| 13059 code = _json["code"]; |
| 13060 } |
| 13061 if (_json.containsKey("data")) { |
| 13062 data = _json["data"].map((value) => new MachineTypesScopedListWarningData.
fromJson(value)).toList(); |
| 13063 } |
| 13064 if (_json.containsKey("message")) { |
| 13065 message = _json["message"]; |
| 13066 } |
| 13067 } |
| 13068 |
| 13069 core.Map toJson() { |
| 13070 var _json = new core.Map(); |
| 13071 if (code != null) { |
| 13072 _json["code"] = code; |
| 13073 } |
| 13074 if (data != null) { |
| 13075 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 13076 } |
| 13077 if (message != null) { |
| 13078 _json["message"] = message; |
| 13079 } |
| 13080 return _json; |
| 13081 } |
| 13082 } |
| 13083 |
| 13084 |
| 13085 class MachineTypesScopedList { |
| 13086 /** [Output Only] List of machine types contained in this scope. */ |
| 13087 core.List<MachineType> machineTypes; |
| 13088 |
| 13089 /** |
| 13090 * [Output Only] An informational warning that appears when the machine types |
| 13091 * list is empty. |
| 13092 */ |
| 13093 MachineTypesScopedListWarning warning; |
| 13094 |
| 13095 |
| 13096 MachineTypesScopedList(); |
| 13097 |
| 13098 MachineTypesScopedList.fromJson(core.Map _json) { |
| 13099 if (_json.containsKey("machineTypes")) { |
| 13100 machineTypes = _json["machineTypes"].map((value) => new MachineType.fromJs
on(value)).toList(); |
| 13101 } |
| 13102 if (_json.containsKey("warning")) { |
| 13103 warning = new MachineTypesScopedListWarning.fromJson(_json["warning"]); |
| 13104 } |
| 13105 } |
| 13106 |
| 13107 core.Map toJson() { |
| 13108 var _json = new core.Map(); |
| 13109 if (machineTypes != null) { |
| 13110 _json["machineTypes"] = machineTypes.map((value) => (value).toJson()).toLi
st(); |
| 13111 } |
| 13112 if (warning != null) { |
| 13113 _json["warning"] = (warning).toJson(); |
| 13114 } |
| 13115 return _json; |
| 13116 } |
| 13117 } |
| 13118 |
| 13119 |
| 13120 class MetadataItems { |
| 13121 /** |
| 13122 * Key for the metadata entry. Keys must conform to the following regexp: |
| 13123 * [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as |
| 13124 * part of a URL in the metadata server. Additionally, to avoid ambiguity, |
| 13125 * keys must not conflict with any other metadata keys for the project. |
| 13126 */ |
| 13127 core.String key; |
| 13128 |
| 13129 /** |
| 13130 * Value for the metadata entry. These are free-form strings, and only have |
| 13131 * meaning as interpreted by the image running in the instance. The only |
| 13132 * restriction placed on values is that their size must be less than or equal |
| 13133 * to 32768 bytes. |
| 13134 */ |
| 13135 core.String value; |
| 13136 |
| 13137 |
| 13138 MetadataItems(); |
| 13139 |
| 13140 MetadataItems.fromJson(core.Map _json) { |
| 13141 if (_json.containsKey("key")) { |
| 13142 key = _json["key"]; |
| 13143 } |
| 13144 if (_json.containsKey("value")) { |
| 13145 value = _json["value"]; |
| 13146 } |
| 13147 } |
| 13148 |
| 13149 core.Map toJson() { |
| 13150 var _json = new core.Map(); |
| 13151 if (key != null) { |
| 13152 _json["key"] = key; |
| 13153 } |
| 13154 if (value != null) { |
| 13155 _json["value"] = value; |
| 13156 } |
| 13157 return _json; |
| 13158 } |
| 13159 } |
| 13160 |
| 13161 |
| 13162 /** A metadata key/value entry. */ |
| 13163 class Metadata { |
| 13164 /** |
| 13165 * Specifies a fingerprint for this request, which is essentially a hash of |
| 13166 * the metadata's contents and used for optimistic locking. The fingerprint is |
| 13167 * initially generated by Compute Engine and changes after every request to |
| 13168 * modify or update metadata. You must always provide an up-to-date |
| 13169 * fingerprint hash in order to update or change metadata. |
| 13170 */ |
| 13171 core.String fingerprint; |
| 13172 |
| 13173 core.List<core.int> get fingerprintAsBytes { |
| 13174 return crypto.CryptoUtils.base64StringToBytes(fingerprint); |
| 13175 } |
| 13176 |
| 13177 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 13178 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| 13179 } |
| 13180 |
| 13181 /** |
| 13182 * Array of key/value pairs. The total size of all keys and values must be |
| 13183 * less than 512 KB. |
| 13184 */ |
| 13185 core.List<MetadataItems> items; |
| 13186 |
| 13187 /** |
| 13188 * [Output Only] Type of the resource. Always compute#metadata for metadata. |
| 13189 */ |
| 13190 core.String kind; |
| 13191 |
| 13192 |
| 13193 Metadata(); |
| 13194 |
| 13195 Metadata.fromJson(core.Map _json) { |
| 13196 if (_json.containsKey("fingerprint")) { |
| 13197 fingerprint = _json["fingerprint"]; |
| 13198 } |
| 13199 if (_json.containsKey("items")) { |
| 13200 items = _json["items"].map((value) => new MetadataItems.fromJson(value)).t
oList(); |
| 13201 } |
| 13202 if (_json.containsKey("kind")) { |
| 13203 kind = _json["kind"]; |
| 13204 } |
| 13205 } |
| 13206 |
| 13207 core.Map toJson() { |
| 13208 var _json = new core.Map(); |
| 13209 if (fingerprint != null) { |
| 13210 _json["fingerprint"] = fingerprint; |
| 13211 } |
| 13212 if (items != null) { |
| 13213 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13214 } |
| 13215 if (kind != null) { |
| 13216 _json["kind"] = kind; |
| 13217 } |
| 13218 return _json; |
| 13219 } |
| 13220 } |
| 13221 |
| 13222 |
| 13223 /** A network resource. */ |
| 13224 class Network { |
| 13225 /** |
| 13226 * The range of internal addresses that are legal on this network. This range |
| 13227 * is a CIDR specification, for example: 192.168.0.0/16. Provided by the |
| 13228 * client when the network is created. |
| 13229 */ |
| 13230 core.String IPv4Range; |
| 13231 |
| 13232 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 13233 core.String creationTimestamp; |
| 13234 |
| 13235 /** |
| 13236 * An optional textual description of the resource; provided by the client |
| 13237 * when the resource is created. |
| 11281 */ | 13238 */ |
| 11282 core.String description; | 13239 core.String description; |
| 11283 | 13240 |
| 11284 /** | 13241 /** |
| 11285 * Array of disks associated with instance created based on this template. | 13242 * A gateway address for default routing to other networks. This value is read |
| 11286 */ | 13243 * only and is selected by the Google Compute Engine, typically as the first |
| 11287 core.List<AttachedDisk> disks; | 13244 * usable address in the IPv4Range. |
| 11288 | 13245 */ |
| 11289 /** | 13246 core.String gatewayIPv4; |
| 11290 * Name of the machine type resource describing which machine type to use to | 13247 |
| 11291 * host the instances created based on this template; provided by the client | 13248 /** |
| 11292 * when the instance template is created. | 13249 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11293 */ | 13250 */ |
| 11294 core.String machineType; | 13251 core.String id; |
| 11295 | 13252 |
| 11296 /** | 13253 /** |
| 11297 * Metadata key/value pairs assigned to instances created based on this | 13254 * [Output Only] Type of the resource. Always compute#network for networks. |
| 11298 * template. Consists of custom metadata or predefined keys; see Instance | 13255 */ |
| 11299 * documentation for more information. | 13256 core.String kind; |
| 11300 */ | 13257 |
| 11301 Metadata metadata; | 13258 /** |
| 11302 | 13259 * Name of the resource; provided by the client when the resource is created. |
| 11303 /** | 13260 * The name must be 1-63 characters long, and comply with RFC1035. |
| 11304 * Array of configurations for this interface. This specifies how this | 13261 * Specifically, the name must be 1-63 characters long and match the regular |
| 11305 * interface is configured to interact with other network services, such as | 13262 * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must |
| 11306 * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access | 13263 * be a lowercase letter, and all following characters must be a dash, |
| 11307 * config supported. If there are no accessConfigs specified, then this | 13264 * lowercase letter, or digit, except the last character, which cannot be a |
| 11308 * instances created based based on this template will have no external | 13265 * dash. |
| 11309 * internet access. | 13266 */ |
| 11310 */ | 13267 core.String name; |
| 11311 core.List<NetworkInterface> networkInterfaces; | 13268 |
| 11312 | 13269 /** [Output Only] Server defined URL for the resource. */ |
| 11313 /** Scheduling options for the instances created based on this template. */ | 13270 core.String selfLink; |
| 11314 Scheduling scheduling; | 13271 |
| 11315 | 13272 |
| 11316 /** | 13273 Network(); |
| 11317 * A list of service accounts each with specified scopes, for which access | 13274 |
| 11318 * tokens are to be made available to the instances created based on this | 13275 Network.fromJson(core.Map _json) { |
| 11319 * template, through metadata queries. | 13276 if (_json.containsKey("IPv4Range")) { |
| 11320 */ | 13277 IPv4Range = _json["IPv4Range"]; |
| 11321 core.List<ServiceAccount> serviceAccounts; | 13278 } |
| 11322 | 13279 if (_json.containsKey("creationTimestamp")) { |
| 11323 /** | 13280 creationTimestamp = _json["creationTimestamp"]; |
| 11324 * A list of tags to be applied to the instances created based on this | |
| 11325 * template used to identify valid sources or targets for network firewalls. | |
| 11326 * Provided by the client on instance creation. The tags can be later modified | |
| 11327 * by the setTags method. Each tag within the list must comply with RFC1035. | |
| 11328 */ | |
| 11329 Tags tags; | |
| 11330 | |
| 11331 | |
| 11332 InstanceProperties(); | |
| 11333 | |
| 11334 InstanceProperties.fromJson(core.Map _json) { | |
| 11335 if (_json.containsKey("canIpForward")) { | |
| 11336 canIpForward = _json["canIpForward"]; | |
| 11337 } | 13281 } |
| 11338 if (_json.containsKey("description")) { | 13282 if (_json.containsKey("description")) { |
| 11339 description = _json["description"]; | 13283 description = _json["description"]; |
| 11340 } | 13284 } |
| 11341 if (_json.containsKey("disks")) { | 13285 if (_json.containsKey("gatewayIPv4")) { |
| 11342 disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).to
List(); | 13286 gatewayIPv4 = _json["gatewayIPv4"]; |
| 11343 } | |
| 11344 if (_json.containsKey("machineType")) { | |
| 11345 machineType = _json["machineType"]; | |
| 11346 } | |
| 11347 if (_json.containsKey("metadata")) { | |
| 11348 metadata = new Metadata.fromJson(_json["metadata"]); | |
| 11349 } | |
| 11350 if (_json.containsKey("networkInterfaces")) { | |
| 11351 networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkI
nterface.fromJson(value)).toList(); | |
| 11352 } | |
| 11353 if (_json.containsKey("scheduling")) { | |
| 11354 scheduling = new Scheduling.fromJson(_json["scheduling"]); | |
| 11355 } | |
| 11356 if (_json.containsKey("serviceAccounts")) { | |
| 11357 serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccou
nt.fromJson(value)).toList(); | |
| 11358 } | |
| 11359 if (_json.containsKey("tags")) { | |
| 11360 tags = new Tags.fromJson(_json["tags"]); | |
| 11361 } | |
| 11362 } | |
| 11363 | |
| 11364 core.Map toJson() { | |
| 11365 var _json = new core.Map(); | |
| 11366 if (canIpForward != null) { | |
| 11367 _json["canIpForward"] = canIpForward; | |
| 11368 } | |
| 11369 if (description != null) { | |
| 11370 _json["description"] = description; | |
| 11371 } | |
| 11372 if (disks != null) { | |
| 11373 _json["disks"] = disks.map((value) => (value).toJson()).toList(); | |
| 11374 } | |
| 11375 if (machineType != null) { | |
| 11376 _json["machineType"] = machineType; | |
| 11377 } | |
| 11378 if (metadata != null) { | |
| 11379 _json["metadata"] = (metadata).toJson(); | |
| 11380 } | |
| 11381 if (networkInterfaces != null) { | |
| 11382 _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJs
on()).toList(); | |
| 11383 } | |
| 11384 if (scheduling != null) { | |
| 11385 _json["scheduling"] = (scheduling).toJson(); | |
| 11386 } | |
| 11387 if (serviceAccounts != null) { | |
| 11388 _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()
).toList(); | |
| 11389 } | |
| 11390 if (tags != null) { | |
| 11391 _json["tags"] = (tags).toJson(); | |
| 11392 } | |
| 11393 return _json; | |
| 11394 } | |
| 11395 } | |
| 11396 | |
| 11397 | |
| 11398 /** Not documented yet. */ | |
| 11399 class InstanceReference { | |
| 11400 /** Not documented yet. */ | |
| 11401 core.String instance; | |
| 11402 | |
| 11403 | |
| 11404 InstanceReference(); | |
| 11405 | |
| 11406 InstanceReference.fromJson(core.Map _json) { | |
| 11407 if (_json.containsKey("instance")) { | |
| 11408 instance = _json["instance"]; | |
| 11409 } | |
| 11410 } | |
| 11411 | |
| 11412 core.Map toJson() { | |
| 11413 var _json = new core.Map(); | |
| 11414 if (instance != null) { | |
| 11415 _json["instance"] = instance; | |
| 11416 } | |
| 11417 return _json; | |
| 11418 } | |
| 11419 } | |
| 11420 | |
| 11421 | |
| 11422 /** An Instance Template resource. */ | |
| 11423 class InstanceTemplate { | |
| 11424 /** Creation timestamp in RFC3339 text format (output only). */ | |
| 11425 core.String creationTimestamp; | |
| 11426 | |
| 11427 /** | |
| 11428 * An optional textual description of the instance template resource; provided | |
| 11429 * by the client when the resource is created. | |
| 11430 */ | |
| 11431 core.String description; | |
| 11432 | |
| 11433 /** | |
| 11434 * Unique identifier for the resource; defined by the server (output only). | |
| 11435 */ | |
| 11436 core.String id; | |
| 11437 | |
| 11438 /** Type of the resource. */ | |
| 11439 core.String kind; | |
| 11440 | |
| 11441 /** | |
| 11442 * Name of the instance template resource; provided by the client when the | |
| 11443 * resource is created. The name must be 1-63 characters long, and comply with | |
| 11444 * RFC1035 | |
| 11445 */ | |
| 11446 core.String name; | |
| 11447 | |
| 11448 /** The instance properties portion of this instance template resource. */ | |
| 11449 InstanceProperties properties; | |
| 11450 | |
| 11451 /** Server defined URL for the resource (output only). */ | |
| 11452 core.String selfLink; | |
| 11453 | |
| 11454 | |
| 11455 InstanceTemplate(); | |
| 11456 | |
| 11457 InstanceTemplate.fromJson(core.Map _json) { | |
| 11458 if (_json.containsKey("creationTimestamp")) { | |
| 11459 creationTimestamp = _json["creationTimestamp"]; | |
| 11460 } | |
| 11461 if (_json.containsKey("description")) { | |
| 11462 description = _json["description"]; | |
| 11463 } | 13287 } |
| 11464 if (_json.containsKey("id")) { | 13288 if (_json.containsKey("id")) { |
| 11465 id = _json["id"]; | 13289 id = _json["id"]; |
| 11466 } | 13290 } |
| 11467 if (_json.containsKey("kind")) { | 13291 if (_json.containsKey("kind")) { |
| 11468 kind = _json["kind"]; | 13292 kind = _json["kind"]; |
| 11469 } | 13293 } |
| 11470 if (_json.containsKey("name")) { | 13294 if (_json.containsKey("name")) { |
| 11471 name = _json["name"]; | 13295 name = _json["name"]; |
| 11472 } | 13296 } |
| 11473 if (_json.containsKey("properties")) { | |
| 11474 properties = new InstanceProperties.fromJson(_json["properties"]); | |
| 11475 } | |
| 11476 if (_json.containsKey("selfLink")) { | 13297 if (_json.containsKey("selfLink")) { |
| 11477 selfLink = _json["selfLink"]; | 13298 selfLink = _json["selfLink"]; |
| 11478 } | 13299 } |
| 11479 } | 13300 } |
| 11480 | 13301 |
| 11481 core.Map toJson() { | 13302 core.Map toJson() { |
| 11482 var _json = new core.Map(); | 13303 var _json = new core.Map(); |
| 13304 if (IPv4Range != null) { |
| 13305 _json["IPv4Range"] = IPv4Range; |
| 13306 } |
| 11483 if (creationTimestamp != null) { | 13307 if (creationTimestamp != null) { |
| 11484 _json["creationTimestamp"] = creationTimestamp; | 13308 _json["creationTimestamp"] = creationTimestamp; |
| 11485 } | 13309 } |
| 11486 if (description != null) { | 13310 if (description != null) { |
| 11487 _json["description"] = description; | 13311 _json["description"] = description; |
| 11488 } | 13312 } |
| 13313 if (gatewayIPv4 != null) { |
| 13314 _json["gatewayIPv4"] = gatewayIPv4; |
| 13315 } |
| 11489 if (id != null) { | 13316 if (id != null) { |
| 11490 _json["id"] = id; | 13317 _json["id"] = id; |
| 11491 } | 13318 } |
| 11492 if (kind != null) { | 13319 if (kind != null) { |
| 11493 _json["kind"] = kind; | 13320 _json["kind"] = kind; |
| 11494 } | 13321 } |
| 11495 if (name != null) { | 13322 if (name != null) { |
| 11496 _json["name"] = name; | 13323 _json["name"] = name; |
| 11497 } | 13324 } |
| 11498 if (properties != null) { | |
| 11499 _json["properties"] = (properties).toJson(); | |
| 11500 } | |
| 11501 if (selfLink != null) { | 13325 if (selfLink != null) { |
| 11502 _json["selfLink"] = selfLink; | 13326 _json["selfLink"] = selfLink; |
| 11503 } | 13327 } |
| 11504 return _json; | 13328 return _json; |
| 11505 } | 13329 } |
| 11506 } | 13330 } |
| 11507 | 13331 |
| 11508 | 13332 |
| 11509 /** Contains a list of instance template resources. */ | 13333 /** A network interface resource attached to an instance. */ |
| 11510 class InstanceTemplateList { | 13334 class NetworkInterface { |
| 11511 /** | 13335 /** |
| 11512 * Unique identifier for the resource; defined by the server (output only). | 13336 * An array of configurations for this interface. Currently, |
| 13337 * <codeONE_TO_ONE_NAT is the only access config supported. If there are no |
| 13338 * accessConfigs specified, then this instance will have no external internet |
| 13339 * access. |
| 13340 */ |
| 13341 core.List<AccessConfig> accessConfigs; |
| 13342 |
| 13343 /** |
| 13344 * [Output Only] The name of the network interface, generated by the server. |
| 13345 * For network devices, these are eth0, eth1, etc. |
| 13346 */ |
| 13347 core.String name; |
| 13348 |
| 13349 /** |
| 13350 * URL of the network resource for this instance. This is required for |
| 13351 * creating an instance but optional when creating a firewall rule. If not |
| 13352 * specified when creating a firewall rule, the default network is used: |
| 13353 * |
| 13354 * global/networks/default |
| 13355 * |
| 13356 * If you specify this property, you can specify the network as a full or |
| 13357 * partial URL. For example, the following are all valid URLs: |
| 13358 * - |
| 13359 * https://www.googleapis.com/compute/v1/projects/project/global/networks/netw
ork |
| 13360 * - projects/project/global/networks/network |
| 13361 * - global/networks/default |
| 13362 */ |
| 13363 core.String network; |
| 13364 |
| 13365 /** |
| 13366 * [Output Only] An optional IPV4 internal network address assigned to the |
| 13367 * instance for this network interface. |
| 13368 */ |
| 13369 core.String networkIP; |
| 13370 |
| 13371 |
| 13372 NetworkInterface(); |
| 13373 |
| 13374 NetworkInterface.fromJson(core.Map _json) { |
| 13375 if (_json.containsKey("accessConfigs")) { |
| 13376 accessConfigs = _json["accessConfigs"].map((value) => new AccessConfig.fro
mJson(value)).toList(); |
| 13377 } |
| 13378 if (_json.containsKey("name")) { |
| 13379 name = _json["name"]; |
| 13380 } |
| 13381 if (_json.containsKey("network")) { |
| 13382 network = _json["network"]; |
| 13383 } |
| 13384 if (_json.containsKey("networkIP")) { |
| 13385 networkIP = _json["networkIP"]; |
| 13386 } |
| 13387 } |
| 13388 |
| 13389 core.Map toJson() { |
| 13390 var _json = new core.Map(); |
| 13391 if (accessConfigs != null) { |
| 13392 _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).to
List(); |
| 13393 } |
| 13394 if (name != null) { |
| 13395 _json["name"] = name; |
| 13396 } |
| 13397 if (network != null) { |
| 13398 _json["network"] = network; |
| 13399 } |
| 13400 if (networkIP != null) { |
| 13401 _json["networkIP"] = networkIP; |
| 13402 } |
| 13403 return _json; |
| 13404 } |
| 13405 } |
| 13406 |
| 13407 |
| 13408 /** Contains a list of Network resources. */ |
| 13409 class NetworkList { |
| 13410 /** |
| 13411 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11513 */ | 13412 */ |
| 11514 core.String id; | 13413 core.String id; |
| 11515 | 13414 |
| 11516 /** A list of InstanceTemplate resources. */ | 13415 /** [Output Only] A list of Network resources. */ |
| 11517 core.List<InstanceTemplate> items; | 13416 core.List<Network> items; |
| 11518 | 13417 |
| 11519 /** Type of resource. */ | 13418 /** |
| 13419 * [Output Only] Type of resource. Always compute#networkList for lists of |
| 13420 * networks. |
| 13421 */ |
| 11520 core.String kind; | 13422 core.String kind; |
| 11521 | 13423 |
| 11522 /** A token used to continue a truncated list request (output only). */ | 13424 /** [Output Only] A token used to continue a truncated list request. */ |
| 11523 core.String nextPageToken; | 13425 core.String nextPageToken; |
| 11524 | 13426 |
| 11525 /** Server defined URL for this resource (output only). */ | 13427 /** [Output Only] Server defined URL for this resource . */ |
| 11526 core.String selfLink; | 13428 core.String selfLink; |
| 11527 | 13429 |
| 11528 | 13430 |
| 11529 InstanceTemplateList(); | 13431 NetworkList(); |
| 11530 | 13432 |
| 11531 InstanceTemplateList.fromJson(core.Map _json) { | 13433 NetworkList.fromJson(core.Map _json) { |
| 11532 if (_json.containsKey("id")) { | 13434 if (_json.containsKey("id")) { |
| 11533 id = _json["id"]; | 13435 id = _json["id"]; |
| 11534 } | 13436 } |
| 11535 if (_json.containsKey("items")) { | 13437 if (_json.containsKey("items")) { |
| 11536 items = _json["items"].map((value) => new InstanceTemplate.fromJson(value)
).toList(); | 13438 items = _json["items"].map((value) => new Network.fromJson(value)).toList(
); |
| 11537 } | 13439 } |
| 11538 if (_json.containsKey("kind")) { | 13440 if (_json.containsKey("kind")) { |
| 11539 kind = _json["kind"]; | 13441 kind = _json["kind"]; |
| 11540 } | 13442 } |
| 11541 if (_json.containsKey("nextPageToken")) { | 13443 if (_json.containsKey("nextPageToken")) { |
| 11542 nextPageToken = _json["nextPageToken"]; | 13444 nextPageToken = _json["nextPageToken"]; |
| 11543 } | 13445 } |
| 11544 if (_json.containsKey("selfLink")) { | 13446 if (_json.containsKey("selfLink")) { |
| 11545 selfLink = _json["selfLink"]; | 13447 selfLink = _json["selfLink"]; |
| 11546 } | 13448 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11561 _json["nextPageToken"] = nextPageToken; | 13463 _json["nextPageToken"] = nextPageToken; |
| 11562 } | 13464 } |
| 11563 if (selfLink != null) { | 13465 if (selfLink != null) { |
| 11564 _json["selfLink"] = selfLink; | 13466 _json["selfLink"] = selfLink; |
| 11565 } | 13467 } |
| 11566 return _json; | 13468 return _json; |
| 11567 } | 13469 } |
| 11568 } | 13470 } |
| 11569 | 13471 |
| 11570 | 13472 |
| 11571 /** Not documented yet. */ | 13473 class OperationErrorErrors { |
| 11572 class InstancesScopedListWarningData { | 13474 /** [Output Only] The error type identifier for this error. */ |
| 11573 /** A key for the warning data. */ | 13475 core.String code; |
| 13476 |
| 13477 /** |
| 13478 * [Output Only] Indicates the field in the request which caused the error. |
| 13479 * This property is optional. |
| 13480 */ |
| 13481 core.String location; |
| 13482 |
| 13483 /** [Output Only] An optional, human-readable error message. */ |
| 13484 core.String message; |
| 13485 |
| 13486 |
| 13487 OperationErrorErrors(); |
| 13488 |
| 13489 OperationErrorErrors.fromJson(core.Map _json) { |
| 13490 if (_json.containsKey("code")) { |
| 13491 code = _json["code"]; |
| 13492 } |
| 13493 if (_json.containsKey("location")) { |
| 13494 location = _json["location"]; |
| 13495 } |
| 13496 if (_json.containsKey("message")) { |
| 13497 message = _json["message"]; |
| 13498 } |
| 13499 } |
| 13500 |
| 13501 core.Map toJson() { |
| 13502 var _json = new core.Map(); |
| 13503 if (code != null) { |
| 13504 _json["code"] = code; |
| 13505 } |
| 13506 if (location != null) { |
| 13507 _json["location"] = location; |
| 13508 } |
| 13509 if (message != null) { |
| 13510 _json["message"] = message; |
| 13511 } |
| 13512 return _json; |
| 13513 } |
| 13514 } |
| 13515 |
| 13516 |
| 13517 /** |
| 13518 * [Output Only] If errors are generated during processing of the operation, |
| 13519 * this field will be populated. |
| 13520 */ |
| 13521 class OperationError { |
| 13522 /** |
| 13523 * [Output Only] The array of errors encountered while processing this |
| 13524 * operation. |
| 13525 */ |
| 13526 core.List<OperationErrorErrors> errors; |
| 13527 |
| 13528 |
| 13529 OperationError(); |
| 13530 |
| 13531 OperationError.fromJson(core.Map _json) { |
| 13532 if (_json.containsKey("errors")) { |
| 13533 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
| 13534 } |
| 13535 } |
| 13536 |
| 13537 core.Map toJson() { |
| 13538 var _json = new core.Map(); |
| 13539 if (errors != null) { |
| 13540 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 13541 } |
| 13542 return _json; |
| 13543 } |
| 13544 } |
| 13545 |
| 13546 |
| 13547 class OperationWarningsData { |
| 13548 /** [Output Only] A key for the warning data. */ |
| 11574 core.String key; | 13549 core.String key; |
| 11575 | 13550 |
| 11576 /** A warning data value corresponding to the key. */ | 13551 /** [Output Only] A warning data value corresponding to the key. */ |
| 11577 core.String value; | 13552 core.String value; |
| 11578 | 13553 |
| 11579 | 13554 |
| 11580 InstancesScopedListWarningData(); | 13555 OperationWarningsData(); |
| 11581 | 13556 |
| 11582 InstancesScopedListWarningData.fromJson(core.Map _json) { | 13557 OperationWarningsData.fromJson(core.Map _json) { |
| 11583 if (_json.containsKey("key")) { | 13558 if (_json.containsKey("key")) { |
| 11584 key = _json["key"]; | 13559 key = _json["key"]; |
| 11585 } | 13560 } |
| 11586 if (_json.containsKey("value")) { | 13561 if (_json.containsKey("value")) { |
| 11587 value = _json["value"]; | 13562 value = _json["value"]; |
| 11588 } | 13563 } |
| 11589 } | 13564 } |
| 11590 | 13565 |
| 11591 core.Map toJson() { | 13566 core.Map toJson() { |
| 11592 var _json = new core.Map(); | 13567 var _json = new core.Map(); |
| 11593 if (key != null) { | 13568 if (key != null) { |
| 11594 _json["key"] = key; | 13569 _json["key"] = key; |
| 11595 } | 13570 } |
| 11596 if (value != null) { | 13571 if (value != null) { |
| 11597 _json["value"] = value; | 13572 _json["value"] = value; |
| 11598 } | 13573 } |
| 11599 return _json; | 13574 return _json; |
| 11600 } | 13575 } |
| 11601 } | 13576 } |
| 11602 | 13577 |
| 11603 | 13578 |
| 11604 /** | 13579 class OperationWarnings { |
| 11605 * Informational warning which replaces the list of instances when the list is | |
| 11606 * empty. | |
| 11607 */ | |
| 11608 class InstancesScopedListWarning { | |
| 11609 /** | 13580 /** |
| 11610 * The warning type identifier for this warning. | 13581 * [Output Only] The warning type identifier for this warning. |
| 11611 * Possible string values are: | 13582 * Possible string values are: |
| 11612 * - "DEPRECATED_RESOURCE_USED" | 13583 * - "DEPRECATED_RESOURCE_USED" |
| 11613 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 13584 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 11614 * - "INJECTED_KERNELS_DEPRECATED" | 13585 * - "INJECTED_KERNELS_DEPRECATED" |
| 11615 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 13586 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 11616 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 13587 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 11617 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 13588 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 11618 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 13589 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 11619 * - "NEXT_HOP_NOT_RUNNING" | 13590 * - "NEXT_HOP_NOT_RUNNING" |
| 11620 * - "NO_RESULTS_ON_PAGE" | 13591 * - "NO_RESULTS_ON_PAGE" |
| 11621 * - "REQUIRED_TOS_AGREEMENT" | 13592 * - "REQUIRED_TOS_AGREEMENT" |
| 11622 * - "RESOURCE_NOT_DELETED" | 13593 * - "RESOURCE_NOT_DELETED" |
| 13594 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 11623 * - "UNREACHABLE" | 13595 * - "UNREACHABLE" |
| 11624 */ | 13596 */ |
| 11625 core.String code; | 13597 core.String code; |
| 11626 | 13598 |
| 11627 /** Metadata for this warning in 'key: value' format. */ | 13599 /** [Output Only] Metadata for this warning in key: value format. */ |
| 11628 core.List<InstancesScopedListWarningData> data; | 13600 core.List<OperationWarningsData> data; |
| 11629 | 13601 |
| 11630 /** Optional human-readable details for this warning. */ | 13602 /** [Output Only] Optional human-readable details for this warning. */ |
| 11631 core.String message; | 13603 core.String message; |
| 11632 | 13604 |
| 11633 | 13605 |
| 11634 InstancesScopedListWarning(); | 13606 OperationWarnings(); |
| 11635 | 13607 |
| 11636 InstancesScopedListWarning.fromJson(core.Map _json) { | 13608 OperationWarnings.fromJson(core.Map _json) { |
| 11637 if (_json.containsKey("code")) { | 13609 if (_json.containsKey("code")) { |
| 11638 code = _json["code"]; | 13610 code = _json["code"]; |
| 11639 } | 13611 } |
| 11640 if (_json.containsKey("data")) { | 13612 if (_json.containsKey("data")) { |
| 11641 data = _json["data"].map((value) => new InstancesScopedListWarningData.fro
mJson(value)).toList(); | 13613 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); |
| 11642 } | 13614 } |
| 11643 if (_json.containsKey("message")) { | 13615 if (_json.containsKey("message")) { |
| 11644 message = _json["message"]; | 13616 message = _json["message"]; |
| 11645 } | 13617 } |
| 11646 } | 13618 } |
| 11647 | 13619 |
| 11648 core.Map toJson() { | 13620 core.Map toJson() { |
| 11649 var _json = new core.Map(); | 13621 var _json = new core.Map(); |
| 11650 if (code != null) { | 13622 if (code != null) { |
| 11651 _json["code"] = code; | 13623 _json["code"] = code; |
| 11652 } | 13624 } |
| 11653 if (data != null) { | 13625 if (data != null) { |
| 11654 _json["data"] = data.map((value) => (value).toJson()).toList(); | 13626 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 11655 } | 13627 } |
| 11656 if (message != null) { | 13628 if (message != null) { |
| 11657 _json["message"] = message; | 13629 _json["message"] = message; |
| 11658 } | 13630 } |
| 11659 return _json; | 13631 return _json; |
| 11660 } | 13632 } |
| 11661 } | 13633 } |
| 11662 | 13634 |
| 11663 | 13635 |
| 11664 /** Not documented yet. */ | 13636 /** An operation resource, used to manage asynchronous API requests. */ |
| 11665 class InstancesScopedList { | 13637 class Operation { |
| 11666 /** List of instances contained in this scope. */ | 13638 /** |
| 11667 core.List<Instance> instances; | 13639 * [Output Only] An optional identifier specified by the client when the |
| 13640 * mutation was initiated. Must be unique for all operation resources in the |
| 13641 * project |
| 13642 */ |
| 13643 core.String clientOperationId; |
| 13644 |
| 13645 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 13646 core.String creationTimestamp; |
| 11668 | 13647 |
| 11669 /** | 13648 /** |
| 11670 * Informational warning which replaces the list of instances when the list is | 13649 * [Output Only] The time that this operation was completed. This is in |
| 11671 * empty. | 13650 * RFC3339 text format. |
| 11672 */ | 13651 */ |
| 11673 InstancesScopedListWarning warning; | 13652 core.String endTime; |
| 13653 |
| 13654 /** |
| 13655 * [Output Only] If errors are generated during processing of the operation, |
| 13656 * this field will be populated. |
| 13657 */ |
| 13658 OperationError error; |
| 13659 |
| 13660 /** |
| 13661 * [Output Only] If the operation fails, this field contains the HTTP error |
| 13662 * message that was returned, such as NOT FOUND. |
| 13663 */ |
| 13664 core.String httpErrorMessage; |
| 13665 |
| 13666 /** |
| 13667 * [Output Only] If the operation fails, this field contains the HTTP error |
| 13668 * message that was returned, such as 404. |
| 13669 */ |
| 13670 core.int httpErrorStatusCode; |
| 13671 |
| 13672 /** |
| 13673 * [Output Only] Unique identifier for the resource; defined by the server. |
| 13674 */ |
| 13675 core.String id; |
| 13676 |
| 13677 /** |
| 13678 * [Output Only] The time that this operation was requested. This is in |
| 13679 * RFC3339 text format. |
| 13680 */ |
| 13681 core.String insertTime; |
| 13682 |
| 13683 /** |
| 13684 * [Output Only] Type of the resource. Always compute#Operation for Operation |
| 13685 * resources. |
| 13686 */ |
| 13687 core.String kind; |
| 13688 |
| 13689 /** [Output Only] Name of the resource. */ |
| 13690 core.String name; |
| 13691 |
| 13692 /** |
| 13693 * [Output Only] Type of the operation, such as insert, update, and delete. |
| 13694 */ |
| 13695 core.String operationType; |
| 13696 |
| 13697 /** |
| 13698 * [Output Only] An optional progress indicator that ranges from 0 to 100. |
| 13699 * There is no requirement that this be linear or support any granularity of |
| 13700 * operations. This should not be used to guess at when the operation will be |
| 13701 * complete. This number should be monotonically increasing as the operation |
| 13702 * progresses. |
| 13703 */ |
| 13704 core.int progress; |
| 13705 |
| 13706 /** |
| 13707 * [Output Only] URL of the region where the operation resides. Only |
| 13708 * applicable for regional resources. |
| 13709 */ |
| 13710 core.String region; |
| 13711 |
| 13712 /** [Output Only] Server defined URL for the resource. */ |
| 13713 core.String selfLink; |
| 13714 |
| 13715 /** |
| 13716 * [Output Only] The time that this operation was started by the server. This |
| 13717 * is in RFC3339 text format. |
| 13718 */ |
| 13719 core.String startTime; |
| 13720 |
| 13721 /** |
| 13722 * [Output Only] Status of the operation. Can be one of the following: |
| 13723 * PENDING, RUNNING, or DONE. |
| 13724 * Possible string values are: |
| 13725 * - "DONE" |
| 13726 * - "PENDING" |
| 13727 * - "RUNNING" |
| 13728 */ |
| 13729 core.String status; |
| 13730 |
| 13731 /** |
| 13732 * [Output Only] An optional textual description of the current status of the |
| 13733 * operation. |
| 13734 */ |
| 13735 core.String statusMessage; |
| 13736 |
| 13737 /** |
| 13738 * [Output Only] Unique target ID which identifies a particular incarnation of |
| 13739 * the target. |
| 13740 */ |
| 13741 core.String targetId; |
| 13742 |
| 13743 /** [Output Only] URL of the resource the operation is mutating. */ |
| 13744 core.String targetLink; |
| 13745 |
| 13746 /** |
| 13747 * [Output Only] User who requested the operation, for example: |
| 13748 * user@example.com. |
| 13749 */ |
| 13750 core.String user; |
| 13751 |
| 13752 /** |
| 13753 * [Output Only] If warning messages are generated during processing of the |
| 13754 * operation, this field will be populated. |
| 13755 */ |
| 13756 core.List<OperationWarnings> warnings; |
| 13757 |
| 13758 /** [Output Only] URL of the zone where the operation resides. */ |
| 13759 core.String zone; |
| 11674 | 13760 |
| 11675 | 13761 |
| 11676 InstancesScopedList(); | 13762 Operation(); |
| 11677 | 13763 |
| 11678 InstancesScopedList.fromJson(core.Map _json) { | 13764 Operation.fromJson(core.Map _json) { |
| 11679 if (_json.containsKey("instances")) { | 13765 if (_json.containsKey("clientOperationId")) { |
| 11680 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); | 13766 clientOperationId = _json["clientOperationId"]; |
| 11681 } | 13767 } |
| 11682 if (_json.containsKey("warning")) { | 13768 if (_json.containsKey("creationTimestamp")) { |
| 11683 warning = new InstancesScopedListWarning.fromJson(_json["warning"]); | 13769 creationTimestamp = _json["creationTimestamp"]; |
| 11684 } | 13770 } |
| 11685 } | 13771 if (_json.containsKey("endTime")) { |
| 11686 | 13772 endTime = _json["endTime"]; |
| 11687 core.Map toJson() { | |
| 11688 var _json = new core.Map(); | |
| 11689 if (instances != null) { | |
| 11690 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | |
| 11691 } | 13773 } |
| 11692 if (warning != null) { | 13774 if (_json.containsKey("error")) { |
| 11693 _json["warning"] = (warning).toJson(); | 13775 error = new OperationError.fromJson(_json["error"]); |
| 11694 } | 13776 } |
| 11695 return _json; | 13777 if (_json.containsKey("httpErrorMessage")) { |
| 11696 } | 13778 httpErrorMessage = _json["httpErrorMessage"]; |
| 11697 } | 13779 } |
| 11698 | 13780 if (_json.containsKey("httpErrorStatusCode")) { |
| 11699 | 13781 httpErrorStatusCode = _json["httpErrorStatusCode"]; |
| 11700 /** A license resource. */ | 13782 } |
| 11701 class License { | 13783 if (_json.containsKey("id")) { |
| 11702 /** | 13784 id = _json["id"]; |
| 11703 * If true, the customer will be charged license fee for running software that | 13785 } |
| 11704 * contains this license on an instance. | 13786 if (_json.containsKey("insertTime")) { |
| 11705 */ | 13787 insertTime = _json["insertTime"]; |
| 11706 core.bool chargesUseFee; | |
| 11707 | |
| 11708 /** Type of resource. */ | |
| 11709 core.String kind; | |
| 11710 | |
| 11711 /** | |
| 11712 * Name of the resource; provided by the client when the resource is created. | |
| 11713 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 11714 */ | |
| 11715 core.String name; | |
| 11716 | |
| 11717 /** Server defined URL for the resource (output only). */ | |
| 11718 core.String selfLink; | |
| 11719 | |
| 11720 | |
| 11721 License(); | |
| 11722 | |
| 11723 License.fromJson(core.Map _json) { | |
| 11724 if (_json.containsKey("chargesUseFee")) { | |
| 11725 chargesUseFee = _json["chargesUseFee"]; | |
| 11726 } | 13788 } |
| 11727 if (_json.containsKey("kind")) { | 13789 if (_json.containsKey("kind")) { |
| 11728 kind = _json["kind"]; | 13790 kind = _json["kind"]; |
| 11729 } | 13791 } |
| 11730 if (_json.containsKey("name")) { | 13792 if (_json.containsKey("name")) { |
| 11731 name = _json["name"]; | 13793 name = _json["name"]; |
| 11732 } | 13794 } |
| 11733 if (_json.containsKey("selfLink")) { | 13795 if (_json.containsKey("operationType")) { |
| 11734 selfLink = _json["selfLink"]; | 13796 operationType = _json["operationType"]; |
| 11735 } | 13797 } |
| 11736 } | 13798 if (_json.containsKey("progress")) { |
| 11737 | 13799 progress = _json["progress"]; |
| 11738 core.Map toJson() { | |
| 11739 var _json = new core.Map(); | |
| 11740 if (chargesUseFee != null) { | |
| 11741 _json["chargesUseFee"] = chargesUseFee; | |
| 11742 } | 13800 } |
| 11743 if (kind != null) { | 13801 if (_json.containsKey("region")) { |
| 11744 _json["kind"] = kind; | 13802 region = _json["region"]; |
| 11745 } | |
| 11746 if (name != null) { | |
| 11747 _json["name"] = name; | |
| 11748 } | |
| 11749 if (selfLink != null) { | |
| 11750 _json["selfLink"] = selfLink; | |
| 11751 } | |
| 11752 return _json; | |
| 11753 } | |
| 11754 } | |
| 11755 | |
| 11756 | |
| 11757 /** Not documented yet. */ | |
| 11758 class MachineTypeScratchDisks { | |
| 11759 /** Size of the scratch disk, defined in GB. */ | |
| 11760 core.int diskGb; | |
| 11761 | |
| 11762 | |
| 11763 MachineTypeScratchDisks(); | |
| 11764 | |
| 11765 MachineTypeScratchDisks.fromJson(core.Map _json) { | |
| 11766 if (_json.containsKey("diskGb")) { | |
| 11767 diskGb = _json["diskGb"]; | |
| 11768 } | |
| 11769 } | |
| 11770 | |
| 11771 core.Map toJson() { | |
| 11772 var _json = new core.Map(); | |
| 11773 if (diskGb != null) { | |
| 11774 _json["diskGb"] = diskGb; | |
| 11775 } | |
| 11776 return _json; | |
| 11777 } | |
| 11778 } | |
| 11779 | |
| 11780 | |
| 11781 /** A machine type resource. */ | |
| 11782 class MachineType { | |
| 11783 /** [Output Only] Creation timestamp in RFC3339 text format. */ | |
| 11784 core.String creationTimestamp; | |
| 11785 | |
| 11786 /** The deprecation status associated with this machine type. */ | |
| 11787 DeprecationStatus deprecated; | |
| 11788 | |
| 11789 /** An optional textual description of the resource. */ | |
| 11790 core.String description; | |
| 11791 | |
| 11792 /** Count of CPUs exposed to the instance. */ | |
| 11793 core.int guestCpus; | |
| 11794 | |
| 11795 /** | |
| 11796 * [Output Only] Unique identifier for the resource; defined by the server. | |
| 11797 */ | |
| 11798 core.String id; | |
| 11799 | |
| 11800 /** Space allotted for the image, defined in GB. */ | |
| 11801 core.int imageSpaceGb; | |
| 11802 | |
| 11803 /** Type of the resource. */ | |
| 11804 core.String kind; | |
| 11805 | |
| 11806 /** Maximum persistent disks allowed. */ | |
| 11807 core.int maximumPersistentDisks; | |
| 11808 | |
| 11809 /** Maximum total persistent disks size (GB) allowed. */ | |
| 11810 core.String maximumPersistentDisksSizeGb; | |
| 11811 | |
| 11812 /** Physical memory assigned to the instance, defined in MB. */ | |
| 11813 core.int memoryMb; | |
| 11814 | |
| 11815 /** Name of the resource. */ | |
| 11816 core.String name; | |
| 11817 | |
| 11818 /** List of extended scratch disks assigned to the instance. */ | |
| 11819 core.List<MachineTypeScratchDisks> scratchDisks; | |
| 11820 | |
| 11821 /** [Output Only] Server defined URL for the resource. */ | |
| 11822 core.String selfLink; | |
| 11823 | |
| 11824 /** | |
| 11825 * [Output Only] The name of the zone where the machine type resides, such as | |
| 11826 * us-central1-a. | |
| 11827 */ | |
| 11828 core.String zone; | |
| 11829 | |
| 11830 | |
| 11831 MachineType(); | |
| 11832 | |
| 11833 MachineType.fromJson(core.Map _json) { | |
| 11834 if (_json.containsKey("creationTimestamp")) { | |
| 11835 creationTimestamp = _json["creationTimestamp"]; | |
| 11836 } | |
| 11837 if (_json.containsKey("deprecated")) { | |
| 11838 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); | |
| 11839 } | |
| 11840 if (_json.containsKey("description")) { | |
| 11841 description = _json["description"]; | |
| 11842 } | |
| 11843 if (_json.containsKey("guestCpus")) { | |
| 11844 guestCpus = _json["guestCpus"]; | |
| 11845 } | |
| 11846 if (_json.containsKey("id")) { | |
| 11847 id = _json["id"]; | |
| 11848 } | |
| 11849 if (_json.containsKey("imageSpaceGb")) { | |
| 11850 imageSpaceGb = _json["imageSpaceGb"]; | |
| 11851 } | |
| 11852 if (_json.containsKey("kind")) { | |
| 11853 kind = _json["kind"]; | |
| 11854 } | |
| 11855 if (_json.containsKey("maximumPersistentDisks")) { | |
| 11856 maximumPersistentDisks = _json["maximumPersistentDisks"]; | |
| 11857 } | |
| 11858 if (_json.containsKey("maximumPersistentDisksSizeGb")) { | |
| 11859 maximumPersistentDisksSizeGb = _json["maximumPersistentDisksSizeGb"]; | |
| 11860 } | |
| 11861 if (_json.containsKey("memoryMb")) { | |
| 11862 memoryMb = _json["memoryMb"]; | |
| 11863 } | |
| 11864 if (_json.containsKey("name")) { | |
| 11865 name = _json["name"]; | |
| 11866 } | |
| 11867 if (_json.containsKey("scratchDisks")) { | |
| 11868 scratchDisks = _json["scratchDisks"].map((value) => new MachineTypeScratch
Disks.fromJson(value)).toList(); | |
| 11869 } | 13803 } |
| 11870 if (_json.containsKey("selfLink")) { | 13804 if (_json.containsKey("selfLink")) { |
| 11871 selfLink = _json["selfLink"]; | 13805 selfLink = _json["selfLink"]; |
| 11872 } | 13806 } |
| 13807 if (_json.containsKey("startTime")) { |
| 13808 startTime = _json["startTime"]; |
| 13809 } |
| 13810 if (_json.containsKey("status")) { |
| 13811 status = _json["status"]; |
| 13812 } |
| 13813 if (_json.containsKey("statusMessage")) { |
| 13814 statusMessage = _json["statusMessage"]; |
| 13815 } |
| 13816 if (_json.containsKey("targetId")) { |
| 13817 targetId = _json["targetId"]; |
| 13818 } |
| 13819 if (_json.containsKey("targetLink")) { |
| 13820 targetLink = _json["targetLink"]; |
| 13821 } |
| 13822 if (_json.containsKey("user")) { |
| 13823 user = _json["user"]; |
| 13824 } |
| 13825 if (_json.containsKey("warnings")) { |
| 13826 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); |
| 13827 } |
| 11873 if (_json.containsKey("zone")) { | 13828 if (_json.containsKey("zone")) { |
| 11874 zone = _json["zone"]; | 13829 zone = _json["zone"]; |
| 11875 } | 13830 } |
| 11876 } | 13831 } |
| 11877 | 13832 |
| 11878 core.Map toJson() { | 13833 core.Map toJson() { |
| 11879 var _json = new core.Map(); | 13834 var _json = new core.Map(); |
| 13835 if (clientOperationId != null) { |
| 13836 _json["clientOperationId"] = clientOperationId; |
| 13837 } |
| 11880 if (creationTimestamp != null) { | 13838 if (creationTimestamp != null) { |
| 11881 _json["creationTimestamp"] = creationTimestamp; | 13839 _json["creationTimestamp"] = creationTimestamp; |
| 11882 } | 13840 } |
| 11883 if (deprecated != null) { | 13841 if (endTime != null) { |
| 11884 _json["deprecated"] = (deprecated).toJson(); | 13842 _json["endTime"] = endTime; |
| 11885 } | 13843 } |
| 11886 if (description != null) { | 13844 if (error != null) { |
| 11887 _json["description"] = description; | 13845 _json["error"] = (error).toJson(); |
| 11888 } | 13846 } |
| 11889 if (guestCpus != null) { | 13847 if (httpErrorMessage != null) { |
| 11890 _json["guestCpus"] = guestCpus; | 13848 _json["httpErrorMessage"] = httpErrorMessage; |
| 13849 } |
| 13850 if (httpErrorStatusCode != null) { |
| 13851 _json["httpErrorStatusCode"] = httpErrorStatusCode; |
| 11891 } | 13852 } |
| 11892 if (id != null) { | 13853 if (id != null) { |
| 11893 _json["id"] = id; | 13854 _json["id"] = id; |
| 11894 } | 13855 } |
| 11895 if (imageSpaceGb != null) { | 13856 if (insertTime != null) { |
| 11896 _json["imageSpaceGb"] = imageSpaceGb; | 13857 _json["insertTime"] = insertTime; |
| 11897 } | 13858 } |
| 11898 if (kind != null) { | 13859 if (kind != null) { |
| 11899 _json["kind"] = kind; | 13860 _json["kind"] = kind; |
| 11900 } | 13861 } |
| 11901 if (maximumPersistentDisks != null) { | |
| 11902 _json["maximumPersistentDisks"] = maximumPersistentDisks; | |
| 11903 } | |
| 11904 if (maximumPersistentDisksSizeGb != null) { | |
| 11905 _json["maximumPersistentDisksSizeGb"] = maximumPersistentDisksSizeGb; | |
| 11906 } | |
| 11907 if (memoryMb != null) { | |
| 11908 _json["memoryMb"] = memoryMb; | |
| 11909 } | |
| 11910 if (name != null) { | 13862 if (name != null) { |
| 11911 _json["name"] = name; | 13863 _json["name"] = name; |
| 11912 } | 13864 } |
| 11913 if (scratchDisks != null) { | 13865 if (operationType != null) { |
| 11914 _json["scratchDisks"] = scratchDisks.map((value) => (value).toJson()).toLi
st(); | 13866 _json["operationType"] = operationType; |
| 13867 } |
| 13868 if (progress != null) { |
| 13869 _json["progress"] = progress; |
| 13870 } |
| 13871 if (region != null) { |
| 13872 _json["region"] = region; |
| 11915 } | 13873 } |
| 11916 if (selfLink != null) { | 13874 if (selfLink != null) { |
| 11917 _json["selfLink"] = selfLink; | 13875 _json["selfLink"] = selfLink; |
| 11918 } | 13876 } |
| 13877 if (startTime != null) { |
| 13878 _json["startTime"] = startTime; |
| 13879 } |
| 13880 if (status != null) { |
| 13881 _json["status"] = status; |
| 13882 } |
| 13883 if (statusMessage != null) { |
| 13884 _json["statusMessage"] = statusMessage; |
| 13885 } |
| 13886 if (targetId != null) { |
| 13887 _json["targetId"] = targetId; |
| 13888 } |
| 13889 if (targetLink != null) { |
| 13890 _json["targetLink"] = targetLink; |
| 13891 } |
| 13892 if (user != null) { |
| 13893 _json["user"] = user; |
| 13894 } |
| 13895 if (warnings != null) { |
| 13896 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
| 13897 } |
| 11919 if (zone != null) { | 13898 if (zone != null) { |
| 11920 _json["zone"] = zone; | 13899 _json["zone"] = zone; |
| 11921 } | 13900 } |
| 11922 return _json; | 13901 return _json; |
| 11923 } | 13902 } |
| 11924 } | 13903 } |
| 11925 | 13904 |
| 11926 | 13905 |
| 11927 /** Not documented yet. */ | 13906 class OperationAggregatedList { |
| 11928 class MachineTypeAggregatedList { | |
| 11929 /** | 13907 /** |
| 11930 * [Output Only] Unique identifier for the resource; defined by the server. | 13908 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11931 */ | 13909 */ |
| 11932 core.String id; | 13910 core.String id; |
| 11933 | 13911 |
| 11934 /** A map of scoped machine type lists. */ | 13912 /** [Output Only] A map of scoped operation lists. */ |
| 11935 core.Map<core.String, MachineTypesScopedList> items; | 13913 core.Map<core.String, OperationsScopedList> items; |
| 11936 | 13914 |
| 11937 /** Type of resource. */ | 13915 /** |
| 13916 * [Output Only] Type of resource. Always compute#operationAggregatedList for |
| 13917 * aggregated lists of operations. |
| 13918 */ |
| 11938 core.String kind; | 13919 core.String kind; |
| 11939 | 13920 |
| 11940 /** [Output Only] A token used to continue a truncated list request. */ | 13921 /** [Output Only] A token used to continue a truncated list request. */ |
| 11941 core.String nextPageToken; | 13922 core.String nextPageToken; |
| 11942 | 13923 |
| 11943 /** Server defined URL for this resource (output only). */ | 13924 /** [Output Only] Server defined URL for this resource. */ |
| 11944 core.String selfLink; | 13925 core.String selfLink; |
| 11945 | 13926 |
| 11946 | 13927 |
| 11947 MachineTypeAggregatedList(); | 13928 OperationAggregatedList(); |
| 11948 | 13929 |
| 11949 MachineTypeAggregatedList.fromJson(core.Map _json) { | 13930 OperationAggregatedList.fromJson(core.Map _json) { |
| 11950 if (_json.containsKey("id")) { | 13931 if (_json.containsKey("id")) { |
| 11951 id = _json["id"]; | 13932 id = _json["id"]; |
| 11952 } | 13933 } |
| 11953 if (_json.containsKey("items")) { | 13934 if (_json.containsKey("items")) { |
| 11954 items = common_internal.mapMap(_json["items"], (item) => new MachineTypesS
copedList.fromJson(item)); | 13935 items = commons.mapMap(_json["items"], (item) => new OperationsScopedList.
fromJson(item)); |
| 11955 } | 13936 } |
| 11956 if (_json.containsKey("kind")) { | 13937 if (_json.containsKey("kind")) { |
| 11957 kind = _json["kind"]; | 13938 kind = _json["kind"]; |
| 11958 } | 13939 } |
| 11959 if (_json.containsKey("nextPageToken")) { | 13940 if (_json.containsKey("nextPageToken")) { |
| 11960 nextPageToken = _json["nextPageToken"]; | 13941 nextPageToken = _json["nextPageToken"]; |
| 11961 } | 13942 } |
| 11962 if (_json.containsKey("selfLink")) { | 13943 if (_json.containsKey("selfLink")) { |
| 11963 selfLink = _json["selfLink"]; | 13944 selfLink = _json["selfLink"]; |
| 11964 } | 13945 } |
| 11965 } | 13946 } |
| 11966 | 13947 |
| 11967 core.Map toJson() { | 13948 core.Map toJson() { |
| 11968 var _json = new core.Map(); | 13949 var _json = new core.Map(); |
| 11969 if (id != null) { | 13950 if (id != null) { |
| 11970 _json["id"] = id; | 13951 _json["id"] = id; |
| 11971 } | 13952 } |
| 11972 if (items != null) { | 13953 if (items != null) { |
| 11973 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | 13954 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 11974 } | 13955 } |
| 11975 if (kind != null) { | 13956 if (kind != null) { |
| 11976 _json["kind"] = kind; | 13957 _json["kind"] = kind; |
| 11977 } | 13958 } |
| 11978 if (nextPageToken != null) { | 13959 if (nextPageToken != null) { |
| 11979 _json["nextPageToken"] = nextPageToken; | 13960 _json["nextPageToken"] = nextPageToken; |
| 11980 } | 13961 } |
| 11981 if (selfLink != null) { | 13962 if (selfLink != null) { |
| 11982 _json["selfLink"] = selfLink; | 13963 _json["selfLink"] = selfLink; |
| 11983 } | 13964 } |
| 11984 return _json; | 13965 return _json; |
| 11985 } | 13966 } |
| 11986 } | 13967 } |
| 11987 | 13968 |
| 11988 | 13969 |
| 11989 /** Contains a list of machine type resources. */ | 13970 /** Contains a list of operation resources. */ |
| 11990 class MachineTypeList { | 13971 class OperationList { |
| 11991 /** | 13972 /** |
| 11992 * Unique identifier for the resource; defined by the server (output only). | 13973 * [Output Only] Unique identifier for the resource; defined by the server. |
| 11993 */ | 13974 */ |
| 11994 core.String id; | 13975 core.String id; |
| 11995 | 13976 |
| 11996 /** A list of MachineType resources. */ | 13977 /** [Output Only] The operation resources. */ |
| 11997 core.List<MachineType> items; | 13978 core.List<Operation> items; |
| 11998 | 13979 |
| 11999 /** Type of resource. */ | 13980 /** |
| 13981 * [Output Only] Type of resource. Always compute#operations for Operations |
| 13982 * resource. |
| 13983 */ |
| 12000 core.String kind; | 13984 core.String kind; |
| 12001 | 13985 |
| 12002 /** A token used to continue a truncated list request (output only). */ | 13986 /** [Output Only] A token used to continue a truncate. */ |
| 12003 core.String nextPageToken; | 13987 core.String nextPageToken; |
| 12004 | 13988 |
| 12005 /** Server defined URL for this resource (output only). */ | 13989 /** [Output Only] Server defined URL for this resource. */ |
| 12006 core.String selfLink; | 13990 core.String selfLink; |
| 12007 | 13991 |
| 12008 | 13992 |
| 12009 MachineTypeList(); | 13993 OperationList(); |
| 12010 | 13994 |
| 12011 MachineTypeList.fromJson(core.Map _json) { | 13995 OperationList.fromJson(core.Map _json) { |
| 12012 if (_json.containsKey("id")) { | 13996 if (_json.containsKey("id")) { |
| 12013 id = _json["id"]; | 13997 id = _json["id"]; |
| 12014 } | 13998 } |
| 12015 if (_json.containsKey("items")) { | 13999 if (_json.containsKey("items")) { |
| 12016 items = _json["items"].map((value) => new MachineType.fromJson(value)).toL
ist(); | 14000 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); |
| 12017 } | 14001 } |
| 12018 if (_json.containsKey("kind")) { | 14002 if (_json.containsKey("kind")) { |
| 12019 kind = _json["kind"]; | 14003 kind = _json["kind"]; |
| 12020 } | 14004 } |
| 12021 if (_json.containsKey("nextPageToken")) { | 14005 if (_json.containsKey("nextPageToken")) { |
| 12022 nextPageToken = _json["nextPageToken"]; | 14006 nextPageToken = _json["nextPageToken"]; |
| 12023 } | 14007 } |
| 12024 if (_json.containsKey("selfLink")) { | 14008 if (_json.containsKey("selfLink")) { |
| 12025 selfLink = _json["selfLink"]; | 14009 selfLink = _json["selfLink"]; |
| 12026 } | 14010 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 12041 _json["nextPageToken"] = nextPageToken; | 14025 _json["nextPageToken"] = nextPageToken; |
| 12042 } | 14026 } |
| 12043 if (selfLink != null) { | 14027 if (selfLink != null) { |
| 12044 _json["selfLink"] = selfLink; | 14028 _json["selfLink"] = selfLink; |
| 12045 } | 14029 } |
| 12046 return _json; | 14030 return _json; |
| 12047 } | 14031 } |
| 12048 } | 14032 } |
| 12049 | 14033 |
| 12050 | 14034 |
| 12051 /** Not documented yet. */ | 14035 class OperationsScopedListWarningData { |
| 12052 class MachineTypesScopedListWarningData { | 14036 /** [Output Only] A key for the warning data. */ |
| 12053 /** A key for the warning data. */ | |
| 12054 core.String key; | 14037 core.String key; |
| 12055 | 14038 |
| 12056 /** A warning data value corresponding to the key. */ | 14039 /** [Output Only] A warning data value corresponding to the key. */ |
| 12057 core.String value; | 14040 core.String value; |
| 12058 | 14041 |
| 12059 | 14042 |
| 12060 MachineTypesScopedListWarningData(); | 14043 OperationsScopedListWarningData(); |
| 12061 | 14044 |
| 12062 MachineTypesScopedListWarningData.fromJson(core.Map _json) { | 14045 OperationsScopedListWarningData.fromJson(core.Map _json) { |
| 12063 if (_json.containsKey("key")) { | 14046 if (_json.containsKey("key")) { |
| 12064 key = _json["key"]; | 14047 key = _json["key"]; |
| 12065 } | 14048 } |
| 12066 if (_json.containsKey("value")) { | 14049 if (_json.containsKey("value")) { |
| 12067 value = _json["value"]; | 14050 value = _json["value"]; |
| 12068 } | 14051 } |
| 12069 } | 14052 } |
| 12070 | 14053 |
| 12071 core.Map toJson() { | 14054 core.Map toJson() { |
| 12072 var _json = new core.Map(); | 14055 var _json = new core.Map(); |
| 12073 if (key != null) { | 14056 if (key != null) { |
| 12074 _json["key"] = key; | 14057 _json["key"] = key; |
| 12075 } | 14058 } |
| 12076 if (value != null) { | 14059 if (value != null) { |
| 12077 _json["value"] = value; | 14060 _json["value"] = value; |
| 12078 } | 14061 } |
| 12079 return _json; | 14062 return _json; |
| 12080 } | 14063 } |
| 14064 } |
| 14065 |
| 14066 |
| 14067 /** |
| 14068 * [Output Only] Informational warning which replaces the list of operations |
| 14069 * when the list is empty. |
| 14070 */ |
| 14071 class OperationsScopedListWarning { |
| 14072 /** |
| 14073 * [Output Only] The warning type identifier for this warning. |
| 14074 * Possible string values are: |
| 14075 * - "DEPRECATED_RESOURCE_USED" |
| 14076 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 14077 * - "INJECTED_KERNELS_DEPRECATED" |
| 14078 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 14079 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 14080 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 14081 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 14082 * - "NEXT_HOP_NOT_RUNNING" |
| 14083 * - "NO_RESULTS_ON_PAGE" |
| 14084 * - "REQUIRED_TOS_AGREEMENT" |
| 14085 * - "RESOURCE_NOT_DELETED" |
| 14086 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 14087 * - "UNREACHABLE" |
| 14088 */ |
| 14089 core.String code; |
| 14090 |
| 14091 /** [Output Only] Metadata for this warning in key: value format. */ |
| 14092 core.List<OperationsScopedListWarningData> data; |
| 14093 |
| 14094 /** [Output Only] Optional human-readable details for this warning. */ |
| 14095 core.String message; |
| 14096 |
| 14097 |
| 14098 OperationsScopedListWarning(); |
| 14099 |
| 14100 OperationsScopedListWarning.fromJson(core.Map _json) { |
| 14101 if (_json.containsKey("code")) { |
| 14102 code = _json["code"]; |
| 14103 } |
| 14104 if (_json.containsKey("data")) { |
| 14105 data = _json["data"].map((value) => new OperationsScopedListWarningData.fr
omJson(value)).toList(); |
| 14106 } |
| 14107 if (_json.containsKey("message")) { |
| 14108 message = _json["message"]; |
| 14109 } |
| 14110 } |
| 14111 |
| 14112 core.Map toJson() { |
| 14113 var _json = new core.Map(); |
| 14114 if (code != null) { |
| 14115 _json["code"] = code; |
| 14116 } |
| 14117 if (data != null) { |
| 14118 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 14119 } |
| 14120 if (message != null) { |
| 14121 _json["message"] = message; |
| 14122 } |
| 14123 return _json; |
| 14124 } |
| 14125 } |
| 14126 |
| 14127 |
| 14128 class OperationsScopedList { |
| 14129 /** [Output Only] List of operations contained in this scope. */ |
| 14130 core.List<Operation> operations; |
| 14131 |
| 14132 /** |
| 14133 * [Output Only] Informational warning which replaces the list of operations |
| 14134 * when the list is empty. |
| 14135 */ |
| 14136 OperationsScopedListWarning warning; |
| 14137 |
| 14138 |
| 14139 OperationsScopedList(); |
| 14140 |
| 14141 OperationsScopedList.fromJson(core.Map _json) { |
| 14142 if (_json.containsKey("operations")) { |
| 14143 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 14144 } |
| 14145 if (_json.containsKey("warning")) { |
| 14146 warning = new OperationsScopedListWarning.fromJson(_json["warning"]); |
| 14147 } |
| 14148 } |
| 14149 |
| 14150 core.Map toJson() { |
| 14151 var _json = new core.Map(); |
| 14152 if (operations != null) { |
| 14153 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 14154 } |
| 14155 if (warning != null) { |
| 14156 _json["warning"] = (warning).toJson(); |
| 14157 } |
| 14158 return _json; |
| 14159 } |
| 14160 } |
| 14161 |
| 14162 |
| 14163 /** |
| 14164 * A matcher for the path portion of the URL. The BackendService from the |
| 14165 * longest-matched rule will serve the URL. If no rule was matched, the |
| 14166 * default_service will be used. |
| 14167 */ |
| 14168 class PathMatcher { |
| 14169 /** |
| 14170 * The URL to the BackendService resource. This will be used if none of the |
| 14171 * 'pathRules' defined by this PathMatcher is met by the URL's path portion. |
| 14172 */ |
| 14173 core.String defaultService; |
| 14174 |
| 14175 core.String description; |
| 14176 |
| 14177 /** The name to which this PathMatcher is referred by the HostRule. */ |
| 14178 core.String name; |
| 14179 |
| 14180 /** The list of path rules. */ |
| 14181 core.List<PathRule> pathRules; |
| 14182 |
| 14183 |
| 14184 PathMatcher(); |
| 14185 |
| 14186 PathMatcher.fromJson(core.Map _json) { |
| 14187 if (_json.containsKey("defaultService")) { |
| 14188 defaultService = _json["defaultService"]; |
| 14189 } |
| 14190 if (_json.containsKey("description")) { |
| 14191 description = _json["description"]; |
| 14192 } |
| 14193 if (_json.containsKey("name")) { |
| 14194 name = _json["name"]; |
| 14195 } |
| 14196 if (_json.containsKey("pathRules")) { |
| 14197 pathRules = _json["pathRules"].map((value) => new PathRule.fromJson(value)
).toList(); |
| 14198 } |
| 14199 } |
| 14200 |
| 14201 core.Map toJson() { |
| 14202 var _json = new core.Map(); |
| 14203 if (defaultService != null) { |
| 14204 _json["defaultService"] = defaultService; |
| 14205 } |
| 14206 if (description != null) { |
| 14207 _json["description"] = description; |
| 14208 } |
| 14209 if (name != null) { |
| 14210 _json["name"] = name; |
| 14211 } |
| 14212 if (pathRules != null) { |
| 14213 _json["pathRules"] = pathRules.map((value) => (value).toJson()).toList(); |
| 14214 } |
| 14215 return _json; |
| 14216 } |
| 12081 } | 14217 } |
| 12082 | 14218 |
| 12083 | 14219 |
| 12084 /** | 14220 /** |
| 12085 * An informational warning that appears when the machine types list is empty. | 14221 * A path-matching rule for a URL. If matched, will use the specified |
| 14222 * BackendService to handle the traffic arriving at this URL. |
| 12086 */ | 14223 */ |
| 12087 class MachineTypesScopedListWarning { | 14224 class PathRule { |
| 12088 /** | 14225 /** |
| 12089 * The warning type identifier for this warning. | 14226 * The list of path patterns to match. Each must start with / and the only |
| 12090 * Possible string values are: | 14227 * place a * is allowed is at the end following a /. The string fed to the |
| 12091 * - "DEPRECATED_RESOURCE_USED" | 14228 * path matcher does not include any text after the first ? or #, and those |
| 12092 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 14229 * chars are not allowed here. |
| 12093 * - "INJECTED_KERNELS_DEPRECATED" | 14230 */ |
| 12094 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 14231 core.List<core.String> paths; |
| 12095 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 14232 |
| 12096 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 14233 /** The URL of the BackendService resource if this rule is matched. */ |
| 12097 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 14234 core.String service; |
| 12098 * - "NEXT_HOP_NOT_RUNNING" | 14235 |
| 12099 * - "NO_RESULTS_ON_PAGE" | 14236 |
| 12100 * - "REQUIRED_TOS_AGREEMENT" | 14237 PathRule(); |
| 12101 * - "RESOURCE_NOT_DELETED" | 14238 |
| 12102 * - "UNREACHABLE" | 14239 PathRule.fromJson(core.Map _json) { |
| 12103 */ | 14240 if (_json.containsKey("paths")) { |
| 12104 core.String code; | 14241 paths = _json["paths"]; |
| 12105 | 14242 } |
| 12106 /** Metadata for this warning in 'key: value' format. */ | 14243 if (_json.containsKey("service")) { |
| 12107 core.List<MachineTypesScopedListWarningData> data; | 14244 service = _json["service"]; |
| 12108 | |
| 12109 /** Optional human-readable details for this warning. */ | |
| 12110 core.String message; | |
| 12111 | |
| 12112 | |
| 12113 MachineTypesScopedListWarning(); | |
| 12114 | |
| 12115 MachineTypesScopedListWarning.fromJson(core.Map _json) { | |
| 12116 if (_json.containsKey("code")) { | |
| 12117 code = _json["code"]; | |
| 12118 } | |
| 12119 if (_json.containsKey("data")) { | |
| 12120 data = _json["data"].map((value) => new MachineTypesScopedListWarningData.
fromJson(value)).toList(); | |
| 12121 } | |
| 12122 if (_json.containsKey("message")) { | |
| 12123 message = _json["message"]; | |
| 12124 } | 14245 } |
| 12125 } | 14246 } |
| 12126 | 14247 |
| 12127 core.Map toJson() { | 14248 core.Map toJson() { |
| 12128 var _json = new core.Map(); | 14249 var _json = new core.Map(); |
| 12129 if (code != null) { | 14250 if (paths != null) { |
| 12130 _json["code"] = code; | 14251 _json["paths"] = paths; |
| 12131 } | 14252 } |
| 12132 if (data != null) { | 14253 if (service != null) { |
| 12133 _json["data"] = data.map((value) => (value).toJson()).toList(); | 14254 _json["service"] = service; |
| 12134 } | |
| 12135 if (message != null) { | |
| 12136 _json["message"] = message; | |
| 12137 } | 14255 } |
| 12138 return _json; | 14256 return _json; |
| 12139 } | 14257 } |
| 12140 } | 14258 } |
| 12141 | 14259 |
| 12142 | 14260 |
| 12143 /** Not documented yet. */ | 14261 /** |
| 12144 class MachineTypesScopedList { | 14262 * A Project resource. Projects can only be created in the Google Developers |
| 12145 /** List of machine types contained in this scope. */ | 14263 * Console. Unless marked otherwise, values can only be modified in the console. |
| 12146 core.List<MachineType> machineTypes; | 14264 */ |
| 12147 | 14265 class Project { |
| 12148 /** | 14266 /** |
| 12149 * An informational warning that appears when the machine types list is empty. | 14267 * Metadata key/value pairs available to all instances contained in this |
| 12150 */ | 14268 * project. See Custom metadata for more information. |
| 12151 MachineTypesScopedListWarning warning; | 14269 */ |
| 12152 | 14270 Metadata commonInstanceMetadata; |
| 12153 | 14271 |
| 12154 MachineTypesScopedList(); | 14272 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 12155 | 14273 core.String creationTimestamp; |
| 12156 MachineTypesScopedList.fromJson(core.Map _json) { | 14274 |
| 12157 if (_json.containsKey("machineTypes")) { | 14275 /** An optional textual description of the resource. */ |
| 12158 machineTypes = _json["machineTypes"].map((value) => new MachineType.fromJs
on(value)).toList(); | 14276 core.String description; |
| 12159 } | 14277 |
| 12160 if (_json.containsKey("warning")) { | 14278 /** |
| 12161 warning = new MachineTypesScopedListWarning.fromJson(_json["warning"]); | 14279 * [Output Only] Unique identifier for the resource; defined by the server. |
| 14280 */ |
| 14281 core.String id; |
| 14282 |
| 14283 /** |
| 14284 * [Output Only] Type of the resource. Always compute#project for projects. |
| 14285 */ |
| 14286 core.String kind; |
| 14287 |
| 14288 /** Name of the resource. */ |
| 14289 core.String name; |
| 14290 |
| 14291 /** [Output Only] Quotas assigned to this project. */ |
| 14292 core.List<Quota> quotas; |
| 14293 |
| 14294 /** [Output Only] Server defined URL for the resource. */ |
| 14295 core.String selfLink; |
| 14296 |
| 14297 /** |
| 14298 * The location in Cloud Storage and naming method of the daily usage report. |
| 14299 */ |
| 14300 UsageExportLocation usageExportLocation; |
| 14301 |
| 14302 |
| 14303 Project(); |
| 14304 |
| 14305 Project.fromJson(core.Map _json) { |
| 14306 if (_json.containsKey("commonInstanceMetadata")) { |
| 14307 commonInstanceMetadata = new Metadata.fromJson(_json["commonInstanceMetada
ta"]); |
| 14308 } |
| 14309 if (_json.containsKey("creationTimestamp")) { |
| 14310 creationTimestamp = _json["creationTimestamp"]; |
| 14311 } |
| 14312 if (_json.containsKey("description")) { |
| 14313 description = _json["description"]; |
| 14314 } |
| 14315 if (_json.containsKey("id")) { |
| 14316 id = _json["id"]; |
| 14317 } |
| 14318 if (_json.containsKey("kind")) { |
| 14319 kind = _json["kind"]; |
| 14320 } |
| 14321 if (_json.containsKey("name")) { |
| 14322 name = _json["name"]; |
| 14323 } |
| 14324 if (_json.containsKey("quotas")) { |
| 14325 quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList(
); |
| 14326 } |
| 14327 if (_json.containsKey("selfLink")) { |
| 14328 selfLink = _json["selfLink"]; |
| 14329 } |
| 14330 if (_json.containsKey("usageExportLocation")) { |
| 14331 usageExportLocation = new UsageExportLocation.fromJson(_json["usageExportL
ocation"]); |
| 12162 } | 14332 } |
| 12163 } | 14333 } |
| 12164 | 14334 |
| 12165 core.Map toJson() { | 14335 core.Map toJson() { |
| 12166 var _json = new core.Map(); | 14336 var _json = new core.Map(); |
| 12167 if (machineTypes != null) { | 14337 if (commonInstanceMetadata != null) { |
| 12168 _json["machineTypes"] = machineTypes.map((value) => (value).toJson()).toLi
st(); | 14338 _json["commonInstanceMetadata"] = (commonInstanceMetadata).toJson(); |
| 12169 } | 14339 } |
| 12170 if (warning != null) { | 14340 if (creationTimestamp != null) { |
| 12171 _json["warning"] = (warning).toJson(); | 14341 _json["creationTimestamp"] = creationTimestamp; |
| 14342 } |
| 14343 if (description != null) { |
| 14344 _json["description"] = description; |
| 14345 } |
| 14346 if (id != null) { |
| 14347 _json["id"] = id; |
| 14348 } |
| 14349 if (kind != null) { |
| 14350 _json["kind"] = kind; |
| 14351 } |
| 14352 if (name != null) { |
| 14353 _json["name"] = name; |
| 14354 } |
| 14355 if (quotas != null) { |
| 14356 _json["quotas"] = quotas.map((value) => (value).toJson()).toList(); |
| 14357 } |
| 14358 if (selfLink != null) { |
| 14359 _json["selfLink"] = selfLink; |
| 14360 } |
| 14361 if (usageExportLocation != null) { |
| 14362 _json["usageExportLocation"] = (usageExportLocation).toJson(); |
| 12172 } | 14363 } |
| 12173 return _json; | 14364 return _json; |
| 12174 } | 14365 } |
| 12175 } | 14366 } |
| 12176 | 14367 |
| 12177 | 14368 |
| 12178 /** Not documented yet. */ | 14369 /** A quotas entry. */ |
| 12179 class MetadataItems { | 14370 class Quota { |
| 12180 /** | 14371 /** [Output Only] Quota limit for this metric. */ |
| 12181 * Key for the metadata entry. Keys must conform to the following regexp: | 14372 core.double limit; |
| 12182 * [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as | 14373 |
| 12183 * part of a URL in the metadata server. Additionally, to avoid ambiguity, | 14374 /** |
| 12184 * keys must not conflict with any other metadata keys for the project. | 14375 * [Output Only] Name of the quota metric. |
| 12185 */ | 14376 * Possible string values are: |
| 12186 core.String key; | 14377 * - "BACKEND_SERVICES" |
| 12187 | 14378 * - "CPUS" |
| 12188 /** | 14379 * - "DISKS_TOTAL_GB" |
| 12189 * Value for the metadata entry. These are free-form strings, and only have | 14380 * - "FIREWALLS" |
| 12190 * meaning as interpreted by the image running in the instance. The only | 14381 * - "FORWARDING_RULES" |
| 12191 * restriction placed on values is that their size must be less than or equal | 14382 * - "HEALTH_CHECKS" |
| 12192 * to 32768 bytes. | 14383 * - "IMAGES" |
| 12193 */ | 14384 * - "INSTANCES" |
| 12194 core.String value; | 14385 * - "IN_USE_ADDRESSES" |
| 12195 | 14386 * - "LOCAL_SSD_TOTAL_GB" |
| 12196 | 14387 * - "NETWORKS" |
| 12197 MetadataItems(); | 14388 * - "ROUTES" |
| 12198 | 14389 * - "SNAPSHOTS" |
| 12199 MetadataItems.fromJson(core.Map _json) { | 14390 * - "SSD_TOTAL_GB" |
| 12200 if (_json.containsKey("key")) { | 14391 * - "STATIC_ADDRESSES" |
| 12201 key = _json["key"]; | 14392 * - "TARGET_HTTP_PROXIES" |
| 12202 } | 14393 * - "TARGET_INSTANCES" |
| 12203 if (_json.containsKey("value")) { | 14394 * - "TARGET_POOLS" |
| 12204 value = _json["value"]; | 14395 * - "URL_MAPS" |
| 14396 */ |
| 14397 core.String metric; |
| 14398 |
| 14399 /** [Output Only] Current usage of this metric. */ |
| 14400 core.double usage; |
| 14401 |
| 14402 |
| 14403 Quota(); |
| 14404 |
| 14405 Quota.fromJson(core.Map _json) { |
| 14406 if (_json.containsKey("limit")) { |
| 14407 limit = _json["limit"]; |
| 14408 } |
| 14409 if (_json.containsKey("metric")) { |
| 14410 metric = _json["metric"]; |
| 14411 } |
| 14412 if (_json.containsKey("usage")) { |
| 14413 usage = _json["usage"]; |
| 12205 } | 14414 } |
| 12206 } | 14415 } |
| 12207 | 14416 |
| 12208 core.Map toJson() { | 14417 core.Map toJson() { |
| 12209 var _json = new core.Map(); | 14418 var _json = new core.Map(); |
| 12210 if (key != null) { | 14419 if (limit != null) { |
| 12211 _json["key"] = key; | 14420 _json["limit"] = limit; |
| 12212 } | 14421 } |
| 12213 if (value != null) { | 14422 if (metric != null) { |
| 12214 _json["value"] = value; | 14423 _json["metric"] = metric; |
| 14424 } |
| 14425 if (usage != null) { |
| 14426 _json["usage"] = usage; |
| 12215 } | 14427 } |
| 12216 return _json; | 14428 return _json; |
| 12217 } | 14429 } |
| 12218 } | 14430 } |
| 12219 | 14431 |
| 12220 | 14432 |
| 12221 /** A metadata key/value entry. */ | 14433 /** Region resource. */ |
| 12222 class Metadata { | 14434 class Region { |
| 12223 /** | 14435 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 12224 * Fingerprint of this resource. A hash of the metadata's contents. This field | 14436 core.String creationTimestamp; |
| 12225 * is used for optimistic locking. An up-to-date metadata fingerprint must be | 14437 |
| 12226 * provided in order to modify metadata. | 14438 /** [Output Only] The deprecation status associated with this region. */ |
| 12227 */ | 14439 DeprecationStatus deprecated; |
| 12228 core.String fingerprint; | 14440 |
| 12229 | 14441 /** [Output Only] Textual description of the resource. */ |
| 12230 core.List<core.int> get fingerprintAsBytes { | 14442 core.String description; |
| 12231 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | 14443 |
| 12232 } | 14444 /** |
| 12233 | 14445 * [Output Only] Unique identifier for the resource; defined by the server . |
| 12234 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 14446 */ |
| 12235 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 14447 core.String id; |
| 12236 } | 14448 |
| 12237 | 14449 /** [Output Only] Type of the resource. Always compute#region for regions. */ |
| 12238 /** | |
| 12239 * Array of key/value pairs. The total size of all keys and values must be | |
| 12240 * less than 512 KB. | |
| 12241 */ | |
| 12242 core.List<MetadataItems> items; | |
| 12243 | |
| 12244 /** Type of the resource. */ | |
| 12245 core.String kind; | 14450 core.String kind; |
| 12246 | 14451 |
| 12247 | 14452 /** [Output Only] Name of the resource. */ |
| 12248 Metadata(); | |
| 12249 | |
| 12250 Metadata.fromJson(core.Map _json) { | |
| 12251 if (_json.containsKey("fingerprint")) { | |
| 12252 fingerprint = _json["fingerprint"]; | |
| 12253 } | |
| 12254 if (_json.containsKey("items")) { | |
| 12255 items = _json["items"].map((value) => new MetadataItems.fromJson(value)).t
oList(); | |
| 12256 } | |
| 12257 if (_json.containsKey("kind")) { | |
| 12258 kind = _json["kind"]; | |
| 12259 } | |
| 12260 } | |
| 12261 | |
| 12262 core.Map toJson() { | |
| 12263 var _json = new core.Map(); | |
| 12264 if (fingerprint != null) { | |
| 12265 _json["fingerprint"] = fingerprint; | |
| 12266 } | |
| 12267 if (items != null) { | |
| 12268 _json["items"] = items.map((value) => (value).toJson()).toList(); | |
| 12269 } | |
| 12270 if (kind != null) { | |
| 12271 _json["kind"] = kind; | |
| 12272 } | |
| 12273 return _json; | |
| 12274 } | |
| 12275 } | |
| 12276 | |
| 12277 | |
| 12278 /** A network resource. */ | |
| 12279 class Network { | |
| 12280 /** | |
| 12281 * Required; The range of internal addresses that are legal on this network. | |
| 12282 * This range is a CIDR specification, for example: 192.168.0.0/16. Provided | |
| 12283 * by the client when the network is created. | |
| 12284 */ | |
| 12285 core.String IPv4Range; | |
| 12286 | |
| 12287 /** Creation timestamp in RFC3339 text format (output only). */ | |
| 12288 core.String creationTimestamp; | |
| 12289 | |
| 12290 /** | |
| 12291 * An optional textual description of the resource; provided by the client | |
| 12292 * when the resource is created. | |
| 12293 */ | |
| 12294 core.String description; | |
| 12295 | |
| 12296 /** | |
| 12297 * An optional address that is used for default routing to other networks. | |
| 12298 * This must be within the range specified by IPv4Range, and is typically the | |
| 12299 * first usable address in that range. If not specified, the default value is | |
| 12300 * the first usable address in IPv4Range. | |
| 12301 */ | |
| 12302 core.String gatewayIPv4; | |
| 12303 | |
| 12304 /** | |
| 12305 * Unique identifier for the resource; defined by the server (output only). | |
| 12306 */ | |
| 12307 core.String id; | |
| 12308 | |
| 12309 /** Type of the resource. */ | |
| 12310 core.String kind; | |
| 12311 | |
| 12312 /** | |
| 12313 * Name of the resource; provided by the client when the resource is created. | |
| 12314 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 12315 */ | |
| 12316 core.String name; | 14453 core.String name; |
| 12317 | 14454 |
| 12318 /** Server defined URL for the resource (output only). */ | 14455 /** [Output Only] Quotas assigned to this region. */ |
| 14456 core.List<Quota> quotas; |
| 14457 |
| 14458 /** [Output Only] Server defined URL for the resource. */ |
| 12319 core.String selfLink; | 14459 core.String selfLink; |
| 12320 | 14460 |
| 12321 | 14461 /** |
| 12322 Network(); | 14462 * [Output Only] Status of the region, either UP or DOWN. |
| 12323 | 14463 * Possible string values are: |
| 12324 Network.fromJson(core.Map _json) { | 14464 * - "DOWN" |
| 12325 if (_json.containsKey("IPv4Range")) { | 14465 * - "UP" |
| 12326 IPv4Range = _json["IPv4Range"]; | 14466 */ |
| 12327 } | 14467 core.String status; |
| 14468 |
| 14469 /** |
| 14470 * [Output Only] A list of zones available in this region, in the form of |
| 14471 * resource URLs. |
| 14472 */ |
| 14473 core.List<core.String> zones; |
| 14474 |
| 14475 |
| 14476 Region(); |
| 14477 |
| 14478 Region.fromJson(core.Map _json) { |
| 12328 if (_json.containsKey("creationTimestamp")) { | 14479 if (_json.containsKey("creationTimestamp")) { |
| 12329 creationTimestamp = _json["creationTimestamp"]; | 14480 creationTimestamp = _json["creationTimestamp"]; |
| 12330 } | 14481 } |
| 14482 if (_json.containsKey("deprecated")) { |
| 14483 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); |
| 14484 } |
| 12331 if (_json.containsKey("description")) { | 14485 if (_json.containsKey("description")) { |
| 12332 description = _json["description"]; | 14486 description = _json["description"]; |
| 12333 } | 14487 } |
| 12334 if (_json.containsKey("gatewayIPv4")) { | |
| 12335 gatewayIPv4 = _json["gatewayIPv4"]; | |
| 12336 } | |
| 12337 if (_json.containsKey("id")) { | 14488 if (_json.containsKey("id")) { |
| 12338 id = _json["id"]; | 14489 id = _json["id"]; |
| 12339 } | 14490 } |
| 12340 if (_json.containsKey("kind")) { | 14491 if (_json.containsKey("kind")) { |
| 12341 kind = _json["kind"]; | 14492 kind = _json["kind"]; |
| 12342 } | 14493 } |
| 12343 if (_json.containsKey("name")) { | 14494 if (_json.containsKey("name")) { |
| 12344 name = _json["name"]; | 14495 name = _json["name"]; |
| 12345 } | 14496 } |
| 14497 if (_json.containsKey("quotas")) { |
| 14498 quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList(
); |
| 14499 } |
| 12346 if (_json.containsKey("selfLink")) { | 14500 if (_json.containsKey("selfLink")) { |
| 12347 selfLink = _json["selfLink"]; | 14501 selfLink = _json["selfLink"]; |
| 12348 } | 14502 } |
| 14503 if (_json.containsKey("status")) { |
| 14504 status = _json["status"]; |
| 14505 } |
| 14506 if (_json.containsKey("zones")) { |
| 14507 zones = _json["zones"]; |
| 14508 } |
| 12349 } | 14509 } |
| 12350 | 14510 |
| 12351 core.Map toJson() { | 14511 core.Map toJson() { |
| 12352 var _json = new core.Map(); | 14512 var _json = new core.Map(); |
| 12353 if (IPv4Range != null) { | |
| 12354 _json["IPv4Range"] = IPv4Range; | |
| 12355 } | |
| 12356 if (creationTimestamp != null) { | 14513 if (creationTimestamp != null) { |
| 12357 _json["creationTimestamp"] = creationTimestamp; | 14514 _json["creationTimestamp"] = creationTimestamp; |
| 12358 } | 14515 } |
| 14516 if (deprecated != null) { |
| 14517 _json["deprecated"] = (deprecated).toJson(); |
| 14518 } |
| 12359 if (description != null) { | 14519 if (description != null) { |
| 12360 _json["description"] = description; | 14520 _json["description"] = description; |
| 12361 } | 14521 } |
| 12362 if (gatewayIPv4 != null) { | |
| 12363 _json["gatewayIPv4"] = gatewayIPv4; | |
| 12364 } | |
| 12365 if (id != null) { | 14522 if (id != null) { |
| 12366 _json["id"] = id; | 14523 _json["id"] = id; |
| 12367 } | 14524 } |
| 12368 if (kind != null) { | 14525 if (kind != null) { |
| 12369 _json["kind"] = kind; | 14526 _json["kind"] = kind; |
| 12370 } | 14527 } |
| 12371 if (name != null) { | 14528 if (name != null) { |
| 12372 _json["name"] = name; | 14529 _json["name"] = name; |
| 12373 } | 14530 } |
| 14531 if (quotas != null) { |
| 14532 _json["quotas"] = quotas.map((value) => (value).toJson()).toList(); |
| 14533 } |
| 12374 if (selfLink != null) { | 14534 if (selfLink != null) { |
| 12375 _json["selfLink"] = selfLink; | 14535 _json["selfLink"] = selfLink; |
| 12376 } | 14536 } |
| 14537 if (status != null) { |
| 14538 _json["status"] = status; |
| 14539 } |
| 14540 if (zones != null) { |
| 14541 _json["zones"] = zones; |
| 14542 } |
| 12377 return _json; | 14543 return _json; |
| 12378 } | 14544 } |
| 12379 } | 14545 } |
| 12380 | 14546 |
| 12381 | 14547 |
| 12382 /** A network interface resource attached to an instance. */ | 14548 /** Contains a list of region resources. */ |
| 12383 class NetworkInterface { | 14549 class RegionList { |
| 12384 /** | 14550 /** |
| 12385 * Array of configurations for this interface. This specifies how this | 14551 * [Output Only] Unique identifier for the resource; defined by the server. |
| 12386 * interface is configured to interact with other network services, such as | |
| 12387 * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access | |
| 12388 * config supported. If there are no accessConfigs specified, then this | |
| 12389 * instance will have no external internet access. | |
| 12390 */ | |
| 12391 core.List<AccessConfig> accessConfigs; | |
| 12392 | |
| 12393 /** | |
| 12394 * Name of the network interface, determined by the server; for network | |
| 12395 * devices, these are e.g. eth0, eth1, etc. (output only). | |
| 12396 */ | |
| 12397 core.String name; | |
| 12398 | |
| 12399 /** URL of the network resource attached to this interface. */ | |
| 12400 core.String network; | |
| 12401 | |
| 12402 /** | |
| 12403 * An optional IPV4 internal network address assigned to the instance for this | |
| 12404 * network interface (output only). | |
| 12405 */ | |
| 12406 core.String networkIP; | |
| 12407 | |
| 12408 | |
| 12409 NetworkInterface(); | |
| 12410 | |
| 12411 NetworkInterface.fromJson(core.Map _json) { | |
| 12412 if (_json.containsKey("accessConfigs")) { | |
| 12413 accessConfigs = _json["accessConfigs"].map((value) => new AccessConfig.fro
mJson(value)).toList(); | |
| 12414 } | |
| 12415 if (_json.containsKey("name")) { | |
| 12416 name = _json["name"]; | |
| 12417 } | |
| 12418 if (_json.containsKey("network")) { | |
| 12419 network = _json["network"]; | |
| 12420 } | |
| 12421 if (_json.containsKey("networkIP")) { | |
| 12422 networkIP = _json["networkIP"]; | |
| 12423 } | |
| 12424 } | |
| 12425 | |
| 12426 core.Map toJson() { | |
| 12427 var _json = new core.Map(); | |
| 12428 if (accessConfigs != null) { | |
| 12429 _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).to
List(); | |
| 12430 } | |
| 12431 if (name != null) { | |
| 12432 _json["name"] = name; | |
| 12433 } | |
| 12434 if (network != null) { | |
| 12435 _json["network"] = network; | |
| 12436 } | |
| 12437 if (networkIP != null) { | |
| 12438 _json["networkIP"] = networkIP; | |
| 12439 } | |
| 12440 return _json; | |
| 12441 } | |
| 12442 } | |
| 12443 | |
| 12444 | |
| 12445 /** Contains a list of network resources. */ | |
| 12446 class NetworkList { | |
| 12447 /** | |
| 12448 * Unique identifier for the resource; defined by the server (output only). | |
| 12449 */ | 14552 */ |
| 12450 core.String id; | 14553 core.String id; |
| 12451 | 14554 |
| 12452 /** A list of Network resources. */ | 14555 /** [Output Only] A list of Region resources. */ |
| 12453 core.List<Network> items; | 14556 core.List<Region> items; |
| 12454 | 14557 |
| 12455 /** Type of resource. */ | 14558 /** |
| 14559 * [Output Only] Type of resource. Always compute#regionList for lists of |
| 14560 * regions. |
| 14561 */ |
| 12456 core.String kind; | 14562 core.String kind; |
| 12457 | 14563 |
| 12458 /** A token used to continue a truncated list request (output only). */ | 14564 /** [Output Only] A token used to continue a truncated list request. */ |
| 12459 core.String nextPageToken; | 14565 core.String nextPageToken; |
| 12460 | 14566 |
| 12461 /** Server defined URL for this resource (output only). */ | 14567 /** [Output Only] Server defined URL for this resource. */ |
| 12462 core.String selfLink; | 14568 core.String selfLink; |
| 12463 | 14569 |
| 12464 | 14570 |
| 12465 NetworkList(); | 14571 RegionList(); |
| 12466 | 14572 |
| 12467 NetworkList.fromJson(core.Map _json) { | 14573 RegionList.fromJson(core.Map _json) { |
| 12468 if (_json.containsKey("id")) { | 14574 if (_json.containsKey("id")) { |
| 12469 id = _json["id"]; | 14575 id = _json["id"]; |
| 12470 } | 14576 } |
| 12471 if (_json.containsKey("items")) { | 14577 if (_json.containsKey("items")) { |
| 12472 items = _json["items"].map((value) => new Network.fromJson(value)).toList(
); | 14578 items = _json["items"].map((value) => new Region.fromJson(value)).toList()
; |
| 12473 } | 14579 } |
| 12474 if (_json.containsKey("kind")) { | 14580 if (_json.containsKey("kind")) { |
| 12475 kind = _json["kind"]; | 14581 kind = _json["kind"]; |
| 12476 } | 14582 } |
| 12477 if (_json.containsKey("nextPageToken")) { | 14583 if (_json.containsKey("nextPageToken")) { |
| 12478 nextPageToken = _json["nextPageToken"]; | 14584 nextPageToken = _json["nextPageToken"]; |
| 12479 } | 14585 } |
| 12480 if (_json.containsKey("selfLink")) { | 14586 if (_json.containsKey("selfLink")) { |
| 12481 selfLink = _json["selfLink"]; | 14587 selfLink = _json["selfLink"]; |
| 12482 } | 14588 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 12497 _json["nextPageToken"] = nextPageToken; | 14603 _json["nextPageToken"] = nextPageToken; |
| 12498 } | 14604 } |
| 12499 if (selfLink != null) { | 14605 if (selfLink != null) { |
| 12500 _json["selfLink"] = selfLink; | 14606 _json["selfLink"] = selfLink; |
| 12501 } | 14607 } |
| 12502 return _json; | 14608 return _json; |
| 12503 } | 14609 } |
| 12504 } | 14610 } |
| 12505 | 14611 |
| 12506 | 14612 |
| 12507 /** Not documented yet. */ | 14613 class ResourceGroupReference { |
| 12508 class OperationErrorErrors { | |
| 12509 /** [Output Only] The error type identifier for this error. */ | |
| 12510 core.String code; | |
| 12511 | |
| 12512 /** | 14614 /** |
| 12513 * [Output Only] Indicates the field in the request which caused the error. | 14615 * A URI referencing one of the resource views listed in the backend service. |
| 12514 * This property is optional. | |
| 12515 */ | 14616 */ |
| 12516 core.String location; | 14617 core.String group; |
| 12517 | |
| 12518 /** [Output Only] An optional, human-readable error message. */ | |
| 12519 core.String message; | |
| 12520 | 14618 |
| 12521 | 14619 |
| 12522 OperationErrorErrors(); | 14620 ResourceGroupReference(); |
| 12523 | 14621 |
| 12524 OperationErrorErrors.fromJson(core.Map _json) { | 14622 ResourceGroupReference.fromJson(core.Map _json) { |
| 12525 if (_json.containsKey("code")) { | 14623 if (_json.containsKey("group")) { |
| 12526 code = _json["code"]; | 14624 group = _json["group"]; |
| 12527 } | |
| 12528 if (_json.containsKey("location")) { | |
| 12529 location = _json["location"]; | |
| 12530 } | |
| 12531 if (_json.containsKey("message")) { | |
| 12532 message = _json["message"]; | |
| 12533 } | 14625 } |
| 12534 } | 14626 } |
| 12535 | 14627 |
| 12536 core.Map toJson() { | 14628 core.Map toJson() { |
| 12537 var _json = new core.Map(); | 14629 var _json = new core.Map(); |
| 12538 if (code != null) { | 14630 if (group != null) { |
| 12539 _json["code"] = code; | 14631 _json["group"] = group; |
| 12540 } | |
| 12541 if (location != null) { | |
| 12542 _json["location"] = location; | |
| 12543 } | |
| 12544 if (message != null) { | |
| 12545 _json["message"] = message; | |
| 12546 } | 14632 } |
| 12547 return _json; | 14633 return _json; |
| 12548 } | 14634 } |
| 12549 } | 14635 } |
| 12550 | 14636 |
| 12551 | 14637 |
| 12552 /** | 14638 class RouteWarningsData { |
| 12553 * [Output Only] If errors occurred during processing of this operation, this | 14639 /** [Output Only] A key for the warning data. */ |
| 12554 * field will be populated. | |
| 12555 */ | |
| 12556 class OperationError { | |
| 12557 /** | |
| 12558 * [Output Only] The array of errors encountered while processing this | |
| 12559 * operation. | |
| 12560 */ | |
| 12561 core.List<OperationErrorErrors> errors; | |
| 12562 | |
| 12563 | |
| 12564 OperationError(); | |
| 12565 | |
| 12566 OperationError.fromJson(core.Map _json) { | |
| 12567 if (_json.containsKey("errors")) { | |
| 12568 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | |
| 12569 } | |
| 12570 } | |
| 12571 | |
| 12572 core.Map toJson() { | |
| 12573 var _json = new core.Map(); | |
| 12574 if (errors != null) { | |
| 12575 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | |
| 12576 } | |
| 12577 return _json; | |
| 12578 } | |
| 12579 } | |
| 12580 | |
| 12581 | |
| 12582 /** Not documented yet. */ | |
| 12583 class OperationWarningsData { | |
| 12584 /** A key for the warning data. */ | |
| 12585 core.String key; | 14640 core.String key; |
| 12586 | 14641 |
| 12587 /** A warning data value corresponding to the key. */ | 14642 /** [Output Only] A warning data value corresponding to the key. */ |
| 12588 core.String value; | 14643 core.String value; |
| 12589 | 14644 |
| 12590 | 14645 |
| 12591 OperationWarningsData(); | 14646 RouteWarningsData(); |
| 12592 | 14647 |
| 12593 OperationWarningsData.fromJson(core.Map _json) { | 14648 RouteWarningsData.fromJson(core.Map _json) { |
| 12594 if (_json.containsKey("key")) { | 14649 if (_json.containsKey("key")) { |
| 12595 key = _json["key"]; | 14650 key = _json["key"]; |
| 12596 } | 14651 } |
| 12597 if (_json.containsKey("value")) { | 14652 if (_json.containsKey("value")) { |
| 12598 value = _json["value"]; | 14653 value = _json["value"]; |
| 12599 } | 14654 } |
| 12600 } | 14655 } |
| 12601 | 14656 |
| 12602 core.Map toJson() { | 14657 core.Map toJson() { |
| 12603 var _json = new core.Map(); | 14658 var _json = new core.Map(); |
| 12604 if (key != null) { | 14659 if (key != null) { |
| 12605 _json["key"] = key; | 14660 _json["key"] = key; |
| 12606 } | 14661 } |
| 12607 if (value != null) { | 14662 if (value != null) { |
| 12608 _json["value"] = value; | 14663 _json["value"] = value; |
| 12609 } | 14664 } |
| 12610 return _json; | 14665 return _json; |
| 12611 } | 14666 } |
| 12612 } | 14667 } |
| 12613 | 14668 |
| 12614 | 14669 |
| 12615 /** Not documented yet. */ | 14670 class RouteWarnings { |
| 12616 class OperationWarnings { | |
| 12617 /** | 14671 /** |
| 12618 * The warning type identifier for this warning. | 14672 * [Output Only] The warning type identifier for this warning. |
| 12619 * Possible string values are: | 14673 * Possible string values are: |
| 12620 * - "DEPRECATED_RESOURCE_USED" | 14674 * - "DEPRECATED_RESOURCE_USED" |
| 12621 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 14675 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 12622 * - "INJECTED_KERNELS_DEPRECATED" | 14676 * - "INJECTED_KERNELS_DEPRECATED" |
| 12623 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 14677 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 12624 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 14678 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 12625 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 14679 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 12626 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 14680 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 12627 * - "NEXT_HOP_NOT_RUNNING" | 14681 * - "NEXT_HOP_NOT_RUNNING" |
| 12628 * - "NO_RESULTS_ON_PAGE" | 14682 * - "NO_RESULTS_ON_PAGE" |
| 12629 * - "REQUIRED_TOS_AGREEMENT" | 14683 * - "REQUIRED_TOS_AGREEMENT" |
| 12630 * - "RESOURCE_NOT_DELETED" | 14684 * - "RESOURCE_NOT_DELETED" |
| 14685 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 12631 * - "UNREACHABLE" | 14686 * - "UNREACHABLE" |
| 12632 */ | 14687 */ |
| 12633 core.String code; | 14688 core.String code; |
| 12634 | 14689 |
| 12635 /** Metadata for this warning in 'key: value' format. */ | 14690 /** [Output Only] Metadata for this warning in key: value format. */ |
| 12636 core.List<OperationWarningsData> data; | 14691 core.List<RouteWarningsData> data; |
| 12637 | 14692 |
| 12638 /** Optional human-readable details for this warning. */ | 14693 /** [Output Only] Optional human-readable details for this warning. */ |
| 12639 core.String message; | 14694 core.String message; |
| 12640 | 14695 |
| 12641 | 14696 |
| 12642 OperationWarnings(); | 14697 RouteWarnings(); |
| 12643 | 14698 |
| 12644 OperationWarnings.fromJson(core.Map _json) { | 14699 RouteWarnings.fromJson(core.Map _json) { |
| 12645 if (_json.containsKey("code")) { | 14700 if (_json.containsKey("code")) { |
| 12646 code = _json["code"]; | 14701 code = _json["code"]; |
| 12647 } | 14702 } |
| 12648 if (_json.containsKey("data")) { | 14703 if (_json.containsKey("data")) { |
| 12649 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 14704 data = _json["data"].map((value) => new RouteWarningsData.fromJson(value))
.toList(); |
| 12650 } | 14705 } |
| 12651 if (_json.containsKey("message")) { | 14706 if (_json.containsKey("message")) { |
| 12652 message = _json["message"]; | 14707 message = _json["message"]; |
| 12653 } | 14708 } |
| 12654 } | 14709 } |
| 12655 | 14710 |
| 12656 core.Map toJson() { | 14711 core.Map toJson() { |
| 12657 var _json = new core.Map(); | 14712 var _json = new core.Map(); |
| 12658 if (code != null) { | 14713 if (code != null) { |
| 12659 _json["code"] = code; | 14714 _json["code"] = code; |
| 12660 } | 14715 } |
| 12661 if (data != null) { | 14716 if (data != null) { |
| 12662 _json["data"] = data.map((value) => (value).toJson()).toList(); | 14717 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 12663 } | 14718 } |
| 12664 if (message != null) { | 14719 if (message != null) { |
| 12665 _json["message"] = message; | 14720 _json["message"] = message; |
| 12666 } | 14721 } |
| 12667 return _json; | 14722 return _json; |
| 12668 } | 14723 } |
| 12669 } | 14724 } |
| 12670 | 14725 |
| 12671 | 14726 |
| 12672 /** An operation resource, used to manage asynchronous API requests. */ | 14727 /** |
| 12673 class Operation { | 14728 * The route resource. A Route is a rule that specifies how certain packets |
| 12674 /** Not documented yet. */ | 14729 * should be handled by the virtual network. Routes are associated with VMs by |
| 12675 core.String clientOperationId; | 14730 * tag and the set of Routes for a particular VM is called its routing table. |
| 12676 | 14731 * For each packet leaving a VM, the system searches that VM's routing table for |
| 12677 /** [Output Only] Creation timestamp in RFC3339 text format (output only). */ | 14732 * a single best matching Route. Routes match packets by destination IP address, |
| 14733 * preferring smaller or more specific ranges over larger ones. If there is a |
| 14734 * tie, the system selects the Route with the smallest priority value. If there |
| 14735 * is still a tie, it uses the layer three and four packet headers to select |
| 14736 * just one of the remaining matching Routes. The packet is then forwarded as |
| 14737 * specified by the next_hop field of the winning Route -- either to another VM |
| 14738 * destination, a VM gateway or a GCE operated gateway. Packets that do not |
| 14739 * match any Route in the sending VM's routing table will be dropped. |
| 14740 */ |
| 14741 class Route { |
| 14742 /** Creation timestamp in RFC3339 text format (output only). */ |
| 12678 core.String creationTimestamp; | 14743 core.String creationTimestamp; |
| 12679 | 14744 |
| 12680 /** Not documented yet. */ | 14745 /** |
| 12681 core.String endTime; | 14746 * An optional textual description of the resource; provided by the client |
| 12682 | 14747 * when the resource is created. |
| 12683 /** | 14748 */ |
| 12684 * [Output Only] If errors occurred during processing of this operation, this | 14749 core.String description; |
| 12685 * field will be populated. | 14750 |
| 12686 */ | 14751 /** Which packets does this route apply to? */ |
| 12687 OperationError error; | 14752 core.String destRange; |
| 12688 | 14753 |
| 12689 /** Not documented yet. */ | 14754 /** |
| 12690 core.String httpErrorMessage; | 14755 * Unique identifier for the resource; defined by the server (output only). |
| 12691 | |
| 12692 /** Not documented yet. */ | |
| 12693 core.int httpErrorStatusCode; | |
| 12694 | |
| 12695 /** | |
| 12696 * [Output Only] Unique identifier for the resource; defined by the server. | |
| 12697 */ | 14756 */ |
| 12698 core.String id; | 14757 core.String id; |
| 12699 | 14758 |
| 12700 /** | 14759 /** Type of the resource. */ |
| 12701 * [Output Only] The time that this operation was requested. This is in RFC | |
| 12702 * 3339 format. | |
| 12703 */ | |
| 12704 core.String insertTime; | |
| 12705 | |
| 12706 /** | |
| 12707 * [Output Only] Type of the resource. Always kind#operation for Operation | |
| 12708 * resources. | |
| 12709 */ | |
| 12710 core.String kind; | 14760 core.String kind; |
| 12711 | 14761 |
| 12712 /** [Output Only] Name of the resource (output only). */ | 14762 /** |
| 14763 * Name of the resource; provided by the client when the resource is created. |
| 14764 * The name must be 1-63 characters long, and comply with RFC1035. |
| 14765 */ |
| 12713 core.String name; | 14766 core.String name; |
| 12714 | 14767 |
| 12715 /** Not documented yet. */ | 14768 /** |
| 12716 core.String operationType; | 14769 * URL of the network to which this route is applied; provided by the client |
| 12717 | 14770 * when the route is created. |
| 12718 /** Not documented yet. */ | 14771 */ |
| 12719 core.int progress; | 14772 core.String network; |
| 12720 | 14773 |
| 12721 /** | 14774 /** The URL to a gateway that should handle matching packets. */ |
| 12722 * [Output Only] URL of the region where the operation resides (output only). | 14775 core.String nextHopGateway; |
| 12723 */ | 14776 |
| 12724 core.String region; | 14777 /** The URL to an instance that should handle matching packets. */ |
| 12725 | 14778 core.String nextHopInstance; |
| 12726 /** [Output Only] Server defined URL for the resource. */ | 14779 |
| 14780 /** |
| 14781 * The network IP address of an instance that should handle matching packets. |
| 14782 */ |
| 14783 core.String nextHopIp; |
| 14784 |
| 14785 /** The URL of the local network if it should handle matching packets. */ |
| 14786 core.String nextHopNetwork; |
| 14787 |
| 14788 /** The URL to a VpnTunnel that should handle matching packets. */ |
| 14789 core.String nextHopVpnTunnel; |
| 14790 |
| 14791 /** |
| 14792 * Breaks ties between Routes of equal specificity. Routes with smaller values |
| 14793 * win when tied with routes with larger values. |
| 14794 */ |
| 14795 core.int priority; |
| 14796 |
| 14797 /** Server defined URL for the resource (output only). */ |
| 12727 core.String selfLink; | 14798 core.String selfLink; |
| 12728 | 14799 |
| 12729 /** | 14800 /** A list of instance tags to which this route applies. */ |
| 12730 * [Output Only] The time that this operation was started by the server. This | 14801 core.List<core.String> tags; |
| 12731 * is in RFC 3339 format. | 14802 |
| 12732 */ | 14803 /** |
| 12733 core.String startTime; | 14804 * If potential misconfigurations are detected for this route, this field will |
| 12734 | 14805 * be populated with warning messages. |
| 12735 /** | 14806 */ |
| 12736 * [Output Only] Status of the operation. Can be one of the following: | 14807 core.List<RouteWarnings> warnings; |
| 12737 * "PENDING", "RUNNING", or "DONE". | 14808 |
| 12738 * Possible string values are: | 14809 |
| 12739 * - "DONE" | 14810 Route(); |
| 12740 * - "PENDING" | 14811 |
| 12741 * - "RUNNING" | 14812 Route.fromJson(core.Map _json) { |
| 12742 */ | |
| 12743 core.String status; | |
| 12744 | |
| 12745 /** | |
| 12746 * [Output Only] An optional textual description of the current status of the | |
| 12747 * operation. | |
| 12748 */ | |
| 12749 core.String statusMessage; | |
| 12750 | |
| 12751 /** | |
| 12752 * [Output Only] Unique target id which identifies a particular incarnation of | |
| 12753 * the target. | |
| 12754 */ | |
| 12755 core.String targetId; | |
| 12756 | |
| 12757 /** | |
| 12758 * [Output Only] URL of the resource the operation is mutating (output only). | |
| 12759 */ | |
| 12760 core.String targetLink; | |
| 12761 | |
| 12762 /** Not documented yet. */ | |
| 12763 core.String user; | |
| 12764 | |
| 12765 /** Not documented yet. */ | |
| 12766 core.List<OperationWarnings> warnings; | |
| 12767 | |
| 12768 /** | |
| 12769 * [Output Only] URL of the zone where the operation resides (output only). | |
| 12770 */ | |
| 12771 core.String zone; | |
| 12772 | |
| 12773 | |
| 12774 Operation(); | |
| 12775 | |
| 12776 Operation.fromJson(core.Map _json) { | |
| 12777 if (_json.containsKey("clientOperationId")) { | |
| 12778 clientOperationId = _json["clientOperationId"]; | |
| 12779 } | |
| 12780 if (_json.containsKey("creationTimestamp")) { | 14813 if (_json.containsKey("creationTimestamp")) { |
| 12781 creationTimestamp = _json["creationTimestamp"]; | 14814 creationTimestamp = _json["creationTimestamp"]; |
| 12782 } | 14815 } |
| 12783 if (_json.containsKey("endTime")) { | 14816 if (_json.containsKey("description")) { |
| 12784 endTime = _json["endTime"]; | 14817 description = _json["description"]; |
| 12785 } | 14818 } |
| 12786 if (_json.containsKey("error")) { | 14819 if (_json.containsKey("destRange")) { |
| 12787 error = new OperationError.fromJson(_json["error"]); | 14820 destRange = _json["destRange"]; |
| 12788 } | |
| 12789 if (_json.containsKey("httpErrorMessage")) { | |
| 12790 httpErrorMessage = _json["httpErrorMessage"]; | |
| 12791 } | |
| 12792 if (_json.containsKey("httpErrorStatusCode")) { | |
| 12793 httpErrorStatusCode = _json["httpErrorStatusCode"]; | |
| 12794 } | 14821 } |
| 12795 if (_json.containsKey("id")) { | 14822 if (_json.containsKey("id")) { |
| 12796 id = _json["id"]; | 14823 id = _json["id"]; |
| 12797 } | 14824 } |
| 12798 if (_json.containsKey("insertTime")) { | |
| 12799 insertTime = _json["insertTime"]; | |
| 12800 } | |
| 12801 if (_json.containsKey("kind")) { | 14825 if (_json.containsKey("kind")) { |
| 12802 kind = _json["kind"]; | 14826 kind = _json["kind"]; |
| 12803 } | 14827 } |
| 12804 if (_json.containsKey("name")) { | 14828 if (_json.containsKey("name")) { |
| 12805 name = _json["name"]; | 14829 name = _json["name"]; |
| 12806 } | 14830 } |
| 12807 if (_json.containsKey("operationType")) { | 14831 if (_json.containsKey("network")) { |
| 12808 operationType = _json["operationType"]; | 14832 network = _json["network"]; |
| 12809 } | 14833 } |
| 12810 if (_json.containsKey("progress")) { | 14834 if (_json.containsKey("nextHopGateway")) { |
| 12811 progress = _json["progress"]; | 14835 nextHopGateway = _json["nextHopGateway"]; |
| 12812 } | 14836 } |
| 12813 if (_json.containsKey("region")) { | 14837 if (_json.containsKey("nextHopInstance")) { |
| 12814 region = _json["region"]; | 14838 nextHopInstance = _json["nextHopInstance"]; |
| 14839 } |
| 14840 if (_json.containsKey("nextHopIp")) { |
| 14841 nextHopIp = _json["nextHopIp"]; |
| 14842 } |
| 14843 if (_json.containsKey("nextHopNetwork")) { |
| 14844 nextHopNetwork = _json["nextHopNetwork"]; |
| 14845 } |
| 14846 if (_json.containsKey("nextHopVpnTunnel")) { |
| 14847 nextHopVpnTunnel = _json["nextHopVpnTunnel"]; |
| 14848 } |
| 14849 if (_json.containsKey("priority")) { |
| 14850 priority = _json["priority"]; |
| 12815 } | 14851 } |
| 12816 if (_json.containsKey("selfLink")) { | 14852 if (_json.containsKey("selfLink")) { |
| 12817 selfLink = _json["selfLink"]; | 14853 selfLink = _json["selfLink"]; |
| 12818 } | 14854 } |
| 12819 if (_json.containsKey("startTime")) { | 14855 if (_json.containsKey("tags")) { |
| 12820 startTime = _json["startTime"]; | 14856 tags = _json["tags"]; |
| 12821 } | |
| 12822 if (_json.containsKey("status")) { | |
| 12823 status = _json["status"]; | |
| 12824 } | |
| 12825 if (_json.containsKey("statusMessage")) { | |
| 12826 statusMessage = _json["statusMessage"]; | |
| 12827 } | |
| 12828 if (_json.containsKey("targetId")) { | |
| 12829 targetId = _json["targetId"]; | |
| 12830 } | |
| 12831 if (_json.containsKey("targetLink")) { | |
| 12832 targetLink = _json["targetLink"]; | |
| 12833 } | |
| 12834 if (_json.containsKey("user")) { | |
| 12835 user = _json["user"]; | |
| 12836 } | 14857 } |
| 12837 if (_json.containsKey("warnings")) { | 14858 if (_json.containsKey("warnings")) { |
| 12838 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 14859 warnings = _json["warnings"].map((value) => new RouteWarnings.fromJson(val
ue)).toList(); |
| 12839 } | |
| 12840 if (_json.containsKey("zone")) { | |
| 12841 zone = _json["zone"]; | |
| 12842 } | 14860 } |
| 12843 } | 14861 } |
| 12844 | 14862 |
| 12845 core.Map toJson() { | 14863 core.Map toJson() { |
| 12846 var _json = new core.Map(); | 14864 var _json = new core.Map(); |
| 12847 if (clientOperationId != null) { | |
| 12848 _json["clientOperationId"] = clientOperationId; | |
| 12849 } | |
| 12850 if (creationTimestamp != null) { | 14865 if (creationTimestamp != null) { |
| 12851 _json["creationTimestamp"] = creationTimestamp; | 14866 _json["creationTimestamp"] = creationTimestamp; |
| 12852 } | 14867 } |
| 12853 if (endTime != null) { | 14868 if (description != null) { |
| 12854 _json["endTime"] = endTime; | 14869 _json["description"] = description; |
| 12855 } | 14870 } |
| 12856 if (error != null) { | 14871 if (destRange != null) { |
| 12857 _json["error"] = (error).toJson(); | 14872 _json["destRange"] = destRange; |
| 12858 } | |
| 12859 if (httpErrorMessage != null) { | |
| 12860 _json["httpErrorMessage"] = httpErrorMessage; | |
| 12861 } | |
| 12862 if (httpErrorStatusCode != null) { | |
| 12863 _json["httpErrorStatusCode"] = httpErrorStatusCode; | |
| 12864 } | 14873 } |
| 12865 if (id != null) { | 14874 if (id != null) { |
| 12866 _json["id"] = id; | 14875 _json["id"] = id; |
| 12867 } | 14876 } |
| 12868 if (insertTime != null) { | |
| 12869 _json["insertTime"] = insertTime; | |
| 12870 } | |
| 12871 if (kind != null) { | 14877 if (kind != null) { |
| 12872 _json["kind"] = kind; | 14878 _json["kind"] = kind; |
| 12873 } | 14879 } |
| 12874 if (name != null) { | 14880 if (name != null) { |
| 12875 _json["name"] = name; | 14881 _json["name"] = name; |
| 12876 } | 14882 } |
| 12877 if (operationType != null) { | 14883 if (network != null) { |
| 12878 _json["operationType"] = operationType; | 14884 _json["network"] = network; |
| 12879 } | 14885 } |
| 12880 if (progress != null) { | 14886 if (nextHopGateway != null) { |
| 12881 _json["progress"] = progress; | 14887 _json["nextHopGateway"] = nextHopGateway; |
| 12882 } | 14888 } |
| 12883 if (region != null) { | 14889 if (nextHopInstance != null) { |
| 12884 _json["region"] = region; | 14890 _json["nextHopInstance"] = nextHopInstance; |
| 14891 } |
| 14892 if (nextHopIp != null) { |
| 14893 _json["nextHopIp"] = nextHopIp; |
| 14894 } |
| 14895 if (nextHopNetwork != null) { |
| 14896 _json["nextHopNetwork"] = nextHopNetwork; |
| 14897 } |
| 14898 if (nextHopVpnTunnel != null) { |
| 14899 _json["nextHopVpnTunnel"] = nextHopVpnTunnel; |
| 14900 } |
| 14901 if (priority != null) { |
| 14902 _json["priority"] = priority; |
| 12885 } | 14903 } |
| 12886 if (selfLink != null) { | 14904 if (selfLink != null) { |
| 12887 _json["selfLink"] = selfLink; | 14905 _json["selfLink"] = selfLink; |
| 12888 } | 14906 } |
| 12889 if (startTime != null) { | 14907 if (tags != null) { |
| 12890 _json["startTime"] = startTime; | 14908 _json["tags"] = tags; |
| 12891 } | |
| 12892 if (status != null) { | |
| 12893 _json["status"] = status; | |
| 12894 } | |
| 12895 if (statusMessage != null) { | |
| 12896 _json["statusMessage"] = statusMessage; | |
| 12897 } | |
| 12898 if (targetId != null) { | |
| 12899 _json["targetId"] = targetId; | |
| 12900 } | |
| 12901 if (targetLink != null) { | |
| 12902 _json["targetLink"] = targetLink; | |
| 12903 } | |
| 12904 if (user != null) { | |
| 12905 _json["user"] = user; | |
| 12906 } | 14909 } |
| 12907 if (warnings != null) { | 14910 if (warnings != null) { |
| 12908 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 14911 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
| 12909 } | 14912 } |
| 12910 if (zone != null) { | |
| 12911 _json["zone"] = zone; | |
| 12912 } | |
| 12913 return _json; | 14913 return _json; |
| 12914 } | 14914 } |
| 12915 } | 14915 } |
| 12916 | 14916 |
| 12917 | 14917 |
| 12918 /** Not documented yet. */ | 14918 /** Contains a list of route resources. */ |
| 12919 class OperationAggregatedList { | 14919 class RouteList { |
| 12920 /** | 14920 /** |
| 12921 * [Output Only] Unique identifier for the resource; defined by the server. | 14921 * Unique identifier for the resource; defined by the server (output only). |
| 12922 */ | 14922 */ |
| 12923 core.String id; | 14923 core.String id; |
| 12924 | 14924 |
| 12925 /** [Output Only] A map of scoped operation lists. */ | 14925 /** A list of Route resources. */ |
| 12926 core.Map<core.String, OperationsScopedList> items; | 14926 core.List<Route> items; |
| 12927 | 14927 |
| 12928 /** Type of resource. */ | 14928 /** Type of resource. */ |
| 12929 core.String kind; | 14929 core.String kind; |
| 12930 | 14930 |
| 12931 /** [Output Only] A token used to continue a truncated list request. */ | 14931 /** A token used to continue a truncated list request (output only). */ |
| 12932 core.String nextPageToken; | 14932 core.String nextPageToken; |
| 12933 | 14933 |
| 12934 /** [Output Only] Server defined URL for this resource. */ | 14934 /** Server defined URL for this resource (output only). */ |
| 12935 core.String selfLink; | 14935 core.String selfLink; |
| 12936 | 14936 |
| 12937 | 14937 |
| 12938 OperationAggregatedList(); | 14938 RouteList(); |
| 12939 | 14939 |
| 12940 OperationAggregatedList.fromJson(core.Map _json) { | 14940 RouteList.fromJson(core.Map _json) { |
| 12941 if (_json.containsKey("id")) { | 14941 if (_json.containsKey("id")) { |
| 12942 id = _json["id"]; | 14942 id = _json["id"]; |
| 12943 } | 14943 } |
| 12944 if (_json.containsKey("items")) { | 14944 if (_json.containsKey("items")) { |
| 12945 items = common_internal.mapMap(_json["items"], (item) => new OperationsSco
pedList.fromJson(item)); | 14945 items = _json["items"].map((value) => new Route.fromJson(value)).toList(); |
| 12946 } | 14946 } |
| 12947 if (_json.containsKey("kind")) { | 14947 if (_json.containsKey("kind")) { |
| 12948 kind = _json["kind"]; | 14948 kind = _json["kind"]; |
| 12949 } | |
| 12950 if (_json.containsKey("nextPageToken")) { | |
| 12951 nextPageToken = _json["nextPageToken"]; | |
| 12952 } | |
| 12953 if (_json.containsKey("selfLink")) { | |
| 12954 selfLink = _json["selfLink"]; | |
| 12955 } | |
| 12956 } | |
| 12957 | |
| 12958 core.Map toJson() { | |
| 12959 var _json = new core.Map(); | |
| 12960 if (id != null) { | |
| 12961 _json["id"] = id; | |
| 12962 } | |
| 12963 if (items != null) { | |
| 12964 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | |
| 12965 } | |
| 12966 if (kind != null) { | |
| 12967 _json["kind"] = kind; | |
| 12968 } | |
| 12969 if (nextPageToken != null) { | |
| 12970 _json["nextPageToken"] = nextPageToken; | |
| 12971 } | |
| 12972 if (selfLink != null) { | |
| 12973 _json["selfLink"] = selfLink; | |
| 12974 } | |
| 12975 return _json; | |
| 12976 } | |
| 12977 } | |
| 12978 | |
| 12979 | |
| 12980 /** Contains a list of operation resources. */ | |
| 12981 class OperationList { | |
| 12982 /** | |
| 12983 * [Output Only] Unique identifier for the resource; defined by the server. | |
| 12984 */ | |
| 12985 core.String id; | |
| 12986 | |
| 12987 /** [Output Only] The operation resources. */ | |
| 12988 core.List<Operation> items; | |
| 12989 | |
| 12990 /** Type of resource. Always compute#operations for Operations resource. */ | |
| 12991 core.String kind; | |
| 12992 | |
| 12993 /** [Output Only] A token used to continue a truncate. */ | |
| 12994 core.String nextPageToken; | |
| 12995 | |
| 12996 /** [Output Only] Server defined URL for this resource. */ | |
| 12997 core.String selfLink; | |
| 12998 | |
| 12999 | |
| 13000 OperationList(); | |
| 13001 | |
| 13002 OperationList.fromJson(core.Map _json) { | |
| 13003 if (_json.containsKey("id")) { | |
| 13004 id = _json["id"]; | |
| 13005 } | |
| 13006 if (_json.containsKey("items")) { | |
| 13007 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); | |
| 13008 } | |
| 13009 if (_json.containsKey("kind")) { | |
| 13010 kind = _json["kind"]; | |
| 13011 } | 14949 } |
| 13012 if (_json.containsKey("nextPageToken")) { | 14950 if (_json.containsKey("nextPageToken")) { |
| 13013 nextPageToken = _json["nextPageToken"]; | 14951 nextPageToken = _json["nextPageToken"]; |
| 13014 } | 14952 } |
| 13015 if (_json.containsKey("selfLink")) { | 14953 if (_json.containsKey("selfLink")) { |
| 13016 selfLink = _json["selfLink"]; | 14954 selfLink = _json["selfLink"]; |
| 13017 } | 14955 } |
| 13018 } | 14956 } |
| 13019 | 14957 |
| 13020 core.Map toJson() { | 14958 core.Map toJson() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 13032 _json["nextPageToken"] = nextPageToken; | 14970 _json["nextPageToken"] = nextPageToken; |
| 13033 } | 14971 } |
| 13034 if (selfLink != null) { | 14972 if (selfLink != null) { |
| 13035 _json["selfLink"] = selfLink; | 14973 _json["selfLink"] = selfLink; |
| 13036 } | 14974 } |
| 13037 return _json; | 14975 return _json; |
| 13038 } | 14976 } |
| 13039 } | 14977 } |
| 13040 | 14978 |
| 13041 | 14979 |
| 13042 /** Not documented yet. */ | 14980 /** Sets the scheduling options for an Instance. */ |
| 13043 class OperationsScopedListWarningData { | 14981 class Scheduling { |
| 13044 /** A key for the warning data. */ | 14982 /** |
| 13045 core.String key; | 14983 * Specifies whether the instance should be automatically restarted if it is |
| 14984 * terminated by Compute Engine (not terminated by a user). |
| 14985 */ |
| 14986 core.bool automaticRestart; |
| 13046 | 14987 |
| 13047 /** A warning data value corresponding to the key. */ | 14988 /** |
| 13048 core.String value; | 14989 * Defines the maintenance behavior for this instance. The default behavior is |
| 14990 * MIGRATE. For more information, see Setting maintenance behavior. |
| 14991 * Possible string values are: |
| 14992 * - "MIGRATE" |
| 14993 * - "TERMINATE" |
| 14994 */ |
| 14995 core.String onHostMaintenance; |
| 13049 | 14996 |
| 13050 | 14997 |
| 13051 OperationsScopedListWarningData(); | 14998 Scheduling(); |
| 13052 | 14999 |
| 13053 OperationsScopedListWarningData.fromJson(core.Map _json) { | 15000 Scheduling.fromJson(core.Map _json) { |
| 13054 if (_json.containsKey("key")) { | 15001 if (_json.containsKey("automaticRestart")) { |
| 13055 key = _json["key"]; | 15002 automaticRestart = _json["automaticRestart"]; |
| 13056 } | 15003 } |
| 13057 if (_json.containsKey("value")) { | 15004 if (_json.containsKey("onHostMaintenance")) { |
| 13058 value = _json["value"]; | 15005 onHostMaintenance = _json["onHostMaintenance"]; |
| 13059 } | 15006 } |
| 13060 } | 15007 } |
| 13061 | 15008 |
| 13062 core.Map toJson() { | 15009 core.Map toJson() { |
| 13063 var _json = new core.Map(); | 15010 var _json = new core.Map(); |
| 13064 if (key != null) { | 15011 if (automaticRestart != null) { |
| 13065 _json["key"] = key; | 15012 _json["automaticRestart"] = automaticRestart; |
| 13066 } | 15013 } |
| 13067 if (value != null) { | 15014 if (onHostMaintenance != null) { |
| 13068 _json["value"] = value; | 15015 _json["onHostMaintenance"] = onHostMaintenance; |
| 13069 } | 15016 } |
| 13070 return _json; | 15017 return _json; |
| 13071 } | 15018 } |
| 13072 } | 15019 } |
| 13073 | 15020 |
| 13074 | 15021 |
| 13075 /** | 15022 /** An instance's serial console output. */ |
| 13076 * [Output Only] Informational warning which replaces the list of operations | 15023 class SerialPortOutput { |
| 13077 * when the list is empty. | 15024 /** [Output Only] The contents of the console output. */ |
| 13078 */ | 15025 core.String contents; |
| 13079 class OperationsScopedListWarning { | 15026 |
| 13080 /** | 15027 /** |
| 13081 * The warning type identifier for this warning. | 15028 * [Output Only] Type of the resource. Always compute#serialPortOutput for |
| 13082 * Possible string values are: | 15029 * serial port output. |
| 13083 * - "DEPRECATED_RESOURCE_USED" | |
| 13084 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | |
| 13085 * - "INJECTED_KERNELS_DEPRECATED" | |
| 13086 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | |
| 13087 * - "NEXT_HOP_CANNOT_IP_FORWARD" | |
| 13088 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | |
| 13089 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | |
| 13090 * - "NEXT_HOP_NOT_RUNNING" | |
| 13091 * - "NO_RESULTS_ON_PAGE" | |
| 13092 * - "REQUIRED_TOS_AGREEMENT" | |
| 13093 * - "RESOURCE_NOT_DELETED" | |
| 13094 * - "UNREACHABLE" | |
| 13095 */ | 15030 */ |
| 13096 core.String code; | 15031 core.String kind; |
| 13097 | 15032 |
| 13098 /** Metadata for this warning in 'key: value' format. */ | 15033 /** [Output Only] Server defined URL for the resource. */ |
| 13099 core.List<OperationsScopedListWarningData> data; | 15034 core.String selfLink; |
| 13100 | |
| 13101 /** Optional human-readable details for this warning. */ | |
| 13102 core.String message; | |
| 13103 | 15035 |
| 13104 | 15036 |
| 13105 OperationsScopedListWarning(); | 15037 SerialPortOutput(); |
| 13106 | 15038 |
| 13107 OperationsScopedListWarning.fromJson(core.Map _json) { | 15039 SerialPortOutput.fromJson(core.Map _json) { |
| 13108 if (_json.containsKey("code")) { | 15040 if (_json.containsKey("contents")) { |
| 13109 code = _json["code"]; | 15041 contents = _json["contents"]; |
| 13110 } | 15042 } |
| 13111 if (_json.containsKey("data")) { | 15043 if (_json.containsKey("kind")) { |
| 13112 data = _json["data"].map((value) => new OperationsScopedListWarningData.fr
omJson(value)).toList(); | 15044 kind = _json["kind"]; |
| 13113 } | 15045 } |
| 13114 if (_json.containsKey("message")) { | 15046 if (_json.containsKey("selfLink")) { |
| 13115 message = _json["message"]; | 15047 selfLink = _json["selfLink"]; |
| 13116 } | 15048 } |
| 13117 } | 15049 } |
| 13118 | 15050 |
| 13119 core.Map toJson() { | 15051 core.Map toJson() { |
| 13120 var _json = new core.Map(); | 15052 var _json = new core.Map(); |
| 13121 if (code != null) { | 15053 if (contents != null) { |
| 13122 _json["code"] = code; | 15054 _json["contents"] = contents; |
| 13123 } | 15055 } |
| 13124 if (data != null) { | 15056 if (kind != null) { |
| 13125 _json["data"] = data.map((value) => (value).toJson()).toList(); | 15057 _json["kind"] = kind; |
| 13126 } | 15058 } |
| 13127 if (message != null) { | 15059 if (selfLink != null) { |
| 13128 _json["message"] = message; | 15060 _json["selfLink"] = selfLink; |
| 13129 } | 15061 } |
| 13130 return _json; | 15062 return _json; |
| 13131 } | 15063 } |
| 13132 } | 15064 } |
| 13133 | 15065 |
| 13134 | 15066 |
| 13135 /** Not documented yet. */ | 15067 /** A service account. */ |
| 13136 class OperationsScopedList { | 15068 class ServiceAccount { |
| 13137 /** [Output Only] List of operations contained in this scope. */ | 15069 /** Email address of the service account. */ |
| 13138 core.List<Operation> operations; | 15070 core.String email; |
| 13139 | 15071 |
| 13140 /** | 15072 /** The list of scopes to be made available for this service account. */ |
| 13141 * [Output Only] Informational warning which replaces the list of operations | 15073 core.List<core.String> scopes; |
| 13142 * when the list is empty. | |
| 13143 */ | |
| 13144 OperationsScopedListWarning warning; | |
| 13145 | 15074 |
| 13146 | 15075 |
| 13147 OperationsScopedList(); | 15076 ServiceAccount(); |
| 13148 | 15077 |
| 13149 OperationsScopedList.fromJson(core.Map _json) { | 15078 ServiceAccount.fromJson(core.Map _json) { |
| 13150 if (_json.containsKey("operations")) { | 15079 if (_json.containsKey("email")) { |
| 13151 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 15080 email = _json["email"]; |
| 13152 } | 15081 } |
| 13153 if (_json.containsKey("warning")) { | 15082 if (_json.containsKey("scopes")) { |
| 13154 warning = new OperationsScopedListWarning.fromJson(_json["warning"]); | 15083 scopes = _json["scopes"]; |
| 13155 } | 15084 } |
| 13156 } | 15085 } |
| 13157 | 15086 |
| 13158 core.Map toJson() { | 15087 core.Map toJson() { |
| 13159 var _json = new core.Map(); | 15088 var _json = new core.Map(); |
| 13160 if (operations != null) { | 15089 if (email != null) { |
| 13161 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 15090 _json["email"] = email; |
| 13162 } | 15091 } |
| 13163 if (warning != null) { | 15092 if (scopes != null) { |
| 13164 _json["warning"] = (warning).toJson(); | 15093 _json["scopes"] = scopes; |
| 13165 } | 15094 } |
| 13166 return _json; | 15095 return _json; |
| 13167 } | 15096 } |
| 13168 } | 15097 } |
| 13169 | 15098 |
| 13170 | 15099 |
| 13171 /** | 15100 /** A persistent disk snapshot resource. */ |
| 13172 * A matcher for the path portion of the URL. The BackendService from the | 15101 class Snapshot { |
| 13173 * longest-matched rule will serve the URL. If no rule was matched, the | |
| 13174 * default_service will be used. | |
| 13175 */ | |
| 13176 class PathMatcher { | |
| 13177 /** | |
| 13178 * The URL to the BackendService resource. This will be used if none of the | |
| 13179 * 'pathRules' defined by this PathMatcher is met by the URL's path portion. | |
| 13180 */ | |
| 13181 core.String defaultService; | |
| 13182 | |
| 13183 /** Not documented yet. */ | |
| 13184 core.String description; | |
| 13185 | |
| 13186 /** The name to which this PathMatcher is referred by the HostRule. */ | |
| 13187 core.String name; | |
| 13188 | |
| 13189 /** The list of path rules. */ | |
| 13190 core.List<PathRule> pathRules; | |
| 13191 | |
| 13192 | |
| 13193 PathMatcher(); | |
| 13194 | |
| 13195 PathMatcher.fromJson(core.Map _json) { | |
| 13196 if (_json.containsKey("defaultService")) { | |
| 13197 defaultService = _json["defaultService"]; | |
| 13198 } | |
| 13199 if (_json.containsKey("description")) { | |
| 13200 description = _json["description"]; | |
| 13201 } | |
| 13202 if (_json.containsKey("name")) { | |
| 13203 name = _json["name"]; | |
| 13204 } | |
| 13205 if (_json.containsKey("pathRules")) { | |
| 13206 pathRules = _json["pathRules"].map((value) => new PathRule.fromJson(value)
).toList(); | |
| 13207 } | |
| 13208 } | |
| 13209 | |
| 13210 core.Map toJson() { | |
| 13211 var _json = new core.Map(); | |
| 13212 if (defaultService != null) { | |
| 13213 _json["defaultService"] = defaultService; | |
| 13214 } | |
| 13215 if (description != null) { | |
| 13216 _json["description"] = description; | |
| 13217 } | |
| 13218 if (name != null) { | |
| 13219 _json["name"] = name; | |
| 13220 } | |
| 13221 if (pathRules != null) { | |
| 13222 _json["pathRules"] = pathRules.map((value) => (value).toJson()).toList(); | |
| 13223 } | |
| 13224 return _json; | |
| 13225 } | |
| 13226 } | |
| 13227 | |
| 13228 | |
| 13229 /** | |
| 13230 * A path-matching rule for a URL. If matched, will use the specified | |
| 13231 * BackendService to handle the traffic arriving at this URL. | |
| 13232 */ | |
| 13233 class PathRule { | |
| 13234 /** | |
| 13235 * The list of path patterns to match. Each must start with / and the only | |
| 13236 * place a * is allowed is at the end following a /. The string fed to the | |
| 13237 * path matcher does not include any text after the first ? or #, and those | |
| 13238 * chars are not allowed here. | |
| 13239 */ | |
| 13240 core.List<core.String> paths; | |
| 13241 | |
| 13242 /** The URL of the BackendService resource if this rule is matched. */ | |
| 13243 core.String service; | |
| 13244 | |
| 13245 | |
| 13246 PathRule(); | |
| 13247 | |
| 13248 PathRule.fromJson(core.Map _json) { | |
| 13249 if (_json.containsKey("paths")) { | |
| 13250 paths = _json["paths"]; | |
| 13251 } | |
| 13252 if (_json.containsKey("service")) { | |
| 13253 service = _json["service"]; | |
| 13254 } | |
| 13255 } | |
| 13256 | |
| 13257 core.Map toJson() { | |
| 13258 var _json = new core.Map(); | |
| 13259 if (paths != null) { | |
| 13260 _json["paths"] = paths; | |
| 13261 } | |
| 13262 if (service != null) { | |
| 13263 _json["service"] = service; | |
| 13264 } | |
| 13265 return _json; | |
| 13266 } | |
| 13267 } | |
| 13268 | |
| 13269 | |
| 13270 /** | |
| 13271 * A project resource. Projects can be created only in the APIs Console. Unless | |
| 13272 * marked otherwise, values can only be modified in the console. | |
| 13273 */ | |
| 13274 class Project { | |
| 13275 /** | |
| 13276 * Metadata key/value pairs available to all instances contained in this | |
| 13277 * project. | |
| 13278 */ | |
| 13279 Metadata commonInstanceMetadata; | |
| 13280 | |
| 13281 /** Creation timestamp in RFC3339 text format (output only). */ | 15102 /** Creation timestamp in RFC3339 text format (output only). */ |
| 13282 core.String creationTimestamp; | 15103 core.String creationTimestamp; |
| 13283 | 15104 |
| 13284 /** An optional textual description of the resource. */ | 15105 /** |
| 15106 * An optional textual description of the resource; provided by the client |
| 15107 * when the resource is created. |
| 15108 */ |
| 13285 core.String description; | 15109 core.String description; |
| 13286 | 15110 |
| 15111 /** Size of the persistent disk snapshot, specified in GB (output only). */ |
| 15112 core.String diskSizeGb; |
| 15113 |
| 13287 /** | 15114 /** |
| 13288 * Unique identifier for the resource; defined by the server (output only). | 15115 * Unique identifier for the resource; defined by the server (output only). |
| 13289 */ | 15116 */ |
| 13290 core.String id; | |
| 13291 | |
| 13292 /** Type of the resource. */ | |
| 13293 core.String kind; | |
| 13294 | |
| 13295 /** Name of the resource. */ | |
| 13296 core.String name; | |
| 13297 | |
| 13298 /** Quotas assigned to this project. */ | |
| 13299 core.List<Quota> quotas; | |
| 13300 | |
| 13301 /** Server defined URL for the resource (output only). */ | |
| 13302 core.String selfLink; | |
| 13303 | |
| 13304 /** | |
| 13305 * The location in Cloud Storage and naming method of the daily usage report. | |
| 13306 */ | |
| 13307 UsageExportLocation usageExportLocation; | |
| 13308 | |
| 13309 | |
| 13310 Project(); | |
| 13311 | |
| 13312 Project.fromJson(core.Map _json) { | |
| 13313 if (_json.containsKey("commonInstanceMetadata")) { | |
| 13314 commonInstanceMetadata = new Metadata.fromJson(_json["commonInstanceMetada
ta"]); | |
| 13315 } | |
| 13316 if (_json.containsKey("creationTimestamp")) { | |
| 13317 creationTimestamp = _json["creationTimestamp"]; | |
| 13318 } | |
| 13319 if (_json.containsKey("description")) { | |
| 13320 description = _json["description"]; | |
| 13321 } | |
| 13322 if (_json.containsKey("id")) { | |
| 13323 id = _json["id"]; | |
| 13324 } | |
| 13325 if (_json.containsKey("kind")) { | |
| 13326 kind = _json["kind"]; | |
| 13327 } | |
| 13328 if (_json.containsKey("name")) { | |
| 13329 name = _json["name"]; | |
| 13330 } | |
| 13331 if (_json.containsKey("quotas")) { | |
| 13332 quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList(
); | |
| 13333 } | |
| 13334 if (_json.containsKey("selfLink")) { | |
| 13335 selfLink = _json["selfLink"]; | |
| 13336 } | |
| 13337 if (_json.containsKey("usageExportLocation")) { | |
| 13338 usageExportLocation = new UsageExportLocation.fromJson(_json["usageExportL
ocation"]); | |
| 13339 } | |
| 13340 } | |
| 13341 | |
| 13342 core.Map toJson() { | |
| 13343 var _json = new core.Map(); | |
| 13344 if (commonInstanceMetadata != null) { | |
| 13345 _json["commonInstanceMetadata"] = (commonInstanceMetadata).toJson(); | |
| 13346 } | |
| 13347 if (creationTimestamp != null) { | |
| 13348 _json["creationTimestamp"] = creationTimestamp; | |
| 13349 } | |
| 13350 if (description != null) { | |
| 13351 _json["description"] = description; | |
| 13352 } | |
| 13353 if (id != null) { | |
| 13354 _json["id"] = id; | |
| 13355 } | |
| 13356 if (kind != null) { | |
| 13357 _json["kind"] = kind; | |
| 13358 } | |
| 13359 if (name != null) { | |
| 13360 _json["name"] = name; | |
| 13361 } | |
| 13362 if (quotas != null) { | |
| 13363 _json["quotas"] = quotas.map((value) => (value).toJson()).toList(); | |
| 13364 } | |
| 13365 if (selfLink != null) { | |
| 13366 _json["selfLink"] = selfLink; | |
| 13367 } | |
| 13368 if (usageExportLocation != null) { | |
| 13369 _json["usageExportLocation"] = (usageExportLocation).toJson(); | |
| 13370 } | |
| 13371 return _json; | |
| 13372 } | |
| 13373 } | |
| 13374 | |
| 13375 | |
| 13376 /** A quotas entry. */ | |
| 13377 class Quota { | |
| 13378 /** Quota limit for this metric. */ | |
| 13379 core.double limit; | |
| 13380 | |
| 13381 /** | |
| 13382 * Name of the quota metric. | |
| 13383 * Possible string values are: | |
| 13384 * - "BACKEND_SERVICES" | |
| 13385 * - "CPUS" | |
| 13386 * - "DISKS" | |
| 13387 * - "DISKS_TOTAL_GB" | |
| 13388 * - "EPHEMERAL_ADDRESSES" | |
| 13389 * - "FIREWALLS" | |
| 13390 * - "FORWARDING_RULES" | |
| 13391 * - "HEALTH_CHECKS" | |
| 13392 * - "IMAGES" | |
| 13393 * - "IMAGES_TOTAL_GB" | |
| 13394 * - "INSTANCES" | |
| 13395 * - "IN_USE_ADDRESSES" | |
| 13396 * - "KERNELS" | |
| 13397 * - "KERNELS_TOTAL_GB" | |
| 13398 * - "LOCAL_SSD_TOTAL_GB" | |
| 13399 * - "NETWORKS" | |
| 13400 * - "OPERATIONS" | |
| 13401 * - "ROUTES" | |
| 13402 * - "SNAPSHOTS" | |
| 13403 * - "SSD_TOTAL_GB" | |
| 13404 * - "STATIC_ADDRESSES" | |
| 13405 * - "TARGET_HTTP_PROXIES" | |
| 13406 * - "TARGET_INSTANCES" | |
| 13407 * - "TARGET_POOLS" | |
| 13408 * - "URL_MAPS" | |
| 13409 */ | |
| 13410 core.String metric; | |
| 13411 | |
| 13412 /** Current usage of this metric. */ | |
| 13413 core.double usage; | |
| 13414 | |
| 13415 | |
| 13416 Quota(); | |
| 13417 | |
| 13418 Quota.fromJson(core.Map _json) { | |
| 13419 if (_json.containsKey("limit")) { | |
| 13420 limit = _json["limit"]; | |
| 13421 } | |
| 13422 if (_json.containsKey("metric")) { | |
| 13423 metric = _json["metric"]; | |
| 13424 } | |
| 13425 if (_json.containsKey("usage")) { | |
| 13426 usage = _json["usage"]; | |
| 13427 } | |
| 13428 } | |
| 13429 | |
| 13430 core.Map toJson() { | |
| 13431 var _json = new core.Map(); | |
| 13432 if (limit != null) { | |
| 13433 _json["limit"] = limit; | |
| 13434 } | |
| 13435 if (metric != null) { | |
| 13436 _json["metric"] = metric; | |
| 13437 } | |
| 13438 if (usage != null) { | |
| 13439 _json["usage"] = usage; | |
| 13440 } | |
| 13441 return _json; | |
| 13442 } | |
| 13443 } | |
| 13444 | |
| 13445 | |
| 13446 /** Region resource. */ | |
| 13447 class Region { | |
| 13448 /** Creation timestamp in RFC3339 text format (output only). */ | |
| 13449 core.String creationTimestamp; | |
| 13450 | |
| 13451 /** The deprecation status associated with this region. */ | |
| 13452 DeprecationStatus deprecated; | |
| 13453 | |
| 13454 /** Textual description of the resource. */ | |
| 13455 core.String description; | |
| 13456 | |
| 13457 /** | |
| 13458 * Unique identifier for the resource; defined by the server (output only). | |
| 13459 */ | |
| 13460 core.String id; | 15117 core.String id; |
| 13461 | 15118 |
| 13462 /** Type of the resource. */ | 15119 /** Type of the resource. */ |
| 13463 core.String kind; | 15120 core.String kind; |
| 13464 | 15121 |
| 13465 /** Name of the resource. */ | 15122 /** Public visible licenses. */ |
| 15123 core.List<core.String> licenses; |
| 15124 |
| 15125 /** |
| 15126 * Name of the resource; provided by the client when the resource is created. |
| 15127 * The name must be 1-63 characters long, and comply with RFC1035. |
| 15128 */ |
| 13466 core.String name; | 15129 core.String name; |
| 13467 | 15130 |
| 13468 /** Quotas assigned to this region. */ | |
| 13469 core.List<Quota> quotas; | |
| 13470 | |
| 13471 /** Server defined URL for the resource (output only). */ | 15131 /** Server defined URL for the resource (output only). */ |
| 13472 core.String selfLink; | 15132 core.String selfLink; |
| 13473 | 15133 |
| 15134 /** The source disk used to create this snapshot. */ |
| 15135 core.String sourceDisk; |
| 15136 |
| 13474 /** | 15137 /** |
| 13475 * Status of the region, "UP" or "DOWN". | 15138 * The 'id' value of the disk used to create this snapshot. This value may be |
| 15139 * used to determine whether the snapshot was taken from the current or a |
| 15140 * previous instance of a given disk name. |
| 15141 */ |
| 15142 core.String sourceDiskId; |
| 15143 |
| 15144 /** |
| 15145 * The status of the persistent disk snapshot (output only). |
| 13476 * Possible string values are: | 15146 * Possible string values are: |
| 13477 * - "DOWN" | 15147 * - "CREATING" |
| 13478 * - "UP" | 15148 * - "DELETING" |
| 15149 * - "FAILED" |
| 15150 * - "READY" |
| 15151 * - "UPLOADING" |
| 13479 */ | 15152 */ |
| 13480 core.String status; | 15153 core.String status; |
| 13481 | 15154 |
| 13482 /** A list of zones homed in this region, in the form of resource URLs. */ | 15155 /** |
| 13483 core.List<core.String> zones; | 15156 * A size of the the storage used by the snapshot. As snapshots share storage |
| 15157 * this number is expected to change with snapshot creation/deletion. |
| 15158 */ |
| 15159 core.String storageBytes; |
| 15160 |
| 15161 /** |
| 15162 * An indicator whether storageBytes is in a stable state, or it is being |
| 15163 * adjusted as a result of shared storage reallocation. |
| 15164 * Possible string values are: |
| 15165 * - "UPDATING" |
| 15166 * - "UP_TO_DATE" |
| 15167 */ |
| 15168 core.String storageBytesStatus; |
| 13484 | 15169 |
| 13485 | 15170 |
| 13486 Region(); | 15171 Snapshot(); |
| 13487 | 15172 |
| 13488 Region.fromJson(core.Map _json) { | 15173 Snapshot.fromJson(core.Map _json) { |
| 13489 if (_json.containsKey("creationTimestamp")) { | 15174 if (_json.containsKey("creationTimestamp")) { |
| 13490 creationTimestamp = _json["creationTimestamp"]; | 15175 creationTimestamp = _json["creationTimestamp"]; |
| 13491 } | 15176 } |
| 13492 if (_json.containsKey("deprecated")) { | |
| 13493 deprecated = new DeprecationStatus.fromJson(_json["deprecated"]); | |
| 13494 } | |
| 13495 if (_json.containsKey("description")) { | 15177 if (_json.containsKey("description")) { |
| 13496 description = _json["description"]; | 15178 description = _json["description"]; |
| 13497 } | 15179 } |
| 15180 if (_json.containsKey("diskSizeGb")) { |
| 15181 diskSizeGb = _json["diskSizeGb"]; |
| 15182 } |
| 13498 if (_json.containsKey("id")) { | 15183 if (_json.containsKey("id")) { |
| 13499 id = _json["id"]; | 15184 id = _json["id"]; |
| 13500 } | 15185 } |
| 13501 if (_json.containsKey("kind")) { | 15186 if (_json.containsKey("kind")) { |
| 13502 kind = _json["kind"]; | 15187 kind = _json["kind"]; |
| 13503 } | 15188 } |
| 15189 if (_json.containsKey("licenses")) { |
| 15190 licenses = _json["licenses"]; |
| 15191 } |
| 13504 if (_json.containsKey("name")) { | 15192 if (_json.containsKey("name")) { |
| 13505 name = _json["name"]; | 15193 name = _json["name"]; |
| 13506 } | 15194 } |
| 13507 if (_json.containsKey("quotas")) { | |
| 13508 quotas = _json["quotas"].map((value) => new Quota.fromJson(value)).toList(
); | |
| 13509 } | |
| 13510 if (_json.containsKey("selfLink")) { | 15195 if (_json.containsKey("selfLink")) { |
| 13511 selfLink = _json["selfLink"]; | 15196 selfLink = _json["selfLink"]; |
| 13512 } | 15197 } |
| 15198 if (_json.containsKey("sourceDisk")) { |
| 15199 sourceDisk = _json["sourceDisk"]; |
| 15200 } |
| 15201 if (_json.containsKey("sourceDiskId")) { |
| 15202 sourceDiskId = _json["sourceDiskId"]; |
| 15203 } |
| 13513 if (_json.containsKey("status")) { | 15204 if (_json.containsKey("status")) { |
| 13514 status = _json["status"]; | 15205 status = _json["status"]; |
| 13515 } | 15206 } |
| 13516 if (_json.containsKey("zones")) { | 15207 if (_json.containsKey("storageBytes")) { |
| 13517 zones = _json["zones"]; | 15208 storageBytes = _json["storageBytes"]; |
| 15209 } |
| 15210 if (_json.containsKey("storageBytesStatus")) { |
| 15211 storageBytesStatus = _json["storageBytesStatus"]; |
| 13518 } | 15212 } |
| 13519 } | 15213 } |
| 13520 | 15214 |
| 13521 core.Map toJson() { | 15215 core.Map toJson() { |
| 13522 var _json = new core.Map(); | 15216 var _json = new core.Map(); |
| 13523 if (creationTimestamp != null) { | 15217 if (creationTimestamp != null) { |
| 13524 _json["creationTimestamp"] = creationTimestamp; | 15218 _json["creationTimestamp"] = creationTimestamp; |
| 13525 } | 15219 } |
| 13526 if (deprecated != null) { | |
| 13527 _json["deprecated"] = (deprecated).toJson(); | |
| 13528 } | |
| 13529 if (description != null) { | 15220 if (description != null) { |
| 13530 _json["description"] = description; | 15221 _json["description"] = description; |
| 13531 } | 15222 } |
| 15223 if (diskSizeGb != null) { |
| 15224 _json["diskSizeGb"] = diskSizeGb; |
| 15225 } |
| 13532 if (id != null) { | 15226 if (id != null) { |
| 13533 _json["id"] = id; | 15227 _json["id"] = id; |
| 13534 } | 15228 } |
| 13535 if (kind != null) { | 15229 if (kind != null) { |
| 13536 _json["kind"] = kind; | 15230 _json["kind"] = kind; |
| 13537 } | 15231 } |
| 15232 if (licenses != null) { |
| 15233 _json["licenses"] = licenses; |
| 15234 } |
| 13538 if (name != null) { | 15235 if (name != null) { |
| 13539 _json["name"] = name; | 15236 _json["name"] = name; |
| 13540 } | 15237 } |
| 13541 if (quotas != null) { | |
| 13542 _json["quotas"] = quotas.map((value) => (value).toJson()).toList(); | |
| 13543 } | |
| 13544 if (selfLink != null) { | 15238 if (selfLink != null) { |
| 13545 _json["selfLink"] = selfLink; | 15239 _json["selfLink"] = selfLink; |
| 13546 } | 15240 } |
| 15241 if (sourceDisk != null) { |
| 15242 _json["sourceDisk"] = sourceDisk; |
| 15243 } |
| 15244 if (sourceDiskId != null) { |
| 15245 _json["sourceDiskId"] = sourceDiskId; |
| 15246 } |
| 13547 if (status != null) { | 15247 if (status != null) { |
| 13548 _json["status"] = status; | 15248 _json["status"] = status; |
| 13549 } | 15249 } |
| 13550 if (zones != null) { | 15250 if (storageBytes != null) { |
| 13551 _json["zones"] = zones; | 15251 _json["storageBytes"] = storageBytes; |
| 15252 } |
| 15253 if (storageBytesStatus != null) { |
| 15254 _json["storageBytesStatus"] = storageBytesStatus; |
| 13552 } | 15255 } |
| 13553 return _json; | 15256 return _json; |
| 13554 } | 15257 } |
| 13555 } | 15258 } |
| 13556 | 15259 |
| 13557 | 15260 |
| 13558 /** Contains a list of region resources. */ | 15261 /** Contains a list of persistent disk snapshot resources. */ |
| 13559 class RegionList { | 15262 class SnapshotList { |
| 13560 /** | 15263 /** |
| 13561 * Unique identifier for the resource; defined by the server (output only). | 15264 * Unique identifier for the resource; defined by the server (output only). |
| 13562 */ | 15265 */ |
| 13563 core.String id; | 15266 core.String id; |
| 13564 | 15267 |
| 13565 /** A list of Region resources. */ | 15268 /** A list of Snapshot resources. */ |
| 13566 core.List<Region> items; | 15269 core.List<Snapshot> items; |
| 13567 | 15270 |
| 13568 /** Type of resource. */ | 15271 /** Type of resource. */ |
| 13569 core.String kind; | 15272 core.String kind; |
| 13570 | 15273 |
| 13571 /** A token used to continue a truncated list request (output only). */ | 15274 /** A token used to continue a truncated list request (output only). */ |
| 13572 core.String nextPageToken; | 15275 core.String nextPageToken; |
| 13573 | 15276 |
| 13574 /** Server defined URL for this resource (output only). */ | 15277 /** Server defined URL for this resource (output only). */ |
| 13575 core.String selfLink; | 15278 core.String selfLink; |
| 13576 | 15279 |
| 13577 | 15280 |
| 13578 RegionList(); | 15281 SnapshotList(); |
| 13579 | 15282 |
| 13580 RegionList.fromJson(core.Map _json) { | 15283 SnapshotList.fromJson(core.Map _json) { |
| 13581 if (_json.containsKey("id")) { | 15284 if (_json.containsKey("id")) { |
| 13582 id = _json["id"]; | 15285 id = _json["id"]; |
| 13583 } | 15286 } |
| 13584 if (_json.containsKey("items")) { | 15287 if (_json.containsKey("items")) { |
| 13585 items = _json["items"].map((value) => new Region.fromJson(value)).toList()
; | 15288 items = _json["items"].map((value) => new Snapshot.fromJson(value)).toList
(); |
| 13586 } | 15289 } |
| 13587 if (_json.containsKey("kind")) { | 15290 if (_json.containsKey("kind")) { |
| 13588 kind = _json["kind"]; | 15291 kind = _json["kind"]; |
| 13589 } | 15292 } |
| 13590 if (_json.containsKey("nextPageToken")) { | 15293 if (_json.containsKey("nextPageToken")) { |
| 13591 nextPageToken = _json["nextPageToken"]; | 15294 nextPageToken = _json["nextPageToken"]; |
| 13592 } | 15295 } |
| 13593 if (_json.containsKey("selfLink")) { | 15296 if (_json.containsKey("selfLink")) { |
| 13594 selfLink = _json["selfLink"]; | 15297 selfLink = _json["selfLink"]; |
| 13595 } | 15298 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 13610 _json["nextPageToken"] = nextPageToken; | 15313 _json["nextPageToken"] = nextPageToken; |
| 13611 } | 15314 } |
| 13612 if (selfLink != null) { | 15315 if (selfLink != null) { |
| 13613 _json["selfLink"] = selfLink; | 15316 _json["selfLink"] = selfLink; |
| 13614 } | 15317 } |
| 13615 return _json; | 15318 return _json; |
| 13616 } | 15319 } |
| 13617 } | 15320 } |
| 13618 | 15321 |
| 13619 | 15322 |
| 13620 /** Not documented yet. */ | 15323 /** A set of instance tags. */ |
| 13621 class ResourceGroupReference { | 15324 class Tags { |
| 13622 /** | 15325 /** |
| 13623 * A URI referencing one of the resource views listed in the backend service. | 15326 * Specifies a fingerprint for this request, which is essentially a hash of |
| 13624 */ | 15327 * the metadata's contents and used for optimistic locking. The fingerprint is |
| 13625 core.String group; | 15328 * initially generated by Compute Engine and changes after every request to |
| 13626 | 15329 * modify or update metadata. You must always provide an up-to-date |
| 13627 | 15330 * fingerprint hash in order to update or change metadata. |
| 13628 ResourceGroupReference(); | 15331 * |
| 13629 | 15332 * To see the latest fingerprint, make get() request to the instance. |
| 13630 ResourceGroupReference.fromJson(core.Map _json) { | 15333 */ |
| 13631 if (_json.containsKey("group")) { | 15334 core.String fingerprint; |
| 13632 group = _json["group"]; | 15335 |
| 15336 core.List<core.int> get fingerprintAsBytes { |
| 15337 return crypto.CryptoUtils.base64StringToBytes(fingerprint); |
| 15338 } |
| 15339 |
| 15340 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 15341 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| 15342 } |
| 15343 |
| 15344 /** |
| 15345 * An array of tags. Each tag must be 1-63 characters long, and comply with |
| 15346 * RFC1035. |
| 15347 */ |
| 15348 core.List<core.String> items; |
| 15349 |
| 15350 |
| 15351 Tags(); |
| 15352 |
| 15353 Tags.fromJson(core.Map _json) { |
| 15354 if (_json.containsKey("fingerprint")) { |
| 15355 fingerprint = _json["fingerprint"]; |
| 15356 } |
| 15357 if (_json.containsKey("items")) { |
| 15358 items = _json["items"]; |
| 13633 } | 15359 } |
| 13634 } | 15360 } |
| 13635 | 15361 |
| 13636 core.Map toJson() { | 15362 core.Map toJson() { |
| 13637 var _json = new core.Map(); | 15363 var _json = new core.Map(); |
| 13638 if (group != null) { | 15364 if (fingerprint != null) { |
| 13639 _json["group"] = group; | 15365 _json["fingerprint"] = fingerprint; |
| 15366 } |
| 15367 if (items != null) { |
| 15368 _json["items"] = items; |
| 13640 } | 15369 } |
| 13641 return _json; | 15370 return _json; |
| 13642 } | 15371 } |
| 13643 } | 15372 } |
| 13644 | 15373 |
| 13645 | 15374 |
| 13646 /** Not documented yet. */ | 15375 /** A TargetHttpProxy resource. This resource defines an HTTP proxy. */ |
| 13647 class RouteWarningsData { | 15376 class TargetHttpProxy { |
| 13648 /** A key for the warning data. */ | 15377 /** Creation timestamp in RFC3339 text format (output only). */ |
| 13649 core.String key; | 15378 core.String creationTimestamp; |
| 13650 | 15379 |
| 13651 /** A warning data value corresponding to the key. */ | 15380 /** |
| 13652 core.String value; | 15381 * An optional textual description of the resource; provided by the client |
| 13653 | 15382 * when the resource is created. |
| 13654 | 15383 */ |
| 13655 RouteWarningsData(); | 15384 core.String description; |
| 13656 | 15385 |
| 13657 RouteWarningsData.fromJson(core.Map _json) { | 15386 /** |
| 13658 if (_json.containsKey("key")) { | 15387 * Unique identifier for the resource; defined by the server (output only). |
| 13659 key = _json["key"]; | 15388 */ |
| 13660 } | 15389 core.String id; |
| 13661 if (_json.containsKey("value")) { | 15390 |
| 13662 value = _json["value"]; | 15391 /** Type of the resource. */ |
| 15392 core.String kind; |
| 15393 |
| 15394 /** |
| 15395 * Name of the resource; provided by the client when the resource is created. |
| 15396 * The name must be 1-63 characters long, and comply with RFC1035. |
| 15397 */ |
| 15398 core.String name; |
| 15399 |
| 15400 /** Server defined URL for the resource (output only). */ |
| 15401 core.String selfLink; |
| 15402 |
| 15403 /** |
| 15404 * URL to the UrlMap resource that defines the mapping from URL to the |
| 15405 * BackendService. |
| 15406 */ |
| 15407 core.String urlMap; |
| 15408 |
| 15409 |
| 15410 TargetHttpProxy(); |
| 15411 |
| 15412 TargetHttpProxy.fromJson(core.Map _json) { |
| 15413 if (_json.containsKey("creationTimestamp")) { |
| 15414 creationTimestamp = _json["creationTimestamp"]; |
| 15415 } |
| 15416 if (_json.containsKey("description")) { |
| 15417 description = _json["description"]; |
| 15418 } |
| 15419 if (_json.containsKey("id")) { |
| 15420 id = _json["id"]; |
| 15421 } |
| 15422 if (_json.containsKey("kind")) { |
| 15423 kind = _json["kind"]; |
| 15424 } |
| 15425 if (_json.containsKey("name")) { |
| 15426 name = _json["name"]; |
| 15427 } |
| 15428 if (_json.containsKey("selfLink")) { |
| 15429 selfLink = _json["selfLink"]; |
| 15430 } |
| 15431 if (_json.containsKey("urlMap")) { |
| 15432 urlMap = _json["urlMap"]; |
| 13663 } | 15433 } |
| 13664 } | 15434 } |
| 13665 | 15435 |
| 13666 core.Map toJson() { | 15436 core.Map toJson() { |
| 13667 var _json = new core.Map(); | 15437 var _json = new core.Map(); |
| 13668 if (key != null) { | 15438 if (creationTimestamp != null) { |
| 13669 _json["key"] = key; | 15439 _json["creationTimestamp"] = creationTimestamp; |
| 13670 } | 15440 } |
| 13671 if (value != null) { | 15441 if (description != null) { |
| 13672 _json["value"] = value; | 15442 _json["description"] = description; |
| 15443 } |
| 15444 if (id != null) { |
| 15445 _json["id"] = id; |
| 15446 } |
| 15447 if (kind != null) { |
| 15448 _json["kind"] = kind; |
| 15449 } |
| 15450 if (name != null) { |
| 15451 _json["name"] = name; |
| 15452 } |
| 15453 if (selfLink != null) { |
| 15454 _json["selfLink"] = selfLink; |
| 15455 } |
| 15456 if (urlMap != null) { |
| 15457 _json["urlMap"] = urlMap; |
| 13673 } | 15458 } |
| 13674 return _json; | 15459 return _json; |
| 13675 } | 15460 } |
| 13676 } | 15461 } |
| 13677 | 15462 |
| 13678 | 15463 |
| 13679 /** Not documented yet. */ | 15464 /** Contains a list of TargetHttpProxy resources. */ |
| 13680 class RouteWarnings { | 15465 class TargetHttpProxyList { |
| 13681 /** | 15466 /** |
| 13682 * The warning type identifier for this warning. | 15467 * Unique identifier for the resource; defined by the server (output only). |
| 13683 * Possible string values are: | 15468 */ |
| 13684 * - "DEPRECATED_RESOURCE_USED" | 15469 core.String id; |
| 13685 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 15470 |
| 13686 * - "INJECTED_KERNELS_DEPRECATED" | 15471 /** A list of TargetHttpProxy resources. */ |
| 13687 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 15472 core.List<TargetHttpProxy> items; |
| 13688 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 15473 |
| 13689 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 15474 /** Type of resource. */ |
| 13690 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 15475 core.String kind; |
| 13691 * - "NEXT_HOP_NOT_RUNNING" | 15476 |
| 13692 * - "NO_RESULTS_ON_PAGE" | 15477 /** A token used to continue a truncated list request (output only). */ |
| 13693 * - "REQUIRED_TOS_AGREEMENT" | 15478 core.String nextPageToken; |
| 13694 * - "RESOURCE_NOT_DELETED" | 15479 |
| 13695 * - "UNREACHABLE" | 15480 /** Server defined URL for this resource (output only). */ |
| 13696 */ | 15481 core.String selfLink; |
| 13697 core.String code; | 15482 |
| 13698 | 15483 |
| 13699 /** Metadata for this warning in 'key: value' format. */ | 15484 TargetHttpProxyList(); |
| 13700 core.List<RouteWarningsData> data; | 15485 |
| 13701 | 15486 TargetHttpProxyList.fromJson(core.Map _json) { |
| 13702 /** Optional human-readable details for this warning. */ | 15487 if (_json.containsKey("id")) { |
| 13703 core.String message; | 15488 id = _json["id"]; |
| 13704 | 15489 } |
| 13705 | 15490 if (_json.containsKey("items")) { |
| 13706 RouteWarnings(); | 15491 items = _json["items"].map((value) => new TargetHttpProxy.fromJson(value))
.toList(); |
| 13707 | 15492 } |
| 13708 RouteWarnings.fromJson(core.Map _json) { | 15493 if (_json.containsKey("kind")) { |
| 13709 if (_json.containsKey("code")) { | 15494 kind = _json["kind"]; |
| 13710 code = _json["code"]; | 15495 } |
| 13711 } | 15496 if (_json.containsKey("nextPageToken")) { |
| 13712 if (_json.containsKey("data")) { | 15497 nextPageToken = _json["nextPageToken"]; |
| 13713 data = _json["data"].map((value) => new RouteWarningsData.fromJson(value))
.toList(); | 15498 } |
| 13714 } | 15499 if (_json.containsKey("selfLink")) { |
| 13715 if (_json.containsKey("message")) { | 15500 selfLink = _json["selfLink"]; |
| 13716 message = _json["message"]; | |
| 13717 } | 15501 } |
| 13718 } | 15502 } |
| 13719 | 15503 |
| 13720 core.Map toJson() { | 15504 core.Map toJson() { |
| 13721 var _json = new core.Map(); | 15505 var _json = new core.Map(); |
| 13722 if (code != null) { | 15506 if (id != null) { |
| 13723 _json["code"] = code; | 15507 _json["id"] = id; |
| 13724 } | 15508 } |
| 13725 if (data != null) { | 15509 if (items != null) { |
| 13726 _json["data"] = data.map((value) => (value).toJson()).toList(); | 15510 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13727 } | 15511 } |
| 13728 if (message != null) { | 15512 if (kind != null) { |
| 13729 _json["message"] = message; | 15513 _json["kind"] = kind; |
| 15514 } |
| 15515 if (nextPageToken != null) { |
| 15516 _json["nextPageToken"] = nextPageToken; |
| 15517 } |
| 15518 if (selfLink != null) { |
| 15519 _json["selfLink"] = selfLink; |
| 13730 } | 15520 } |
| 13731 return _json; | 15521 return _json; |
| 13732 } | 15522 } |
| 13733 } | 15523 } |
| 13734 | 15524 |
| 13735 | 15525 |
| 13736 /** | 15526 /** |
| 13737 * The route resource. A Route is a rule that specifies how certain packets | 15527 * A TargetInstance resource. This resource defines an endpoint VM that |
| 13738 * should be handled by the virtual network. Routes are associated with VMs by | 15528 * terminates traffic of certain protocols. |
| 13739 * tag and the set of Routes for a particular VM is called its routing table. | |
| 13740 * For each packet leaving a VM, the system searches that VM's routing table for | |
| 13741 * a single best matching Route. Routes match packets by destination IP address, | |
| 13742 * preferring smaller or more specific ranges over larger ones. If there is a | |
| 13743 * tie, the system selects the Route with the smallest priority value. If there | |
| 13744 * is still a tie, it uses the layer three and four packet headers to select | |
| 13745 * just one of the remaining matching Routes. The packet is then forwarded as | |
| 13746 * specified by the next_hop field of the winning Route -- either to another VM | |
| 13747 * destination, a VM gateway or a GCE operated gateway. Packets that do not | |
| 13748 * match any Route in the sending VM's routing table will be dropped. | |
| 13749 */ | 15529 */ |
| 13750 class Route { | 15530 class TargetInstance { |
| 13751 /** Creation timestamp in RFC3339 text format (output only). */ | 15531 /** Creation timestamp in RFC3339 text format (output only). */ |
| 13752 core.String creationTimestamp; | 15532 core.String creationTimestamp; |
| 13753 | 15533 |
| 13754 /** | 15534 /** |
| 13755 * An optional textual description of the resource; provided by the client | 15535 * An optional textual description of the resource; provided by the client |
| 13756 * when the resource is created. | 15536 * when the resource is created. |
| 13757 */ | 15537 */ |
| 13758 core.String description; | 15538 core.String description; |
| 13759 | 15539 |
| 13760 /** Which packets does this route apply to? */ | |
| 13761 core.String destRange; | |
| 13762 | |
| 13763 /** | 15540 /** |
| 13764 * Unique identifier for the resource; defined by the server (output only). | 15541 * Unique identifier for the resource; defined by the server (output only). |
| 13765 */ | 15542 */ |
| 13766 core.String id; | 15543 core.String id; |
| 13767 | 15544 |
| 15545 /** The URL to the instance that terminates the relevant traffic. */ |
| 15546 core.String instance; |
| 15547 |
| 13768 /** Type of the resource. */ | 15548 /** Type of the resource. */ |
| 13769 core.String kind; | 15549 core.String kind; |
| 13770 | 15550 |
| 13771 /** | 15551 /** |
| 13772 * Name of the resource; provided by the client when the resource is created. | 15552 * Name of the resource; provided by the client when the resource is created. |
| 13773 * The name must be 1-63 characters long, and comply with RFC1035. | 15553 * The name must be 1-63 characters long, and comply with RFC1035. |
| 13774 */ | 15554 */ |
| 13775 core.String name; | 15555 core.String name; |
| 13776 | 15556 |
| 13777 /** | 15557 /** |
| 13778 * URL of the network to which this route is applied; provided by the client | 15558 * NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT |
| 13779 * when the route is created. | 15559 * (default value) is supported. |
| 15560 * Possible string values are: |
| 15561 * - "NO_NAT" |
| 13780 */ | 15562 */ |
| 13781 core.String network; | 15563 core.String natPolicy; |
| 13782 | |
| 13783 /** The URL to a gateway that should handle matching packets. */ | |
| 13784 core.String nextHopGateway; | |
| 13785 | |
| 13786 /** The URL to an instance that should handle matching packets. */ | |
| 13787 core.String nextHopInstance; | |
| 13788 | |
| 13789 /** | |
| 13790 * The network IP address of an instance that should handle matching packets. | |
| 13791 */ | |
| 13792 core.String nextHopIp; | |
| 13793 | |
| 13794 /** The URL of the local network if it should handle matching packets. */ | |
| 13795 core.String nextHopNetwork; | |
| 13796 | |
| 13797 /** | |
| 13798 * Breaks ties between Routes of equal specificity. Routes with smaller values | |
| 13799 * win when tied with routes with larger values. | |
| 13800 */ | |
| 13801 core.int priority; | |
| 13802 | 15564 |
| 13803 /** Server defined URL for the resource (output only). */ | 15565 /** Server defined URL for the resource (output only). */ |
| 13804 core.String selfLink; | 15566 core.String selfLink; |
| 13805 | 15567 |
| 13806 /** A list of instance tags to which this route applies. */ | 15568 /** URL of the zone where the target instance resides (output only). */ |
| 13807 core.List<core.String> tags; | 15569 core.String zone; |
| 13808 | |
| 13809 /** | |
| 13810 * If potential misconfigurations are detected for this route, this field will | |
| 13811 * be populated with warning messages. | |
| 13812 */ | |
| 13813 core.List<RouteWarnings> warnings; | |
| 13814 | 15570 |
| 13815 | 15571 |
| 13816 Route(); | 15572 TargetInstance(); |
| 13817 | 15573 |
| 13818 Route.fromJson(core.Map _json) { | 15574 TargetInstance.fromJson(core.Map _json) { |
| 13819 if (_json.containsKey("creationTimestamp")) { | 15575 if (_json.containsKey("creationTimestamp")) { |
| 13820 creationTimestamp = _json["creationTimestamp"]; | 15576 creationTimestamp = _json["creationTimestamp"]; |
| 13821 } | 15577 } |
| 13822 if (_json.containsKey("description")) { | 15578 if (_json.containsKey("description")) { |
| 13823 description = _json["description"]; | 15579 description = _json["description"]; |
| 13824 } | 15580 } |
| 13825 if (_json.containsKey("destRange")) { | |
| 13826 destRange = _json["destRange"]; | |
| 13827 } | |
| 13828 if (_json.containsKey("id")) { | 15581 if (_json.containsKey("id")) { |
| 13829 id = _json["id"]; | 15582 id = _json["id"]; |
| 13830 } | 15583 } |
| 15584 if (_json.containsKey("instance")) { |
| 15585 instance = _json["instance"]; |
| 15586 } |
| 13831 if (_json.containsKey("kind")) { | 15587 if (_json.containsKey("kind")) { |
| 13832 kind = _json["kind"]; | 15588 kind = _json["kind"]; |
| 13833 } | 15589 } |
| 13834 if (_json.containsKey("name")) { | 15590 if (_json.containsKey("name")) { |
| 13835 name = _json["name"]; | 15591 name = _json["name"]; |
| 13836 } | 15592 } |
| 13837 if (_json.containsKey("network")) { | 15593 if (_json.containsKey("natPolicy")) { |
| 13838 network = _json["network"]; | 15594 natPolicy = _json["natPolicy"]; |
| 13839 } | |
| 13840 if (_json.containsKey("nextHopGateway")) { | |
| 13841 nextHopGateway = _json["nextHopGateway"]; | |
| 13842 } | |
| 13843 if (_json.containsKey("nextHopInstance")) { | |
| 13844 nextHopInstance = _json["nextHopInstance"]; | |
| 13845 } | |
| 13846 if (_json.containsKey("nextHopIp")) { | |
| 13847 nextHopIp = _json["nextHopIp"]; | |
| 13848 } | |
| 13849 if (_json.containsKey("nextHopNetwork")) { | |
| 13850 nextHopNetwork = _json["nextHopNetwork"]; | |
| 13851 } | |
| 13852 if (_json.containsKey("priority")) { | |
| 13853 priority = _json["priority"]; | |
| 13854 } | 15595 } |
| 13855 if (_json.containsKey("selfLink")) { | 15596 if (_json.containsKey("selfLink")) { |
| 13856 selfLink = _json["selfLink"]; | 15597 selfLink = _json["selfLink"]; |
| 13857 } | 15598 } |
| 13858 if (_json.containsKey("tags")) { | 15599 if (_json.containsKey("zone")) { |
| 13859 tags = _json["tags"]; | 15600 zone = _json["zone"]; |
| 13860 } | |
| 13861 if (_json.containsKey("warnings")) { | |
| 13862 warnings = _json["warnings"].map((value) => new RouteWarnings.fromJson(val
ue)).toList(); | |
| 13863 } | 15601 } |
| 13864 } | 15602 } |
| 13865 | 15603 |
| 13866 core.Map toJson() { | 15604 core.Map toJson() { |
| 13867 var _json = new core.Map(); | 15605 var _json = new core.Map(); |
| 13868 if (creationTimestamp != null) { | 15606 if (creationTimestamp != null) { |
| 13869 _json["creationTimestamp"] = creationTimestamp; | 15607 _json["creationTimestamp"] = creationTimestamp; |
| 13870 } | 15608 } |
| 13871 if (description != null) { | 15609 if (description != null) { |
| 13872 _json["description"] = description; | 15610 _json["description"] = description; |
| 13873 } | 15611 } |
| 13874 if (destRange != null) { | |
| 13875 _json["destRange"] = destRange; | |
| 13876 } | |
| 13877 if (id != null) { | 15612 if (id != null) { |
| 13878 _json["id"] = id; | 15613 _json["id"] = id; |
| 13879 } | 15614 } |
| 15615 if (instance != null) { |
| 15616 _json["instance"] = instance; |
| 15617 } |
| 13880 if (kind != null) { | 15618 if (kind != null) { |
| 13881 _json["kind"] = kind; | 15619 _json["kind"] = kind; |
| 13882 } | 15620 } |
| 13883 if (name != null) { | 15621 if (name != null) { |
| 13884 _json["name"] = name; | 15622 _json["name"] = name; |
| 13885 } | 15623 } |
| 13886 if (network != null) { | 15624 if (natPolicy != null) { |
| 13887 _json["network"] = network; | 15625 _json["natPolicy"] = natPolicy; |
| 13888 } | |
| 13889 if (nextHopGateway != null) { | |
| 13890 _json["nextHopGateway"] = nextHopGateway; | |
| 13891 } | |
| 13892 if (nextHopInstance != null) { | |
| 13893 _json["nextHopInstance"] = nextHopInstance; | |
| 13894 } | |
| 13895 if (nextHopIp != null) { | |
| 13896 _json["nextHopIp"] = nextHopIp; | |
| 13897 } | |
| 13898 if (nextHopNetwork != null) { | |
| 13899 _json["nextHopNetwork"] = nextHopNetwork; | |
| 13900 } | |
| 13901 if (priority != null) { | |
| 13902 _json["priority"] = priority; | |
| 13903 } | 15626 } |
| 13904 if (selfLink != null) { | 15627 if (selfLink != null) { |
| 13905 _json["selfLink"] = selfLink; | 15628 _json["selfLink"] = selfLink; |
| 13906 } | 15629 } |
| 13907 if (tags != null) { | 15630 if (zone != null) { |
| 13908 _json["tags"] = tags; | 15631 _json["zone"] = zone; |
| 13909 } | |
| 13910 if (warnings != null) { | |
| 13911 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | |
| 13912 } | 15632 } |
| 13913 return _json; | 15633 return _json; |
| 13914 } | 15634 } |
| 13915 } | 15635 } |
| 13916 | 15636 |
| 13917 | 15637 |
| 13918 /** Contains a list of route resources. */ | 15638 class TargetInstanceAggregatedList { |
| 13919 class RouteList { | |
| 13920 /** | 15639 /** |
| 13921 * Unique identifier for the resource; defined by the server (output only). | 15640 * Unique identifier for the resource; defined by the server (output only). |
| 13922 */ | 15641 */ |
| 13923 core.String id; | 15642 core.String id; |
| 13924 | 15643 |
| 13925 /** A list of Route resources. */ | 15644 /** A map of scoped target instance lists. */ |
| 13926 core.List<Route> items; | 15645 core.Map<core.String, TargetInstancesScopedList> items; |
| 13927 | 15646 |
| 13928 /** Type of resource. */ | 15647 /** Type of resource. */ |
| 13929 core.String kind; | 15648 core.String kind; |
| 15649 |
| 15650 /** A token used to continue a truncated list request (output only). */ |
| 15651 core.String nextPageToken; |
| 15652 |
| 15653 /** Server defined URL for this resource (output only). */ |
| 15654 core.String selfLink; |
| 15655 |
| 15656 |
| 15657 TargetInstanceAggregatedList(); |
| 15658 |
| 15659 TargetInstanceAggregatedList.fromJson(core.Map _json) { |
| 15660 if (_json.containsKey("id")) { |
| 15661 id = _json["id"]; |
| 15662 } |
| 15663 if (_json.containsKey("items")) { |
| 15664 items = commons.mapMap(_json["items"], (item) => new TargetInstancesScoped
List.fromJson(item)); |
| 15665 } |
| 15666 if (_json.containsKey("kind")) { |
| 15667 kind = _json["kind"]; |
| 15668 } |
| 15669 if (_json.containsKey("nextPageToken")) { |
| 15670 nextPageToken = _json["nextPageToken"]; |
| 15671 } |
| 15672 if (_json.containsKey("selfLink")) { |
| 15673 selfLink = _json["selfLink"]; |
| 15674 } |
| 15675 } |
| 15676 |
| 15677 core.Map toJson() { |
| 15678 var _json = new core.Map(); |
| 15679 if (id != null) { |
| 15680 _json["id"] = id; |
| 15681 } |
| 15682 if (items != null) { |
| 15683 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 15684 } |
| 15685 if (kind != null) { |
| 15686 _json["kind"] = kind; |
| 15687 } |
| 15688 if (nextPageToken != null) { |
| 15689 _json["nextPageToken"] = nextPageToken; |
| 15690 } |
| 15691 if (selfLink != null) { |
| 15692 _json["selfLink"] = selfLink; |
| 15693 } |
| 15694 return _json; |
| 15695 } |
| 15696 } |
| 15697 |
| 15698 |
| 15699 /** Contains a list of TargetInstance resources. */ |
| 15700 class TargetInstanceList { |
| 15701 /** |
| 15702 * Unique identifier for the resource; defined by the server (output only). |
| 15703 */ |
| 15704 core.String id; |
| 15705 |
| 15706 /** A list of TargetInstance resources. */ |
| 15707 core.List<TargetInstance> items; |
| 15708 |
| 15709 /** Type of resource. */ |
| 15710 core.String kind; |
| 13930 | 15711 |
| 13931 /** A token used to continue a truncated list request (output only). */ | 15712 /** A token used to continue a truncated list request (output only). */ |
| 13932 core.String nextPageToken; | 15713 core.String nextPageToken; |
| 13933 | 15714 |
| 13934 /** Server defined URL for this resource (output only). */ | 15715 /** Server defined URL for this resource (output only). */ |
| 13935 core.String selfLink; | 15716 core.String selfLink; |
| 13936 | 15717 |
| 13937 | 15718 |
| 13938 RouteList(); | 15719 TargetInstanceList(); |
| 13939 | 15720 |
| 13940 RouteList.fromJson(core.Map _json) { | 15721 TargetInstanceList.fromJson(core.Map _json) { |
| 13941 if (_json.containsKey("id")) { | 15722 if (_json.containsKey("id")) { |
| 13942 id = _json["id"]; | 15723 id = _json["id"]; |
| 13943 } | 15724 } |
| 13944 if (_json.containsKey("items")) { | 15725 if (_json.containsKey("items")) { |
| 13945 items = _json["items"].map((value) => new Route.fromJson(value)).toList(); | 15726 items = _json["items"].map((value) => new TargetInstance.fromJson(value)).
toList(); |
| 13946 } | 15727 } |
| 13947 if (_json.containsKey("kind")) { | 15728 if (_json.containsKey("kind")) { |
| 13948 kind = _json["kind"]; | 15729 kind = _json["kind"]; |
| 13949 } | 15730 } |
| 13950 if (_json.containsKey("nextPageToken")) { | 15731 if (_json.containsKey("nextPageToken")) { |
| 13951 nextPageToken = _json["nextPageToken"]; | 15732 nextPageToken = _json["nextPageToken"]; |
| 13952 } | 15733 } |
| 13953 if (_json.containsKey("selfLink")) { | 15734 if (_json.containsKey("selfLink")) { |
| 13954 selfLink = _json["selfLink"]; | 15735 selfLink = _json["selfLink"]; |
| 13955 } | 15736 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 13970 _json["nextPageToken"] = nextPageToken; | 15751 _json["nextPageToken"] = nextPageToken; |
| 13971 } | 15752 } |
| 13972 if (selfLink != null) { | 15753 if (selfLink != null) { |
| 13973 _json["selfLink"] = selfLink; | 15754 _json["selfLink"] = selfLink; |
| 13974 } | 15755 } |
| 13975 return _json; | 15756 return _json; |
| 13976 } | 15757 } |
| 13977 } | 15758 } |
| 13978 | 15759 |
| 13979 | 15760 |
| 13980 /** Scheduling options for an Instance. */ | 15761 class TargetInstancesScopedListWarningData { |
| 13981 class Scheduling { | 15762 /** [Output Only] A key for the warning data. */ |
| 13982 /** | 15763 core.String key; |
| 13983 * Whether the Instance should be automatically restarted whenever it is | |
| 13984 * terminated by Compute Engine (not terminated by user). | |
| 13985 */ | |
| 13986 core.bool automaticRestart; | |
| 13987 | 15764 |
| 13988 /** | 15765 /** [Output Only] A warning data value corresponding to the key. */ |
| 13989 * How the instance should behave when the host machine undergoes maintenance | 15766 core.String value; |
| 13990 * that may temporarily impact instance performance. | |
| 13991 * Possible string values are: | |
| 13992 * - "MIGRATE" | |
| 13993 * - "TERMINATE" | |
| 13994 */ | |
| 13995 core.String onHostMaintenance; | |
| 13996 | 15767 |
| 13997 | 15768 |
| 13998 Scheduling(); | 15769 TargetInstancesScopedListWarningData(); |
| 13999 | 15770 |
| 14000 Scheduling.fromJson(core.Map _json) { | 15771 TargetInstancesScopedListWarningData.fromJson(core.Map _json) { |
| 14001 if (_json.containsKey("automaticRestart")) { | 15772 if (_json.containsKey("key")) { |
| 14002 automaticRestart = _json["automaticRestart"]; | 15773 key = _json["key"]; |
| 14003 } | 15774 } |
| 14004 if (_json.containsKey("onHostMaintenance")) { | 15775 if (_json.containsKey("value")) { |
| 14005 onHostMaintenance = _json["onHostMaintenance"]; | 15776 value = _json["value"]; |
| 14006 } | 15777 } |
| 14007 } | 15778 } |
| 14008 | 15779 |
| 14009 core.Map toJson() { | 15780 core.Map toJson() { |
| 14010 var _json = new core.Map(); | 15781 var _json = new core.Map(); |
| 14011 if (automaticRestart != null) { | 15782 if (key != null) { |
| 14012 _json["automaticRestart"] = automaticRestart; | 15783 _json["key"] = key; |
| 14013 } | 15784 } |
| 14014 if (onHostMaintenance != null) { | 15785 if (value != null) { |
| 14015 _json["onHostMaintenance"] = onHostMaintenance; | 15786 _json["value"] = value; |
| 14016 } | 15787 } |
| 14017 return _json; | 15788 return _json; |
| 14018 } | 15789 } |
| 14019 } | 15790 } |
| 14020 | 15791 |
| 14021 | 15792 |
| 14022 /** An instance serial console output. */ | 15793 /** |
| 14023 class SerialPortOutput { | 15794 * Informational warning which replaces the list of addresses when the list is |
| 14024 /** The contents of the console output. */ | 15795 * empty. |
| 14025 core.String contents; | 15796 */ |
| 15797 class TargetInstancesScopedListWarning { |
| 15798 /** |
| 15799 * [Output Only] The warning type identifier for this warning. |
| 15800 * Possible string values are: |
| 15801 * - "DEPRECATED_RESOURCE_USED" |
| 15802 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 15803 * - "INJECTED_KERNELS_DEPRECATED" |
| 15804 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 15805 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 15806 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 15807 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 15808 * - "NEXT_HOP_NOT_RUNNING" |
| 15809 * - "NO_RESULTS_ON_PAGE" |
| 15810 * - "REQUIRED_TOS_AGREEMENT" |
| 15811 * - "RESOURCE_NOT_DELETED" |
| 15812 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 15813 * - "UNREACHABLE" |
| 15814 */ |
| 15815 core.String code; |
| 14026 | 15816 |
| 14027 /** Type of the resource. */ | 15817 /** [Output Only] Metadata for this warning in key: value format. */ |
| 14028 core.String kind; | 15818 core.List<TargetInstancesScopedListWarningData> data; |
| 14029 | 15819 |
| 14030 /** Server defined URL for the resource (output only). */ | 15820 /** [Output Only] Optional human-readable details for this warning. */ |
| 14031 core.String selfLink; | 15821 core.String message; |
| 14032 | 15822 |
| 14033 | 15823 |
| 14034 SerialPortOutput(); | 15824 TargetInstancesScopedListWarning(); |
| 14035 | 15825 |
| 14036 SerialPortOutput.fromJson(core.Map _json) { | 15826 TargetInstancesScopedListWarning.fromJson(core.Map _json) { |
| 14037 if (_json.containsKey("contents")) { | 15827 if (_json.containsKey("code")) { |
| 14038 contents = _json["contents"]; | 15828 code = _json["code"]; |
| 14039 } | 15829 } |
| 14040 if (_json.containsKey("kind")) { | 15830 if (_json.containsKey("data")) { |
| 14041 kind = _json["kind"]; | 15831 data = _json["data"].map((value) => new TargetInstancesScopedListWarningDa
ta.fromJson(value)).toList(); |
| 14042 } | 15832 } |
| 14043 if (_json.containsKey("selfLink")) { | 15833 if (_json.containsKey("message")) { |
| 14044 selfLink = _json["selfLink"]; | 15834 message = _json["message"]; |
| 14045 } | 15835 } |
| 14046 } | 15836 } |
| 14047 | 15837 |
| 14048 core.Map toJson() { | 15838 core.Map toJson() { |
| 14049 var _json = new core.Map(); | 15839 var _json = new core.Map(); |
| 14050 if (contents != null) { | 15840 if (code != null) { |
| 14051 _json["contents"] = contents; | 15841 _json["code"] = code; |
| 14052 } | 15842 } |
| 14053 if (kind != null) { | 15843 if (data != null) { |
| 14054 _json["kind"] = kind; | 15844 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 14055 } | 15845 } |
| 14056 if (selfLink != null) { | 15846 if (message != null) { |
| 14057 _json["selfLink"] = selfLink; | 15847 _json["message"] = message; |
| 14058 } | 15848 } |
| 14059 return _json; | 15849 return _json; |
| 14060 } | 15850 } |
| 14061 } | 15851 } |
| 14062 | 15852 |
| 14063 | 15853 |
| 14064 /** A service account. */ | 15854 class TargetInstancesScopedList { |
| 14065 class ServiceAccount { | 15855 /** List of target instances contained in this scope. */ |
| 14066 /** Email address of the service account. */ | 15856 core.List<TargetInstance> targetInstances; |
| 14067 core.String email; | |
| 14068 | 15857 |
| 14069 /** The list of scopes to be made available for this service account. */ | 15858 /** |
| 14070 core.List<core.String> scopes; | 15859 * Informational warning which replaces the list of addresses when the list is |
| 15860 * empty. |
| 15861 */ |
| 15862 TargetInstancesScopedListWarning warning; |
| 14071 | 15863 |
| 14072 | 15864 |
| 14073 ServiceAccount(); | 15865 TargetInstancesScopedList(); |
| 14074 | 15866 |
| 14075 ServiceAccount.fromJson(core.Map _json) { | 15867 TargetInstancesScopedList.fromJson(core.Map _json) { |
| 14076 if (_json.containsKey("email")) { | 15868 if (_json.containsKey("targetInstances")) { |
| 14077 email = _json["email"]; | 15869 targetInstances = _json["targetInstances"].map((value) => new TargetInstan
ce.fromJson(value)).toList(); |
| 14078 } | 15870 } |
| 14079 if (_json.containsKey("scopes")) { | 15871 if (_json.containsKey("warning")) { |
| 14080 scopes = _json["scopes"]; | 15872 warning = new TargetInstancesScopedListWarning.fromJson(_json["warning"]); |
| 14081 } | 15873 } |
| 14082 } | 15874 } |
| 14083 | 15875 |
| 14084 core.Map toJson() { | 15876 core.Map toJson() { |
| 14085 var _json = new core.Map(); | 15877 var _json = new core.Map(); |
| 14086 if (email != null) { | 15878 if (targetInstances != null) { |
| 14087 _json["email"] = email; | 15879 _json["targetInstances"] = targetInstances.map((value) => (value).toJson()
).toList(); |
| 14088 } | 15880 } |
| 14089 if (scopes != null) { | 15881 if (warning != null) { |
| 14090 _json["scopes"] = scopes; | 15882 _json["warning"] = (warning).toJson(); |
| 14091 } | 15883 } |
| 14092 return _json; | 15884 return _json; |
| 14093 } | 15885 } |
| 14094 } | 15886 } |
| 14095 | 15887 |
| 14096 | 15888 |
| 14097 /** A persistent disk snapshot resource. */ | 15889 /** |
| 14098 class Snapshot { | 15890 * A TargetPool resource. This resource defines a pool of VMs, associated |
| 15891 * HttpHealthCheck resources, and the fallback TargetPool. |
| 15892 */ |
| 15893 class TargetPool { |
| 15894 /** |
| 15895 * This field is applicable only when the containing target pool is serving a |
| 15896 * forwarding rule as the primary pool, and its 'failoverRatio' field is |
| 15897 * properly set to a value between [0, 1]. |
| 15898 * |
| 15899 * 'backupPool' and 'failoverRatio' together define the fallback behavior of |
| 15900 * the primary target pool: if the ratio of the healthy VMs in the primary |
| 15901 * pool is at or below 'failoverRatio', traffic arriving at the load-balanced |
| 15902 * IP will be directed to the backup pool. |
| 15903 * |
| 15904 * In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs |
| 15905 * in the backup pool are unhealthy, the traffic will be directed back to the |
| 15906 * primary pool in the "force" mode, where traffic will be spread to the |
| 15907 * healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 15908 */ |
| 15909 core.String backupPool; |
| 15910 |
| 14099 /** Creation timestamp in RFC3339 text format (output only). */ | 15911 /** Creation timestamp in RFC3339 text format (output only). */ |
| 14100 core.String creationTimestamp; | 15912 core.String creationTimestamp; |
| 14101 | 15913 |
| 14102 /** | 15914 /** |
| 14103 * An optional textual description of the resource; provided by the client | 15915 * An optional textual description of the resource; provided by the client |
| 14104 * when the resource is created. | 15916 * when the resource is created. |
| 14105 */ | 15917 */ |
| 14106 core.String description; | 15918 core.String description; |
| 14107 | 15919 |
| 14108 /** Size of the persistent disk snapshot, specified in GB (output only). */ | 15920 /** |
| 14109 core.String diskSizeGb; | 15921 * This field is applicable only when the containing target pool is serving a |
| 15922 * forwarding rule as the primary pool (i.e., not as a backup pool to some |
| 15923 * other target pool). The value of the field must be in [0, 1]. |
| 15924 * |
| 15925 * If set, 'backupPool' must also be set. They together define the fallback |
| 15926 * behavior of the primary target pool: if the ratio of the healthy VMs in the |
| 15927 * primary pool is at or below this number, traffic arriving at the |
| 15928 * load-balanced IP will be directed to the backup pool. |
| 15929 * |
| 15930 * In case where 'failoverRatio' is not set or all the VMs in the backup pool |
| 15931 * are unhealthy, the traffic will be directed back to the primary pool in the |
| 15932 * "force" mode, where traffic will be spread to the healthy VMs with the best |
| 15933 * effort, or to all VMs when no VM is healthy. |
| 15934 */ |
| 15935 core.double failoverRatio; |
| 15936 |
| 15937 /** |
| 15938 * A list of URLs to the HttpHealthCheck resource. A member VM in this pool is |
| 15939 * considered healthy if and only if all specified health checks pass. An |
| 15940 * empty list means all member VMs will be considered healthy at all times. |
| 15941 */ |
| 15942 core.List<core.String> healthChecks; |
| 14110 | 15943 |
| 14111 /** | 15944 /** |
| 14112 * Unique identifier for the resource; defined by the server (output only). | 15945 * Unique identifier for the resource; defined by the server (output only). |
| 14113 */ | 15946 */ |
| 14114 core.String id; | 15947 core.String id; |
| 14115 | 15948 |
| 15949 /** |
| 15950 * A list of resource URLs to the member VMs serving this pool. They must live |
| 15951 * in zones contained in the same region as this pool. |
| 15952 */ |
| 15953 core.List<core.String> instances; |
| 15954 |
| 14116 /** Type of the resource. */ | 15955 /** Type of the resource. */ |
| 14117 core.String kind; | 15956 core.String kind; |
| 14118 | 15957 |
| 14119 /** Public visible licenses. */ | |
| 14120 core.List<core.String> licenses; | |
| 14121 | |
| 14122 /** | 15958 /** |
| 14123 * Name of the resource; provided by the client when the resource is created. | 15959 * Name of the resource; provided by the client when the resource is created. |
| 14124 * The name must be 1-63 characters long, and comply with RFC1035. | 15960 * The name must be 1-63 characters long, and comply with RFC1035. |
| 14125 */ | 15961 */ |
| 14126 core.String name; | 15962 core.String name; |
| 14127 | 15963 |
| 15964 /** URL of the region where the target pool resides (output only). */ |
| 15965 core.String region; |
| 15966 |
| 14128 /** Server defined URL for the resource (output only). */ | 15967 /** Server defined URL for the resource (output only). */ |
| 14129 core.String selfLink; | 15968 core.String selfLink; |
| 14130 | 15969 |
| 14131 /** The source disk used to create this snapshot. */ | 15970 /** |
| 14132 core.String sourceDisk; | 15971 * Sesssion affinity option, must be one of the following values: 'NONE': |
| 14133 | 15972 * Connections from the same client IP may go to any VM in the pool; |
| 14134 /** | 15973 * 'CLIENT_IP': Connections from the same client IP will go to the same VM in |
| 14135 * The 'id' value of the disk used to create this snapshot. This value may be | 15974 * the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from |
| 14136 * used to determine whether the snapshot was taken from the current or a | 15975 * the same client IP with the same IP protocol will go to the same VM in the |
| 14137 * previous instance of a given disk name. | 15976 * pool while that VM remains healthy. |
| 14138 */ | |
| 14139 core.String sourceDiskId; | |
| 14140 | |
| 14141 /** | |
| 14142 * The status of the persistent disk snapshot (output only). | |
| 14143 * Possible string values are: | 15977 * Possible string values are: |
| 14144 * - "CREATING" | 15978 * - "CLIENT_IP" |
| 14145 * - "DELETING" | 15979 * - "CLIENT_IP_PROTO" |
| 14146 * - "FAILED" | 15980 * - "NONE" |
| 14147 * - "READY" | 15981 */ |
| 14148 * - "UPLOADING" | 15982 core.String sessionAffinity; |
| 14149 */ | 15983 |
| 14150 core.String status; | 15984 |
| 14151 | 15985 TargetPool(); |
| 14152 /** | 15986 |
| 14153 * A size of the the storage used by the snapshot. As snapshots share storage | 15987 TargetPool.fromJson(core.Map _json) { |
| 14154 * this number is expected to change with snapshot creation/deletion. | 15988 if (_json.containsKey("backupPool")) { |
| 14155 */ | 15989 backupPool = _json["backupPool"]; |
| 14156 core.String storageBytes; | 15990 } |
| 14157 | |
| 14158 /** | |
| 14159 * An indicator whether storageBytes is in a stable state, or it is being | |
| 14160 * adjusted as a result of shared storage reallocation. | |
| 14161 * Possible string values are: | |
| 14162 * - "UPDATING" | |
| 14163 * - "UP_TO_DATE" | |
| 14164 */ | |
| 14165 core.String storageBytesStatus; | |
| 14166 | |
| 14167 | |
| 14168 Snapshot(); | |
| 14169 | |
| 14170 Snapshot.fromJson(core.Map _json) { | |
| 14171 if (_json.containsKey("creationTimestamp")) { | 15991 if (_json.containsKey("creationTimestamp")) { |
| 14172 creationTimestamp = _json["creationTimestamp"]; | 15992 creationTimestamp = _json["creationTimestamp"]; |
| 14173 } | 15993 } |
| 14174 if (_json.containsKey("description")) { | 15994 if (_json.containsKey("description")) { |
| 14175 description = _json["description"]; | 15995 description = _json["description"]; |
| 14176 } | 15996 } |
| 14177 if (_json.containsKey("diskSizeGb")) { | 15997 if (_json.containsKey("failoverRatio")) { |
| 14178 diskSizeGb = _json["diskSizeGb"]; | 15998 failoverRatio = _json["failoverRatio"]; |
| 15999 } |
| 16000 if (_json.containsKey("healthChecks")) { |
| 16001 healthChecks = _json["healthChecks"]; |
| 14179 } | 16002 } |
| 14180 if (_json.containsKey("id")) { | 16003 if (_json.containsKey("id")) { |
| 14181 id = _json["id"]; | 16004 id = _json["id"]; |
| 14182 } | 16005 } |
| 16006 if (_json.containsKey("instances")) { |
| 16007 instances = _json["instances"]; |
| 16008 } |
| 14183 if (_json.containsKey("kind")) { | 16009 if (_json.containsKey("kind")) { |
| 14184 kind = _json["kind"]; | 16010 kind = _json["kind"]; |
| 14185 } | 16011 } |
| 14186 if (_json.containsKey("licenses")) { | |
| 14187 licenses = _json["licenses"]; | |
| 14188 } | |
| 14189 if (_json.containsKey("name")) { | 16012 if (_json.containsKey("name")) { |
| 14190 name = _json["name"]; | 16013 name = _json["name"]; |
| 14191 } | 16014 } |
| 16015 if (_json.containsKey("region")) { |
| 16016 region = _json["region"]; |
| 16017 } |
| 14192 if (_json.containsKey("selfLink")) { | 16018 if (_json.containsKey("selfLink")) { |
| 14193 selfLink = _json["selfLink"]; | 16019 selfLink = _json["selfLink"]; |
| 14194 } | 16020 } |
| 14195 if (_json.containsKey("sourceDisk")) { | 16021 if (_json.containsKey("sessionAffinity")) { |
| 14196 sourceDisk = _json["sourceDisk"]; | 16022 sessionAffinity = _json["sessionAffinity"]; |
| 14197 } | |
| 14198 if (_json.containsKey("sourceDiskId")) { | |
| 14199 sourceDiskId = _json["sourceDiskId"]; | |
| 14200 } | |
| 14201 if (_json.containsKey("status")) { | |
| 14202 status = _json["status"]; | |
| 14203 } | |
| 14204 if (_json.containsKey("storageBytes")) { | |
| 14205 storageBytes = _json["storageBytes"]; | |
| 14206 } | |
| 14207 if (_json.containsKey("storageBytesStatus")) { | |
| 14208 storageBytesStatus = _json["storageBytesStatus"]; | |
| 14209 } | 16023 } |
| 14210 } | 16024 } |
| 14211 | 16025 |
| 14212 core.Map toJson() { | 16026 core.Map toJson() { |
| 14213 var _json = new core.Map(); | 16027 var _json = new core.Map(); |
| 16028 if (backupPool != null) { |
| 16029 _json["backupPool"] = backupPool; |
| 16030 } |
| 14214 if (creationTimestamp != null) { | 16031 if (creationTimestamp != null) { |
| 14215 _json["creationTimestamp"] = creationTimestamp; | 16032 _json["creationTimestamp"] = creationTimestamp; |
| 14216 } | 16033 } |
| 14217 if (description != null) { | 16034 if (description != null) { |
| 14218 _json["description"] = description; | 16035 _json["description"] = description; |
| 14219 } | 16036 } |
| 14220 if (diskSizeGb != null) { | 16037 if (failoverRatio != null) { |
| 14221 _json["diskSizeGb"] = diskSizeGb; | 16038 _json["failoverRatio"] = failoverRatio; |
| 16039 } |
| 16040 if (healthChecks != null) { |
| 16041 _json["healthChecks"] = healthChecks; |
| 14222 } | 16042 } |
| 14223 if (id != null) { | 16043 if (id != null) { |
| 14224 _json["id"] = id; | 16044 _json["id"] = id; |
| 14225 } | 16045 } |
| 16046 if (instances != null) { |
| 16047 _json["instances"] = instances; |
| 16048 } |
| 14226 if (kind != null) { | 16049 if (kind != null) { |
| 14227 _json["kind"] = kind; | 16050 _json["kind"] = kind; |
| 14228 } | 16051 } |
| 14229 if (licenses != null) { | |
| 14230 _json["licenses"] = licenses; | |
| 14231 } | |
| 14232 if (name != null) { | 16052 if (name != null) { |
| 14233 _json["name"] = name; | 16053 _json["name"] = name; |
| 14234 } | 16054 } |
| 16055 if (region != null) { |
| 16056 _json["region"] = region; |
| 16057 } |
| 14235 if (selfLink != null) { | 16058 if (selfLink != null) { |
| 14236 _json["selfLink"] = selfLink; | 16059 _json["selfLink"] = selfLink; |
| 14237 } | 16060 } |
| 14238 if (sourceDisk != null) { | 16061 if (sessionAffinity != null) { |
| 14239 _json["sourceDisk"] = sourceDisk; | 16062 _json["sessionAffinity"] = sessionAffinity; |
| 14240 } | |
| 14241 if (sourceDiskId != null) { | |
| 14242 _json["sourceDiskId"] = sourceDiskId; | |
| 14243 } | |
| 14244 if (status != null) { | |
| 14245 _json["status"] = status; | |
| 14246 } | |
| 14247 if (storageBytes != null) { | |
| 14248 _json["storageBytes"] = storageBytes; | |
| 14249 } | |
| 14250 if (storageBytesStatus != null) { | |
| 14251 _json["storageBytesStatus"] = storageBytesStatus; | |
| 14252 } | 16063 } |
| 14253 return _json; | 16064 return _json; |
| 14254 } | 16065 } |
| 14255 } | 16066 } |
| 14256 | 16067 |
| 14257 | 16068 |
| 14258 /** Contains a list of persistent disk snapshot resources. */ | 16069 class TargetPoolAggregatedList { |
| 14259 class SnapshotList { | |
| 14260 /** | 16070 /** |
| 14261 * Unique identifier for the resource; defined by the server (output only). | 16071 * Unique identifier for the resource; defined by the server (output only). |
| 14262 */ | 16072 */ |
| 14263 core.String id; | 16073 core.String id; |
| 14264 | 16074 |
| 14265 /** A list of Snapshot resources. */ | 16075 /** A map of scoped target pool lists. */ |
| 14266 core.List<Snapshot> items; | 16076 core.Map<core.String, TargetPoolsScopedList> items; |
| 14267 | 16077 |
| 14268 /** Type of resource. */ | 16078 /** Type of resource. */ |
| 14269 core.String kind; | 16079 core.String kind; |
| 16080 |
| 16081 /** A token used to continue a truncated list request (output only). */ |
| 16082 core.String nextPageToken; |
| 16083 |
| 16084 /** Server defined URL for this resource (output only). */ |
| 16085 core.String selfLink; |
| 16086 |
| 16087 |
| 16088 TargetPoolAggregatedList(); |
| 16089 |
| 16090 TargetPoolAggregatedList.fromJson(core.Map _json) { |
| 16091 if (_json.containsKey("id")) { |
| 16092 id = _json["id"]; |
| 16093 } |
| 16094 if (_json.containsKey("items")) { |
| 16095 items = commons.mapMap(_json["items"], (item) => new TargetPoolsScopedList
.fromJson(item)); |
| 16096 } |
| 16097 if (_json.containsKey("kind")) { |
| 16098 kind = _json["kind"]; |
| 16099 } |
| 16100 if (_json.containsKey("nextPageToken")) { |
| 16101 nextPageToken = _json["nextPageToken"]; |
| 16102 } |
| 16103 if (_json.containsKey("selfLink")) { |
| 16104 selfLink = _json["selfLink"]; |
| 16105 } |
| 16106 } |
| 16107 |
| 16108 core.Map toJson() { |
| 16109 var _json = new core.Map(); |
| 16110 if (id != null) { |
| 16111 _json["id"] = id; |
| 16112 } |
| 16113 if (items != null) { |
| 16114 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 16115 } |
| 16116 if (kind != null) { |
| 16117 _json["kind"] = kind; |
| 16118 } |
| 16119 if (nextPageToken != null) { |
| 16120 _json["nextPageToken"] = nextPageToken; |
| 16121 } |
| 16122 if (selfLink != null) { |
| 16123 _json["selfLink"] = selfLink; |
| 16124 } |
| 16125 return _json; |
| 16126 } |
| 16127 } |
| 16128 |
| 16129 |
| 16130 class TargetPoolInstanceHealth { |
| 16131 core.List<HealthStatus> healthStatus; |
| 16132 |
| 16133 /** Type of resource. */ |
| 16134 core.String kind; |
| 16135 |
| 16136 |
| 16137 TargetPoolInstanceHealth(); |
| 16138 |
| 16139 TargetPoolInstanceHealth.fromJson(core.Map _json) { |
| 16140 if (_json.containsKey("healthStatus")) { |
| 16141 healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJ
son(value)).toList(); |
| 16142 } |
| 16143 if (_json.containsKey("kind")) { |
| 16144 kind = _json["kind"]; |
| 16145 } |
| 16146 } |
| 16147 |
| 16148 core.Map toJson() { |
| 16149 var _json = new core.Map(); |
| 16150 if (healthStatus != null) { |
| 16151 _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toLi
st(); |
| 16152 } |
| 16153 if (kind != null) { |
| 16154 _json["kind"] = kind; |
| 16155 } |
| 16156 return _json; |
| 16157 } |
| 16158 } |
| 16159 |
| 16160 |
| 16161 /** Contains a list of TargetPool resources. */ |
| 16162 class TargetPoolList { |
| 16163 /** |
| 16164 * Unique identifier for the resource; defined by the server (output only). |
| 16165 */ |
| 16166 core.String id; |
| 16167 |
| 16168 /** A list of TargetPool resources. */ |
| 16169 core.List<TargetPool> items; |
| 16170 |
| 16171 /** Type of resource. */ |
| 16172 core.String kind; |
| 14270 | 16173 |
| 14271 /** A token used to continue a truncated list request (output only). */ | 16174 /** A token used to continue a truncated list request (output only). */ |
| 14272 core.String nextPageToken; | 16175 core.String nextPageToken; |
| 14273 | 16176 |
| 14274 /** Server defined URL for this resource (output only). */ | 16177 /** Server defined URL for this resource (output only). */ |
| 14275 core.String selfLink; | 16178 core.String selfLink; |
| 14276 | 16179 |
| 14277 | 16180 |
| 14278 SnapshotList(); | 16181 TargetPoolList(); |
| 14279 | 16182 |
| 14280 SnapshotList.fromJson(core.Map _json) { | 16183 TargetPoolList.fromJson(core.Map _json) { |
| 14281 if (_json.containsKey("id")) { | 16184 if (_json.containsKey("id")) { |
| 14282 id = _json["id"]; | 16185 id = _json["id"]; |
| 14283 } | 16186 } |
| 14284 if (_json.containsKey("items")) { | 16187 if (_json.containsKey("items")) { |
| 14285 items = _json["items"].map((value) => new Snapshot.fromJson(value)).toList
(); | 16188 items = _json["items"].map((value) => new TargetPool.fromJson(value)).toLi
st(); |
| 14286 } | 16189 } |
| 14287 if (_json.containsKey("kind")) { | 16190 if (_json.containsKey("kind")) { |
| 14288 kind = _json["kind"]; | 16191 kind = _json["kind"]; |
| 14289 } | 16192 } |
| 14290 if (_json.containsKey("nextPageToken")) { | 16193 if (_json.containsKey("nextPageToken")) { |
| 14291 nextPageToken = _json["nextPageToken"]; | 16194 nextPageToken = _json["nextPageToken"]; |
| 14292 } | 16195 } |
| 14293 if (_json.containsKey("selfLink")) { | 16196 if (_json.containsKey("selfLink")) { |
| 14294 selfLink = _json["selfLink"]; | 16197 selfLink = _json["selfLink"]; |
| 14295 } | 16198 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 14310 _json["nextPageToken"] = nextPageToken; | 16213 _json["nextPageToken"] = nextPageToken; |
| 14311 } | 16214 } |
| 14312 if (selfLink != null) { | 16215 if (selfLink != null) { |
| 14313 _json["selfLink"] = selfLink; | 16216 _json["selfLink"] = selfLink; |
| 14314 } | 16217 } |
| 14315 return _json; | 16218 return _json; |
| 14316 } | 16219 } |
| 14317 } | 16220 } |
| 14318 | 16221 |
| 14319 | 16222 |
| 14320 /** A set of instance tags. */ | 16223 class TargetPoolsAddHealthCheckRequest { |
| 14321 class Tags { | 16224 /** Health check URLs to be added to targetPool. */ |
| 14322 /** | 16225 core.List<HealthCheckReference> healthChecks; |
| 14323 * Fingerprint of this resource. A hash of the tags stored in this object. | 16226 |
| 14324 * This field is used optimistic locking. An up-to-date tags fingerprint must | 16227 |
| 14325 * be provided in order to modify tags. | 16228 TargetPoolsAddHealthCheckRequest(); |
| 14326 */ | 16229 |
| 14327 core.String fingerprint; | 16230 TargetPoolsAddHealthCheckRequest.fromJson(core.Map _json) { |
| 14328 | 16231 if (_json.containsKey("healthChecks")) { |
| 14329 core.List<core.int> get fingerprintAsBytes { | 16232 healthChecks = _json["healthChecks"].map((value) => new HealthCheckReferen
ce.fromJson(value)).toList(); |
| 14330 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | 16233 } |
| 14331 } | 16234 } |
| 14332 | 16235 |
| 14333 void set fingerprintAsBytes(core.List<core.int> _bytes) { | 16236 core.Map toJson() { |
| 14334 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 16237 var _json = new core.Map(); |
| 14335 } | 16238 if (healthChecks != null) { |
| 14336 | 16239 _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toLi
st(); |
| 14337 /** | 16240 } |
| 14338 * An array of tags. Each tag must be 1-63 characters long, and comply with | 16241 return _json; |
| 14339 * RFC1035. | 16242 } |
| 14340 */ | 16243 } |
| 14341 core.List<core.String> items; | 16244 |
| 14342 | 16245 |
| 14343 | 16246 class TargetPoolsAddInstanceRequest { |
| 14344 Tags(); | 16247 /** URLs of the instances to be added to targetPool. */ |
| 14345 | 16248 core.List<InstanceReference> instances; |
| 14346 Tags.fromJson(core.Map _json) { | 16249 |
| 14347 if (_json.containsKey("fingerprint")) { | 16250 |
| 14348 fingerprint = _json["fingerprint"]; | 16251 TargetPoolsAddInstanceRequest(); |
| 14349 } | 16252 |
| 14350 if (_json.containsKey("items")) { | 16253 TargetPoolsAddInstanceRequest.fromJson(core.Map _json) { |
| 14351 items = _json["items"]; | 16254 if (_json.containsKey("instances")) { |
| 14352 } | 16255 instances = _json["instances"].map((value) => new InstanceReference.fromJs
on(value)).toList(); |
| 14353 } | 16256 } |
| 14354 | 16257 } |
| 14355 core.Map toJson() { | 16258 |
| 14356 var _json = new core.Map(); | 16259 core.Map toJson() { |
| 14357 if (fingerprint != null) { | 16260 var _json = new core.Map(); |
| 14358 _json["fingerprint"] = fingerprint; | 16261 if (instances != null) { |
| 14359 } | 16262 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 14360 if (items != null) { | 16263 } |
| 14361 _json["items"] = items; | 16264 return _json; |
| 14362 } | 16265 } |
| 14363 return _json; | 16266 } |
| 14364 } | 16267 |
| 14365 } | 16268 |
| 14366 | 16269 class TargetPoolsRemoveHealthCheckRequest { |
| 14367 | 16270 /** Health check URLs to be removed from targetPool. */ |
| 14368 /** A TargetHttpProxy resource. This resource defines an HTTP proxy. */ | 16271 core.List<HealthCheckReference> healthChecks; |
| 14369 class TargetHttpProxy { | 16272 |
| 14370 /** Creation timestamp in RFC3339 text format (output only). */ | 16273 |
| 16274 TargetPoolsRemoveHealthCheckRequest(); |
| 16275 |
| 16276 TargetPoolsRemoveHealthCheckRequest.fromJson(core.Map _json) { |
| 16277 if (_json.containsKey("healthChecks")) { |
| 16278 healthChecks = _json["healthChecks"].map((value) => new HealthCheckReferen
ce.fromJson(value)).toList(); |
| 16279 } |
| 16280 } |
| 16281 |
| 16282 core.Map toJson() { |
| 16283 var _json = new core.Map(); |
| 16284 if (healthChecks != null) { |
| 16285 _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toLi
st(); |
| 16286 } |
| 16287 return _json; |
| 16288 } |
| 16289 } |
| 16290 |
| 16291 |
| 16292 class TargetPoolsRemoveInstanceRequest { |
| 16293 /** URLs of the instances to be removed from targetPool. */ |
| 16294 core.List<InstanceReference> instances; |
| 16295 |
| 16296 |
| 16297 TargetPoolsRemoveInstanceRequest(); |
| 16298 |
| 16299 TargetPoolsRemoveInstanceRequest.fromJson(core.Map _json) { |
| 16300 if (_json.containsKey("instances")) { |
| 16301 instances = _json["instances"].map((value) => new InstanceReference.fromJs
on(value)).toList(); |
| 16302 } |
| 16303 } |
| 16304 |
| 16305 core.Map toJson() { |
| 16306 var _json = new core.Map(); |
| 16307 if (instances != null) { |
| 16308 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 16309 } |
| 16310 return _json; |
| 16311 } |
| 16312 } |
| 16313 |
| 16314 |
| 16315 class TargetPoolsScopedListWarningData { |
| 16316 /** [Output Only] A key for the warning data. */ |
| 16317 core.String key; |
| 16318 |
| 16319 /** [Output Only] A warning data value corresponding to the key. */ |
| 16320 core.String value; |
| 16321 |
| 16322 |
| 16323 TargetPoolsScopedListWarningData(); |
| 16324 |
| 16325 TargetPoolsScopedListWarningData.fromJson(core.Map _json) { |
| 16326 if (_json.containsKey("key")) { |
| 16327 key = _json["key"]; |
| 16328 } |
| 16329 if (_json.containsKey("value")) { |
| 16330 value = _json["value"]; |
| 16331 } |
| 16332 } |
| 16333 |
| 16334 core.Map toJson() { |
| 16335 var _json = new core.Map(); |
| 16336 if (key != null) { |
| 16337 _json["key"] = key; |
| 16338 } |
| 16339 if (value != null) { |
| 16340 _json["value"] = value; |
| 16341 } |
| 16342 return _json; |
| 16343 } |
| 16344 } |
| 16345 |
| 16346 |
| 16347 /** |
| 16348 * Informational warning which replaces the list of addresses when the list is |
| 16349 * empty. |
| 16350 */ |
| 16351 class TargetPoolsScopedListWarning { |
| 16352 /** |
| 16353 * [Output Only] The warning type identifier for this warning. |
| 16354 * Possible string values are: |
| 16355 * - "DEPRECATED_RESOURCE_USED" |
| 16356 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 16357 * - "INJECTED_KERNELS_DEPRECATED" |
| 16358 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 16359 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 16360 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 16361 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 16362 * - "NEXT_HOP_NOT_RUNNING" |
| 16363 * - "NO_RESULTS_ON_PAGE" |
| 16364 * - "REQUIRED_TOS_AGREEMENT" |
| 16365 * - "RESOURCE_NOT_DELETED" |
| 16366 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 16367 * - "UNREACHABLE" |
| 16368 */ |
| 16369 core.String code; |
| 16370 |
| 16371 /** [Output Only] Metadata for this warning in key: value format. */ |
| 16372 core.List<TargetPoolsScopedListWarningData> data; |
| 16373 |
| 16374 /** [Output Only] Optional human-readable details for this warning. */ |
| 16375 core.String message; |
| 16376 |
| 16377 |
| 16378 TargetPoolsScopedListWarning(); |
| 16379 |
| 16380 TargetPoolsScopedListWarning.fromJson(core.Map _json) { |
| 16381 if (_json.containsKey("code")) { |
| 16382 code = _json["code"]; |
| 16383 } |
| 16384 if (_json.containsKey("data")) { |
| 16385 data = _json["data"].map((value) => new TargetPoolsScopedListWarningData.f
romJson(value)).toList(); |
| 16386 } |
| 16387 if (_json.containsKey("message")) { |
| 16388 message = _json["message"]; |
| 16389 } |
| 16390 } |
| 16391 |
| 16392 core.Map toJson() { |
| 16393 var _json = new core.Map(); |
| 16394 if (code != null) { |
| 16395 _json["code"] = code; |
| 16396 } |
| 16397 if (data != null) { |
| 16398 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 16399 } |
| 16400 if (message != null) { |
| 16401 _json["message"] = message; |
| 16402 } |
| 16403 return _json; |
| 16404 } |
| 16405 } |
| 16406 |
| 16407 |
| 16408 class TargetPoolsScopedList { |
| 16409 /** List of target pools contained in this scope. */ |
| 16410 core.List<TargetPool> targetPools; |
| 16411 |
| 16412 /** |
| 16413 * Informational warning which replaces the list of addresses when the list is |
| 16414 * empty. |
| 16415 */ |
| 16416 TargetPoolsScopedListWarning warning; |
| 16417 |
| 16418 |
| 16419 TargetPoolsScopedList(); |
| 16420 |
| 16421 TargetPoolsScopedList.fromJson(core.Map _json) { |
| 16422 if (_json.containsKey("targetPools")) { |
| 16423 targetPools = _json["targetPools"].map((value) => new TargetPool.fromJson(
value)).toList(); |
| 16424 } |
| 16425 if (_json.containsKey("warning")) { |
| 16426 warning = new TargetPoolsScopedListWarning.fromJson(_json["warning"]); |
| 16427 } |
| 16428 } |
| 16429 |
| 16430 core.Map toJson() { |
| 16431 var _json = new core.Map(); |
| 16432 if (targetPools != null) { |
| 16433 _json["targetPools"] = targetPools.map((value) => (value).toJson()).toList
(); |
| 16434 } |
| 16435 if (warning != null) { |
| 16436 _json["warning"] = (warning).toJson(); |
| 16437 } |
| 16438 return _json; |
| 16439 } |
| 16440 } |
| 16441 |
| 16442 |
| 16443 class TargetReference { |
| 16444 core.String target; |
| 16445 |
| 16446 |
| 16447 TargetReference(); |
| 16448 |
| 16449 TargetReference.fromJson(core.Map _json) { |
| 16450 if (_json.containsKey("target")) { |
| 16451 target = _json["target"]; |
| 16452 } |
| 16453 } |
| 16454 |
| 16455 core.Map toJson() { |
| 16456 var _json = new core.Map(); |
| 16457 if (target != null) { |
| 16458 _json["target"] = target; |
| 16459 } |
| 16460 return _json; |
| 16461 } |
| 16462 } |
| 16463 |
| 16464 |
| 16465 class TargetVpnGateway { |
| 16466 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 14371 core.String creationTimestamp; | 16467 core.String creationTimestamp; |
| 14372 | 16468 |
| 14373 /** | 16469 /** |
| 14374 * An optional textual description of the resource; provided by the client | 16470 * An optional textual description of the resource. Provided by the client |
| 14375 * when the resource is created. | 16471 * when the resource is created. |
| 14376 */ | 16472 */ |
| 14377 core.String description; | 16473 core.String description; |
| 14378 | 16474 |
| 14379 /** | 16475 /** |
| 14380 * Unique identifier for the resource; defined by the server (output only). | 16476 * [Output Only] A list of URLs to the ForwardingRule resources. |
| 16477 * ForwardingRules are created using compute.forwardingRules.insert and |
| 16478 * associated to a VPN gateway. |
| 16479 */ |
| 16480 core.List<core.String> forwardingRules; |
| 16481 |
| 16482 /** |
| 16483 * [Output Only] Unique identifier for the resource. Defined by the server. |
| 14381 */ | 16484 */ |
| 14382 core.String id; | 16485 core.String id; |
| 14383 | 16486 |
| 14384 /** Type of the resource. */ | 16487 /** |
| 16488 * [Output Only] Type of resource. Always compute#targetVpnGateway for target |
| 16489 * VPN gateways. |
| 16490 */ |
| 14385 core.String kind; | 16491 core.String kind; |
| 14386 | 16492 |
| 14387 /** | 16493 /** |
| 14388 * Name of the resource; provided by the client when the resource is created. | 16494 * Name of the resource. Provided by the client when the resource is created. |
| 14389 * The name must be 1-63 characters long, and comply with RFC1035. | 16495 * The name must be 1-63 characters long and comply with RFC1035. |
| 14390 */ | 16496 */ |
| 14391 core.String name; | 16497 core.String name; |
| 14392 | 16498 |
| 14393 /** Server defined URL for the resource (output only). */ | 16499 /** |
| 16500 * URL of the network to which this VPN gateway is attached. Provided by the |
| 16501 * client when the VPN gateway is created. |
| 16502 */ |
| 16503 core.String network; |
| 16504 |
| 16505 /** [Output Only] URL of the region where the target VPN gateway resides. */ |
| 16506 core.String region; |
| 16507 |
| 16508 /** [Output Only] Server-defined URL for the resource. */ |
| 14394 core.String selfLink; | 16509 core.String selfLink; |
| 14395 | 16510 |
| 14396 /** | 16511 /** |
| 14397 * URL to the UrlMap resource that defines the mapping from URL to the | 16512 * [Output Only] The status of the VPN gateway. |
| 14398 * BackendService. | 16513 * Possible string values are: |
| 14399 */ | 16514 * - "CREATING" |
| 14400 core.String urlMap; | 16515 * - "DELETING" |
| 14401 | 16516 * - "FAILED" |
| 14402 | 16517 * - "READY" |
| 14403 TargetHttpProxy(); | 16518 */ |
| 14404 | 16519 core.String status; |
| 14405 TargetHttpProxy.fromJson(core.Map _json) { | 16520 |
| 16521 /** |
| 16522 * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created |
| 16523 * using compute.vpntunnels.insert and associated to a VPN gateway. |
| 16524 */ |
| 16525 core.List<core.String> tunnels; |
| 16526 |
| 16527 |
| 16528 TargetVpnGateway(); |
| 16529 |
| 16530 TargetVpnGateway.fromJson(core.Map _json) { |
| 14406 if (_json.containsKey("creationTimestamp")) { | 16531 if (_json.containsKey("creationTimestamp")) { |
| 14407 creationTimestamp = _json["creationTimestamp"]; | 16532 creationTimestamp = _json["creationTimestamp"]; |
| 14408 } | 16533 } |
| 14409 if (_json.containsKey("description")) { | 16534 if (_json.containsKey("description")) { |
| 14410 description = _json["description"]; | 16535 description = _json["description"]; |
| 14411 } | 16536 } |
| 16537 if (_json.containsKey("forwardingRules")) { |
| 16538 forwardingRules = _json["forwardingRules"]; |
| 16539 } |
| 14412 if (_json.containsKey("id")) { | 16540 if (_json.containsKey("id")) { |
| 14413 id = _json["id"]; | 16541 id = _json["id"]; |
| 14414 } | 16542 } |
| 14415 if (_json.containsKey("kind")) { | 16543 if (_json.containsKey("kind")) { |
| 14416 kind = _json["kind"]; | 16544 kind = _json["kind"]; |
| 14417 } | 16545 } |
| 14418 if (_json.containsKey("name")) { | 16546 if (_json.containsKey("name")) { |
| 14419 name = _json["name"]; | 16547 name = _json["name"]; |
| 14420 } | 16548 } |
| 16549 if (_json.containsKey("network")) { |
| 16550 network = _json["network"]; |
| 16551 } |
| 16552 if (_json.containsKey("region")) { |
| 16553 region = _json["region"]; |
| 16554 } |
| 14421 if (_json.containsKey("selfLink")) { | 16555 if (_json.containsKey("selfLink")) { |
| 14422 selfLink = _json["selfLink"]; | 16556 selfLink = _json["selfLink"]; |
| 14423 } | 16557 } |
| 14424 if (_json.containsKey("urlMap")) { | 16558 if (_json.containsKey("status")) { |
| 14425 urlMap = _json["urlMap"]; | 16559 status = _json["status"]; |
| 14426 } | 16560 } |
| 14427 } | 16561 if (_json.containsKey("tunnels")) { |
| 14428 | 16562 tunnels = _json["tunnels"]; |
| 14429 core.Map toJson() { | 16563 } |
| 14430 var _json = new core.Map(); | 16564 } |
| 14431 if (creationTimestamp != null) { | 16565 |
| 14432 _json["creationTimestamp"] = creationTimestamp; | |
| 14433 } | |
| 14434 if (description != null) { | |
| 14435 _json["description"] = description; | |
| 14436 } | |
| 14437 if (id != null) { | |
| 14438 _json["id"] = id; | |
| 14439 } | |
| 14440 if (kind != null) { | |
| 14441 _json["kind"] = kind; | |
| 14442 } | |
| 14443 if (name != null) { | |
| 14444 _json["name"] = name; | |
| 14445 } | |
| 14446 if (selfLink != null) { | |
| 14447 _json["selfLink"] = selfLink; | |
| 14448 } | |
| 14449 if (urlMap != null) { | |
| 14450 _json["urlMap"] = urlMap; | |
| 14451 } | |
| 14452 return _json; | |
| 14453 } | |
| 14454 } | |
| 14455 | |
| 14456 | |
| 14457 /** Contains a list of TargetHttpProxy resources. */ | |
| 14458 class TargetHttpProxyList { | |
| 14459 /** | |
| 14460 * Unique identifier for the resource; defined by the server (output only). | |
| 14461 */ | |
| 14462 core.String id; | |
| 14463 | |
| 14464 /** A list of TargetHttpProxy resources. */ | |
| 14465 core.List<TargetHttpProxy> items; | |
| 14466 | |
| 14467 /** Type of resource. */ | |
| 14468 core.String kind; | |
| 14469 | |
| 14470 /** A token used to continue a truncated list request (output only). */ | |
| 14471 core.String nextPageToken; | |
| 14472 | |
| 14473 /** Server defined URL for this resource (output only). */ | |
| 14474 core.String selfLink; | |
| 14475 | |
| 14476 | |
| 14477 TargetHttpProxyList(); | |
| 14478 | |
| 14479 TargetHttpProxyList.fromJson(core.Map _json) { | |
| 14480 if (_json.containsKey("id")) { | |
| 14481 id = _json["id"]; | |
| 14482 } | |
| 14483 if (_json.containsKey("items")) { | |
| 14484 items = _json["items"].map((value) => new TargetHttpProxy.fromJson(value))
.toList(); | |
| 14485 } | |
| 14486 if (_json.containsKey("kind")) { | |
| 14487 kind = _json["kind"]; | |
| 14488 } | |
| 14489 if (_json.containsKey("nextPageToken")) { | |
| 14490 nextPageToken = _json["nextPageToken"]; | |
| 14491 } | |
| 14492 if (_json.containsKey("selfLink")) { | |
| 14493 selfLink = _json["selfLink"]; | |
| 14494 } | |
| 14495 } | |
| 14496 | |
| 14497 core.Map toJson() { | |
| 14498 var _json = new core.Map(); | |
| 14499 if (id != null) { | |
| 14500 _json["id"] = id; | |
| 14501 } | |
| 14502 if (items != null) { | |
| 14503 _json["items"] = items.map((value) => (value).toJson()).toList(); | |
| 14504 } | |
| 14505 if (kind != null) { | |
| 14506 _json["kind"] = kind; | |
| 14507 } | |
| 14508 if (nextPageToken != null) { | |
| 14509 _json["nextPageToken"] = nextPageToken; | |
| 14510 } | |
| 14511 if (selfLink != null) { | |
| 14512 _json["selfLink"] = selfLink; | |
| 14513 } | |
| 14514 return _json; | |
| 14515 } | |
| 14516 } | |
| 14517 | |
| 14518 | |
| 14519 /** | |
| 14520 * A TargetInstance resource. This resource defines an endpoint VM that | |
| 14521 * terminates traffic of certain protocols. | |
| 14522 */ | |
| 14523 class TargetInstance { | |
| 14524 /** Creation timestamp in RFC3339 text format (output only). */ | |
| 14525 core.String creationTimestamp; | |
| 14526 | |
| 14527 /** | |
| 14528 * An optional textual description of the resource; provided by the client | |
| 14529 * when the resource is created. | |
| 14530 */ | |
| 14531 core.String description; | |
| 14532 | |
| 14533 /** | |
| 14534 * Unique identifier for the resource; defined by the server (output only). | |
| 14535 */ | |
| 14536 core.String id; | |
| 14537 | |
| 14538 /** The URL to the instance that terminates the relevant traffic. */ | |
| 14539 core.String instance; | |
| 14540 | |
| 14541 /** Type of the resource. */ | |
| 14542 core.String kind; | |
| 14543 | |
| 14544 /** | |
| 14545 * Name of the resource; provided by the client when the resource is created. | |
| 14546 * The name must be 1-63 characters long, and comply with RFC1035. | |
| 14547 */ | |
| 14548 core.String name; | |
| 14549 | |
| 14550 /** | |
| 14551 * NAT option controlling how IPs are NAT'ed to the VM. Currently only NO_NAT | |
| 14552 * (default value) is supported. | |
| 14553 * Possible string values are: | |
| 14554 * - "NO_NAT" | |
| 14555 */ | |
| 14556 core.String natPolicy; | |
| 14557 | |
| 14558 /** Server defined URL for the resource (output only). */ | |
| 14559 core.String selfLink; | |
| 14560 | |
| 14561 /** URL of the zone where the target instance resides (output only). */ | |
| 14562 core.String zone; | |
| 14563 | |
| 14564 | |
| 14565 TargetInstance(); | |
| 14566 | |
| 14567 TargetInstance.fromJson(core.Map _json) { | |
| 14568 if (_json.containsKey("creationTimestamp")) { | |
| 14569 creationTimestamp = _json["creationTimestamp"]; | |
| 14570 } | |
| 14571 if (_json.containsKey("description")) { | |
| 14572 description = _json["description"]; | |
| 14573 } | |
| 14574 if (_json.containsKey("id")) { | |
| 14575 id = _json["id"]; | |
| 14576 } | |
| 14577 if (_json.containsKey("instance")) { | |
| 14578 instance = _json["instance"]; | |
| 14579 } | |
| 14580 if (_json.containsKey("kind")) { | |
| 14581 kind = _json["kind"]; | |
| 14582 } | |
| 14583 if (_json.containsKey("name")) { | |
| 14584 name = _json["name"]; | |
| 14585 } | |
| 14586 if (_json.containsKey("natPolicy")) { | |
| 14587 natPolicy = _json["natPolicy"]; | |
| 14588 } | |
| 14589 if (_json.containsKey("selfLink")) { | |
| 14590 selfLink = _json["selfLink"]; | |
| 14591 } | |
| 14592 if (_json.containsKey("zone")) { | |
| 14593 zone = _json["zone"]; | |
| 14594 } | |
| 14595 } | |
| 14596 | |
| 14597 core.Map toJson() { | 16566 core.Map toJson() { |
| 14598 var _json = new core.Map(); | 16567 var _json = new core.Map(); |
| 14599 if (creationTimestamp != null) { | 16568 if (creationTimestamp != null) { |
| 14600 _json["creationTimestamp"] = creationTimestamp; | 16569 _json["creationTimestamp"] = creationTimestamp; |
| 14601 } | 16570 } |
| 14602 if (description != null) { | 16571 if (description != null) { |
| 14603 _json["description"] = description; | 16572 _json["description"] = description; |
| 14604 } | 16573 } |
| 16574 if (forwardingRules != null) { |
| 16575 _json["forwardingRules"] = forwardingRules; |
| 16576 } |
| 14605 if (id != null) { | 16577 if (id != null) { |
| 14606 _json["id"] = id; | 16578 _json["id"] = id; |
| 14607 } | 16579 } |
| 14608 if (instance != null) { | |
| 14609 _json["instance"] = instance; | |
| 14610 } | |
| 14611 if (kind != null) { | 16580 if (kind != null) { |
| 14612 _json["kind"] = kind; | 16581 _json["kind"] = kind; |
| 14613 } | 16582 } |
| 14614 if (name != null) { | 16583 if (name != null) { |
| 14615 _json["name"] = name; | 16584 _json["name"] = name; |
| 14616 } | 16585 } |
| 14617 if (natPolicy != null) { | 16586 if (network != null) { |
| 14618 _json["natPolicy"] = natPolicy; | 16587 _json["network"] = network; |
| 16588 } |
| 16589 if (region != null) { |
| 16590 _json["region"] = region; |
| 14619 } | 16591 } |
| 14620 if (selfLink != null) { | 16592 if (selfLink != null) { |
| 14621 _json["selfLink"] = selfLink; | 16593 _json["selfLink"] = selfLink; |
| 14622 } | 16594 } |
| 14623 if (zone != null) { | 16595 if (status != null) { |
| 14624 _json["zone"] = zone; | 16596 _json["status"] = status; |
| 16597 } |
| 16598 if (tunnels != null) { |
| 16599 _json["tunnels"] = tunnels; |
| 14625 } | 16600 } |
| 14626 return _json; | 16601 return _json; |
| 14627 } | 16602 } |
| 14628 } | 16603 } |
| 14629 | 16604 |
| 14630 | 16605 |
| 14631 /** Not documented yet. */ | 16606 class TargetVpnGatewayAggregatedList { |
| 14632 class TargetInstanceAggregatedList { | |
| 14633 /** | 16607 /** |
| 14634 * Unique identifier for the resource; defined by the server (output only). | 16608 * [Output Only] Unique identifier for the resource. Defined by the server. |
| 14635 */ | 16609 */ |
| 14636 core.String id; | 16610 core.String id; |
| 14637 | 16611 |
| 14638 /** A map of scoped target instance lists. */ | 16612 /** A map of scoped target vpn gateway lists. */ |
| 14639 core.Map<core.String, TargetInstancesScopedList> items; | 16613 core.Map<core.String, TargetVpnGatewaysScopedList> items; |
| 14640 | 16614 |
| 14641 /** Type of resource. */ | 16615 /** |
| 16616 * [Output Only] Type of resource. Always compute#targetVpnGateway for target |
| 16617 * VPN gateways. |
| 16618 */ |
| 14642 core.String kind; | 16619 core.String kind; |
| 14643 | 16620 |
| 14644 /** A token used to continue a truncated list request (output only). */ | 16621 /** [Output Only] A token used to continue a truncated list request. */ |
| 14645 core.String nextPageToken; | 16622 core.String nextPageToken; |
| 14646 | 16623 |
| 14647 /** Server defined URL for this resource (output only). */ | 16624 /** [Output Only] Server-defined URL for the resource. */ |
| 14648 core.String selfLink; | 16625 core.String selfLink; |
| 14649 | 16626 |
| 14650 | 16627 |
| 14651 TargetInstanceAggregatedList(); | 16628 TargetVpnGatewayAggregatedList(); |
| 14652 | 16629 |
| 14653 TargetInstanceAggregatedList.fromJson(core.Map _json) { | 16630 TargetVpnGatewayAggregatedList.fromJson(core.Map _json) { |
| 14654 if (_json.containsKey("id")) { | 16631 if (_json.containsKey("id")) { |
| 14655 id = _json["id"]; | 16632 id = _json["id"]; |
| 14656 } | 16633 } |
| 14657 if (_json.containsKey("items")) { | 16634 if (_json.containsKey("items")) { |
| 14658 items = common_internal.mapMap(_json["items"], (item) => new TargetInstanc
esScopedList.fromJson(item)); | 16635 items = commons.mapMap(_json["items"], (item) => new TargetVpnGatewaysScop
edList.fromJson(item)); |
| 14659 } | 16636 } |
| 14660 if (_json.containsKey("kind")) { | 16637 if (_json.containsKey("kind")) { |
| 14661 kind = _json["kind"]; | 16638 kind = _json["kind"]; |
| 14662 } | 16639 } |
| 14663 if (_json.containsKey("nextPageToken")) { | 16640 if (_json.containsKey("nextPageToken")) { |
| 14664 nextPageToken = _json["nextPageToken"]; | 16641 nextPageToken = _json["nextPageToken"]; |
| 14665 } | 16642 } |
| 14666 if (_json.containsKey("selfLink")) { | 16643 if (_json.containsKey("selfLink")) { |
| 14667 selfLink = _json["selfLink"]; | 16644 selfLink = _json["selfLink"]; |
| 14668 } | 16645 } |
| 14669 } | 16646 } |
| 14670 | 16647 |
| 14671 core.Map toJson() { | 16648 core.Map toJson() { |
| 14672 var _json = new core.Map(); | 16649 var _json = new core.Map(); |
| 14673 if (id != null) { | 16650 if (id != null) { |
| 14674 _json["id"] = id; | 16651 _json["id"] = id; |
| 14675 } | 16652 } |
| 14676 if (items != null) { | 16653 if (items != null) { |
| 14677 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | 16654 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 14678 } | 16655 } |
| 14679 if (kind != null) { | 16656 if (kind != null) { |
| 14680 _json["kind"] = kind; | 16657 _json["kind"] = kind; |
| 14681 } | 16658 } |
| 14682 if (nextPageToken != null) { | 16659 if (nextPageToken != null) { |
| 14683 _json["nextPageToken"] = nextPageToken; | 16660 _json["nextPageToken"] = nextPageToken; |
| 14684 } | 16661 } |
| 14685 if (selfLink != null) { | 16662 if (selfLink != null) { |
| 14686 _json["selfLink"] = selfLink; | 16663 _json["selfLink"] = selfLink; |
| 14687 } | 16664 } |
| 14688 return _json; | 16665 return _json; |
| 14689 } | 16666 } |
| 14690 } | 16667 } |
| 14691 | 16668 |
| 14692 | 16669 |
| 14693 /** Contains a list of TargetInstance resources. */ | 16670 /** Contains a list of TargetVpnGateway resources. */ |
| 14694 class TargetInstanceList { | 16671 class TargetVpnGatewayList { |
| 14695 /** | 16672 /** |
| 14696 * Unique identifier for the resource; defined by the server (output only). | 16673 * [Output Only] Unique identifier for the resource. Defined by the server. |
| 14697 */ | 16674 */ |
| 14698 core.String id; | 16675 core.String id; |
| 14699 | 16676 |
| 14700 /** A list of TargetInstance resources. */ | 16677 /** [Output Only] A list of TargetVpnGateway resources. */ |
| 14701 core.List<TargetInstance> items; | 16678 core.List<TargetVpnGateway> items; |
| 14702 | 16679 |
| 14703 /** Type of resource. */ | 16680 /** |
| 16681 * [Output Only] Type of resource. Always compute#targetVpnGateway for target |
| 16682 * VPN gateways. |
| 16683 */ |
| 14704 core.String kind; | 16684 core.String kind; |
| 14705 | 16685 |
| 14706 /** A token used to continue a truncated list request (output only). */ | 16686 /** [Output Only] A token used to continue a truncated list request. */ |
| 14707 core.String nextPageToken; | 16687 core.String nextPageToken; |
| 14708 | 16688 |
| 14709 /** Server defined URL for this resource (output only). */ | 16689 /** [Output Only] Server-defined URL for the resource. */ |
| 14710 core.String selfLink; | 16690 core.String selfLink; |
| 14711 | 16691 |
| 14712 | 16692 |
| 14713 TargetInstanceList(); | 16693 TargetVpnGatewayList(); |
| 14714 | 16694 |
| 14715 TargetInstanceList.fromJson(core.Map _json) { | 16695 TargetVpnGatewayList.fromJson(core.Map _json) { |
| 14716 if (_json.containsKey("id")) { | 16696 if (_json.containsKey("id")) { |
| 14717 id = _json["id"]; | 16697 id = _json["id"]; |
| 14718 } | 16698 } |
| 14719 if (_json.containsKey("items")) { | 16699 if (_json.containsKey("items")) { |
| 14720 items = _json["items"].map((value) => new TargetInstance.fromJson(value)).
toList(); | 16700 items = _json["items"].map((value) => new TargetVpnGateway.fromJson(value)
).toList(); |
| 14721 } | 16701 } |
| 14722 if (_json.containsKey("kind")) { | 16702 if (_json.containsKey("kind")) { |
| 14723 kind = _json["kind"]; | 16703 kind = _json["kind"]; |
| 14724 } | 16704 } |
| 14725 if (_json.containsKey("nextPageToken")) { | 16705 if (_json.containsKey("nextPageToken")) { |
| 14726 nextPageToken = _json["nextPageToken"]; | 16706 nextPageToken = _json["nextPageToken"]; |
| 14727 } | 16707 } |
| 14728 if (_json.containsKey("selfLink")) { | 16708 if (_json.containsKey("selfLink")) { |
| 14729 selfLink = _json["selfLink"]; | 16709 selfLink = _json["selfLink"]; |
| 14730 } | 16710 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 14745 _json["nextPageToken"] = nextPageToken; | 16725 _json["nextPageToken"] = nextPageToken; |
| 14746 } | 16726 } |
| 14747 if (selfLink != null) { | 16727 if (selfLink != null) { |
| 14748 _json["selfLink"] = selfLink; | 16728 _json["selfLink"] = selfLink; |
| 14749 } | 16729 } |
| 14750 return _json; | 16730 return _json; |
| 14751 } | 16731 } |
| 14752 } | 16732 } |
| 14753 | 16733 |
| 14754 | 16734 |
| 14755 /** Not documented yet. */ | 16735 class TargetVpnGatewaysScopedListWarningData { |
| 14756 class TargetInstancesScopedListWarningData { | 16736 /** [Output Only] A key for the warning data. */ |
| 14757 /** A key for the warning data. */ | |
| 14758 core.String key; | 16737 core.String key; |
| 14759 | 16738 |
| 14760 /** A warning data value corresponding to the key. */ | 16739 /** [Output Only] A warning data value corresponding to the key. */ |
| 14761 core.String value; | 16740 core.String value; |
| 14762 | 16741 |
| 14763 | 16742 |
| 14764 TargetInstancesScopedListWarningData(); | 16743 TargetVpnGatewaysScopedListWarningData(); |
| 14765 | 16744 |
| 14766 TargetInstancesScopedListWarningData.fromJson(core.Map _json) { | 16745 TargetVpnGatewaysScopedListWarningData.fromJson(core.Map _json) { |
| 14767 if (_json.containsKey("key")) { | 16746 if (_json.containsKey("key")) { |
| 14768 key = _json["key"]; | 16747 key = _json["key"]; |
| 14769 } | 16748 } |
| 14770 if (_json.containsKey("value")) { | 16749 if (_json.containsKey("value")) { |
| 14771 value = _json["value"]; | 16750 value = _json["value"]; |
| 14772 } | 16751 } |
| 14773 } | 16752 } |
| 14774 | 16753 |
| 14775 core.Map toJson() { | 16754 core.Map toJson() { |
| 14776 var _json = new core.Map(); | 16755 var _json = new core.Map(); |
| 14777 if (key != null) { | 16756 if (key != null) { |
| 14778 _json["key"] = key; | 16757 _json["key"] = key; |
| 14779 } | 16758 } |
| 14780 if (value != null) { | 16759 if (value != null) { |
| 14781 _json["value"] = value; | 16760 _json["value"] = value; |
| 14782 } | 16761 } |
| 14783 return _json; | 16762 return _json; |
| 14784 } | 16763 } |
| 14785 } | 16764 } |
| 14786 | 16765 |
| 14787 | 16766 |
| 14788 /** | 16767 /** |
| 14789 * Informational warning which replaces the list of addresses when the list is | 16768 * [Output Only] Informational warning which replaces the list of addresses when |
| 14790 * empty. | 16769 * the list is empty. |
| 14791 */ | 16770 */ |
| 14792 class TargetInstancesScopedListWarning { | 16771 class TargetVpnGatewaysScopedListWarning { |
| 14793 /** | 16772 /** |
| 14794 * The warning type identifier for this warning. | 16773 * [Output Only] The warning type identifier for this warning. |
| 14795 * Possible string values are: | 16774 * Possible string values are: |
| 14796 * - "DEPRECATED_RESOURCE_USED" | 16775 * - "DEPRECATED_RESOURCE_USED" |
| 14797 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | 16776 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 14798 * - "INJECTED_KERNELS_DEPRECATED" | 16777 * - "INJECTED_KERNELS_DEPRECATED" |
| 14799 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | 16778 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 14800 * - "NEXT_HOP_CANNOT_IP_FORWARD" | 16779 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 14801 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | 16780 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 14802 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | 16781 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 14803 * - "NEXT_HOP_NOT_RUNNING" | 16782 * - "NEXT_HOP_NOT_RUNNING" |
| 14804 * - "NO_RESULTS_ON_PAGE" | 16783 * - "NO_RESULTS_ON_PAGE" |
| 14805 * - "REQUIRED_TOS_AGREEMENT" | 16784 * - "REQUIRED_TOS_AGREEMENT" |
| 14806 * - "RESOURCE_NOT_DELETED" | 16785 * - "RESOURCE_NOT_DELETED" |
| 16786 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 14807 * - "UNREACHABLE" | 16787 * - "UNREACHABLE" |
| 14808 */ | 16788 */ |
| 14809 core.String code; | 16789 core.String code; |
| 14810 | 16790 |
| 14811 /** Metadata for this warning in 'key: value' format. */ | 16791 /** [Output Only] Metadata for this warning in key: value format. */ |
| 14812 core.List<TargetInstancesScopedListWarningData> data; | 16792 core.List<TargetVpnGatewaysScopedListWarningData> data; |
| 14813 | 16793 |
| 14814 /** Optional human-readable details for this warning. */ | 16794 /** [Output Only] Optional human-readable details for this warning. */ |
| 14815 core.String message; | 16795 core.String message; |
| 14816 | 16796 |
| 14817 | 16797 |
| 14818 TargetInstancesScopedListWarning(); | 16798 TargetVpnGatewaysScopedListWarning(); |
| 14819 | 16799 |
| 14820 TargetInstancesScopedListWarning.fromJson(core.Map _json) { | 16800 TargetVpnGatewaysScopedListWarning.fromJson(core.Map _json) { |
| 14821 if (_json.containsKey("code")) { | 16801 if (_json.containsKey("code")) { |
| 14822 code = _json["code"]; | 16802 code = _json["code"]; |
| 14823 } | 16803 } |
| 14824 if (_json.containsKey("data")) { | 16804 if (_json.containsKey("data")) { |
| 14825 data = _json["data"].map((value) => new TargetInstancesScopedListWarningDa
ta.fromJson(value)).toList(); | 16805 data = _json["data"].map((value) => new TargetVpnGatewaysScopedListWarning
Data.fromJson(value)).toList(); |
| 14826 } | 16806 } |
| 14827 if (_json.containsKey("message")) { | 16807 if (_json.containsKey("message")) { |
| 14828 message = _json["message"]; | 16808 message = _json["message"]; |
| 14829 } | 16809 } |
| 14830 } | 16810 } |
| 14831 | 16811 |
| 14832 core.Map toJson() { | 16812 core.Map toJson() { |
| 14833 var _json = new core.Map(); | 16813 var _json = new core.Map(); |
| 14834 if (code != null) { | 16814 if (code != null) { |
| 14835 _json["code"] = code; | 16815 _json["code"] = code; |
| 14836 } | 16816 } |
| 14837 if (data != null) { | 16817 if (data != null) { |
| 14838 _json["data"] = data.map((value) => (value).toJson()).toList(); | 16818 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 14839 } | 16819 } |
| 14840 if (message != null) { | 16820 if (message != null) { |
| 14841 _json["message"] = message; | 16821 _json["message"] = message; |
| 14842 } | 16822 } |
| 14843 return _json; | 16823 return _json; |
| 14844 } | 16824 } |
| 14845 } | 16825 } |
| 14846 | 16826 |
| 14847 | 16827 |
| 14848 /** Not documented yet. */ | 16828 class TargetVpnGatewaysScopedList { |
| 14849 class TargetInstancesScopedList { | 16829 /** [Output Only] List of target vpn gateways contained in this scope. */ |
| 14850 /** List of target instances contained in this scope. */ | 16830 core.List<TargetVpnGateway> targetVpnGateways; |
| 14851 core.List<TargetInstance> targetInstances; | |
| 14852 | 16831 |
| 14853 /** | 16832 /** |
| 14854 * Informational warning which replaces the list of addresses when the list is | 16833 * [Output Only] Informational warning which replaces the list of addresses |
| 14855 * empty. | 16834 * when the list is empty. |
| 14856 */ | 16835 */ |
| 14857 TargetInstancesScopedListWarning warning; | 16836 TargetVpnGatewaysScopedListWarning warning; |
| 14858 | 16837 |
| 14859 | 16838 |
| 14860 TargetInstancesScopedList(); | 16839 TargetVpnGatewaysScopedList(); |
| 14861 | 16840 |
| 14862 TargetInstancesScopedList.fromJson(core.Map _json) { | 16841 TargetVpnGatewaysScopedList.fromJson(core.Map _json) { |
| 14863 if (_json.containsKey("targetInstances")) { | 16842 if (_json.containsKey("targetVpnGateways")) { |
| 14864 targetInstances = _json["targetInstances"].map((value) => new TargetInstan
ce.fromJson(value)).toList(); | 16843 targetVpnGateways = _json["targetVpnGateways"].map((value) => new TargetVp
nGateway.fromJson(value)).toList(); |
| 14865 } | 16844 } |
| 14866 if (_json.containsKey("warning")) { | 16845 if (_json.containsKey("warning")) { |
| 14867 warning = new TargetInstancesScopedListWarning.fromJson(_json["warning"]); | 16846 warning = new TargetVpnGatewaysScopedListWarning.fromJson(_json["warning"]
); |
| 14868 } | 16847 } |
| 14869 } | 16848 } |
| 14870 | 16849 |
| 14871 core.Map toJson() { | 16850 core.Map toJson() { |
| 14872 var _json = new core.Map(); | 16851 var _json = new core.Map(); |
| 14873 if (targetInstances != null) { | 16852 if (targetVpnGateways != null) { |
| 14874 _json["targetInstances"] = targetInstances.map((value) => (value).toJson()
).toList(); | 16853 _json["targetVpnGateways"] = targetVpnGateways.map((value) => (value).toJs
on()).toList(); |
| 14875 } | 16854 } |
| 14876 if (warning != null) { | 16855 if (warning != null) { |
| 14877 _json["warning"] = (warning).toJson(); | 16856 _json["warning"] = (warning).toJson(); |
| 14878 } | 16857 } |
| 14879 return _json; | 16858 return _json; |
| 14880 } | 16859 } |
| 14881 } | 16860 } |
| 14882 | 16861 |
| 14883 | 16862 |
| 16863 class TestFailure { |
| 16864 core.String actualService; |
| 16865 |
| 16866 core.String expectedService; |
| 16867 |
| 16868 core.String host; |
| 16869 |
| 16870 core.String path; |
| 16871 |
| 16872 |
| 16873 TestFailure(); |
| 16874 |
| 16875 TestFailure.fromJson(core.Map _json) { |
| 16876 if (_json.containsKey("actualService")) { |
| 16877 actualService = _json["actualService"]; |
| 16878 } |
| 16879 if (_json.containsKey("expectedService")) { |
| 16880 expectedService = _json["expectedService"]; |
| 16881 } |
| 16882 if (_json.containsKey("host")) { |
| 16883 host = _json["host"]; |
| 16884 } |
| 16885 if (_json.containsKey("path")) { |
| 16886 path = _json["path"]; |
| 16887 } |
| 16888 } |
| 16889 |
| 16890 core.Map toJson() { |
| 16891 var _json = new core.Map(); |
| 16892 if (actualService != null) { |
| 16893 _json["actualService"] = actualService; |
| 16894 } |
| 16895 if (expectedService != null) { |
| 16896 _json["expectedService"] = expectedService; |
| 16897 } |
| 16898 if (host != null) { |
| 16899 _json["host"] = host; |
| 16900 } |
| 16901 if (path != null) { |
| 16902 _json["path"] = path; |
| 16903 } |
| 16904 return _json; |
| 16905 } |
| 16906 } |
| 16907 |
| 16908 |
| 14884 /** | 16909 /** |
| 14885 * A TargetPool resource. This resource defines a pool of VMs, associated | 16910 * A UrlMap resource. This resource defines the mapping from URL to the |
| 14886 * HttpHealthCheck resources, and the fallback TargetPool. | 16911 * BackendService resource, based on the "longest-match" of the URL's host and |
| 16912 * path. |
| 14887 */ | 16913 */ |
| 14888 class TargetPool { | 16914 class UrlMap { |
| 14889 /** | |
| 14890 * This field is applicable only when the containing target pool is serving a | |
| 14891 * forwarding rule as the primary pool, and its 'failoverRatio' field is | |
| 14892 * properly set to a value between [0, 1]. | |
| 14893 * | |
| 14894 * 'backupPool' and 'failoverRatio' together define the fallback behavior of | |
| 14895 * the primary target pool: if the ratio of the healthy VMs in the primary | |
| 14896 * pool is at or below 'failoverRatio', traffic arriving at the load-balanced | |
| 14897 * IP will be directed to the backup pool. | |
| 14898 * | |
| 14899 * In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs | |
| 14900 * in the backup pool are unhealthy, the traffic will be directed back to the | |
| 14901 * primary pool in the "force" mode, where traffic will be spread to the | |
| 14902 * healthy VMs with the best effort, or to all VMs when no VM is healthy. | |
| 14903 */ | |
| 14904 core.String backupPool; | |
| 14905 | |
| 14906 /** Creation timestamp in RFC3339 text format (output only). */ | 16915 /** Creation timestamp in RFC3339 text format (output only). */ |
| 14907 core.String creationTimestamp; | 16916 core.String creationTimestamp; |
| 14908 | 16917 |
| 16918 /** The URL of the BackendService resource if none of the hostRules match. */ |
| 16919 core.String defaultService; |
| 16920 |
| 14909 /** | 16921 /** |
| 14910 * An optional textual description of the resource; provided by the client | 16922 * An optional textual description of the resource; provided by the client |
| 14911 * when the resource is created. | 16923 * when the resource is created. |
| 14912 */ | 16924 */ |
| 14913 core.String description; | 16925 core.String description; |
| 14914 | 16926 |
| 14915 /** | 16927 /** |
| 14916 * This field is applicable only when the containing target pool is serving a | 16928 * Fingerprint of this resource. A hash of the contents stored in this object. |
| 14917 * forwarding rule as the primary pool (i.e., not as a backup pool to some | 16929 * This field is used in optimistic locking. This field will be ignored when |
| 14918 * other target pool). The value of the field must be in [0, 1]. | 16930 * inserting a UrlMap. An up-to-date fingerprint must be provided in order to |
| 14919 * | 16931 * update the UrlMap. |
| 14920 * If set, 'backupPool' must also be set. They together define the fallback | 16932 */ |
| 14921 * behavior of the primary target pool: if the ratio of the healthy VMs in the | 16933 core.String fingerprint; |
| 14922 * primary pool is at or below this number, traffic arriving at the | 16934 |
| 14923 * load-balanced IP will be directed to the backup pool. | 16935 core.List<core.int> get fingerprintAsBytes { |
| 14924 * | 16936 return crypto.CryptoUtils.base64StringToBytes(fingerprint); |
| 14925 * In case where 'failoverRatio' is not set or all the VMs in the backup pool | 16937 } |
| 14926 * are unhealthy, the traffic will be directed back to the primary pool in the | 16938 |
| 14927 * "force" mode, where traffic will be spread to the healthy VMs with the best | 16939 void set fingerprintAsBytes(core.List<core.int> _bytes) { |
| 14928 * effort, or to all VMs when no VM is healthy. | 16940 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
| 14929 */ | 16941 } |
| 14930 core.double failoverRatio; | 16942 |
| 14931 | 16943 /** The list of HostRules to use against the URL. */ |
| 14932 /** | 16944 core.List<HostRule> hostRules; |
| 14933 * A list of URLs to the HttpHealthCheck resource. A member VM in this pool is | |
| 14934 * considered healthy if and only if all specified health checks pass. An | |
| 14935 * empty list means all member VMs will be considered healthy at all times. | |
| 14936 */ | |
| 14937 core.List<core.String> healthChecks; | |
| 14938 | 16945 |
| 14939 /** | 16946 /** |
| 14940 * Unique identifier for the resource; defined by the server (output only). | 16947 * Unique identifier for the resource; defined by the server (output only). |
| 14941 */ | 16948 */ |
| 14942 core.String id; | 16949 core.String id; |
| 14943 | 16950 |
| 14944 /** | |
| 14945 * A list of resource URLs to the member VMs serving this pool. They must live | |
| 14946 * in zones contained in the same region as this pool. | |
| 14947 */ | |
| 14948 core.List<core.String> instances; | |
| 14949 | |
| 14950 /** Type of the resource. */ | 16951 /** Type of the resource. */ |
| 14951 core.String kind; | 16952 core.String kind; |
| 14952 | 16953 |
| 14953 /** | 16954 /** |
| 14954 * Name of the resource; provided by the client when the resource is created. | 16955 * Name of the resource; provided by the client when the resource is created. |
| 14955 * The name must be 1-63 characters long, and comply with RFC1035. | 16956 * The name must be 1-63 characters long, and comply with RFC1035. |
| 14956 */ | 16957 */ |
| 14957 core.String name; | 16958 core.String name; |
| 14958 | 16959 |
| 14959 /** URL of the region where the target pool resides (output only). */ | 16960 /** The list of named PathMatchers to use against the URL. */ |
| 14960 core.String region; | 16961 core.List<PathMatcher> pathMatchers; |
| 14961 | 16962 |
| 14962 /** Server defined URL for the resource (output only). */ | 16963 /** Server defined URL for the resource (output only). */ |
| 14963 core.String selfLink; | 16964 core.String selfLink; |
| 14964 | 16965 |
| 14965 /** | 16966 /** |
| 14966 * Sesssion affinity option, must be one of the following values: 'NONE': | 16967 * The list of expected URL mappings. Request to update this UrlMap will |
| 14967 * Connections from the same client IP may go to any VM in the pool; | 16968 * succeed only all of the test cases pass. |
| 14968 * 'CLIENT_IP': Connections from the same client IP will go to the same VM in | 16969 */ |
| 14969 * the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from | 16970 core.List<UrlMapTest> tests; |
| 14970 * the same client IP with the same IP protocol will go to the same VM in the | 16971 |
| 14971 * pool while that VM remains healthy. | 16972 |
| 14972 * Possible string values are: | 16973 UrlMap(); |
| 14973 * - "CLIENT_IP" | 16974 |
| 14974 * - "CLIENT_IP_PROTO" | 16975 UrlMap.fromJson(core.Map _json) { |
| 14975 * - "NONE" | |
| 14976 */ | |
| 14977 core.String sessionAffinity; | |
| 14978 | |
| 14979 | |
| 14980 TargetPool(); | |
| 14981 | |
| 14982 TargetPool.fromJson(core.Map _json) { | |
| 14983 if (_json.containsKey("backupPool")) { | |
| 14984 backupPool = _json["backupPool"]; | |
| 14985 } | |
| 14986 if (_json.containsKey("creationTimestamp")) { | 16976 if (_json.containsKey("creationTimestamp")) { |
| 14987 creationTimestamp = _json["creationTimestamp"]; | 16977 creationTimestamp = _json["creationTimestamp"]; |
| 14988 } | 16978 } |
| 16979 if (_json.containsKey("defaultService")) { |
| 16980 defaultService = _json["defaultService"]; |
| 16981 } |
| 14989 if (_json.containsKey("description")) { | 16982 if (_json.containsKey("description")) { |
| 14990 description = _json["description"]; | 16983 description = _json["description"]; |
| 14991 } | 16984 } |
| 14992 if (_json.containsKey("failoverRatio")) { | 16985 if (_json.containsKey("fingerprint")) { |
| 14993 failoverRatio = _json["failoverRatio"]; | 16986 fingerprint = _json["fingerprint"]; |
| 14994 } | 16987 } |
| 14995 if (_json.containsKey("healthChecks")) { | 16988 if (_json.containsKey("hostRules")) { |
| 14996 healthChecks = _json["healthChecks"]; | 16989 hostRules = _json["hostRules"].map((value) => new HostRule.fromJson(value)
).toList(); |
| 14997 } | 16990 } |
| 14998 if (_json.containsKey("id")) { | 16991 if (_json.containsKey("id")) { |
| 14999 id = _json["id"]; | 16992 id = _json["id"]; |
| 15000 } | 16993 } |
| 15001 if (_json.containsKey("instances")) { | |
| 15002 instances = _json["instances"]; | |
| 15003 } | |
| 15004 if (_json.containsKey("kind")) { | 16994 if (_json.containsKey("kind")) { |
| 15005 kind = _json["kind"]; | 16995 kind = _json["kind"]; |
| 15006 } | 16996 } |
| 15007 if (_json.containsKey("name")) { | 16997 if (_json.containsKey("name")) { |
| 15008 name = _json["name"]; | 16998 name = _json["name"]; |
| 15009 } | 16999 } |
| 15010 if (_json.containsKey("region")) { | 17000 if (_json.containsKey("pathMatchers")) { |
| 15011 region = _json["region"]; | 17001 pathMatchers = _json["pathMatchers"].map((value) => new PathMatcher.fromJs
on(value)).toList(); |
| 15012 } | 17002 } |
| 15013 if (_json.containsKey("selfLink")) { | 17003 if (_json.containsKey("selfLink")) { |
| 15014 selfLink = _json["selfLink"]; | 17004 selfLink = _json["selfLink"]; |
| 15015 } | 17005 } |
| 15016 if (_json.containsKey("sessionAffinity")) { | 17006 if (_json.containsKey("tests")) { |
| 15017 sessionAffinity = _json["sessionAffinity"]; | 17007 tests = _json["tests"].map((value) => new UrlMapTest.fromJson(value)).toLi
st(); |
| 15018 } | 17008 } |
| 15019 } | 17009 } |
| 15020 | 17010 |
| 15021 core.Map toJson() { | 17011 core.Map toJson() { |
| 15022 var _json = new core.Map(); | 17012 var _json = new core.Map(); |
| 15023 if (backupPool != null) { | |
| 15024 _json["backupPool"] = backupPool; | |
| 15025 } | |
| 15026 if (creationTimestamp != null) { | 17013 if (creationTimestamp != null) { |
| 15027 _json["creationTimestamp"] = creationTimestamp; | 17014 _json["creationTimestamp"] = creationTimestamp; |
| 15028 } | 17015 } |
| 17016 if (defaultService != null) { |
| 17017 _json["defaultService"] = defaultService; |
| 17018 } |
| 15029 if (description != null) { | 17019 if (description != null) { |
| 15030 _json["description"] = description; | 17020 _json["description"] = description; |
| 15031 } | 17021 } |
| 15032 if (failoverRatio != null) { | 17022 if (fingerprint != null) { |
| 15033 _json["failoverRatio"] = failoverRatio; | 17023 _json["fingerprint"] = fingerprint; |
| 15034 } | 17024 } |
| 15035 if (healthChecks != null) { | 17025 if (hostRules != null) { |
| 15036 _json["healthChecks"] = healthChecks; | 17026 _json["hostRules"] = hostRules.map((value) => (value).toJson()).toList(); |
| 15037 } | 17027 } |
| 15038 if (id != null) { | 17028 if (id != null) { |
| 15039 _json["id"] = id; | 17029 _json["id"] = id; |
| 15040 } | 17030 } |
| 15041 if (instances != null) { | |
| 15042 _json["instances"] = instances; | |
| 15043 } | |
| 15044 if (kind != null) { | 17031 if (kind != null) { |
| 15045 _json["kind"] = kind; | 17032 _json["kind"] = kind; |
| 15046 } | 17033 } |
| 15047 if (name != null) { | 17034 if (name != null) { |
| 15048 _json["name"] = name; | 17035 _json["name"] = name; |
| 15049 } | 17036 } |
| 15050 if (region != null) { | 17037 if (pathMatchers != null) { |
| 15051 _json["region"] = region; | 17038 _json["pathMatchers"] = pathMatchers.map((value) => (value).toJson()).toLi
st(); |
| 15052 } | 17039 } |
| 15053 if (selfLink != null) { | 17040 if (selfLink != null) { |
| 15054 _json["selfLink"] = selfLink; | 17041 _json["selfLink"] = selfLink; |
| 15055 } | 17042 } |
| 15056 if (sessionAffinity != null) { | 17043 if (tests != null) { |
| 15057 _json["sessionAffinity"] = sessionAffinity; | 17044 _json["tests"] = tests.map((value) => (value).toJson()).toList(); |
| 15058 } | 17045 } |
| 15059 return _json; | 17046 return _json; |
| 15060 } | 17047 } |
| 15061 } | 17048 } |
| 15062 | 17049 |
| 15063 | 17050 |
| 15064 /** Not documented yet. */ | 17051 /** Contains a list of UrlMap resources. */ |
| 15065 class TargetPoolAggregatedList { | 17052 class UrlMapList { |
| 15066 /** | 17053 /** |
| 15067 * Unique identifier for the resource; defined by the server (output only). | 17054 * Unique identifier for the resource; defined by the server (output only). |
| 15068 */ | 17055 */ |
| 15069 core.String id; | 17056 core.String id; |
| 15070 | 17057 |
| 15071 /** A map of scoped target pool lists. */ | 17058 /** A list of UrlMap resources. */ |
| 15072 core.Map<core.String, TargetPoolsScopedList> items; | 17059 core.List<UrlMap> items; |
| 15073 | 17060 |
| 15074 /** Type of resource. */ | 17061 /** Type of resource. */ |
| 15075 core.String kind; | 17062 core.String kind; |
| 15076 | |
| 15077 /** A token used to continue a truncated list request (output only). */ | |
| 15078 core.String nextPageToken; | |
| 15079 | |
| 15080 /** Server defined URL for this resource (output only). */ | |
| 15081 core.String selfLink; | |
| 15082 | |
| 15083 | |
| 15084 TargetPoolAggregatedList(); | |
| 15085 | |
| 15086 TargetPoolAggregatedList.fromJson(core.Map _json) { | |
| 15087 if (_json.containsKey("id")) { | |
| 15088 id = _json["id"]; | |
| 15089 } | |
| 15090 if (_json.containsKey("items")) { | |
| 15091 items = common_internal.mapMap(_json["items"], (item) => new TargetPoolsSc
opedList.fromJson(item)); | |
| 15092 } | |
| 15093 if (_json.containsKey("kind")) { | |
| 15094 kind = _json["kind"]; | |
| 15095 } | |
| 15096 if (_json.containsKey("nextPageToken")) { | |
| 15097 nextPageToken = _json["nextPageToken"]; | |
| 15098 } | |
| 15099 if (_json.containsKey("selfLink")) { | |
| 15100 selfLink = _json["selfLink"]; | |
| 15101 } | |
| 15102 } | |
| 15103 | |
| 15104 core.Map toJson() { | |
| 15105 var _json = new core.Map(); | |
| 15106 if (id != null) { | |
| 15107 _json["id"] = id; | |
| 15108 } | |
| 15109 if (items != null) { | |
| 15110 _json["items"] = common_internal.mapMap(items, (item) => (item).toJson()); | |
| 15111 } | |
| 15112 if (kind != null) { | |
| 15113 _json["kind"] = kind; | |
| 15114 } | |
| 15115 if (nextPageToken != null) { | |
| 15116 _json["nextPageToken"] = nextPageToken; | |
| 15117 } | |
| 15118 if (selfLink != null) { | |
| 15119 _json["selfLink"] = selfLink; | |
| 15120 } | |
| 15121 return _json; | |
| 15122 } | |
| 15123 } | |
| 15124 | |
| 15125 | |
| 15126 /** Not documented yet. */ | |
| 15127 class TargetPoolInstanceHealth { | |
| 15128 /** Not documented yet. */ | |
| 15129 core.List<HealthStatus> healthStatus; | |
| 15130 | |
| 15131 /** Type of resource. */ | |
| 15132 core.String kind; | |
| 15133 | |
| 15134 | |
| 15135 TargetPoolInstanceHealth(); | |
| 15136 | |
| 15137 TargetPoolInstanceHealth.fromJson(core.Map _json) { | |
| 15138 if (_json.containsKey("healthStatus")) { | |
| 15139 healthStatus = _json["healthStatus"].map((value) => new HealthStatus.fromJ
son(value)).toList(); | |
| 15140 } | |
| 15141 if (_json.containsKey("kind")) { | |
| 15142 kind = _json["kind"]; | |
| 15143 } | |
| 15144 } | |
| 15145 | |
| 15146 core.Map toJson() { | |
| 15147 var _json = new core.Map(); | |
| 15148 if (healthStatus != null) { | |
| 15149 _json["healthStatus"] = healthStatus.map((value) => (value).toJson()).toLi
st(); | |
| 15150 } | |
| 15151 if (kind != null) { | |
| 15152 _json["kind"] = kind; | |
| 15153 } | |
| 15154 return _json; | |
| 15155 } | |
| 15156 } | |
| 15157 | |
| 15158 | |
| 15159 /** Contains a list of TargetPool resources. */ | |
| 15160 class TargetPoolList { | |
| 15161 /** | |
| 15162 * Unique identifier for the resource; defined by the server (output only). | |
| 15163 */ | |
| 15164 core.String id; | |
| 15165 | |
| 15166 /** A list of TargetPool resources. */ | |
| 15167 core.List<TargetPool> items; | |
| 15168 | |
| 15169 /** Type of resource. */ | |
| 15170 core.String kind; | |
| 15171 | 17063 |
| 15172 /** A token used to continue a truncated list request (output only). */ | 17064 /** A token used to continue a truncated list request (output only). */ |
| 15173 core.String nextPageToken; | 17065 core.String nextPageToken; |
| 15174 | 17066 |
| 15175 /** Server defined URL for this resource (output only). */ | 17067 /** Server defined URL for this resource (output only). */ |
| 15176 core.String selfLink; | 17068 core.String selfLink; |
| 15177 | 17069 |
| 15178 | 17070 |
| 15179 TargetPoolList(); | 17071 UrlMapList(); |
| 15180 | 17072 |
| 15181 TargetPoolList.fromJson(core.Map _json) { | 17073 UrlMapList.fromJson(core.Map _json) { |
| 15182 if (_json.containsKey("id")) { | 17074 if (_json.containsKey("id")) { |
| 15183 id = _json["id"]; | 17075 id = _json["id"]; |
| 15184 } | 17076 } |
| 15185 if (_json.containsKey("items")) { | 17077 if (_json.containsKey("items")) { |
| 15186 items = _json["items"].map((value) => new TargetPool.fromJson(value)).toLi
st(); | 17078 items = _json["items"].map((value) => new UrlMap.fromJson(value)).toList()
; |
| 15187 } | 17079 } |
| 15188 if (_json.containsKey("kind")) { | 17080 if (_json.containsKey("kind")) { |
| 15189 kind = _json["kind"]; | 17081 kind = _json["kind"]; |
| 15190 } | 17082 } |
| 15191 if (_json.containsKey("nextPageToken")) { | 17083 if (_json.containsKey("nextPageToken")) { |
| 15192 nextPageToken = _json["nextPageToken"]; | 17084 nextPageToken = _json["nextPageToken"]; |
| 15193 } | 17085 } |
| 15194 if (_json.containsKey("selfLink")) { | 17086 if (_json.containsKey("selfLink")) { |
| 15195 selfLink = _json["selfLink"]; | 17087 selfLink = _json["selfLink"]; |
| 15196 } | 17088 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 15211 _json["nextPageToken"] = nextPageToken; | 17103 _json["nextPageToken"] = nextPageToken; |
| 15212 } | 17104 } |
| 15213 if (selfLink != null) { | 17105 if (selfLink != null) { |
| 15214 _json["selfLink"] = selfLink; | 17106 _json["selfLink"] = selfLink; |
| 15215 } | 17107 } |
| 15216 return _json; | 17108 return _json; |
| 15217 } | 17109 } |
| 15218 } | 17110 } |
| 15219 | 17111 |
| 15220 | 17112 |
| 15221 /** Not documented yet. */ | 17113 class UrlMapReference { |
| 15222 class TargetPoolsAddHealthCheckRequest { | 17114 core.String urlMap; |
| 15223 /** Health check URLs to be added to targetPool. */ | 17115 |
| 15224 core.List<HealthCheckReference> healthChecks; | 17116 |
| 15225 | 17117 UrlMapReference(); |
| 15226 | 17118 |
| 15227 TargetPoolsAddHealthCheckRequest(); | 17119 UrlMapReference.fromJson(core.Map _json) { |
| 15228 | 17120 if (_json.containsKey("urlMap")) { |
| 15229 TargetPoolsAddHealthCheckRequest.fromJson(core.Map _json) { | 17121 urlMap = _json["urlMap"]; |
| 15230 if (_json.containsKey("healthChecks")) { | 17122 } |
| 15231 healthChecks = _json["healthChecks"].map((value) => new HealthCheckReferen
ce.fromJson(value)).toList(); | 17123 } |
| 15232 } | 17124 |
| 15233 } | 17125 core.Map toJson() { |
| 15234 | 17126 var _json = new core.Map(); |
| 15235 core.Map toJson() { | 17127 if (urlMap != null) { |
| 15236 var _json = new core.Map(); | 17128 _json["urlMap"] = urlMap; |
| 15237 if (healthChecks != null) { | 17129 } |
| 15238 _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toLi
st(); | 17130 return _json; |
| 15239 } | 17131 } |
| 15240 return _json; | 17132 } |
| 15241 } | 17133 |
| 15242 } | 17134 |
| 15243 | 17135 /** Message for the expected URL mappings. */ |
| 15244 | 17136 class UrlMapTest { |
| 15245 /** Not documented yet. */ | 17137 /** Description of this test case. */ |
| 15246 class TargetPoolsAddInstanceRequest { | 17138 core.String description; |
| 15247 /** URLs of the instances to be added to targetPool. */ | 17139 |
| 15248 core.List<InstanceReference> instances; | 17140 /** Host portion of the URL. */ |
| 15249 | |
| 15250 | |
| 15251 TargetPoolsAddInstanceRequest(); | |
| 15252 | |
| 15253 TargetPoolsAddInstanceRequest.fromJson(core.Map _json) { | |
| 15254 if (_json.containsKey("instances")) { | |
| 15255 instances = _json["instances"].map((value) => new InstanceReference.fromJs
on(value)).toList(); | |
| 15256 } | |
| 15257 } | |
| 15258 | |
| 15259 core.Map toJson() { | |
| 15260 var _json = new core.Map(); | |
| 15261 if (instances != null) { | |
| 15262 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | |
| 15263 } | |
| 15264 return _json; | |
| 15265 } | |
| 15266 } | |
| 15267 | |
| 15268 | |
| 15269 /** Not documented yet. */ | |
| 15270 class TargetPoolsRemoveHealthCheckRequest { | |
| 15271 /** Health check URLs to be removed from targetPool. */ | |
| 15272 core.List<HealthCheckReference> healthChecks; | |
| 15273 | |
| 15274 | |
| 15275 TargetPoolsRemoveHealthCheckRequest(); | |
| 15276 | |
| 15277 TargetPoolsRemoveHealthCheckRequest.fromJson(core.Map _json) { | |
| 15278 if (_json.containsKey("healthChecks")) { | |
| 15279 healthChecks = _json["healthChecks"].map((value) => new HealthCheckReferen
ce.fromJson(value)).toList(); | |
| 15280 } | |
| 15281 } | |
| 15282 | |
| 15283 core.Map toJson() { | |
| 15284 var _json = new core.Map(); | |
| 15285 if (healthChecks != null) { | |
| 15286 _json["healthChecks"] = healthChecks.map((value) => (value).toJson()).toLi
st(); | |
| 15287 } | |
| 15288 return _json; | |
| 15289 } | |
| 15290 } | |
| 15291 | |
| 15292 | |
| 15293 /** Not documented yet. */ | |
| 15294 class TargetPoolsRemoveInstanceRequest { | |
| 15295 /** URLs of the instances to be removed from targetPool. */ | |
| 15296 core.List<InstanceReference> instances; | |
| 15297 | |
| 15298 | |
| 15299 TargetPoolsRemoveInstanceRequest(); | |
| 15300 | |
| 15301 TargetPoolsRemoveInstanceRequest.fromJson(core.Map _json) { | |
| 15302 if (_json.containsKey("instances")) { | |
| 15303 instances = _json["instances"].map((value) => new InstanceReference.fromJs
on(value)).toList(); | |
| 15304 } | |
| 15305 } | |
| 15306 | |
| 15307 core.Map toJson() { | |
| 15308 var _json = new core.Map(); | |
| 15309 if (instances != null) { | |
| 15310 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | |
| 15311 } | |
| 15312 return _json; | |
| 15313 } | |
| 15314 } | |
| 15315 | |
| 15316 | |
| 15317 /** Not documented yet. */ | |
| 15318 class TargetPoolsScopedListWarningData { | |
| 15319 /** A key for the warning data. */ | |
| 15320 core.String key; | |
| 15321 | |
| 15322 /** A warning data value corresponding to the key. */ | |
| 15323 core.String value; | |
| 15324 | |
| 15325 | |
| 15326 TargetPoolsScopedListWarningData(); | |
| 15327 | |
| 15328 TargetPoolsScopedListWarningData.fromJson(core.Map _json) { | |
| 15329 if (_json.containsKey("key")) { | |
| 15330 key = _json["key"]; | |
| 15331 } | |
| 15332 if (_json.containsKey("value")) { | |
| 15333 value = _json["value"]; | |
| 15334 } | |
| 15335 } | |
| 15336 | |
| 15337 core.Map toJson() { | |
| 15338 var _json = new core.Map(); | |
| 15339 if (key != null) { | |
| 15340 _json["key"] = key; | |
| 15341 } | |
| 15342 if (value != null) { | |
| 15343 _json["value"] = value; | |
| 15344 } | |
| 15345 return _json; | |
| 15346 } | |
| 15347 } | |
| 15348 | |
| 15349 | |
| 15350 /** | |
| 15351 * Informational warning which replaces the list of addresses when the list is | |
| 15352 * empty. | |
| 15353 */ | |
| 15354 class TargetPoolsScopedListWarning { | |
| 15355 /** | |
| 15356 * The warning type identifier for this warning. | |
| 15357 * Possible string values are: | |
| 15358 * - "DEPRECATED_RESOURCE_USED" | |
| 15359 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" | |
| 15360 * - "INJECTED_KERNELS_DEPRECATED" | |
| 15361 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" | |
| 15362 * - "NEXT_HOP_CANNOT_IP_FORWARD" | |
| 15363 * - "NEXT_HOP_INSTANCE_NOT_FOUND" | |
| 15364 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" | |
| 15365 * - "NEXT_HOP_NOT_RUNNING" | |
| 15366 * - "NO_RESULTS_ON_PAGE" | |
| 15367 * - "REQUIRED_TOS_AGREEMENT" | |
| 15368 * - "RESOURCE_NOT_DELETED" | |
| 15369 * - "UNREACHABLE" | |
| 15370 */ | |
| 15371 core.String code; | |
| 15372 | |
| 15373 /** Metadata for this warning in 'key: value' format. */ | |
| 15374 core.List<TargetPoolsScopedListWarningData> data; | |
| 15375 | |
| 15376 /** Optional human-readable details for this warning. */ | |
| 15377 core.String message; | |
| 15378 | |
| 15379 | |
| 15380 TargetPoolsScopedListWarning(); | |
| 15381 | |
| 15382 TargetPoolsScopedListWarning.fromJson(core.Map _json) { | |
| 15383 if (_json.containsKey("code")) { | |
| 15384 code = _json["code"]; | |
| 15385 } | |
| 15386 if (_json.containsKey("data")) { | |
| 15387 data = _json["data"].map((value) => new TargetPoolsScopedListWarningData.f
romJson(value)).toList(); | |
| 15388 } | |
| 15389 if (_json.containsKey("message")) { | |
| 15390 message = _json["message"]; | |
| 15391 } | |
| 15392 } | |
| 15393 | |
| 15394 core.Map toJson() { | |
| 15395 var _json = new core.Map(); | |
| 15396 if (code != null) { | |
| 15397 _json["code"] = code; | |
| 15398 } | |
| 15399 if (data != null) { | |
| 15400 _json["data"] = data.map((value) => (value).toJson()).toList(); | |
| 15401 } | |
| 15402 if (message != null) { | |
| 15403 _json["message"] = message; | |
| 15404 } | |
| 15405 return _json; | |
| 15406 } | |
| 15407 } | |
| 15408 | |
| 15409 | |
| 15410 /** Not documented yet. */ | |
| 15411 class TargetPoolsScopedList { | |
| 15412 /** List of target pools contained in this scope. */ | |
| 15413 core.List<TargetPool> targetPools; | |
| 15414 | |
| 15415 /** | |
| 15416 * Informational warning which replaces the list of addresses when the list is | |
| 15417 * empty. | |
| 15418 */ | |
| 15419 TargetPoolsScopedListWarning warning; | |
| 15420 | |
| 15421 | |
| 15422 TargetPoolsScopedList(); | |
| 15423 | |
| 15424 TargetPoolsScopedList.fromJson(core.Map _json) { | |
| 15425 if (_json.containsKey("targetPools")) { | |
| 15426 targetPools = _json["targetPools"].map((value) => new TargetPool.fromJson(
value)).toList(); | |
| 15427 } | |
| 15428 if (_json.containsKey("warning")) { | |
| 15429 warning = new TargetPoolsScopedListWarning.fromJson(_json["warning"]); | |
| 15430 } | |
| 15431 } | |
| 15432 | |
| 15433 core.Map toJson() { | |
| 15434 var _json = new core.Map(); | |
| 15435 if (targetPools != null) { | |
| 15436 _json["targetPools"] = targetPools.map((value) => (value).toJson()).toList
(); | |
| 15437 } | |
| 15438 if (warning != null) { | |
| 15439 _json["warning"] = (warning).toJson(); | |
| 15440 } | |
| 15441 return _json; | |
| 15442 } | |
| 15443 } | |
| 15444 | |
| 15445 | |
| 15446 /** Not documented yet. */ | |
| 15447 class TargetReference { | |
| 15448 /** Not documented yet. */ | |
| 15449 core.String target; | |
| 15450 | |
| 15451 | |
| 15452 TargetReference(); | |
| 15453 | |
| 15454 TargetReference.fromJson(core.Map _json) { | |
| 15455 if (_json.containsKey("target")) { | |
| 15456 target = _json["target"]; | |
| 15457 } | |
| 15458 } | |
| 15459 | |
| 15460 core.Map toJson() { | |
| 15461 var _json = new core.Map(); | |
| 15462 if (target != null) { | |
| 15463 _json["target"] = target; | |
| 15464 } | |
| 15465 return _json; | |
| 15466 } | |
| 15467 } | |
| 15468 | |
| 15469 | |
| 15470 /** Not documented yet. */ | |
| 15471 class TestFailure { | |
| 15472 /** Not documented yet. */ | |
| 15473 core.String actualService; | |
| 15474 | |
| 15475 /** Not documented yet. */ | |
| 15476 core.String expectedService; | |
| 15477 | |
| 15478 /** Not documented yet. */ | |
| 15479 core.String host; | 17141 core.String host; |
| 15480 | 17142 |
| 15481 /** Not documented yet. */ | 17143 /** Path portion of the URL. */ |
| 15482 core.String path; | 17144 core.String path; |
| 15483 | 17145 |
| 15484 | 17146 /** Expected BackendService resource the given URL should be mapped to. */ |
| 15485 TestFailure(); | 17147 core.String service; |
| 15486 | 17148 |
| 15487 TestFailure.fromJson(core.Map _json) { | 17149 |
| 15488 if (_json.containsKey("actualService")) { | 17150 UrlMapTest(); |
| 15489 actualService = _json["actualService"]; | 17151 |
| 15490 } | 17152 UrlMapTest.fromJson(core.Map _json) { |
| 15491 if (_json.containsKey("expectedService")) { | 17153 if (_json.containsKey("description")) { |
| 15492 expectedService = _json["expectedService"]; | 17154 description = _json["description"]; |
| 15493 } | 17155 } |
| 15494 if (_json.containsKey("host")) { | 17156 if (_json.containsKey("host")) { |
| 15495 host = _json["host"]; | 17157 host = _json["host"]; |
| 15496 } | 17158 } |
| 15497 if (_json.containsKey("path")) { | 17159 if (_json.containsKey("path")) { |
| 15498 path = _json["path"]; | 17160 path = _json["path"]; |
| 15499 } | 17161 } |
| 15500 } | 17162 if (_json.containsKey("service")) { |
| 15501 | 17163 service = _json["service"]; |
| 15502 core.Map toJson() { | 17164 } |
| 15503 var _json = new core.Map(); | 17165 } |
| 15504 if (actualService != null) { | 17166 |
| 15505 _json["actualService"] = actualService; | 17167 core.Map toJson() { |
| 15506 } | 17168 var _json = new core.Map(); |
| 15507 if (expectedService != null) { | 17169 if (description != null) { |
| 15508 _json["expectedService"] = expectedService; | 17170 _json["description"] = description; |
| 15509 } | 17171 } |
| 15510 if (host != null) { | 17172 if (host != null) { |
| 15511 _json["host"] = host; | 17173 _json["host"] = host; |
| 15512 } | 17174 } |
| 15513 if (path != null) { | 17175 if (path != null) { |
| 15514 _json["path"] = path; | 17176 _json["path"] = path; |
| 15515 } | 17177 } |
| 17178 if (service != null) { |
| 17179 _json["service"] = service; |
| 17180 } |
| 17181 return _json; |
| 17182 } |
| 17183 } |
| 17184 |
| 17185 |
| 17186 /** Message representing the validation result for a UrlMap. */ |
| 17187 class UrlMapValidationResult { |
| 17188 core.List<core.String> loadErrors; |
| 17189 |
| 17190 /** |
| 17191 * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' |
| 17192 * indicates the reasons. |
| 17193 */ |
| 17194 core.bool loadSucceeded; |
| 17195 |
| 17196 core.List<TestFailure> testFailures; |
| 17197 |
| 17198 /** |
| 17199 * If successfully loaded, this field indicates whether the test passed. If |
| 17200 * false, 'testFailures's indicate the reason of failure. |
| 17201 */ |
| 17202 core.bool testPassed; |
| 17203 |
| 17204 |
| 17205 UrlMapValidationResult(); |
| 17206 |
| 17207 UrlMapValidationResult.fromJson(core.Map _json) { |
| 17208 if (_json.containsKey("loadErrors")) { |
| 17209 loadErrors = _json["loadErrors"]; |
| 17210 } |
| 17211 if (_json.containsKey("loadSucceeded")) { |
| 17212 loadSucceeded = _json["loadSucceeded"]; |
| 17213 } |
| 17214 if (_json.containsKey("testFailures")) { |
| 17215 testFailures = _json["testFailures"].map((value) => new TestFailure.fromJs
on(value)).toList(); |
| 17216 } |
| 17217 if (_json.containsKey("testPassed")) { |
| 17218 testPassed = _json["testPassed"]; |
| 17219 } |
| 17220 } |
| 17221 |
| 17222 core.Map toJson() { |
| 17223 var _json = new core.Map(); |
| 17224 if (loadErrors != null) { |
| 17225 _json["loadErrors"] = loadErrors; |
| 17226 } |
| 17227 if (loadSucceeded != null) { |
| 17228 _json["loadSucceeded"] = loadSucceeded; |
| 17229 } |
| 17230 if (testFailures != null) { |
| 17231 _json["testFailures"] = testFailures.map((value) => (value).toJson()).toLi
st(); |
| 17232 } |
| 17233 if (testPassed != null) { |
| 17234 _json["testPassed"] = testPassed; |
| 17235 } |
| 17236 return _json; |
| 17237 } |
| 17238 } |
| 17239 |
| 17240 |
| 17241 class UrlMapsValidateRequest { |
| 17242 /** Content of the UrlMap to be validated. */ |
| 17243 UrlMap resource; |
| 17244 |
| 17245 |
| 17246 UrlMapsValidateRequest(); |
| 17247 |
| 17248 UrlMapsValidateRequest.fromJson(core.Map _json) { |
| 17249 if (_json.containsKey("resource")) { |
| 17250 resource = new UrlMap.fromJson(_json["resource"]); |
| 17251 } |
| 17252 } |
| 17253 |
| 17254 core.Map toJson() { |
| 17255 var _json = new core.Map(); |
| 17256 if (resource != null) { |
| 17257 _json["resource"] = (resource).toJson(); |
| 17258 } |
| 17259 return _json; |
| 17260 } |
| 17261 } |
| 17262 |
| 17263 |
| 17264 class UrlMapsValidateResponse { |
| 17265 UrlMapValidationResult result; |
| 17266 |
| 17267 |
| 17268 UrlMapsValidateResponse(); |
| 17269 |
| 17270 UrlMapsValidateResponse.fromJson(core.Map _json) { |
| 17271 if (_json.containsKey("result")) { |
| 17272 result = new UrlMapValidationResult.fromJson(_json["result"]); |
| 17273 } |
| 17274 } |
| 17275 |
| 17276 core.Map toJson() { |
| 17277 var _json = new core.Map(); |
| 17278 if (result != null) { |
| 17279 _json["result"] = (result).toJson(); |
| 17280 } |
| 15516 return _json; | 17281 return _json; |
| 15517 } | 17282 } |
| 15518 } | 17283 } |
| 15519 | 17284 |
| 15520 | 17285 |
| 15521 /** | 17286 /** |
| 15522 * A UrlMap resource. This resource defines the mapping from URL to the | 17287 * The location in Cloud Storage and naming method of the daily usage report. |
| 15523 * BackendService resource, based on the "longest-match" of the URL's host and | 17288 * Contains bucket_name and report_name prefix. |
| 15524 * path. | |
| 15525 */ | 17289 */ |
| 15526 class UrlMap { | 17290 class UsageExportLocation { |
| 15527 /** Creation timestamp in RFC3339 text format (output only). */ | 17291 /** |
| 17292 * The name of an existing bucket in Cloud Storage where the usage report |
| 17293 * object is stored. The Google Service Account is granted write access to |
| 17294 * this bucket. This is just the bucket name, with no gs:// or |
| 17295 * https://storage.googleapis.com/ in front of it. |
| 17296 */ |
| 17297 core.String bucketName; |
| 17298 |
| 17299 /** |
| 17300 * An optional prefix for the name of the usage report object stored in |
| 17301 * bucketName. If not supplied, defaults to usage. The report is stored as a |
| 17302 * CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the |
| 17303 * day of the usage according to Pacific Time. If you supply a prefix, it |
| 17304 * should conform to Cloud Storage object naming conventions. |
| 17305 */ |
| 17306 core.String reportNamePrefix; |
| 17307 |
| 17308 |
| 17309 UsageExportLocation(); |
| 17310 |
| 17311 UsageExportLocation.fromJson(core.Map _json) { |
| 17312 if (_json.containsKey("bucketName")) { |
| 17313 bucketName = _json["bucketName"]; |
| 17314 } |
| 17315 if (_json.containsKey("reportNamePrefix")) { |
| 17316 reportNamePrefix = _json["reportNamePrefix"]; |
| 17317 } |
| 17318 } |
| 17319 |
| 17320 core.Map toJson() { |
| 17321 var _json = new core.Map(); |
| 17322 if (bucketName != null) { |
| 17323 _json["bucketName"] = bucketName; |
| 17324 } |
| 17325 if (reportNamePrefix != null) { |
| 17326 _json["reportNamePrefix"] = reportNamePrefix; |
| 17327 } |
| 17328 return _json; |
| 17329 } |
| 17330 } |
| 17331 |
| 17332 |
| 17333 class VpnTunnel { |
| 17334 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 15528 core.String creationTimestamp; | 17335 core.String creationTimestamp; |
| 15529 | 17336 |
| 15530 /** The URL of the BackendService resource if none of the hostRules match. */ | 17337 /** |
| 15531 core.String defaultService; | 17338 * An optional textual description of the resource. Provided by the client |
| 15532 | |
| 15533 /** | |
| 15534 * An optional textual description of the resource; provided by the client | |
| 15535 * when the resource is created. | 17339 * when the resource is created. |
| 15536 */ | 17340 */ |
| 15537 core.String description; | 17341 core.String description; |
| 15538 | 17342 |
| 15539 /** | 17343 /** [Output Only] Detailed status message for the VPN tunnel. */ |
| 15540 * Fingerprint of this resource. A hash of the contents stored in this object. | 17344 core.String detailedStatus; |
| 15541 * This field is used in optimistic locking. This field will be ignored when | 17345 |
| 15542 * inserting a UrlMap. An up-to-date fingerprint must be provided in order to | 17346 /** |
| 15543 * update the UrlMap. | 17347 * [Output Only] Unique identifier for the resource. Defined by the server. |
| 15544 */ | |
| 15545 core.String fingerprint; | |
| 15546 | |
| 15547 core.List<core.int> get fingerprintAsBytes { | |
| 15548 return crypto.CryptoUtils.base64StringToBytes(fingerprint); | |
| 15549 } | |
| 15550 | |
| 15551 void set fingerprintAsBytes(core.List<core.int> _bytes) { | |
| 15552 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | |
| 15553 } | |
| 15554 | |
| 15555 /** The list of HostRules to use against the URL. */ | |
| 15556 core.List<HostRule> hostRules; | |
| 15557 | |
| 15558 /** | |
| 15559 * Unique identifier for the resource; defined by the server (output only). | |
| 15560 */ | 17348 */ |
| 15561 core.String id; | 17349 core.String id; |
| 15562 | 17350 |
| 15563 /** Type of the resource. */ | 17351 /** |
| 17352 * IKE networks to use when establishing the VPN tunnel with peer VPN gateway. |
| 17353 * The value should be a CIDR formatted string, for example: 192.168.0.0/16. |
| 17354 * The ranges should be disjoint. |
| 17355 */ |
| 17356 core.List<core.String> ikeNetworks; |
| 17357 |
| 17358 /** |
| 17359 * IKE protocol version to use when establishing the VPN tunnel with peer VPN |
| 17360 * gateway. Acceptable IKE versions are 1 or 2. Default version is 2. |
| 17361 */ |
| 17362 core.int ikeVersion; |
| 17363 |
| 17364 /** |
| 17365 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. |
| 17366 */ |
| 15564 core.String kind; | 17367 core.String kind; |
| 15565 | 17368 |
| 15566 /** | 17369 /** |
| 15567 * Name of the resource; provided by the client when the resource is created. | 17370 * Name of the resource. Provided by the client when the resource is created. |
| 15568 * The name must be 1-63 characters long, and comply with RFC1035. | 17371 * The name must be 1-63 characters long and comply with RFC1035. |
| 15569 */ | 17372 */ |
| 15570 core.String name; | 17373 core.String name; |
| 15571 | 17374 |
| 15572 /** The list of named PathMatchers to use against the URL. */ | 17375 /** IP address of the peer VPN gateway. */ |
| 15573 core.List<PathMatcher> pathMatchers; | 17376 core.String peerIp; |
| 15574 | 17377 |
| 15575 /** Server defined URL for the resource (output only). */ | 17378 /** [Output Only] URL of the region where the VPN tunnel resides. */ |
| 17379 core.String region; |
| 17380 |
| 17381 /** [Output Only] Server defined URL for the resource. */ |
| 15576 core.String selfLink; | 17382 core.String selfLink; |
| 15577 | 17383 |
| 15578 /** | 17384 /** |
| 15579 * The list of expected URL mappings. Request to update this UrlMap will | 17385 * Shared secret used to set the secure session between the GCE VPN gateway |
| 15580 * succeed only all of the test cases pass. | 17386 * and the peer VPN gateway. |
| 15581 */ | 17387 */ |
| 15582 core.List<UrlMapTest> tests; | 17388 core.String sharedSecret; |
| 15583 | 17389 |
| 15584 | 17390 /** Hash of the shared secret. */ |
| 15585 UrlMap(); | 17391 core.String sharedSecretHash; |
| 15586 | 17392 |
| 15587 UrlMap.fromJson(core.Map _json) { | 17393 /** |
| 17394 * [Output Only] The status of the VPN tunnel. |
| 17395 * Possible string values are: |
| 17396 * - "AUTHORIZATION_ERROR" |
| 17397 * - "DEPROVISIONING" |
| 17398 * - "ESTABLISHED" |
| 17399 * - "FAILED" |
| 17400 * - "FIRST_HANDSHAKE" |
| 17401 * - "NEGOTIATION_FAILURE" |
| 17402 * - "NETWORK_ERROR" |
| 17403 * - "PROVISIONING" |
| 17404 * - "WAITING_FOR_FULL_CONFIG" |
| 17405 */ |
| 17406 core.String status; |
| 17407 |
| 17408 /** |
| 17409 * URL of the VPN gateway to which this VPN tunnel is associated. Provided by |
| 17410 * the client when the VPN tunnel is created. |
| 17411 */ |
| 17412 core.String targetVpnGateway; |
| 17413 |
| 17414 |
| 17415 VpnTunnel(); |
| 17416 |
| 17417 VpnTunnel.fromJson(core.Map _json) { |
| 15588 if (_json.containsKey("creationTimestamp")) { | 17418 if (_json.containsKey("creationTimestamp")) { |
| 15589 creationTimestamp = _json["creationTimestamp"]; | 17419 creationTimestamp = _json["creationTimestamp"]; |
| 15590 } | 17420 } |
| 15591 if (_json.containsKey("defaultService")) { | |
| 15592 defaultService = _json["defaultService"]; | |
| 15593 } | |
| 15594 if (_json.containsKey("description")) { | 17421 if (_json.containsKey("description")) { |
| 15595 description = _json["description"]; | 17422 description = _json["description"]; |
| 15596 } | 17423 } |
| 15597 if (_json.containsKey("fingerprint")) { | 17424 if (_json.containsKey("detailedStatus")) { |
| 15598 fingerprint = _json["fingerprint"]; | 17425 detailedStatus = _json["detailedStatus"]; |
| 15599 } | |
| 15600 if (_json.containsKey("hostRules")) { | |
| 15601 hostRules = _json["hostRules"].map((value) => new HostRule.fromJson(value)
).toList(); | |
| 15602 } | 17426 } |
| 15603 if (_json.containsKey("id")) { | 17427 if (_json.containsKey("id")) { |
| 15604 id = _json["id"]; | 17428 id = _json["id"]; |
| 15605 } | 17429 } |
| 17430 if (_json.containsKey("ikeNetworks")) { |
| 17431 ikeNetworks = _json["ikeNetworks"]; |
| 17432 } |
| 17433 if (_json.containsKey("ikeVersion")) { |
| 17434 ikeVersion = _json["ikeVersion"]; |
| 17435 } |
| 15606 if (_json.containsKey("kind")) { | 17436 if (_json.containsKey("kind")) { |
| 15607 kind = _json["kind"]; | 17437 kind = _json["kind"]; |
| 15608 } | 17438 } |
| 15609 if (_json.containsKey("name")) { | 17439 if (_json.containsKey("name")) { |
| 15610 name = _json["name"]; | 17440 name = _json["name"]; |
| 15611 } | 17441 } |
| 15612 if (_json.containsKey("pathMatchers")) { | 17442 if (_json.containsKey("peerIp")) { |
| 15613 pathMatchers = _json["pathMatchers"].map((value) => new PathMatcher.fromJs
on(value)).toList(); | 17443 peerIp = _json["peerIp"]; |
| 17444 } |
| 17445 if (_json.containsKey("region")) { |
| 17446 region = _json["region"]; |
| 15614 } | 17447 } |
| 15615 if (_json.containsKey("selfLink")) { | 17448 if (_json.containsKey("selfLink")) { |
| 15616 selfLink = _json["selfLink"]; | 17449 selfLink = _json["selfLink"]; |
| 15617 } | 17450 } |
| 15618 if (_json.containsKey("tests")) { | 17451 if (_json.containsKey("sharedSecret")) { |
| 15619 tests = _json["tests"].map((value) => new UrlMapTest.fromJson(value)).toLi
st(); | 17452 sharedSecret = _json["sharedSecret"]; |
| 15620 } | 17453 } |
| 15621 } | 17454 if (_json.containsKey("sharedSecretHash")) { |
| 15622 | 17455 sharedSecretHash = _json["sharedSecretHash"]; |
| 17456 } |
| 17457 if (_json.containsKey("status")) { |
| 17458 status = _json["status"]; |
| 17459 } |
| 17460 if (_json.containsKey("targetVpnGateway")) { |
| 17461 targetVpnGateway = _json["targetVpnGateway"]; |
| 17462 } |
| 17463 } |
| 17464 |
| 15623 core.Map toJson() { | 17465 core.Map toJson() { |
| 15624 var _json = new core.Map(); | 17466 var _json = new core.Map(); |
| 15625 if (creationTimestamp != null) { | 17467 if (creationTimestamp != null) { |
| 15626 _json["creationTimestamp"] = creationTimestamp; | 17468 _json["creationTimestamp"] = creationTimestamp; |
| 15627 } | 17469 } |
| 15628 if (defaultService != null) { | |
| 15629 _json["defaultService"] = defaultService; | |
| 15630 } | |
| 15631 if (description != null) { | 17470 if (description != null) { |
| 15632 _json["description"] = description; | 17471 _json["description"] = description; |
| 15633 } | 17472 } |
| 15634 if (fingerprint != null) { | 17473 if (detailedStatus != null) { |
| 15635 _json["fingerprint"] = fingerprint; | 17474 _json["detailedStatus"] = detailedStatus; |
| 15636 } | |
| 15637 if (hostRules != null) { | |
| 15638 _json["hostRules"] = hostRules.map((value) => (value).toJson()).toList(); | |
| 15639 } | 17475 } |
| 15640 if (id != null) { | 17476 if (id != null) { |
| 15641 _json["id"] = id; | 17477 _json["id"] = id; |
| 15642 } | 17478 } |
| 17479 if (ikeNetworks != null) { |
| 17480 _json["ikeNetworks"] = ikeNetworks; |
| 17481 } |
| 17482 if (ikeVersion != null) { |
| 17483 _json["ikeVersion"] = ikeVersion; |
| 17484 } |
| 15643 if (kind != null) { | 17485 if (kind != null) { |
| 15644 _json["kind"] = kind; | 17486 _json["kind"] = kind; |
| 15645 } | 17487 } |
| 15646 if (name != null) { | 17488 if (name != null) { |
| 15647 _json["name"] = name; | 17489 _json["name"] = name; |
| 15648 } | 17490 } |
| 15649 if (pathMatchers != null) { | 17491 if (peerIp != null) { |
| 15650 _json["pathMatchers"] = pathMatchers.map((value) => (value).toJson()).toLi
st(); | 17492 _json["peerIp"] = peerIp; |
| 17493 } |
| 17494 if (region != null) { |
| 17495 _json["region"] = region; |
| 15651 } | 17496 } |
| 15652 if (selfLink != null) { | 17497 if (selfLink != null) { |
| 15653 _json["selfLink"] = selfLink; | 17498 _json["selfLink"] = selfLink; |
| 15654 } | 17499 } |
| 15655 if (tests != null) { | 17500 if (sharedSecret != null) { |
| 15656 _json["tests"] = tests.map((value) => (value).toJson()).toList(); | 17501 _json["sharedSecret"] = sharedSecret; |
| 17502 } |
| 17503 if (sharedSecretHash != null) { |
| 17504 _json["sharedSecretHash"] = sharedSecretHash; |
| 17505 } |
| 17506 if (status != null) { |
| 17507 _json["status"] = status; |
| 17508 } |
| 17509 if (targetVpnGateway != null) { |
| 17510 _json["targetVpnGateway"] = targetVpnGateway; |
| 15657 } | 17511 } |
| 15658 return _json; | 17512 return _json; |
| 15659 } | 17513 } |
| 15660 } | 17514 } |
| 15661 | 17515 |
| 15662 | 17516 |
| 15663 /** Contains a list of UrlMap resources. */ | 17517 class VpnTunnelAggregatedList { |
| 15664 class UrlMapList { | |
| 15665 /** | 17518 /** |
| 15666 * Unique identifier for the resource; defined by the server (output only). | 17519 * [Output Only] Unique identifier for the resource; defined by the server. |
| 15667 */ | 17520 */ |
| 15668 core.String id; | 17521 core.String id; |
| 15669 | 17522 |
| 15670 /** A list of UrlMap resources. */ | 17523 /** [Output Only] A map of scoped vpn tunnel lists. */ |
| 15671 core.List<UrlMap> items; | 17524 core.Map<core.String, VpnTunnelsScopedList> items; |
| 15672 | 17525 |
| 15673 /** Type of resource. */ | 17526 /** |
| 17527 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. |
| 17528 */ |
| 15674 core.String kind; | 17529 core.String kind; |
| 15675 | 17530 |
| 15676 /** A token used to continue a truncated list request (output only). */ | 17531 /** [Output Only] A token used to continue a truncated list request. */ |
| 15677 core.String nextPageToken; | 17532 core.String nextPageToken; |
| 15678 | 17533 |
| 15679 /** Server defined URL for this resource (output only). */ | 17534 /** [Output Only] Server defined URL for this resource. */ |
| 15680 core.String selfLink; | 17535 core.String selfLink; |
| 15681 | 17536 |
| 15682 | 17537 |
| 15683 UrlMapList(); | 17538 VpnTunnelAggregatedList(); |
| 15684 | 17539 |
| 15685 UrlMapList.fromJson(core.Map _json) { | 17540 VpnTunnelAggregatedList.fromJson(core.Map _json) { |
| 15686 if (_json.containsKey("id")) { | 17541 if (_json.containsKey("id")) { |
| 15687 id = _json["id"]; | 17542 id = _json["id"]; |
| 15688 } | 17543 } |
| 15689 if (_json.containsKey("items")) { | 17544 if (_json.containsKey("items")) { |
| 15690 items = _json["items"].map((value) => new UrlMap.fromJson(value)).toList()
; | 17545 items = commons.mapMap(_json["items"], (item) => new VpnTunnelsScopedList.
fromJson(item)); |
| 15691 } | 17546 } |
| 15692 if (_json.containsKey("kind")) { | 17547 if (_json.containsKey("kind")) { |
| 15693 kind = _json["kind"]; | 17548 kind = _json["kind"]; |
| 15694 } | 17549 } |
| 15695 if (_json.containsKey("nextPageToken")) { | 17550 if (_json.containsKey("nextPageToken")) { |
| 15696 nextPageToken = _json["nextPageToken"]; | 17551 nextPageToken = _json["nextPageToken"]; |
| 15697 } | 17552 } |
| 15698 if (_json.containsKey("selfLink")) { | 17553 if (_json.containsKey("selfLink")) { |
| 15699 selfLink = _json["selfLink"]; | 17554 selfLink = _json["selfLink"]; |
| 15700 } | 17555 } |
| 15701 } | 17556 } |
| 15702 | 17557 |
| 15703 core.Map toJson() { | 17558 core.Map toJson() { |
| 15704 var _json = new core.Map(); | 17559 var _json = new core.Map(); |
| 15705 if (id != null) { | 17560 if (id != null) { |
| 15706 _json["id"] = id; | 17561 _json["id"] = id; |
| 15707 } | 17562 } |
| 15708 if (items != null) { | 17563 if (items != null) { |
| 15709 _json["items"] = items.map((value) => (value).toJson()).toList(); | 17564 _json["items"] = commons.mapMap(items, (item) => (item).toJson()); |
| 15710 } | 17565 } |
| 15711 if (kind != null) { | 17566 if (kind != null) { |
| 15712 _json["kind"] = kind; | 17567 _json["kind"] = kind; |
| 15713 } | 17568 } |
| 15714 if (nextPageToken != null) { | 17569 if (nextPageToken != null) { |
| 15715 _json["nextPageToken"] = nextPageToken; | 17570 _json["nextPageToken"] = nextPageToken; |
| 15716 } | 17571 } |
| 15717 if (selfLink != null) { | 17572 if (selfLink != null) { |
| 15718 _json["selfLink"] = selfLink; | 17573 _json["selfLink"] = selfLink; |
| 15719 } | 17574 } |
| 15720 return _json; | 17575 return _json; |
| 15721 } | 17576 } |
| 15722 } | 17577 } |
| 15723 | 17578 |
| 15724 | 17579 |
| 15725 /** Not documented yet. */ | 17580 /** Contains a list of VpnTunnel resources. */ |
| 15726 class UrlMapReference { | 17581 class VpnTunnelList { |
| 15727 /** Not documented yet. */ | 17582 /** |
| 15728 core.String urlMap; | 17583 * [Output Only] Unique identifier for the resource; defined by the server. |
| 15729 | 17584 */ |
| 15730 | 17585 core.String id; |
| 15731 UrlMapReference(); | 17586 |
| 15732 | 17587 /** [Output Only] A list of VpnTunnel resources. */ |
| 15733 UrlMapReference.fromJson(core.Map _json) { | 17588 core.List<VpnTunnel> items; |
| 15734 if (_json.containsKey("urlMap")) { | 17589 |
| 15735 urlMap = _json["urlMap"]; | 17590 /** |
| 15736 } | 17591 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. |
| 15737 } | 17592 */ |
| 15738 | 17593 core.String kind; |
| 15739 core.Map toJson() { | 17594 |
| 15740 var _json = new core.Map(); | 17595 /** [Output Only] A token used to continue a truncated list request. */ |
| 15741 if (urlMap != null) { | 17596 core.String nextPageToken; |
| 15742 _json["urlMap"] = urlMap; | 17597 |
| 15743 } | 17598 /** [Output Only] Server-defined URL for the resource. */ |
| 15744 return _json; | 17599 core.String selfLink; |
| 15745 } | 17600 |
| 15746 } | 17601 |
| 15747 | 17602 VpnTunnelList(); |
| 15748 | 17603 |
| 15749 /** Message for the expected URL mappings. */ | 17604 VpnTunnelList.fromJson(core.Map _json) { |
| 15750 class UrlMapTest { | 17605 if (_json.containsKey("id")) { |
| 15751 /** Description of this test case. */ | 17606 id = _json["id"]; |
| 17607 } |
| 17608 if (_json.containsKey("items")) { |
| 17609 items = _json["items"].map((value) => new VpnTunnel.fromJson(value)).toLis
t(); |
| 17610 } |
| 17611 if (_json.containsKey("kind")) { |
| 17612 kind = _json["kind"]; |
| 17613 } |
| 17614 if (_json.containsKey("nextPageToken")) { |
| 17615 nextPageToken = _json["nextPageToken"]; |
| 17616 } |
| 17617 if (_json.containsKey("selfLink")) { |
| 17618 selfLink = _json["selfLink"]; |
| 17619 } |
| 17620 } |
| 17621 |
| 17622 core.Map toJson() { |
| 17623 var _json = new core.Map(); |
| 17624 if (id != null) { |
| 17625 _json["id"] = id; |
| 17626 } |
| 17627 if (items != null) { |
| 17628 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 17629 } |
| 17630 if (kind != null) { |
| 17631 _json["kind"] = kind; |
| 17632 } |
| 17633 if (nextPageToken != null) { |
| 17634 _json["nextPageToken"] = nextPageToken; |
| 17635 } |
| 17636 if (selfLink != null) { |
| 17637 _json["selfLink"] = selfLink; |
| 17638 } |
| 17639 return _json; |
| 17640 } |
| 17641 } |
| 17642 |
| 17643 |
| 17644 class VpnTunnelsScopedListWarningData { |
| 17645 /** [Output Only] A key for the warning data. */ |
| 17646 core.String key; |
| 17647 |
| 17648 /** [Output Only] A warning data value corresponding to the key. */ |
| 17649 core.String value; |
| 17650 |
| 17651 |
| 17652 VpnTunnelsScopedListWarningData(); |
| 17653 |
| 17654 VpnTunnelsScopedListWarningData.fromJson(core.Map _json) { |
| 17655 if (_json.containsKey("key")) { |
| 17656 key = _json["key"]; |
| 17657 } |
| 17658 if (_json.containsKey("value")) { |
| 17659 value = _json["value"]; |
| 17660 } |
| 17661 } |
| 17662 |
| 17663 core.Map toJson() { |
| 17664 var _json = new core.Map(); |
| 17665 if (key != null) { |
| 17666 _json["key"] = key; |
| 17667 } |
| 17668 if (value != null) { |
| 17669 _json["value"] = value; |
| 17670 } |
| 17671 return _json; |
| 17672 } |
| 17673 } |
| 17674 |
| 17675 |
| 17676 /** |
| 17677 * Informational warning which replaces the list of addresses when the list is |
| 17678 * empty. |
| 17679 */ |
| 17680 class VpnTunnelsScopedListWarning { |
| 17681 /** |
| 17682 * [Output Only] The warning type identifier for this warning. |
| 17683 * Possible string values are: |
| 17684 * - "DEPRECATED_RESOURCE_USED" |
| 17685 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" |
| 17686 * - "INJECTED_KERNELS_DEPRECATED" |
| 17687 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" |
| 17688 * - "NEXT_HOP_CANNOT_IP_FORWARD" |
| 17689 * - "NEXT_HOP_INSTANCE_NOT_FOUND" |
| 17690 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" |
| 17691 * - "NEXT_HOP_NOT_RUNNING" |
| 17692 * - "NO_RESULTS_ON_PAGE" |
| 17693 * - "REQUIRED_TOS_AGREEMENT" |
| 17694 * - "RESOURCE_NOT_DELETED" |
| 17695 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" |
| 17696 * - "UNREACHABLE" |
| 17697 */ |
| 17698 core.String code; |
| 17699 |
| 17700 /** [Output Only] Metadata for this warning in key: value format. */ |
| 17701 core.List<VpnTunnelsScopedListWarningData> data; |
| 17702 |
| 17703 /** [Output Only] Optional human-readable details for this warning. */ |
| 17704 core.String message; |
| 17705 |
| 17706 |
| 17707 VpnTunnelsScopedListWarning(); |
| 17708 |
| 17709 VpnTunnelsScopedListWarning.fromJson(core.Map _json) { |
| 17710 if (_json.containsKey("code")) { |
| 17711 code = _json["code"]; |
| 17712 } |
| 17713 if (_json.containsKey("data")) { |
| 17714 data = _json["data"].map((value) => new VpnTunnelsScopedListWarningData.fr
omJson(value)).toList(); |
| 17715 } |
| 17716 if (_json.containsKey("message")) { |
| 17717 message = _json["message"]; |
| 17718 } |
| 17719 } |
| 17720 |
| 17721 core.Map toJson() { |
| 17722 var _json = new core.Map(); |
| 17723 if (code != null) { |
| 17724 _json["code"] = code; |
| 17725 } |
| 17726 if (data != null) { |
| 17727 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 17728 } |
| 17729 if (message != null) { |
| 17730 _json["message"] = message; |
| 17731 } |
| 17732 return _json; |
| 17733 } |
| 17734 } |
| 17735 |
| 17736 |
| 17737 class VpnTunnelsScopedList { |
| 17738 /** List of vpn tunnels contained in this scope. */ |
| 17739 core.List<VpnTunnel> vpnTunnels; |
| 17740 |
| 17741 /** |
| 17742 * Informational warning which replaces the list of addresses when the list is |
| 17743 * empty. |
| 17744 */ |
| 17745 VpnTunnelsScopedListWarning warning; |
| 17746 |
| 17747 |
| 17748 VpnTunnelsScopedList(); |
| 17749 |
| 17750 VpnTunnelsScopedList.fromJson(core.Map _json) { |
| 17751 if (_json.containsKey("vpnTunnels")) { |
| 17752 vpnTunnels = _json["vpnTunnels"].map((value) => new VpnTunnel.fromJson(val
ue)).toList(); |
| 17753 } |
| 17754 if (_json.containsKey("warning")) { |
| 17755 warning = new VpnTunnelsScopedListWarning.fromJson(_json["warning"]); |
| 17756 } |
| 17757 } |
| 17758 |
| 17759 core.Map toJson() { |
| 17760 var _json = new core.Map(); |
| 17761 if (vpnTunnels != null) { |
| 17762 _json["vpnTunnels"] = vpnTunnels.map((value) => (value).toJson()).toList()
; |
| 17763 } |
| 17764 if (warning != null) { |
| 17765 _json["warning"] = (warning).toJson(); |
| 17766 } |
| 17767 return _json; |
| 17768 } |
| 17769 } |
| 17770 |
| 17771 |
| 17772 class ZoneMaintenanceWindows { |
| 17773 /** |
| 17774 * [Output Only] Starting time of the maintenance window, in RFC3339 format. |
| 17775 */ |
| 17776 core.String beginTime; |
| 17777 |
| 17778 /** [Output Only] Textual description of the maintenance window. */ |
| 15752 core.String description; | 17779 core.String description; |
| 15753 | 17780 |
| 15754 /** Host portion of the URL. */ | 17781 /** |
| 15755 core.String host; | 17782 * [Output Only] Ending time of the maintenance window, in RFC3339 format. |
| 15756 | 17783 */ |
| 15757 /** Path portion of the URL. */ | |
| 15758 core.String path; | |
| 15759 | |
| 15760 /** Expected BackendService resource the given URL should be mapped to. */ | |
| 15761 core.String service; | |
| 15762 | |
| 15763 | |
| 15764 UrlMapTest(); | |
| 15765 | |
| 15766 UrlMapTest.fromJson(core.Map _json) { | |
| 15767 if (_json.containsKey("description")) { | |
| 15768 description = _json["description"]; | |
| 15769 } | |
| 15770 if (_json.containsKey("host")) { | |
| 15771 host = _json["host"]; | |
| 15772 } | |
| 15773 if (_json.containsKey("path")) { | |
| 15774 path = _json["path"]; | |
| 15775 } | |
| 15776 if (_json.containsKey("service")) { | |
| 15777 service = _json["service"]; | |
| 15778 } | |
| 15779 } | |
| 15780 | |
| 15781 core.Map toJson() { | |
| 15782 var _json = new core.Map(); | |
| 15783 if (description != null) { | |
| 15784 _json["description"] = description; | |
| 15785 } | |
| 15786 if (host != null) { | |
| 15787 _json["host"] = host; | |
| 15788 } | |
| 15789 if (path != null) { | |
| 15790 _json["path"] = path; | |
| 15791 } | |
| 15792 if (service != null) { | |
| 15793 _json["service"] = service; | |
| 15794 } | |
| 15795 return _json; | |
| 15796 } | |
| 15797 } | |
| 15798 | |
| 15799 | |
| 15800 /** Message representing the validation result for a UrlMap. */ | |
| 15801 class UrlMapValidationResult { | |
| 15802 /** Not documented yet. */ | |
| 15803 core.List<core.String> loadErrors; | |
| 15804 | |
| 15805 /** | |
| 15806 * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' | |
| 15807 * indicates the reasons. | |
| 15808 */ | |
| 15809 core.bool loadSucceeded; | |
| 15810 | |
| 15811 /** Not documented yet. */ | |
| 15812 core.List<TestFailure> testFailures; | |
| 15813 | |
| 15814 /** | |
| 15815 * If successfully loaded, this field indicates whether the test passed. If | |
| 15816 * false, 'testFailures's indicate the reason of failure. | |
| 15817 */ | |
| 15818 core.bool testPassed; | |
| 15819 | |
| 15820 | |
| 15821 UrlMapValidationResult(); | |
| 15822 | |
| 15823 UrlMapValidationResult.fromJson(core.Map _json) { | |
| 15824 if (_json.containsKey("loadErrors")) { | |
| 15825 loadErrors = _json["loadErrors"]; | |
| 15826 } | |
| 15827 if (_json.containsKey("loadSucceeded")) { | |
| 15828 loadSucceeded = _json["loadSucceeded"]; | |
| 15829 } | |
| 15830 if (_json.containsKey("testFailures")) { | |
| 15831 testFailures = _json["testFailures"].map((value) => new TestFailure.fromJs
on(value)).toList(); | |
| 15832 } | |
| 15833 if (_json.containsKey("testPassed")) { | |
| 15834 testPassed = _json["testPassed"]; | |
| 15835 } | |
| 15836 } | |
| 15837 | |
| 15838 core.Map toJson() { | |
| 15839 var _json = new core.Map(); | |
| 15840 if (loadErrors != null) { | |
| 15841 _json["loadErrors"] = loadErrors; | |
| 15842 } | |
| 15843 if (loadSucceeded != null) { | |
| 15844 _json["loadSucceeded"] = loadSucceeded; | |
| 15845 } | |
| 15846 if (testFailures != null) { | |
| 15847 _json["testFailures"] = testFailures.map((value) => (value).toJson()).toLi
st(); | |
| 15848 } | |
| 15849 if (testPassed != null) { | |
| 15850 _json["testPassed"] = testPassed; | |
| 15851 } | |
| 15852 return _json; | |
| 15853 } | |
| 15854 } | |
| 15855 | |
| 15856 | |
| 15857 /** Not documented yet. */ | |
| 15858 class UrlMapsValidateRequest { | |
| 15859 /** Content of the UrlMap to be validated. */ | |
| 15860 UrlMap resource; | |
| 15861 | |
| 15862 | |
| 15863 UrlMapsValidateRequest(); | |
| 15864 | |
| 15865 UrlMapsValidateRequest.fromJson(core.Map _json) { | |
| 15866 if (_json.containsKey("resource")) { | |
| 15867 resource = new UrlMap.fromJson(_json["resource"]); | |
| 15868 } | |
| 15869 } | |
| 15870 | |
| 15871 core.Map toJson() { | |
| 15872 var _json = new core.Map(); | |
| 15873 if (resource != null) { | |
| 15874 _json["resource"] = (resource).toJson(); | |
| 15875 } | |
| 15876 return _json; | |
| 15877 } | |
| 15878 } | |
| 15879 | |
| 15880 | |
| 15881 /** Not documented yet. */ | |
| 15882 class UrlMapsValidateResponse { | |
| 15883 /** Not documented yet. */ | |
| 15884 UrlMapValidationResult result; | |
| 15885 | |
| 15886 | |
| 15887 UrlMapsValidateResponse(); | |
| 15888 | |
| 15889 UrlMapsValidateResponse.fromJson(core.Map _json) { | |
| 15890 if (_json.containsKey("result")) { | |
| 15891 result = new UrlMapValidationResult.fromJson(_json["result"]); | |
| 15892 } | |
| 15893 } | |
| 15894 | |
| 15895 core.Map toJson() { | |
| 15896 var _json = new core.Map(); | |
| 15897 if (result != null) { | |
| 15898 _json["result"] = (result).toJson(); | |
| 15899 } | |
| 15900 return _json; | |
| 15901 } | |
| 15902 } | |
| 15903 | |
| 15904 | |
| 15905 /** | |
| 15906 * The location in Cloud Storage and naming method of the daily usage report. | |
| 15907 * Contains bucket_name and report_name prefix. | |
| 15908 */ | |
| 15909 class UsageExportLocation { | |
| 15910 /** | |
| 15911 * The name of an existing bucket in Cloud Storage where the usage report | |
| 15912 * object is stored. The Google Service Account is granted write access to | |
| 15913 * this bucket. This is simply the bucket name, with no "gs://" or | |
| 15914 * "https://storage.googleapis.com/" in front of it. | |
| 15915 */ | |
| 15916 core.String bucketName; | |
| 15917 | |
| 15918 /** | |
| 15919 * An optional prefix for the name of the usage report object stored in | |
| 15920 * bucket_name. If not supplied, defaults to "usage_". The report is stored as | |
| 15921 * a CSV file named _gce_.csv. where is the day of the usage according to | |
| 15922 * Pacific Time. The prefix should conform to Cloud Storage object naming | |
| 15923 * conventions. | |
| 15924 */ | |
| 15925 core.String reportNamePrefix; | |
| 15926 | |
| 15927 | |
| 15928 UsageExportLocation(); | |
| 15929 | |
| 15930 UsageExportLocation.fromJson(core.Map _json) { | |
| 15931 if (_json.containsKey("bucketName")) { | |
| 15932 bucketName = _json["bucketName"]; | |
| 15933 } | |
| 15934 if (_json.containsKey("reportNamePrefix")) { | |
| 15935 reportNamePrefix = _json["reportNamePrefix"]; | |
| 15936 } | |
| 15937 } | |
| 15938 | |
| 15939 core.Map toJson() { | |
| 15940 var _json = new core.Map(); | |
| 15941 if (bucketName != null) { | |
| 15942 _json["bucketName"] = bucketName; | |
| 15943 } | |
| 15944 if (reportNamePrefix != null) { | |
| 15945 _json["reportNamePrefix"] = reportNamePrefix; | |
| 15946 } | |
| 15947 return _json; | |
| 15948 } | |
| 15949 } | |
| 15950 | |
| 15951 | |
| 15952 /** Not documented yet. */ | |
| 15953 class ZoneMaintenanceWindows { | |
| 15954 /** Begin time of the maintenance window, in RFC 3339 format. */ | |
| 15955 core.String beginTime; | |
| 15956 | |
| 15957 /** Textual description of the maintenance window. */ | |
| 15958 core.String description; | |
| 15959 | |
| 15960 /** End time of the maintenance window, in RFC 3339 format. */ | |
| 15961 core.String endTime; | 17784 core.String endTime; |
| 15962 | 17785 |
| 15963 /** Name of the maintenance window. */ | 17786 /** [Output Only] Name of the maintenance window. */ |
| 15964 core.String name; | 17787 core.String name; |
| 15965 | 17788 |
| 15966 | 17789 |
| 15967 ZoneMaintenanceWindows(); | 17790 ZoneMaintenanceWindows(); |
| 15968 | 17791 |
| 15969 ZoneMaintenanceWindows.fromJson(core.Map _json) { | 17792 ZoneMaintenanceWindows.fromJson(core.Map _json) { |
| 15970 if (_json.containsKey("beginTime")) { | 17793 if (_json.containsKey("beginTime")) { |
| 15971 beginTime = _json["beginTime"]; | 17794 beginTime = _json["beginTime"]; |
| 15972 } | 17795 } |
| 15973 if (_json.containsKey("description")) { | 17796 if (_json.containsKey("description")) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 15993 _json["endTime"] = endTime; | 17816 _json["endTime"] = endTime; |
| 15994 } | 17817 } |
| 15995 if (name != null) { | 17818 if (name != null) { |
| 15996 _json["name"] = name; | 17819 _json["name"] = name; |
| 15997 } | 17820 } |
| 15998 return _json; | 17821 return _json; |
| 15999 } | 17822 } |
| 16000 } | 17823 } |
| 16001 | 17824 |
| 16002 | 17825 |
| 16003 /** A zone resource. */ | 17826 /** A Zone resource. */ |
| 16004 class Zone { | 17827 class Zone { |
| 16005 /** Creation timestamp in RFC3339 text format (output only). */ | 17828 /** [Output Only] Creation timestamp in RFC3339 text format. */ |
| 16006 core.String creationTimestamp; | 17829 core.String creationTimestamp; |
| 16007 | 17830 |
| 16008 /** The deprecation status associated with this zone. */ | 17831 /** [Output Only] The deprecation status associated with this zone. */ |
| 16009 DeprecationStatus deprecated; | 17832 DeprecationStatus deprecated; |
| 16010 | 17833 |
| 16011 /** Textual description of the resource. */ | 17834 /** [Output Only] Textual description of the resource. */ |
| 16012 core.String description; | 17835 core.String description; |
| 16013 | 17836 |
| 16014 /** | 17837 /** |
| 16015 * Unique identifier for the resource; defined by the server (output only). | 17838 * [Output Only] Unique identifier for the resource; defined by the server. |
| 16016 */ | 17839 */ |
| 16017 core.String id; | 17840 core.String id; |
| 16018 | 17841 |
| 16019 /** Type of the resource. */ | 17842 /** [Output Only] Type of the resource. Always kind#zone for zones. */ |
| 16020 core.String kind; | 17843 core.String kind; |
| 16021 | 17844 |
| 16022 /** | 17845 /** |
| 16023 * Scheduled maintenance windows for the zone. When the zone is in a | 17846 * [Output Only] Any scheduled maintenance windows for this zone. When the |
| 16024 * maintenance window, all resources which reside in the zone will be | 17847 * zone is in a maintenance window, all resources which reside in the zone |
| 16025 * unavailable. | 17848 * will be unavailable. For more information, see Maintenance Windows |
| 16026 */ | 17849 */ |
| 16027 core.List<ZoneMaintenanceWindows> maintenanceWindows; | 17850 core.List<ZoneMaintenanceWindows> maintenanceWindows; |
| 16028 | 17851 |
| 16029 /** Name of the resource. */ | 17852 /** [Output Only] Name of the resource. */ |
| 16030 core.String name; | 17853 core.String name; |
| 16031 | 17854 |
| 16032 /** Full URL reference to the region which hosts the zone (output only). */ | 17855 /** [Output Only] Full URL reference to the region which hosts the zone. */ |
| 16033 core.String region; | 17856 core.String region; |
| 16034 | 17857 |
| 16035 /** Server defined URL for the resource (output only). */ | 17858 /** [Output Only] Server defined URL for the resource. */ |
| 16036 core.String selfLink; | 17859 core.String selfLink; |
| 16037 | 17860 |
| 16038 /** | 17861 /** |
| 16039 * Status of the zone. "UP" or "DOWN". | 17862 * [Output Only] Status of the zone, either UP or DOWN. |
| 16040 * Possible string values are: | 17863 * Possible string values are: |
| 16041 * - "DOWN" | 17864 * - "DOWN" |
| 16042 * - "UP" | 17865 * - "UP" |
| 16043 */ | 17866 */ |
| 16044 core.String status; | 17867 core.String status; |
| 16045 | 17868 |
| 16046 | 17869 |
| 16047 Zone(); | 17870 Zone(); |
| 16048 | 17871 |
| 16049 Zone.fromJson(core.Map _json) { | 17872 Zone.fromJson(core.Map _json) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16112 _json["status"] = status; | 17935 _json["status"] = status; |
| 16113 } | 17936 } |
| 16114 return _json; | 17937 return _json; |
| 16115 } | 17938 } |
| 16116 } | 17939 } |
| 16117 | 17940 |
| 16118 | 17941 |
| 16119 /** Contains a list of zone resources. */ | 17942 /** Contains a list of zone resources. */ |
| 16120 class ZoneList { | 17943 class ZoneList { |
| 16121 /** | 17944 /** |
| 16122 * Unique identifier for the resource; defined by the server (output only). | 17945 * [Output Only] Unique identifier for the resource; defined by the server. |
| 16123 */ | 17946 */ |
| 16124 core.String id; | 17947 core.String id; |
| 16125 | 17948 |
| 16126 /** A list of Zone resources. */ | 17949 /** [Output Only] A list of Zone resources. */ |
| 16127 core.List<Zone> items; | 17950 core.List<Zone> items; |
| 16128 | 17951 |
| 16129 /** Type of resource. */ | 17952 /** Type of resource. */ |
| 16130 core.String kind; | 17953 core.String kind; |
| 16131 | 17954 |
| 16132 /** A token used to continue a truncated list request (output only). */ | 17955 /** [Output Only] A token used to continue a truncated list request. */ |
| 16133 core.String nextPageToken; | 17956 core.String nextPageToken; |
| 16134 | 17957 |
| 16135 /** Server defined URL for this resource (output only). */ | 17958 /** Server defined URL for this resource (output only). */ |
| 16136 core.String selfLink; | 17959 core.String selfLink; |
| 16137 | 17960 |
| 16138 | 17961 |
| 16139 ZoneList(); | 17962 ZoneList(); |
| 16140 | 17963 |
| 16141 ZoneList.fromJson(core.Map _json) { | 17964 ZoneList.fromJson(core.Map _json) { |
| 16142 if (_json.containsKey("id")) { | 17965 if (_json.containsKey("id")) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 16169 } | 17992 } |
| 16170 if (nextPageToken != null) { | 17993 if (nextPageToken != null) { |
| 16171 _json["nextPageToken"] = nextPageToken; | 17994 _json["nextPageToken"] = nextPageToken; |
| 16172 } | 17995 } |
| 16173 if (selfLink != null) { | 17996 if (selfLink != null) { |
| 16174 _json["selfLink"] = selfLink; | 17997 _json["selfLink"] = selfLink; |
| 16175 } | 17998 } |
| 16176 return _json; | 17999 return _json; |
| 16177 } | 18000 } |
| 16178 } | 18001 } |
| 16179 | |
| 16180 | |
| OLD | NEW |