| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.appengine.v1beta; | 3 library googleapis_beta.appengine.v1beta; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta'; |
| 16 | 16 |
| 17 /** | 17 /// The App Engine Admin API enables developers to provision and manage their |
| 18 * The App Engine Admin API enables developers to provision and manage their App | 18 /// App Engine applications. |
| 19 * Engine applications. | |
| 20 */ | |
| 21 class AppengineApi { | 19 class AppengineApi { |
| 22 /** View and manage your applications deployed on Google App Engine */ | 20 /// View and manage your applications deployed on Google App Engine |
| 23 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.
admin"; | 21 static const AppengineAdminScope = |
| 22 "https://www.googleapis.com/auth/appengine.admin"; |
| 24 | 23 |
| 25 /** View and manage your data across Google Cloud Platform services */ | 24 /// View and manage your data across Google Cloud Platform services |
| 26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 25 static const CloudPlatformScope = |
| 26 "https://www.googleapis.com/auth/cloud-platform"; |
| 27 | 27 |
| 28 /** View your data across Google Cloud Platform services */ | 28 /// View your data across Google Cloud Platform services |
| 29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 29 static const CloudPlatformReadOnlyScope = |
| 30 | 30 "https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 31 | 31 |
| 32 final commons.ApiRequester _requester; | 32 final commons.ApiRequester _requester; |
| 33 | 33 |
| 34 AppsResourceApi get apps => new AppsResourceApi(_requester); | 34 AppsResourceApi get apps => new AppsResourceApi(_requester); |
| 35 | 35 |
| 36 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : | 36 AppengineApi(http.Client client, |
| 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 37 {core.String rootUrl: "https://appengine.googleapis.com/", |
| 38 core.String servicePath: ""}) |
| 39 : _requester = |
| 40 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 38 } | 41 } |
| 39 | 42 |
| 40 | |
| 41 class AppsResourceApi { | 43 class AppsResourceApi { |
| 42 final commons.ApiRequester _requester; | 44 final commons.ApiRequester _requester; |
| 43 | 45 |
| 44 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => new AppsAu
thorizedCertificatesResourceApi(_requester); | 46 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => |
| 45 AppsAuthorizedDomainsResourceApi get authorizedDomains => new AppsAuthorizedDo
mainsResourceApi(_requester); | 47 new AppsAuthorizedCertificatesResourceApi(_requester); |
| 46 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); | 48 AppsAuthorizedDomainsResourceApi get authorizedDomains => |
| 47 AppsFirewallResourceApi get firewall => new AppsFirewallResourceApi(_requester
); | 49 new AppsAuthorizedDomainsResourceApi(_requester); |
| 48 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 50 AppsDomainMappingsResourceApi get domainMappings => |
| 49 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 51 new AppsDomainMappingsResourceApi(_requester); |
| 50 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 52 AppsFirewallResourceApi get firewall => |
| 53 new AppsFirewallResourceApi(_requester); |
| 54 AppsLocationsResourceApi get locations => |
| 55 new AppsLocationsResourceApi(_requester); |
| 56 AppsOperationsResourceApi get operations => |
| 57 new AppsOperationsResourceApi(_requester); |
| 58 AppsServicesResourceApi get services => |
| 59 new AppsServicesResourceApi(_requester); |
| 51 | 60 |
| 52 AppsResourceApi(commons.ApiRequester client) : | 61 AppsResourceApi(commons.ApiRequester client) : _requester = client; |
| 53 _requester = client; | |
| 54 | 62 |
| 55 /** | 63 /// Creates an App Engine application for a Google Cloud Platform project. |
| 56 * Creates an App Engine application for a Google Cloud Platform project. | 64 /// Required fields: |
| 57 * Required fields: | 65 /// id - The ID of the target Cloud Platform project. |
| 58 * id - The ID of the target Cloud Platform project. | 66 /// location - The region (https://cloud.google.com/appengine/docs/locations) |
| 59 * location - The region (https://cloud.google.com/appengine/docs/locations) | 67 /// where you want the App Engine application located.For more information |
| 60 * where you want the App Engine application located.For more information | 68 /// about App Engine applications, see Managing Projects, Applications, and |
| 61 * about App Engine applications, see Managing Projects, Applications, and | 69 /// Billing (https://cloud.google.com/appengine/docs/python/console/). |
| 62 * Billing (https://cloud.google.com/appengine/docs/python/console/). | 70 /// |
| 63 * | 71 /// [request] - The metadata request object. |
| 64 * [request] - The metadata request object. | 72 /// |
| 65 * | 73 /// Request parameters: |
| 66 * Request parameters: | 74 /// |
| 67 * | 75 /// Completes with a [Operation]. |
| 68 * Completes with a [Operation]. | 76 /// |
| 69 * | 77 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 78 /// an error. |
| 71 * error. | 79 /// |
| 72 * | 80 /// If the used [http.Client] completes with an error when making a REST |
| 73 * If the used [http.Client] completes with an error when making a REST call, | 81 /// call, this method will complete with the same error. |
| 74 * this method will complete with the same error. | |
| 75 */ | |
| 76 async.Future<Operation> create(Application request) { | 82 async.Future<Operation> create(Application request) { |
| 77 var _url = null; | 83 var _url = null; |
| 78 var _queryParams = new core.Map(); | 84 var _queryParams = new core.Map(); |
| 79 var _uploadMedia = null; | 85 var _uploadMedia = null; |
| 80 var _uploadOptions = null; | 86 var _uploadOptions = null; |
| 81 var _downloadOptions = commons.DownloadOptions.Metadata; | 87 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 82 var _body = null; | 88 var _body = null; |
| 83 | 89 |
| 84 if (request != null) { | 90 if (request != null) { |
| 85 _body = convert.JSON.encode((request).toJson()); | 91 _body = convert.JSON.encode((request).toJson()); |
| 86 } | 92 } |
| 87 | 93 |
| 88 _url = 'v1beta/apps'; | 94 _url = 'v1beta/apps'; |
| 89 | 95 |
| 90 var _response = _requester.request(_url, | 96 var _response = _requester.request(_url, "POST", |
| 91 "POST", | 97 body: _body, |
| 92 body: _body, | 98 queryParams: _queryParams, |
| 93 queryParams: _queryParams, | 99 uploadOptions: _uploadOptions, |
| 94 uploadOptions: _uploadOptions, | 100 uploadMedia: _uploadMedia, |
| 95 uploadMedia: _uploadMedia, | 101 downloadOptions: _downloadOptions); |
| 96 downloadOptions: _downloadOptions); | |
| 97 return _response.then((data) => new Operation.fromJson(data)); | 102 return _response.then((data) => new Operation.fromJson(data)); |
| 98 } | 103 } |
| 99 | 104 |
| 100 /** | 105 /// Gets information about an application. |
| 101 * Gets information about an application. | 106 /// |
| 102 * | 107 /// Request parameters: |
| 103 * Request parameters: | 108 /// |
| 104 * | 109 /// [appsId] - Part of `name`. Name of the Application resource to get. |
| 105 * [appsId] - Part of `name`. Name of the Application resource to get. | 110 /// Example: apps/myapp. |
| 106 * Example: apps/myapp. | 111 /// |
| 107 * | 112 /// Completes with a [Application]. |
| 108 * Completes with a [Application]. | 113 /// |
| 109 * | 114 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 110 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 115 /// an error. |
| 111 * error. | 116 /// |
| 112 * | 117 /// If the used [http.Client] completes with an error when making a REST |
| 113 * If the used [http.Client] completes with an error when making a REST call, | 118 /// call, this method will complete with the same error. |
| 114 * this method will complete with the same error. | |
| 115 */ | |
| 116 async.Future<Application> get(core.String appsId) { | 119 async.Future<Application> get(core.String appsId) { |
| 117 var _url = null; | 120 var _url = null; |
| 118 var _queryParams = new core.Map(); | 121 var _queryParams = new core.Map(); |
| 119 var _uploadMedia = null; | 122 var _uploadMedia = null; |
| 120 var _uploadOptions = null; | 123 var _uploadOptions = null; |
| 121 var _downloadOptions = commons.DownloadOptions.Metadata; | 124 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 122 var _body = null; | 125 var _body = null; |
| 123 | 126 |
| 124 if (appsId == null) { | 127 if (appsId == null) { |
| 125 throw new core.ArgumentError("Parameter appsId is required."); | 128 throw new core.ArgumentError("Parameter appsId is required."); |
| 126 } | 129 } |
| 127 | 130 |
| 128 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 131 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 129 | 132 |
| 130 var _response = _requester.request(_url, | 133 var _response = _requester.request(_url, "GET", |
| 131 "GET", | 134 body: _body, |
| 132 body: _body, | 135 queryParams: _queryParams, |
| 133 queryParams: _queryParams, | 136 uploadOptions: _uploadOptions, |
| 134 uploadOptions: _uploadOptions, | 137 uploadMedia: _uploadMedia, |
| 135 uploadMedia: _uploadMedia, | 138 downloadOptions: _downloadOptions); |
| 136 downloadOptions: _downloadOptions); | |
| 137 return _response.then((data) => new Application.fromJson(data)); | 139 return _response.then((data) => new Application.fromJson(data)); |
| 138 } | 140 } |
| 139 | 141 |
| 140 /** | 142 /// Updates the specified Application resource. You can update the following |
| 141 * Updates the specified Application resource. You can update the following | 143 /// fields: |
| 142 * fields: | 144 /// auth_domain - Google authentication domain for controlling user access to |
| 143 * auth_domain - Google authentication domain for controlling user access to | 145 /// the application. |
| 144 * the application. | 146 /// default_cookie_expiration - Cookie expiration policy for the application. |
| 145 * default_cookie_expiration - Cookie expiration policy for the application. | 147 /// |
| 146 * | 148 /// [request] - The metadata request object. |
| 147 * [request] - The metadata request object. | 149 /// |
| 148 * | 150 /// Request parameters: |
| 149 * Request parameters: | 151 /// |
| 150 * | 152 /// [appsId] - Part of `name`. Name of the Application resource to update. |
| 151 * [appsId] - Part of `name`. Name of the Application resource to update. | 153 /// Example: apps/myapp. |
| 152 * Example: apps/myapp. | 154 /// |
| 153 * | 155 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 154 * [updateMask] - Standard field mask for the set of fields to be updated. | 156 /// |
| 155 * | 157 /// Completes with a [Operation]. |
| 156 * Completes with a [Operation]. | 158 /// |
| 157 * | 159 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 160 /// an error. |
| 159 * error. | 161 /// |
| 160 * | 162 /// If the used [http.Client] completes with an error when making a REST |
| 161 * If the used [http.Client] completes with an error when making a REST call, | 163 /// call, this method will complete with the same error. |
| 162 * this method will complete with the same error. | 164 async.Future<Operation> patch(Application request, core.String appsId, |
| 163 */ | 165 {core.String updateMask}) { |
| 164 async.Future<Operation> patch(Application request, core.String appsId, {core.S
tring updateMask}) { | |
| 165 var _url = null; | 166 var _url = null; |
| 166 var _queryParams = new core.Map(); | 167 var _queryParams = new core.Map(); |
| 167 var _uploadMedia = null; | 168 var _uploadMedia = null; |
| 168 var _uploadOptions = null; | 169 var _uploadOptions = null; |
| 169 var _downloadOptions = commons.DownloadOptions.Metadata; | 170 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 170 var _body = null; | 171 var _body = null; |
| 171 | 172 |
| 172 if (request != null) { | 173 if (request != null) { |
| 173 _body = convert.JSON.encode((request).toJson()); | 174 _body = convert.JSON.encode((request).toJson()); |
| 174 } | 175 } |
| 175 if (appsId == null) { | 176 if (appsId == null) { |
| 176 throw new core.ArgumentError("Parameter appsId is required."); | 177 throw new core.ArgumentError("Parameter appsId is required."); |
| 177 } | 178 } |
| 178 if (updateMask != null) { | 179 if (updateMask != null) { |
| 179 _queryParams["updateMask"] = [updateMask]; | 180 _queryParams["updateMask"] = [updateMask]; |
| 180 } | 181 } |
| 181 | 182 |
| 182 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 183 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 183 | 184 |
| 184 var _response = _requester.request(_url, | 185 var _response = _requester.request(_url, "PATCH", |
| 185 "PATCH", | 186 body: _body, |
| 186 body: _body, | 187 queryParams: _queryParams, |
| 187 queryParams: _queryParams, | 188 uploadOptions: _uploadOptions, |
| 188 uploadOptions: _uploadOptions, | 189 uploadMedia: _uploadMedia, |
| 189 uploadMedia: _uploadMedia, | 190 downloadOptions: _downloadOptions); |
| 190 downloadOptions: _downloadOptions); | |
| 191 return _response.then((data) => new Operation.fromJson(data)); | 191 return _response.then((data) => new Operation.fromJson(data)); |
| 192 } | 192 } |
| 193 | 193 |
| 194 /** | 194 /// Recreates the required App Engine features for the specified App Engine |
| 195 * Recreates the required App Engine features for the specified App Engine | 195 /// application, for example a Cloud Storage bucket or App Engine service |
| 196 * application, for example a Cloud Storage bucket or App Engine service | 196 /// account. Use this method if you receive an error message about a missing |
| 197 * account. Use this method if you receive an error message about a missing | 197 /// feature, for example, Error retrieving the App Engine service account. |
| 198 * feature, for example, Error retrieving the App Engine service account. | 198 /// |
| 199 * | 199 /// [request] - The metadata request object. |
| 200 * [request] - The metadata request object. | 200 /// |
| 201 * | 201 /// Request parameters: |
| 202 * Request parameters: | 202 /// |
| 203 * | 203 /// [appsId] - Part of `name`. Name of the application to repair. Example: |
| 204 * [appsId] - Part of `name`. Name of the application to repair. Example: | 204 /// apps/myapp |
| 205 * apps/myapp | 205 /// |
| 206 * | 206 /// Completes with a [Operation]. |
| 207 * Completes with a [Operation]. | 207 /// |
| 208 * | 208 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 209 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 209 /// an error. |
| 210 * error. | 210 /// |
| 211 * | 211 /// If the used [http.Client] completes with an error when making a REST |
| 212 * If the used [http.Client] completes with an error when making a REST call, | 212 /// call, this method will complete with the same error. |
| 213 * this method will complete with the same error. | 213 async.Future<Operation> repair( |
| 214 */ | 214 RepairApplicationRequest request, core.String appsId) { |
| 215 async.Future<Operation> repair(RepairApplicationRequest request, core.String a
ppsId) { | |
| 216 var _url = null; | 215 var _url = null; |
| 217 var _queryParams = new core.Map(); | 216 var _queryParams = new core.Map(); |
| 218 var _uploadMedia = null; | 217 var _uploadMedia = null; |
| 219 var _uploadOptions = null; | 218 var _uploadOptions = null; |
| 220 var _downloadOptions = commons.DownloadOptions.Metadata; | 219 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 221 var _body = null; | 220 var _body = null; |
| 222 | 221 |
| 223 if (request != null) { | 222 if (request != null) { |
| 224 _body = convert.JSON.encode((request).toJson()); | 223 _body = convert.JSON.encode((request).toJson()); |
| 225 } | 224 } |
| 226 if (appsId == null) { | 225 if (appsId == null) { |
| 227 throw new core.ArgumentError("Parameter appsId is required."); | 226 throw new core.ArgumentError("Parameter appsId is required."); |
| 228 } | 227 } |
| 229 | 228 |
| 230 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + ':repair'
; | 229 _url = |
| 230 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + ':repair'; |
| 231 | 231 |
| 232 var _response = _requester.request(_url, | 232 var _response = _requester.request(_url, "POST", |
| 233 "POST", | 233 body: _body, |
| 234 body: _body, | 234 queryParams: _queryParams, |
| 235 queryParams: _queryParams, | 235 uploadOptions: _uploadOptions, |
| 236 uploadOptions: _uploadOptions, | 236 uploadMedia: _uploadMedia, |
| 237 uploadMedia: _uploadMedia, | 237 downloadOptions: _downloadOptions); |
| 238 downloadOptions: _downloadOptions); | |
| 239 return _response.then((data) => new Operation.fromJson(data)); | 238 return _response.then((data) => new Operation.fromJson(data)); |
| 240 } | 239 } |
| 241 | |
| 242 } | 240 } |
| 243 | 241 |
| 244 | |
| 245 class AppsAuthorizedCertificatesResourceApi { | 242 class AppsAuthorizedCertificatesResourceApi { |
| 246 final commons.ApiRequester _requester; | 243 final commons.ApiRequester _requester; |
| 247 | 244 |
| 248 AppsAuthorizedCertificatesResourceApi(commons.ApiRequester client) : | 245 AppsAuthorizedCertificatesResourceApi(commons.ApiRequester client) |
| 249 _requester = client; | 246 : _requester = client; |
| 250 | 247 |
| 251 /** | 248 /// Uploads the specified SSL certificate. |
| 252 * Uploads the specified SSL certificate. | 249 /// |
| 253 * | 250 /// [request] - The metadata request object. |
| 254 * [request] - The metadata request object. | 251 /// |
| 255 * | 252 /// Request parameters: |
| 256 * Request parameters: | 253 /// |
| 257 * | 254 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 258 * [appsId] - Part of `parent`. Name of the parent Application resource. | 255 /// Example: apps/myapp. |
| 259 * Example: apps/myapp. | 256 /// |
| 260 * | 257 /// Completes with a [AuthorizedCertificate]. |
| 261 * Completes with a [AuthorizedCertificate]. | 258 /// |
| 262 * | 259 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 263 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 260 /// an error. |
| 264 * error. | 261 /// |
| 265 * | 262 /// If the used [http.Client] completes with an error when making a REST |
| 266 * If the used [http.Client] completes with an error when making a REST call, | 263 /// call, this method will complete with the same error. |
| 267 * this method will complete with the same error. | 264 async.Future<AuthorizedCertificate> create( |
| 268 */ | 265 AuthorizedCertificate request, core.String appsId) { |
| 269 async.Future<AuthorizedCertificate> create(AuthorizedCertificate request, core
.String appsId) { | |
| 270 var _url = null; | 266 var _url = null; |
| 271 var _queryParams = new core.Map(); | 267 var _queryParams = new core.Map(); |
| 272 var _uploadMedia = null; | 268 var _uploadMedia = null; |
| 273 var _uploadOptions = null; | 269 var _uploadOptions = null; |
| 274 var _downloadOptions = commons.DownloadOptions.Metadata; | 270 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 275 var _body = null; | 271 var _body = null; |
| 276 | 272 |
| 277 if (request != null) { | 273 if (request != null) { |
| 278 _body = convert.JSON.encode((request).toJson()); | 274 _body = convert.JSON.encode((request).toJson()); |
| 279 } | 275 } |
| 280 if (appsId == null) { | 276 if (appsId == null) { |
| 281 throw new core.ArgumentError("Parameter appsId is required."); | 277 throw new core.ArgumentError("Parameter appsId is required."); |
| 282 } | 278 } |
| 283 | 279 |
| 284 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; | 280 _url = 'v1beta/apps/' + |
| 281 commons.Escaper.ecapeVariable('$appsId') + |
| 282 '/authorizedCertificates'; |
| 285 | 283 |
| 286 var _response = _requester.request(_url, | 284 var _response = _requester.request(_url, "POST", |
| 287 "POST", | 285 body: _body, |
| 288 body: _body, | 286 queryParams: _queryParams, |
| 289 queryParams: _queryParams, | 287 uploadOptions: _uploadOptions, |
| 290 uploadOptions: _uploadOptions, | 288 uploadMedia: _uploadMedia, |
| 291 uploadMedia: _uploadMedia, | 289 downloadOptions: _downloadOptions); |
| 292 downloadOptions: _downloadOptions); | |
| 293 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); | 290 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 294 } | 291 } |
| 295 | 292 |
| 296 /** | 293 /// Deletes the specified SSL certificate. |
| 297 * Deletes the specified SSL certificate. | 294 /// |
| 298 * | 295 /// Request parameters: |
| 299 * Request parameters: | 296 /// |
| 300 * | 297 /// [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 301 * [appsId] - Part of `name`. Name of the resource to delete. Example: | 298 /// apps/myapp/authorizedCertificates/12345. |
| 302 * apps/myapp/authorizedCertificates/12345. | 299 /// |
| 303 * | 300 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 304 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. | 301 /// `appsId`. |
| 305 * | 302 /// |
| 306 * Completes with a [Empty]. | 303 /// Completes with a [Empty]. |
| 307 * | 304 /// |
| 308 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 305 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 309 * error. | 306 /// an error. |
| 310 * | 307 /// |
| 311 * If the used [http.Client] completes with an error when making a REST call, | 308 /// If the used [http.Client] completes with an error when making a REST |
| 312 * this method will complete with the same error. | 309 /// call, this method will complete with the same error. |
| 313 */ | 310 async.Future<Empty> delete( |
| 314 async.Future<Empty> delete(core.String appsId, core.String authorizedCertifica
tesId) { | 311 core.String appsId, core.String authorizedCertificatesId) { |
| 315 var _url = null; | 312 var _url = null; |
| 316 var _queryParams = new core.Map(); | 313 var _queryParams = new core.Map(); |
| 317 var _uploadMedia = null; | 314 var _uploadMedia = null; |
| 318 var _uploadOptions = null; | 315 var _uploadOptions = null; |
| 319 var _downloadOptions = commons.DownloadOptions.Metadata; | 316 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 320 var _body = null; | 317 var _body = null; |
| 321 | 318 |
| 322 if (appsId == null) { | 319 if (appsId == null) { |
| 323 throw new core.ArgumentError("Parameter appsId is required."); | 320 throw new core.ArgumentError("Parameter appsId is required."); |
| 324 } | 321 } |
| 325 if (authorizedCertificatesId == null) { | 322 if (authorizedCertificatesId == null) { |
| 326 throw new core.ArgumentError("Parameter authorizedCertificatesId is requir
ed."); | 323 throw new core.ArgumentError( |
| 324 "Parameter authorizedCertificatesId is required."); |
| 327 } | 325 } |
| 328 | 326 |
| 329 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); | 327 _url = 'v1beta/apps/' + |
| 328 commons.Escaper.ecapeVariable('$appsId') + |
| 329 '/authorizedCertificates/' + |
| 330 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 330 | 331 |
| 331 var _response = _requester.request(_url, | 332 var _response = _requester.request(_url, "DELETE", |
| 332 "DELETE", | 333 body: _body, |
| 333 body: _body, | 334 queryParams: _queryParams, |
| 334 queryParams: _queryParams, | 335 uploadOptions: _uploadOptions, |
| 335 uploadOptions: _uploadOptions, | 336 uploadMedia: _uploadMedia, |
| 336 uploadMedia: _uploadMedia, | 337 downloadOptions: _downloadOptions); |
| 337 downloadOptions: _downloadOptions); | |
| 338 return _response.then((data) => new Empty.fromJson(data)); | 338 return _response.then((data) => new Empty.fromJson(data)); |
| 339 } | 339 } |
| 340 | 340 |
| 341 /** | 341 /// Gets the specified SSL certificate. |
| 342 * Gets the specified SSL certificate. | 342 /// |
| 343 * | 343 /// Request parameters: |
| 344 * Request parameters: | 344 /// |
| 345 * | 345 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 346 * [appsId] - Part of `name`. Name of the resource requested. Example: | 346 /// apps/myapp/authorizedCertificates/12345. |
| 347 * apps/myapp/authorizedCertificates/12345. | 347 /// |
| 348 * | 348 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 349 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. | 349 /// `appsId`. |
| 350 * | 350 /// |
| 351 * [view] - Controls the set of fields returned in the GET response. | 351 /// [view] - Controls the set of fields returned in the GET response. |
| 352 * Possible string values are: | 352 /// Possible string values are: |
| 353 * - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. | 353 /// - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. |
| 354 * - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. | 354 /// - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. |
| 355 * | 355 /// |
| 356 * Completes with a [AuthorizedCertificate]. | 356 /// Completes with a [AuthorizedCertificate]. |
| 357 * | 357 /// |
| 358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 358 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 359 * error. | 359 /// an error. |
| 360 * | 360 /// |
| 361 * If the used [http.Client] completes with an error when making a REST call, | 361 /// If the used [http.Client] completes with an error when making a REST |
| 362 * this method will complete with the same error. | 362 /// call, this method will complete with the same error. |
| 363 */ | 363 async.Future<AuthorizedCertificate> get( |
| 364 async.Future<AuthorizedCertificate> get(core.String appsId, core.String author
izedCertificatesId, {core.String view}) { | 364 core.String appsId, core.String authorizedCertificatesId, |
| 365 {core.String view}) { |
| 365 var _url = null; | 366 var _url = null; |
| 366 var _queryParams = new core.Map(); | 367 var _queryParams = new core.Map(); |
| 367 var _uploadMedia = null; | 368 var _uploadMedia = null; |
| 368 var _uploadOptions = null; | 369 var _uploadOptions = null; |
| 369 var _downloadOptions = commons.DownloadOptions.Metadata; | 370 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 370 var _body = null; | 371 var _body = null; |
| 371 | 372 |
| 372 if (appsId == null) { | 373 if (appsId == null) { |
| 373 throw new core.ArgumentError("Parameter appsId is required."); | 374 throw new core.ArgumentError("Parameter appsId is required."); |
| 374 } | 375 } |
| 375 if (authorizedCertificatesId == null) { | 376 if (authorizedCertificatesId == null) { |
| 376 throw new core.ArgumentError("Parameter authorizedCertificatesId is requir
ed."); | 377 throw new core.ArgumentError( |
| 378 "Parameter authorizedCertificatesId is required."); |
| 377 } | 379 } |
| 378 if (view != null) { | 380 if (view != null) { |
| 379 _queryParams["view"] = [view]; | 381 _queryParams["view"] = [view]; |
| 380 } | 382 } |
| 381 | 383 |
| 382 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); | 384 _url = 'v1beta/apps/' + |
| 385 commons.Escaper.ecapeVariable('$appsId') + |
| 386 '/authorizedCertificates/' + |
| 387 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 383 | 388 |
| 384 var _response = _requester.request(_url, | 389 var _response = _requester.request(_url, "GET", |
| 385 "GET", | 390 body: _body, |
| 386 body: _body, | 391 queryParams: _queryParams, |
| 387 queryParams: _queryParams, | 392 uploadOptions: _uploadOptions, |
| 388 uploadOptions: _uploadOptions, | 393 uploadMedia: _uploadMedia, |
| 389 uploadMedia: _uploadMedia, | 394 downloadOptions: _downloadOptions); |
| 390 downloadOptions: _downloadOptions); | |
| 391 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); | 395 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 392 } | 396 } |
| 393 | 397 |
| 394 /** | 398 /// Lists all SSL certificates the user is authorized to administer. |
| 395 * Lists all SSL certificates the user is authorized to administer. | 399 /// |
| 396 * | 400 /// Request parameters: |
| 397 * Request parameters: | 401 /// |
| 398 * | 402 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 399 * [appsId] - Part of `parent`. Name of the parent Application resource. | 403 /// Example: apps/myapp. |
| 400 * Example: apps/myapp. | 404 /// |
| 401 * | 405 /// [pageToken] - Continuation token for fetching the next page of results. |
| 402 * [pageToken] - Continuation token for fetching the next page of results. | 406 /// |
| 403 * | 407 /// [pageSize] - Maximum results to return per page. |
| 404 * [pageSize] - Maximum results to return per page. | 408 /// |
| 405 * | 409 /// [view] - Controls the set of fields returned in the LIST response. |
| 406 * [view] - Controls the set of fields returned in the LIST response. | 410 /// Possible string values are: |
| 407 * Possible string values are: | 411 /// - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. |
| 408 * - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. | 412 /// - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. |
| 409 * - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. | 413 /// |
| 410 * | 414 /// Completes with a [ListAuthorizedCertificatesResponse]. |
| 411 * Completes with a [ListAuthorizedCertificatesResponse]. | 415 /// |
| 412 * | 416 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 413 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 417 /// an error. |
| 414 * error. | 418 /// |
| 415 * | 419 /// If the used [http.Client] completes with an error when making a REST |
| 416 * If the used [http.Client] completes with an error when making a REST call, | 420 /// call, this method will complete with the same error. |
| 417 * this method will complete with the same error. | 421 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, |
| 418 */ | 422 {core.String pageToken, core.int pageSize, core.String view}) { |
| 419 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.String pageToken, core.int pageSize, core.String view}) { | |
| 420 var _url = null; | 423 var _url = null; |
| 421 var _queryParams = new core.Map(); | 424 var _queryParams = new core.Map(); |
| 422 var _uploadMedia = null; | 425 var _uploadMedia = null; |
| 423 var _uploadOptions = null; | 426 var _uploadOptions = null; |
| 424 var _downloadOptions = commons.DownloadOptions.Metadata; | 427 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 425 var _body = null; | 428 var _body = null; |
| 426 | 429 |
| 427 if (appsId == null) { | 430 if (appsId == null) { |
| 428 throw new core.ArgumentError("Parameter appsId is required."); | 431 throw new core.ArgumentError("Parameter appsId is required."); |
| 429 } | 432 } |
| 430 if (pageToken != null) { | 433 if (pageToken != null) { |
| 431 _queryParams["pageToken"] = [pageToken]; | 434 _queryParams["pageToken"] = [pageToken]; |
| 432 } | 435 } |
| 433 if (pageSize != null) { | 436 if (pageSize != null) { |
| 434 _queryParams["pageSize"] = ["${pageSize}"]; | 437 _queryParams["pageSize"] = ["${pageSize}"]; |
| 435 } | 438 } |
| 436 if (view != null) { | 439 if (view != null) { |
| 437 _queryParams["view"] = [view]; | 440 _queryParams["view"] = [view]; |
| 438 } | 441 } |
| 439 | 442 |
| 440 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; | 443 _url = 'v1beta/apps/' + |
| 444 commons.Escaper.ecapeVariable('$appsId') + |
| 445 '/authorizedCertificates'; |
| 441 | 446 |
| 442 var _response = _requester.request(_url, | 447 var _response = _requester.request(_url, "GET", |
| 443 "GET", | 448 body: _body, |
| 444 body: _body, | 449 queryParams: _queryParams, |
| 445 queryParams: _queryParams, | 450 uploadOptions: _uploadOptions, |
| 446 uploadOptions: _uploadOptions, | 451 uploadMedia: _uploadMedia, |
| 447 uploadMedia: _uploadMedia, | 452 downloadOptions: _downloadOptions); |
| 448 downloadOptions: _downloadOptions); | 453 return _response |
| 449 return _response.then((data) => new ListAuthorizedCertificatesResponse.fromJ
son(data)); | 454 .then((data) => new ListAuthorizedCertificatesResponse.fromJson(data)); |
| 450 } | 455 } |
| 451 | 456 |
| 452 /** | 457 /// Updates the specified SSL certificate. To renew a certificate and |
| 453 * Updates the specified SSL certificate. To renew a certificate and maintain | 458 /// maintain its existing domain mappings, update certificate_data with a new |
| 454 * its existing domain mappings, update certificate_data with a new | 459 /// certificate. The new certificate must be applicable to the same domains |
| 455 * certificate. The new certificate must be applicable to the same domains as | 460 /// as the original certificate. The certificate display_name may also be |
| 456 * the original certificate. The certificate display_name may also be updated. | 461 /// updated. |
| 457 * | 462 /// |
| 458 * [request] - The metadata request object. | 463 /// [request] - The metadata request object. |
| 459 * | 464 /// |
| 460 * Request parameters: | 465 /// Request parameters: |
| 461 * | 466 /// |
| 462 * [appsId] - Part of `name`. Name of the resource to update. Example: | 467 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 463 * apps/myapp/authorizedCertificates/12345. | 468 /// apps/myapp/authorizedCertificates/12345. |
| 464 * | 469 /// |
| 465 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. | 470 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 466 * | 471 /// `appsId`. |
| 467 * [updateMask] - Standard field mask for the set of fields to be updated. | 472 /// |
| 468 * Updates are only supported on the certificate_raw_data and display_name | 473 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 469 * fields. | 474 /// Updates are only supported on the certificate_raw_data and display_name |
| 470 * | 475 /// fields. |
| 471 * Completes with a [AuthorizedCertificate]. | 476 /// |
| 472 * | 477 /// Completes with a [AuthorizedCertificate]. |
| 473 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 478 /// |
| 474 * error. | 479 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 475 * | 480 /// an error. |
| 476 * If the used [http.Client] completes with an error when making a REST call, | 481 /// |
| 477 * this method will complete with the same error. | 482 /// If the used [http.Client] completes with an error when making a REST |
| 478 */ | 483 /// call, this method will complete with the same error. |
| 479 async.Future<AuthorizedCertificate> patch(AuthorizedCertificate request, core.
String appsId, core.String authorizedCertificatesId, {core.String updateMask}) { | 484 async.Future<AuthorizedCertificate> patch(AuthorizedCertificate request, |
| 485 core.String appsId, core.String authorizedCertificatesId, |
| 486 {core.String updateMask}) { |
| 480 var _url = null; | 487 var _url = null; |
| 481 var _queryParams = new core.Map(); | 488 var _queryParams = new core.Map(); |
| 482 var _uploadMedia = null; | 489 var _uploadMedia = null; |
| 483 var _uploadOptions = null; | 490 var _uploadOptions = null; |
| 484 var _downloadOptions = commons.DownloadOptions.Metadata; | 491 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 485 var _body = null; | 492 var _body = null; |
| 486 | 493 |
| 487 if (request != null) { | 494 if (request != null) { |
| 488 _body = convert.JSON.encode((request).toJson()); | 495 _body = convert.JSON.encode((request).toJson()); |
| 489 } | 496 } |
| 490 if (appsId == null) { | 497 if (appsId == null) { |
| 491 throw new core.ArgumentError("Parameter appsId is required."); | 498 throw new core.ArgumentError("Parameter appsId is required."); |
| 492 } | 499 } |
| 493 if (authorizedCertificatesId == null) { | 500 if (authorizedCertificatesId == null) { |
| 494 throw new core.ArgumentError("Parameter authorizedCertificatesId is requir
ed."); | 501 throw new core.ArgumentError( |
| 502 "Parameter authorizedCertificatesId is required."); |
| 495 } | 503 } |
| 496 if (updateMask != null) { | 504 if (updateMask != null) { |
| 497 _queryParams["updateMask"] = [updateMask]; | 505 _queryParams["updateMask"] = [updateMask]; |
| 498 } | 506 } |
| 499 | 507 |
| 500 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); | 508 _url = 'v1beta/apps/' + |
| 509 commons.Escaper.ecapeVariable('$appsId') + |
| 510 '/authorizedCertificates/' + |
| 511 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 501 | 512 |
| 502 var _response = _requester.request(_url, | 513 var _response = _requester.request(_url, "PATCH", |
| 503 "PATCH", | 514 body: _body, |
| 504 body: _body, | 515 queryParams: _queryParams, |
| 505 queryParams: _queryParams, | 516 uploadOptions: _uploadOptions, |
| 506 uploadOptions: _uploadOptions, | 517 uploadMedia: _uploadMedia, |
| 507 uploadMedia: _uploadMedia, | 518 downloadOptions: _downloadOptions); |
| 508 downloadOptions: _downloadOptions); | |
| 509 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); | 519 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 510 } | 520 } |
| 511 | |
| 512 } | 521 } |
| 513 | 522 |
| 514 | |
| 515 class AppsAuthorizedDomainsResourceApi { | 523 class AppsAuthorizedDomainsResourceApi { |
| 516 final commons.ApiRequester _requester; | 524 final commons.ApiRequester _requester; |
| 517 | 525 |
| 518 AppsAuthorizedDomainsResourceApi(commons.ApiRequester client) : | 526 AppsAuthorizedDomainsResourceApi(commons.ApiRequester client) |
| 519 _requester = client; | 527 : _requester = client; |
| 520 | 528 |
| 521 /** | 529 /// Lists all domains the user is authorized to administer. |
| 522 * Lists all domains the user is authorized to administer. | 530 /// |
| 523 * | 531 /// Request parameters: |
| 524 * Request parameters: | 532 /// |
| 525 * | 533 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 526 * [appsId] - Part of `parent`. Name of the parent Application resource. | 534 /// Example: apps/myapp. |
| 527 * Example: apps/myapp. | 535 /// |
| 528 * | 536 /// [pageToken] - Continuation token for fetching the next page of results. |
| 529 * [pageToken] - Continuation token for fetching the next page of results. | 537 /// |
| 530 * | 538 /// [pageSize] - Maximum results to return per page. |
| 531 * [pageSize] - Maximum results to return per page. | 539 /// |
| 532 * | 540 /// Completes with a [ListAuthorizedDomainsResponse]. |
| 533 * Completes with a [ListAuthorizedDomainsResponse]. | 541 /// |
| 534 * | 542 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 543 /// an error. |
| 536 * error. | 544 /// |
| 537 * | 545 /// If the used [http.Client] completes with an error when making a REST |
| 538 * If the used [http.Client] completes with an error when making a REST call, | 546 /// call, this method will complete with the same error. |
| 539 * this method will complete with the same error. | 547 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, |
| 540 */ | 548 {core.String pageToken, core.int pageSize}) { |
| 541 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, {core.Str
ing pageToken, core.int pageSize}) { | |
| 542 var _url = null; | 549 var _url = null; |
| 543 var _queryParams = new core.Map(); | 550 var _queryParams = new core.Map(); |
| 544 var _uploadMedia = null; | 551 var _uploadMedia = null; |
| 545 var _uploadOptions = null; | 552 var _uploadOptions = null; |
| 546 var _downloadOptions = commons.DownloadOptions.Metadata; | 553 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 547 var _body = null; | 554 var _body = null; |
| 548 | 555 |
| 549 if (appsId == null) { | 556 if (appsId == null) { |
| 550 throw new core.ArgumentError("Parameter appsId is required."); | 557 throw new core.ArgumentError("Parameter appsId is required."); |
| 551 } | 558 } |
| 552 if (pageToken != null) { | 559 if (pageToken != null) { |
| 553 _queryParams["pageToken"] = [pageToken]; | 560 _queryParams["pageToken"] = [pageToken]; |
| 554 } | 561 } |
| 555 if (pageSize != null) { | 562 if (pageSize != null) { |
| 556 _queryParams["pageSize"] = ["${pageSize}"]; | 563 _queryParams["pageSize"] = ["${pageSize}"]; |
| 557 } | 564 } |
| 558 | 565 |
| 559 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedDomains'; | 566 _url = 'v1beta/apps/' + |
| 567 commons.Escaper.ecapeVariable('$appsId') + |
| 568 '/authorizedDomains'; |
| 560 | 569 |
| 561 var _response = _requester.request(_url, | 570 var _response = _requester.request(_url, "GET", |
| 562 "GET", | 571 body: _body, |
| 563 body: _body, | 572 queryParams: _queryParams, |
| 564 queryParams: _queryParams, | 573 uploadOptions: _uploadOptions, |
| 565 uploadOptions: _uploadOptions, | 574 uploadMedia: _uploadMedia, |
| 566 uploadMedia: _uploadMedia, | 575 downloadOptions: _downloadOptions); |
| 567 downloadOptions: _downloadOptions); | 576 return _response |
| 568 return _response.then((data) => new ListAuthorizedDomainsResponse.fromJson(d
ata)); | 577 .then((data) => new ListAuthorizedDomainsResponse.fromJson(data)); |
| 569 } | 578 } |
| 570 | |
| 571 } | 579 } |
| 572 | 580 |
| 573 | |
| 574 class AppsDomainMappingsResourceApi { | 581 class AppsDomainMappingsResourceApi { |
| 575 final commons.ApiRequester _requester; | 582 final commons.ApiRequester _requester; |
| 576 | 583 |
| 577 AppsDomainMappingsResourceApi(commons.ApiRequester client) : | 584 AppsDomainMappingsResourceApi(commons.ApiRequester client) |
| 578 _requester = client; | 585 : _requester = client; |
| 579 | 586 |
| 580 /** | 587 /// Maps a domain to an application. A user must be authorized to administer |
| 581 * Maps a domain to an application. A user must be authorized to administer a | 588 /// a domain in order to map it to an application. For a list of available |
| 582 * domain in order to map it to an application. For a list of available | 589 /// authorized domains, see AuthorizedDomains.ListAuthorizedDomains. |
| 583 * authorized domains, see AuthorizedDomains.ListAuthorizedDomains. | 590 /// |
| 584 * | 591 /// [request] - The metadata request object. |
| 585 * [request] - The metadata request object. | 592 /// |
| 586 * | 593 /// Request parameters: |
| 587 * Request parameters: | 594 /// |
| 588 * | 595 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 589 * [appsId] - Part of `parent`. Name of the parent Application resource. | 596 /// Example: apps/myapp. |
| 590 * Example: apps/myapp. | 597 /// |
| 591 * | 598 /// Completes with a [Operation]. |
| 592 * Completes with a [Operation]. | 599 /// |
| 593 * | 600 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 594 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 601 /// an error. |
| 595 * error. | 602 /// |
| 596 * | 603 /// If the used [http.Client] completes with an error when making a REST |
| 597 * If the used [http.Client] completes with an error when making a REST call, | 604 /// call, this method will complete with the same error. |
| 598 * this method will complete with the same error. | |
| 599 */ | |
| 600 async.Future<Operation> create(DomainMapping request, core.String appsId) { | 605 async.Future<Operation> create(DomainMapping request, core.String appsId) { |
| 601 var _url = null; | 606 var _url = null; |
| 602 var _queryParams = new core.Map(); | 607 var _queryParams = new core.Map(); |
| 603 var _uploadMedia = null; | 608 var _uploadMedia = null; |
| 604 var _uploadOptions = null; | 609 var _uploadOptions = null; |
| 605 var _downloadOptions = commons.DownloadOptions.Metadata; | 610 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 606 var _body = null; | 611 var _body = null; |
| 607 | 612 |
| 608 if (request != null) { | 613 if (request != null) { |
| 609 _body = convert.JSON.encode((request).toJson()); | 614 _body = convert.JSON.encode((request).toJson()); |
| 610 } | 615 } |
| 611 if (appsId == null) { | 616 if (appsId == null) { |
| 612 throw new core.ArgumentError("Parameter appsId is required."); | 617 throw new core.ArgumentError("Parameter appsId is required."); |
| 613 } | 618 } |
| 614 | 619 |
| 615 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; | 620 _url = 'v1beta/apps/' + |
| 621 commons.Escaper.ecapeVariable('$appsId') + |
| 622 '/domainMappings'; |
| 616 | 623 |
| 617 var _response = _requester.request(_url, | 624 var _response = _requester.request(_url, "POST", |
| 618 "POST", | 625 body: _body, |
| 619 body: _body, | 626 queryParams: _queryParams, |
| 620 queryParams: _queryParams, | 627 uploadOptions: _uploadOptions, |
| 621 uploadOptions: _uploadOptions, | 628 uploadMedia: _uploadMedia, |
| 622 uploadMedia: _uploadMedia, | 629 downloadOptions: _downloadOptions); |
| 623 downloadOptions: _downloadOptions); | |
| 624 return _response.then((data) => new Operation.fromJson(data)); | 630 return _response.then((data) => new Operation.fromJson(data)); |
| 625 } | 631 } |
| 626 | 632 |
| 627 /** | 633 /// Deletes the specified domain mapping. A user must be authorized to |
| 628 * Deletes the specified domain mapping. A user must be authorized to | 634 /// administer the associated domain in order to delete a DomainMapping |
| 629 * administer the associated domain in order to delete a DomainMapping | 635 /// resource. |
| 630 * resource. | 636 /// |
| 631 * | 637 /// Request parameters: |
| 632 * Request parameters: | 638 /// |
| 633 * | 639 /// [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 634 * [appsId] - Part of `name`. Name of the resource to delete. Example: | 640 /// apps/myapp/domainMappings/example.com. |
| 635 * apps/myapp/domainMappings/example.com. | 641 /// |
| 636 * | 642 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 637 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. | 643 /// |
| 638 * | 644 /// Completes with a [Operation]. |
| 639 * Completes with a [Operation]. | 645 /// |
| 640 * | 646 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 647 /// an error. |
| 642 * error. | 648 /// |
| 643 * | 649 /// If the used [http.Client] completes with an error when making a REST |
| 644 * If the used [http.Client] completes with an error when making a REST call, | 650 /// call, this method will complete with the same error. |
| 645 * this method will complete with the same error. | 651 async.Future<Operation> delete( |
| 646 */ | 652 core.String appsId, core.String domainMappingsId) { |
| 647 async.Future<Operation> delete(core.String appsId, core.String domainMappingsI
d) { | |
| 648 var _url = null; | 653 var _url = null; |
| 649 var _queryParams = new core.Map(); | 654 var _queryParams = new core.Map(); |
| 650 var _uploadMedia = null; | 655 var _uploadMedia = null; |
| 651 var _uploadOptions = null; | 656 var _uploadOptions = null; |
| 652 var _downloadOptions = commons.DownloadOptions.Metadata; | 657 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 653 var _body = null; | 658 var _body = null; |
| 654 | 659 |
| 655 if (appsId == null) { | 660 if (appsId == null) { |
| 656 throw new core.ArgumentError("Parameter appsId is required."); | 661 throw new core.ArgumentError("Parameter appsId is required."); |
| 657 } | 662 } |
| 658 if (domainMappingsId == null) { | 663 if (domainMappingsId == null) { |
| 659 throw new core.ArgumentError("Parameter domainMappingsId is required."); | 664 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 660 } | 665 } |
| 661 | 666 |
| 662 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); | 667 _url = 'v1beta/apps/' + |
| 668 commons.Escaper.ecapeVariable('$appsId') + |
| 669 '/domainMappings/' + |
| 670 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 663 | 671 |
| 664 var _response = _requester.request(_url, | 672 var _response = _requester.request(_url, "DELETE", |
| 665 "DELETE", | 673 body: _body, |
| 666 body: _body, | 674 queryParams: _queryParams, |
| 667 queryParams: _queryParams, | 675 uploadOptions: _uploadOptions, |
| 668 uploadOptions: _uploadOptions, | 676 uploadMedia: _uploadMedia, |
| 669 uploadMedia: _uploadMedia, | 677 downloadOptions: _downloadOptions); |
| 670 downloadOptions: _downloadOptions); | |
| 671 return _response.then((data) => new Operation.fromJson(data)); | 678 return _response.then((data) => new Operation.fromJson(data)); |
| 672 } | 679 } |
| 673 | 680 |
| 674 /** | 681 /// Gets the specified domain mapping. |
| 675 * Gets the specified domain mapping. | 682 /// |
| 676 * | 683 /// Request parameters: |
| 677 * Request parameters: | 684 /// |
| 678 * | 685 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 679 * [appsId] - Part of `name`. Name of the resource requested. Example: | 686 /// apps/myapp/domainMappings/example.com. |
| 680 * apps/myapp/domainMappings/example.com. | 687 /// |
| 681 * | 688 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 682 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. | 689 /// |
| 683 * | 690 /// Completes with a [DomainMapping]. |
| 684 * Completes with a [DomainMapping]. | 691 /// |
| 685 * | 692 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 686 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 693 /// an error. |
| 687 * error. | 694 /// |
| 688 * | 695 /// If the used [http.Client] completes with an error when making a REST |
| 689 * If the used [http.Client] completes with an error when making a REST call, | 696 /// call, this method will complete with the same error. |
| 690 * this method will complete with the same error. | 697 async.Future<DomainMapping> get( |
| 691 */ | 698 core.String appsId, core.String domainMappingsId) { |
| 692 async.Future<DomainMapping> get(core.String appsId, core.String domainMappings
Id) { | |
| 693 var _url = null; | 699 var _url = null; |
| 694 var _queryParams = new core.Map(); | 700 var _queryParams = new core.Map(); |
| 695 var _uploadMedia = null; | 701 var _uploadMedia = null; |
| 696 var _uploadOptions = null; | 702 var _uploadOptions = null; |
| 697 var _downloadOptions = commons.DownloadOptions.Metadata; | 703 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 698 var _body = null; | 704 var _body = null; |
| 699 | 705 |
| 700 if (appsId == null) { | 706 if (appsId == null) { |
| 701 throw new core.ArgumentError("Parameter appsId is required."); | 707 throw new core.ArgumentError("Parameter appsId is required."); |
| 702 } | 708 } |
| 703 if (domainMappingsId == null) { | 709 if (domainMappingsId == null) { |
| 704 throw new core.ArgumentError("Parameter domainMappingsId is required."); | 710 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 705 } | 711 } |
| 706 | 712 |
| 707 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); | 713 _url = 'v1beta/apps/' + |
| 714 commons.Escaper.ecapeVariable('$appsId') + |
| 715 '/domainMappings/' + |
| 716 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 708 | 717 |
| 709 var _response = _requester.request(_url, | 718 var _response = _requester.request(_url, "GET", |
| 710 "GET", | 719 body: _body, |
| 711 body: _body, | 720 queryParams: _queryParams, |
| 712 queryParams: _queryParams, | 721 uploadOptions: _uploadOptions, |
| 713 uploadOptions: _uploadOptions, | 722 uploadMedia: _uploadMedia, |
| 714 uploadMedia: _uploadMedia, | 723 downloadOptions: _downloadOptions); |
| 715 downloadOptions: _downloadOptions); | |
| 716 return _response.then((data) => new DomainMapping.fromJson(data)); | 724 return _response.then((data) => new DomainMapping.fromJson(data)); |
| 717 } | 725 } |
| 718 | 726 |
| 719 /** | 727 /// Lists the domain mappings on an application. |
| 720 * Lists the domain mappings on an application. | 728 /// |
| 721 * | 729 /// Request parameters: |
| 722 * Request parameters: | 730 /// |
| 723 * | 731 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 724 * [appsId] - Part of `parent`. Name of the parent Application resource. | 732 /// Example: apps/myapp. |
| 725 * Example: apps/myapp. | 733 /// |
| 726 * | 734 /// [pageToken] - Continuation token for fetching the next page of results. |
| 727 * [pageToken] - Continuation token for fetching the next page of results. | 735 /// |
| 728 * | 736 /// [pageSize] - Maximum results to return per page. |
| 729 * [pageSize] - Maximum results to return per page. | 737 /// |
| 730 * | 738 /// Completes with a [ListDomainMappingsResponse]. |
| 731 * Completes with a [ListDomainMappingsResponse]. | 739 /// |
| 732 * | 740 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 733 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 741 /// an error. |
| 734 * error. | 742 /// |
| 735 * | 743 /// If the used [http.Client] completes with an error when making a REST |
| 736 * If the used [http.Client] completes with an error when making a REST call, | 744 /// call, this method will complete with the same error. |
| 737 * this method will complete with the same error. | 745 async.Future<ListDomainMappingsResponse> list(core.String appsId, |
| 738 */ | 746 {core.String pageToken, core.int pageSize}) { |
| 739 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.String
pageToken, core.int pageSize}) { | |
| 740 var _url = null; | 747 var _url = null; |
| 741 var _queryParams = new core.Map(); | 748 var _queryParams = new core.Map(); |
| 742 var _uploadMedia = null; | 749 var _uploadMedia = null; |
| 743 var _uploadOptions = null; | 750 var _uploadOptions = null; |
| 744 var _downloadOptions = commons.DownloadOptions.Metadata; | 751 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 745 var _body = null; | 752 var _body = null; |
| 746 | 753 |
| 747 if (appsId == null) { | 754 if (appsId == null) { |
| 748 throw new core.ArgumentError("Parameter appsId is required."); | 755 throw new core.ArgumentError("Parameter appsId is required."); |
| 749 } | 756 } |
| 750 if (pageToken != null) { | 757 if (pageToken != null) { |
| 751 _queryParams["pageToken"] = [pageToken]; | 758 _queryParams["pageToken"] = [pageToken]; |
| 752 } | 759 } |
| 753 if (pageSize != null) { | 760 if (pageSize != null) { |
| 754 _queryParams["pageSize"] = ["${pageSize}"]; | 761 _queryParams["pageSize"] = ["${pageSize}"]; |
| 755 } | 762 } |
| 756 | 763 |
| 757 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; | 764 _url = 'v1beta/apps/' + |
| 765 commons.Escaper.ecapeVariable('$appsId') + |
| 766 '/domainMappings'; |
| 758 | 767 |
| 759 var _response = _requester.request(_url, | 768 var _response = _requester.request(_url, "GET", |
| 760 "GET", | 769 body: _body, |
| 761 body: _body, | 770 queryParams: _queryParams, |
| 762 queryParams: _queryParams, | 771 uploadOptions: _uploadOptions, |
| 763 uploadOptions: _uploadOptions, | 772 uploadMedia: _uploadMedia, |
| 764 uploadMedia: _uploadMedia, | 773 downloadOptions: _downloadOptions); |
| 765 downloadOptions: _downloadOptions); | 774 return _response |
| 766 return _response.then((data) => new ListDomainMappingsResponse.fromJson(data
)); | 775 .then((data) => new ListDomainMappingsResponse.fromJson(data)); |
| 767 } | 776 } |
| 768 | 777 |
| 769 /** | 778 /// Updates the specified domain mapping. To map an SSL certificate to a |
| 770 * Updates the specified domain mapping. To map an SSL certificate to a domain | 779 /// domain mapping, update certificate_id to point to an |
| 771 * mapping, update certificate_id to point to an AuthorizedCertificate | 780 /// AuthorizedCertificate resource. A user must be authorized to administer |
| 772 * resource. A user must be authorized to administer the associated domain in | 781 /// the associated domain in order to update a DomainMapping resource. |
| 773 * order to update a DomainMapping resource. | 782 /// |
| 774 * | 783 /// [request] - The metadata request object. |
| 775 * [request] - The metadata request object. | 784 /// |
| 776 * | 785 /// Request parameters: |
| 777 * Request parameters: | 786 /// |
| 778 * | 787 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 779 * [appsId] - Part of `name`. Name of the resource to update. Example: | 788 /// apps/myapp/domainMappings/example.com. |
| 780 * apps/myapp/domainMappings/example.com. | 789 /// |
| 781 * | 790 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 782 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. | 791 /// |
| 783 * | 792 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 784 * [updateMask] - Standard field mask for the set of fields to be updated. | 793 /// |
| 785 * | 794 /// Completes with a [Operation]. |
| 786 * Completes with a [Operation]. | 795 /// |
| 787 * | 796 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 788 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 797 /// an error. |
| 789 * error. | 798 /// |
| 790 * | 799 /// If the used [http.Client] completes with an error when making a REST |
| 791 * If the used [http.Client] completes with an error when making a REST call, | 800 /// call, this method will complete with the same error. |
| 792 * this method will complete with the same error. | 801 async.Future<Operation> patch( |
| 793 */ | 802 DomainMapping request, core.String appsId, core.String domainMappingsId, |
| 794 async.Future<Operation> patch(DomainMapping request, core.String appsId, core.
String domainMappingsId, {core.String updateMask}) { | 803 {core.String updateMask}) { |
| 795 var _url = null; | 804 var _url = null; |
| 796 var _queryParams = new core.Map(); | 805 var _queryParams = new core.Map(); |
| 797 var _uploadMedia = null; | 806 var _uploadMedia = null; |
| 798 var _uploadOptions = null; | 807 var _uploadOptions = null; |
| 799 var _downloadOptions = commons.DownloadOptions.Metadata; | 808 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 800 var _body = null; | 809 var _body = null; |
| 801 | 810 |
| 802 if (request != null) { | 811 if (request != null) { |
| 803 _body = convert.JSON.encode((request).toJson()); | 812 _body = convert.JSON.encode((request).toJson()); |
| 804 } | 813 } |
| 805 if (appsId == null) { | 814 if (appsId == null) { |
| 806 throw new core.ArgumentError("Parameter appsId is required."); | 815 throw new core.ArgumentError("Parameter appsId is required."); |
| 807 } | 816 } |
| 808 if (domainMappingsId == null) { | 817 if (domainMappingsId == null) { |
| 809 throw new core.ArgumentError("Parameter domainMappingsId is required."); | 818 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 810 } | 819 } |
| 811 if (updateMask != null) { | 820 if (updateMask != null) { |
| 812 _queryParams["updateMask"] = [updateMask]; | 821 _queryParams["updateMask"] = [updateMask]; |
| 813 } | 822 } |
| 814 | 823 |
| 815 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); | 824 _url = 'v1beta/apps/' + |
| 825 commons.Escaper.ecapeVariable('$appsId') + |
| 826 '/domainMappings/' + |
| 827 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 816 | 828 |
| 817 var _response = _requester.request(_url, | 829 var _response = _requester.request(_url, "PATCH", |
| 818 "PATCH", | 830 body: _body, |
| 819 body: _body, | 831 queryParams: _queryParams, |
| 820 queryParams: _queryParams, | 832 uploadOptions: _uploadOptions, |
| 821 uploadOptions: _uploadOptions, | 833 uploadMedia: _uploadMedia, |
| 822 uploadMedia: _uploadMedia, | 834 downloadOptions: _downloadOptions); |
| 823 downloadOptions: _downloadOptions); | |
| 824 return _response.then((data) => new Operation.fromJson(data)); | 835 return _response.then((data) => new Operation.fromJson(data)); |
| 825 } | 836 } |
| 826 | |
| 827 } | 837 } |
| 828 | 838 |
| 829 | |
| 830 class AppsFirewallResourceApi { | 839 class AppsFirewallResourceApi { |
| 831 final commons.ApiRequester _requester; | 840 final commons.ApiRequester _requester; |
| 832 | 841 |
| 833 AppsFirewallIngressRulesResourceApi get ingressRules => new AppsFirewallIngres
sRulesResourceApi(_requester); | 842 AppsFirewallIngressRulesResourceApi get ingressRules => |
| 843 new AppsFirewallIngressRulesResourceApi(_requester); |
| 834 | 844 |
| 835 AppsFirewallResourceApi(commons.ApiRequester client) : | 845 AppsFirewallResourceApi(commons.ApiRequester client) : _requester = client; |
| 836 _requester = client; | |
| 837 } | 846 } |
| 838 | 847 |
| 839 | |
| 840 class AppsFirewallIngressRulesResourceApi { | 848 class AppsFirewallIngressRulesResourceApi { |
| 841 final commons.ApiRequester _requester; | 849 final commons.ApiRequester _requester; |
| 842 | 850 |
| 843 AppsFirewallIngressRulesResourceApi(commons.ApiRequester client) : | 851 AppsFirewallIngressRulesResourceApi(commons.ApiRequester client) |
| 844 _requester = client; | 852 : _requester = client; |
| 845 | 853 |
| 846 /** | 854 /// Replaces the entire firewall ruleset in one bulk operation. This |
| 847 * Replaces the entire firewall ruleset in one bulk operation. This overrides | 855 /// overrides and replaces the rules of an existing firewall with the new |
| 848 * and replaces the rules of an existing firewall with the new rules.If the | 856 /// rules.If the final rule does not match traffic with the '*' wildcard IP |
| 849 * final rule does not match traffic with the '*' wildcard IP range, then an | 857 /// range, then an "allow all" rule is explicitly added to the end of the |
| 850 * "allow all" rule is explicitly added to the end of the list. | 858 /// list. |
| 851 * | 859 /// |
| 852 * [request] - The metadata request object. | 860 /// [request] - The metadata request object. |
| 853 * | 861 /// |
| 854 * Request parameters: | 862 /// Request parameters: |
| 855 * | 863 /// |
| 856 * [appsId] - Part of `name`. Name of the Firewall collection to set. Example: | 864 /// [appsId] - Part of `name`. Name of the Firewall collection to set. |
| 857 * apps/myapp/firewall/ingressRules. | 865 /// Example: apps/myapp/firewall/ingressRules. |
| 858 * | 866 /// |
| 859 * Completes with a [BatchUpdateIngressRulesResponse]. | 867 /// Completes with a [BatchUpdateIngressRulesResponse]. |
| 860 * | 868 /// |
| 861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 869 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 862 * error. | 870 /// an error. |
| 863 * | 871 /// |
| 864 * If the used [http.Client] completes with an error when making a REST call, | 872 /// If the used [http.Client] completes with an error when making a REST |
| 865 * this method will complete with the same error. | 873 /// call, this method will complete with the same error. |
| 866 */ | 874 async.Future<BatchUpdateIngressRulesResponse> batchUpdate( |
| 867 async.Future<BatchUpdateIngressRulesResponse> batchUpdate(BatchUpdateIngressRu
lesRequest request, core.String appsId) { | 875 BatchUpdateIngressRulesRequest request, core.String appsId) { |
| 868 var _url = null; | 876 var _url = null; |
| 869 var _queryParams = new core.Map(); | 877 var _queryParams = new core.Map(); |
| 870 var _uploadMedia = null; | 878 var _uploadMedia = null; |
| 871 var _uploadOptions = null; | 879 var _uploadOptions = null; |
| 872 var _downloadOptions = commons.DownloadOptions.Metadata; | 880 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 873 var _body = null; | 881 var _body = null; |
| 874 | 882 |
| 875 if (request != null) { | 883 if (request != null) { |
| 876 _body = convert.JSON.encode((request).toJson()); | 884 _body = convert.JSON.encode((request).toJson()); |
| 877 } | 885 } |
| 878 if (appsId == null) { | 886 if (appsId == null) { |
| 879 throw new core.ArgumentError("Parameter appsId is required."); | 887 throw new core.ArgumentError("Parameter appsId is required."); |
| 880 } | 888 } |
| 881 | 889 |
| 882 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules:batchUpdate'; | 890 _url = 'v1beta/apps/' + |
| 891 commons.Escaper.ecapeVariable('$appsId') + |
| 892 '/firewall/ingressRules:batchUpdate'; |
| 883 | 893 |
| 884 var _response = _requester.request(_url, | 894 var _response = _requester.request(_url, "POST", |
| 885 "POST", | 895 body: _body, |
| 886 body: _body, | 896 queryParams: _queryParams, |
| 887 queryParams: _queryParams, | 897 uploadOptions: _uploadOptions, |
| 888 uploadOptions: _uploadOptions, | 898 uploadMedia: _uploadMedia, |
| 889 uploadMedia: _uploadMedia, | 899 downloadOptions: _downloadOptions); |
| 890 downloadOptions: _downloadOptions); | 900 return _response |
| 891 return _response.then((data) => new BatchUpdateIngressRulesResponse.fromJson
(data)); | 901 .then((data) => new BatchUpdateIngressRulesResponse.fromJson(data)); |
| 892 } | 902 } |
| 893 | 903 |
| 894 /** | 904 /// Creates a firewall rule for the application. |
| 895 * Creates a firewall rule for the application. | 905 /// |
| 896 * | 906 /// [request] - The metadata request object. |
| 897 * [request] - The metadata request object. | 907 /// |
| 898 * | 908 /// Request parameters: |
| 899 * Request parameters: | 909 /// |
| 900 * | 910 /// [appsId] - Part of `parent`. Name of the parent Firewall collection in |
| 901 * [appsId] - Part of `parent`. Name of the parent Firewall collection in | 911 /// which to create a new rule. Example: apps/myapp/firewall/ingressRules. |
| 902 * which to create a new rule. Example: apps/myapp/firewall/ingressRules. | 912 /// |
| 903 * | 913 /// Completes with a [FirewallRule]. |
| 904 * Completes with a [FirewallRule]. | 914 /// |
| 905 * | 915 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 906 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 916 /// an error. |
| 907 * error. | 917 /// |
| 908 * | 918 /// If the used [http.Client] completes with an error when making a REST |
| 909 * If the used [http.Client] completes with an error when making a REST call, | 919 /// call, this method will complete with the same error. |
| 910 * this method will complete with the same error. | |
| 911 */ | |
| 912 async.Future<FirewallRule> create(FirewallRule request, core.String appsId) { | 920 async.Future<FirewallRule> create(FirewallRule request, core.String appsId) { |
| 913 var _url = null; | 921 var _url = null; |
| 914 var _queryParams = new core.Map(); | 922 var _queryParams = new core.Map(); |
| 915 var _uploadMedia = null; | 923 var _uploadMedia = null; |
| 916 var _uploadOptions = null; | 924 var _uploadOptions = null; |
| 917 var _downloadOptions = commons.DownloadOptions.Metadata; | 925 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 918 var _body = null; | 926 var _body = null; |
| 919 | 927 |
| 920 if (request != null) { | 928 if (request != null) { |
| 921 _body = convert.JSON.encode((request).toJson()); | 929 _body = convert.JSON.encode((request).toJson()); |
| 922 } | 930 } |
| 923 if (appsId == null) { | 931 if (appsId == null) { |
| 924 throw new core.ArgumentError("Parameter appsId is required."); | 932 throw new core.ArgumentError("Parameter appsId is required."); |
| 925 } | 933 } |
| 926 | 934 |
| 927 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules'; | 935 _url = 'v1beta/apps/' + |
| 936 commons.Escaper.ecapeVariable('$appsId') + |
| 937 '/firewall/ingressRules'; |
| 928 | 938 |
| 929 var _response = _requester.request(_url, | 939 var _response = _requester.request(_url, "POST", |
| 930 "POST", | 940 body: _body, |
| 931 body: _body, | 941 queryParams: _queryParams, |
| 932 queryParams: _queryParams, | 942 uploadOptions: _uploadOptions, |
| 933 uploadOptions: _uploadOptions, | 943 uploadMedia: _uploadMedia, |
| 934 uploadMedia: _uploadMedia, | 944 downloadOptions: _downloadOptions); |
| 935 downloadOptions: _downloadOptions); | |
| 936 return _response.then((data) => new FirewallRule.fromJson(data)); | 945 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 937 } | 946 } |
| 938 | 947 |
| 939 /** | 948 /// Deletes the specified firewall rule. |
| 940 * Deletes the specified firewall rule. | 949 /// |
| 941 * | 950 /// Request parameters: |
| 942 * Request parameters: | 951 /// |
| 943 * | 952 /// [appsId] - Part of `name`. Name of the Firewall resource to delete. |
| 944 * [appsId] - Part of `name`. Name of the Firewall resource to delete. | 953 /// Example: apps/myapp/firewall/ingressRules/100. |
| 945 * Example: apps/myapp/firewall/ingressRules/100. | 954 /// |
| 946 * | 955 /// [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 947 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. | 956 /// |
| 948 * | 957 /// Completes with a [Empty]. |
| 949 * Completes with a [Empty]. | 958 /// |
| 950 * | 959 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 951 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 960 /// an error. |
| 952 * error. | 961 /// |
| 953 * | 962 /// If the used [http.Client] completes with an error when making a REST |
| 954 * If the used [http.Client] completes with an error when making a REST call, | 963 /// call, this method will complete with the same error. |
| 955 * this method will complete with the same error. | |
| 956 */ | |
| 957 async.Future<Empty> delete(core.String appsId, core.String ingressRulesId) { | 964 async.Future<Empty> delete(core.String appsId, core.String ingressRulesId) { |
| 958 var _url = null; | 965 var _url = null; |
| 959 var _queryParams = new core.Map(); | 966 var _queryParams = new core.Map(); |
| 960 var _uploadMedia = null; | 967 var _uploadMedia = null; |
| 961 var _uploadOptions = null; | 968 var _uploadOptions = null; |
| 962 var _downloadOptions = commons.DownloadOptions.Metadata; | 969 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 963 var _body = null; | 970 var _body = null; |
| 964 | 971 |
| 965 if (appsId == null) { | 972 if (appsId == null) { |
| 966 throw new core.ArgumentError("Parameter appsId is required."); | 973 throw new core.ArgumentError("Parameter appsId is required."); |
| 967 } | 974 } |
| 968 if (ingressRulesId == null) { | 975 if (ingressRulesId == null) { |
| 969 throw new core.ArgumentError("Parameter ingressRulesId is required."); | 976 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 970 } | 977 } |
| 971 | 978 |
| 972 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); | 979 _url = 'v1beta/apps/' + |
| 980 commons.Escaper.ecapeVariable('$appsId') + |
| 981 '/firewall/ingressRules/' + |
| 982 commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 973 | 983 |
| 974 var _response = _requester.request(_url, | 984 var _response = _requester.request(_url, "DELETE", |
| 975 "DELETE", | 985 body: _body, |
| 976 body: _body, | 986 queryParams: _queryParams, |
| 977 queryParams: _queryParams, | 987 uploadOptions: _uploadOptions, |
| 978 uploadOptions: _uploadOptions, | 988 uploadMedia: _uploadMedia, |
| 979 uploadMedia: _uploadMedia, | 989 downloadOptions: _downloadOptions); |
| 980 downloadOptions: _downloadOptions); | |
| 981 return _response.then((data) => new Empty.fromJson(data)); | 990 return _response.then((data) => new Empty.fromJson(data)); |
| 982 } | 991 } |
| 983 | 992 |
| 984 /** | 993 /// Gets the specified firewall rule. |
| 985 * Gets the specified firewall rule. | 994 /// |
| 986 * | 995 /// Request parameters: |
| 987 * Request parameters: | 996 /// |
| 988 * | 997 /// [appsId] - Part of `name`. Name of the Firewall resource to retrieve. |
| 989 * [appsId] - Part of `name`. Name of the Firewall resource to retrieve. | 998 /// Example: apps/myapp/firewall/ingressRules/100. |
| 990 * Example: apps/myapp/firewall/ingressRules/100. | 999 /// |
| 991 * | 1000 /// [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 992 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. | 1001 /// |
| 993 * | 1002 /// Completes with a [FirewallRule]. |
| 994 * Completes with a [FirewallRule]. | 1003 /// |
| 995 * | 1004 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 996 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1005 /// an error. |
| 997 * error. | 1006 /// |
| 998 * | 1007 /// If the used [http.Client] completes with an error when making a REST |
| 999 * If the used [http.Client] completes with an error when making a REST call, | 1008 /// call, this method will complete with the same error. |
| 1000 * this method will complete with the same error. | 1009 async.Future<FirewallRule> get( |
| 1001 */ | 1010 core.String appsId, core.String ingressRulesId) { |
| 1002 async.Future<FirewallRule> get(core.String appsId, core.String ingressRulesId)
{ | |
| 1003 var _url = null; | 1011 var _url = null; |
| 1004 var _queryParams = new core.Map(); | 1012 var _queryParams = new core.Map(); |
| 1005 var _uploadMedia = null; | 1013 var _uploadMedia = null; |
| 1006 var _uploadOptions = null; | 1014 var _uploadOptions = null; |
| 1007 var _downloadOptions = commons.DownloadOptions.Metadata; | 1015 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1008 var _body = null; | 1016 var _body = null; |
| 1009 | 1017 |
| 1010 if (appsId == null) { | 1018 if (appsId == null) { |
| 1011 throw new core.ArgumentError("Parameter appsId is required."); | 1019 throw new core.ArgumentError("Parameter appsId is required."); |
| 1012 } | 1020 } |
| 1013 if (ingressRulesId == null) { | 1021 if (ingressRulesId == null) { |
| 1014 throw new core.ArgumentError("Parameter ingressRulesId is required."); | 1022 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 1015 } | 1023 } |
| 1016 | 1024 |
| 1017 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); | 1025 _url = 'v1beta/apps/' + |
| 1026 commons.Escaper.ecapeVariable('$appsId') + |
| 1027 '/firewall/ingressRules/' + |
| 1028 commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 1018 | 1029 |
| 1019 var _response = _requester.request(_url, | 1030 var _response = _requester.request(_url, "GET", |
| 1020 "GET", | 1031 body: _body, |
| 1021 body: _body, | 1032 queryParams: _queryParams, |
| 1022 queryParams: _queryParams, | 1033 uploadOptions: _uploadOptions, |
| 1023 uploadOptions: _uploadOptions, | 1034 uploadMedia: _uploadMedia, |
| 1024 uploadMedia: _uploadMedia, | 1035 downloadOptions: _downloadOptions); |
| 1025 downloadOptions: _downloadOptions); | |
| 1026 return _response.then((data) => new FirewallRule.fromJson(data)); | 1036 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 1027 } | 1037 } |
| 1028 | 1038 |
| 1029 /** | 1039 /// Lists the firewall rules of an application. |
| 1030 * Lists the firewall rules of an application. | 1040 /// |
| 1031 * | 1041 /// Request parameters: |
| 1032 * Request parameters: | 1042 /// |
| 1033 * | 1043 /// [appsId] - Part of `parent`. Name of the Firewall collection to retrieve. |
| 1034 * [appsId] - Part of `parent`. Name of the Firewall collection to retrieve. | 1044 /// Example: apps/myapp/firewall/ingressRules. |
| 1035 * Example: apps/myapp/firewall/ingressRules. | 1045 /// |
| 1036 * | 1046 /// [pageToken] - Continuation token for fetching the next page of results. |
| 1037 * [pageToken] - Continuation token for fetching the next page of results. | 1047 /// |
| 1038 * | 1048 /// [pageSize] - Maximum results to return per page. |
| 1039 * [pageSize] - Maximum results to return per page. | 1049 /// |
| 1040 * | 1050 /// [matchingAddress] - A valid IP Address. If set, only rules matching this |
| 1041 * [matchingAddress] - A valid IP Address. If set, only rules matching this | 1051 /// address will be returned. The first returned rule will be the rule that |
| 1042 * address will be returned. The first returned rule will be the rule that | 1052 /// fires on requests from this IP. |
| 1043 * fires on requests from this IP. | 1053 /// |
| 1044 * | 1054 /// Completes with a [ListIngressRulesResponse]. |
| 1045 * Completes with a [ListIngressRulesResponse]. | 1055 /// |
| 1046 * | 1056 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1047 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1057 /// an error. |
| 1048 * error. | 1058 /// |
| 1049 * | 1059 /// If the used [http.Client] completes with an error when making a REST |
| 1050 * If the used [http.Client] completes with an error when making a REST call, | 1060 /// call, this method will complete with the same error. |
| 1051 * this method will complete with the same error. | 1061 async.Future<ListIngressRulesResponse> list(core.String appsId, |
| 1052 */ | 1062 {core.String pageToken, core.int pageSize, core.String matchingAddress}) { |
| 1053 async.Future<ListIngressRulesResponse> list(core.String appsId, {core.String p
ageToken, core.int pageSize, core.String matchingAddress}) { | |
| 1054 var _url = null; | 1063 var _url = null; |
| 1055 var _queryParams = new core.Map(); | 1064 var _queryParams = new core.Map(); |
| 1056 var _uploadMedia = null; | 1065 var _uploadMedia = null; |
| 1057 var _uploadOptions = null; | 1066 var _uploadOptions = null; |
| 1058 var _downloadOptions = commons.DownloadOptions.Metadata; | 1067 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1059 var _body = null; | 1068 var _body = null; |
| 1060 | 1069 |
| 1061 if (appsId == null) { | 1070 if (appsId == null) { |
| 1062 throw new core.ArgumentError("Parameter appsId is required."); | 1071 throw new core.ArgumentError("Parameter appsId is required."); |
| 1063 } | 1072 } |
| 1064 if (pageToken != null) { | 1073 if (pageToken != null) { |
| 1065 _queryParams["pageToken"] = [pageToken]; | 1074 _queryParams["pageToken"] = [pageToken]; |
| 1066 } | 1075 } |
| 1067 if (pageSize != null) { | 1076 if (pageSize != null) { |
| 1068 _queryParams["pageSize"] = ["${pageSize}"]; | 1077 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1069 } | 1078 } |
| 1070 if (matchingAddress != null) { | 1079 if (matchingAddress != null) { |
| 1071 _queryParams["matchingAddress"] = [matchingAddress]; | 1080 _queryParams["matchingAddress"] = [matchingAddress]; |
| 1072 } | 1081 } |
| 1073 | 1082 |
| 1074 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules'; | 1083 _url = 'v1beta/apps/' + |
| 1084 commons.Escaper.ecapeVariable('$appsId') + |
| 1085 '/firewall/ingressRules'; |
| 1075 | 1086 |
| 1076 var _response = _requester.request(_url, | 1087 var _response = _requester.request(_url, "GET", |
| 1077 "GET", | 1088 body: _body, |
| 1078 body: _body, | 1089 queryParams: _queryParams, |
| 1079 queryParams: _queryParams, | 1090 uploadOptions: _uploadOptions, |
| 1080 uploadOptions: _uploadOptions, | 1091 uploadMedia: _uploadMedia, |
| 1081 uploadMedia: _uploadMedia, | 1092 downloadOptions: _downloadOptions); |
| 1082 downloadOptions: _downloadOptions); | 1093 return _response |
| 1083 return _response.then((data) => new ListIngressRulesResponse.fromJson(data))
; | 1094 .then((data) => new ListIngressRulesResponse.fromJson(data)); |
| 1084 } | 1095 } |
| 1085 | 1096 |
| 1086 /** | 1097 /// Updates the specified firewall rule. |
| 1087 * Updates the specified firewall rule. | 1098 /// |
| 1088 * | 1099 /// [request] - The metadata request object. |
| 1089 * [request] - The metadata request object. | 1100 /// |
| 1090 * | 1101 /// Request parameters: |
| 1091 * Request parameters: | 1102 /// |
| 1092 * | 1103 /// [appsId] - Part of `name`. Name of the Firewall resource to update. |
| 1093 * [appsId] - Part of `name`. Name of the Firewall resource to update. | 1104 /// Example: apps/myapp/firewall/ingressRules/100. |
| 1094 * Example: apps/myapp/firewall/ingressRules/100. | 1105 /// |
| 1095 * | 1106 /// [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 1096 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. | 1107 /// |
| 1097 * | 1108 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 1098 * [updateMask] - Standard field mask for the set of fields to be updated. | 1109 /// |
| 1099 * | 1110 /// Completes with a [FirewallRule]. |
| 1100 * Completes with a [FirewallRule]. | 1111 /// |
| 1101 * | 1112 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1102 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1113 /// an error. |
| 1103 * error. | 1114 /// |
| 1104 * | 1115 /// If the used [http.Client] completes with an error when making a REST |
| 1105 * If the used [http.Client] completes with an error when making a REST call, | 1116 /// call, this method will complete with the same error. |
| 1106 * this method will complete with the same error. | 1117 async.Future<FirewallRule> patch( |
| 1107 */ | 1118 FirewallRule request, core.String appsId, core.String ingressRulesId, |
| 1108 async.Future<FirewallRule> patch(FirewallRule request, core.String appsId, cor
e.String ingressRulesId, {core.String updateMask}) { | 1119 {core.String updateMask}) { |
| 1109 var _url = null; | 1120 var _url = null; |
| 1110 var _queryParams = new core.Map(); | 1121 var _queryParams = new core.Map(); |
| 1111 var _uploadMedia = null; | 1122 var _uploadMedia = null; |
| 1112 var _uploadOptions = null; | 1123 var _uploadOptions = null; |
| 1113 var _downloadOptions = commons.DownloadOptions.Metadata; | 1124 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1114 var _body = null; | 1125 var _body = null; |
| 1115 | 1126 |
| 1116 if (request != null) { | 1127 if (request != null) { |
| 1117 _body = convert.JSON.encode((request).toJson()); | 1128 _body = convert.JSON.encode((request).toJson()); |
| 1118 } | 1129 } |
| 1119 if (appsId == null) { | 1130 if (appsId == null) { |
| 1120 throw new core.ArgumentError("Parameter appsId is required."); | 1131 throw new core.ArgumentError("Parameter appsId is required."); |
| 1121 } | 1132 } |
| 1122 if (ingressRulesId == null) { | 1133 if (ingressRulesId == null) { |
| 1123 throw new core.ArgumentError("Parameter ingressRulesId is required."); | 1134 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 1124 } | 1135 } |
| 1125 if (updateMask != null) { | 1136 if (updateMask != null) { |
| 1126 _queryParams["updateMask"] = [updateMask]; | 1137 _queryParams["updateMask"] = [updateMask]; |
| 1127 } | 1138 } |
| 1128 | 1139 |
| 1129 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); | 1140 _url = 'v1beta/apps/' + |
| 1141 commons.Escaper.ecapeVariable('$appsId') + |
| 1142 '/firewall/ingressRules/' + |
| 1143 commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 1130 | 1144 |
| 1131 var _response = _requester.request(_url, | 1145 var _response = _requester.request(_url, "PATCH", |
| 1132 "PATCH", | 1146 body: _body, |
| 1133 body: _body, | 1147 queryParams: _queryParams, |
| 1134 queryParams: _queryParams, | 1148 uploadOptions: _uploadOptions, |
| 1135 uploadOptions: _uploadOptions, | 1149 uploadMedia: _uploadMedia, |
| 1136 uploadMedia: _uploadMedia, | 1150 downloadOptions: _downloadOptions); |
| 1137 downloadOptions: _downloadOptions); | |
| 1138 return _response.then((data) => new FirewallRule.fromJson(data)); | 1151 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 1139 } | 1152 } |
| 1140 | |
| 1141 } | 1153 } |
| 1142 | 1154 |
| 1143 | |
| 1144 class AppsLocationsResourceApi { | 1155 class AppsLocationsResourceApi { |
| 1145 final commons.ApiRequester _requester; | 1156 final commons.ApiRequester _requester; |
| 1146 | 1157 |
| 1147 AppsLocationsResourceApi(commons.ApiRequester client) : | 1158 AppsLocationsResourceApi(commons.ApiRequester client) : _requester = client; |
| 1148 _requester = client; | |
| 1149 | 1159 |
| 1150 /** | 1160 /// Get information about a location. |
| 1151 * Get information about a location. | 1161 /// |
| 1152 * | 1162 /// Request parameters: |
| 1153 * Request parameters: | 1163 /// |
| 1154 * | 1164 /// [appsId] - Part of `name`. Resource name for the location. |
| 1155 * [appsId] - Part of `name`. Resource name for the location. | 1165 /// |
| 1156 * | 1166 /// [locationsId] - Part of `name`. See documentation of `appsId`. |
| 1157 * [locationsId] - Part of `name`. See documentation of `appsId`. | 1167 /// |
| 1158 * | 1168 /// Completes with a [Location]. |
| 1159 * Completes with a [Location]. | 1169 /// |
| 1160 * | 1170 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1171 /// an error. |
| 1162 * error. | 1172 /// |
| 1163 * | 1173 /// If the used [http.Client] completes with an error when making a REST |
| 1164 * If the used [http.Client] completes with an error when making a REST call, | 1174 /// call, this method will complete with the same error. |
| 1165 * this method will complete with the same error. | |
| 1166 */ | |
| 1167 async.Future<Location> get(core.String appsId, core.String locationsId) { | 1175 async.Future<Location> get(core.String appsId, core.String locationsId) { |
| 1168 var _url = null; | 1176 var _url = null; |
| 1169 var _queryParams = new core.Map(); | 1177 var _queryParams = new core.Map(); |
| 1170 var _uploadMedia = null; | 1178 var _uploadMedia = null; |
| 1171 var _uploadOptions = null; | 1179 var _uploadOptions = null; |
| 1172 var _downloadOptions = commons.DownloadOptions.Metadata; | 1180 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1173 var _body = null; | 1181 var _body = null; |
| 1174 | 1182 |
| 1175 if (appsId == null) { | 1183 if (appsId == null) { |
| 1176 throw new core.ArgumentError("Parameter appsId is required."); | 1184 throw new core.ArgumentError("Parameter appsId is required."); |
| 1177 } | 1185 } |
| 1178 if (locationsId == null) { | 1186 if (locationsId == null) { |
| 1179 throw new core.ArgumentError("Parameter locationsId is required."); | 1187 throw new core.ArgumentError("Parameter locationsId is required."); |
| 1180 } | 1188 } |
| 1181 | 1189 |
| 1182 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns/' + commons.Escaper.ecapeVariable('$locationsId'); | 1190 _url = 'v1beta/apps/' + |
| 1191 commons.Escaper.ecapeVariable('$appsId') + |
| 1192 '/locations/' + |
| 1193 commons.Escaper.ecapeVariable('$locationsId'); |
| 1183 | 1194 |
| 1184 var _response = _requester.request(_url, | 1195 var _response = _requester.request(_url, "GET", |
| 1185 "GET", | 1196 body: _body, |
| 1186 body: _body, | 1197 queryParams: _queryParams, |
| 1187 queryParams: _queryParams, | 1198 uploadOptions: _uploadOptions, |
| 1188 uploadOptions: _uploadOptions, | 1199 uploadMedia: _uploadMedia, |
| 1189 uploadMedia: _uploadMedia, | 1200 downloadOptions: _downloadOptions); |
| 1190 downloadOptions: _downloadOptions); | |
| 1191 return _response.then((data) => new Location.fromJson(data)); | 1201 return _response.then((data) => new Location.fromJson(data)); |
| 1192 } | 1202 } |
| 1193 | 1203 |
| 1194 /** | 1204 /// Lists information about the supported locations for this service. |
| 1195 * Lists information about the supported locations for this service. | 1205 /// |
| 1196 * | 1206 /// Request parameters: |
| 1197 * Request parameters: | 1207 /// |
| 1198 * | 1208 /// [appsId] - Part of `name`. The resource that owns the locations |
| 1199 * [appsId] - Part of `name`. The resource that owns the locations collection, | 1209 /// collection, if applicable. |
| 1200 * if applicable. | 1210 /// |
| 1201 * | 1211 /// [filter] - The standard list filter. |
| 1202 * [filter] - The standard list filter. | 1212 /// |
| 1203 * | 1213 /// [pageToken] - The standard list page token. |
| 1204 * [pageToken] - The standard list page token. | 1214 /// |
| 1205 * | 1215 /// [pageSize] - The standard list page size. |
| 1206 * [pageSize] - The standard list page size. | 1216 /// |
| 1207 * | 1217 /// Completes with a [ListLocationsResponse]. |
| 1208 * Completes with a [ListLocationsResponse]. | 1218 /// |
| 1209 * | 1219 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1210 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1220 /// an error. |
| 1211 * error. | 1221 /// |
| 1212 * | 1222 /// If the used [http.Client] completes with an error when making a REST |
| 1213 * If the used [http.Client] completes with an error when making a REST call, | 1223 /// call, this method will complete with the same error. |
| 1214 * this method will complete with the same error. | 1224 async.Future<ListLocationsResponse> list(core.String appsId, |
| 1215 */ | 1225 {core.String filter, core.String pageToken, core.int pageSize}) { |
| 1216 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.String pageToken, core.int pageSize}) { | |
| 1217 var _url = null; | 1226 var _url = null; |
| 1218 var _queryParams = new core.Map(); | 1227 var _queryParams = new core.Map(); |
| 1219 var _uploadMedia = null; | 1228 var _uploadMedia = null; |
| 1220 var _uploadOptions = null; | 1229 var _uploadOptions = null; |
| 1221 var _downloadOptions = commons.DownloadOptions.Metadata; | 1230 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1222 var _body = null; | 1231 var _body = null; |
| 1223 | 1232 |
| 1224 if (appsId == null) { | 1233 if (appsId == null) { |
| 1225 throw new core.ArgumentError("Parameter appsId is required."); | 1234 throw new core.ArgumentError("Parameter appsId is required."); |
| 1226 } | 1235 } |
| 1227 if (filter != null) { | 1236 if (filter != null) { |
| 1228 _queryParams["filter"] = [filter]; | 1237 _queryParams["filter"] = [filter]; |
| 1229 } | 1238 } |
| 1230 if (pageToken != null) { | 1239 if (pageToken != null) { |
| 1231 _queryParams["pageToken"] = [pageToken]; | 1240 _queryParams["pageToken"] = [pageToken]; |
| 1232 } | 1241 } |
| 1233 if (pageSize != null) { | 1242 if (pageSize != null) { |
| 1234 _queryParams["pageSize"] = ["${pageSize}"]; | 1243 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1235 } | 1244 } |
| 1236 | 1245 |
| 1237 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; | 1246 _url = 'v1beta/apps/' + |
| 1247 commons.Escaper.ecapeVariable('$appsId') + |
| 1248 '/locations'; |
| 1238 | 1249 |
| 1239 var _response = _requester.request(_url, | 1250 var _response = _requester.request(_url, "GET", |
| 1240 "GET", | 1251 body: _body, |
| 1241 body: _body, | 1252 queryParams: _queryParams, |
| 1242 queryParams: _queryParams, | 1253 uploadOptions: _uploadOptions, |
| 1243 uploadOptions: _uploadOptions, | 1254 uploadMedia: _uploadMedia, |
| 1244 uploadMedia: _uploadMedia, | 1255 downloadOptions: _downloadOptions); |
| 1245 downloadOptions: _downloadOptions); | |
| 1246 return _response.then((data) => new ListLocationsResponse.fromJson(data)); | 1256 return _response.then((data) => new ListLocationsResponse.fromJson(data)); |
| 1247 } | 1257 } |
| 1248 | |
| 1249 } | 1258 } |
| 1250 | 1259 |
| 1251 | |
| 1252 class AppsOperationsResourceApi { | 1260 class AppsOperationsResourceApi { |
| 1253 final commons.ApiRequester _requester; | 1261 final commons.ApiRequester _requester; |
| 1254 | 1262 |
| 1255 AppsOperationsResourceApi(commons.ApiRequester client) : | 1263 AppsOperationsResourceApi(commons.ApiRequester client) : _requester = client; |
| 1256 _requester = client; | |
| 1257 | 1264 |
| 1258 /** | 1265 /// Gets the latest state of a long-running operation. Clients can use this |
| 1259 * Gets the latest state of a long-running operation. Clients can use this | 1266 /// method to poll the operation result at intervals as recommended by the |
| 1260 * method to poll the operation result at intervals as recommended by the API | 1267 /// API service. |
| 1261 * service. | 1268 /// |
| 1262 * | 1269 /// Request parameters: |
| 1263 * Request parameters: | 1270 /// |
| 1264 * | 1271 /// [appsId] - Part of `name`. The name of the operation resource. |
| 1265 * [appsId] - Part of `name`. The name of the operation resource. | 1272 /// |
| 1266 * | 1273 /// [operationsId] - Part of `name`. See documentation of `appsId`. |
| 1267 * [operationsId] - Part of `name`. See documentation of `appsId`. | 1274 /// |
| 1268 * | 1275 /// Completes with a [Operation]. |
| 1269 * Completes with a [Operation]. | 1276 /// |
| 1270 * | 1277 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1271 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1278 /// an error. |
| 1272 * error. | 1279 /// |
| 1273 * | 1280 /// If the used [http.Client] completes with an error when making a REST |
| 1274 * If the used [http.Client] completes with an error when making a REST call, | 1281 /// call, this method will complete with the same error. |
| 1275 * this method will complete with the same error. | |
| 1276 */ | |
| 1277 async.Future<Operation> get(core.String appsId, core.String operationsId) { | 1282 async.Future<Operation> get(core.String appsId, core.String operationsId) { |
| 1278 var _url = null; | 1283 var _url = null; |
| 1279 var _queryParams = new core.Map(); | 1284 var _queryParams = new core.Map(); |
| 1280 var _uploadMedia = null; | 1285 var _uploadMedia = null; |
| 1281 var _uploadOptions = null; | 1286 var _uploadOptions = null; |
| 1282 var _downloadOptions = commons.DownloadOptions.Metadata; | 1287 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1283 var _body = null; | 1288 var _body = null; |
| 1284 | 1289 |
| 1285 if (appsId == null) { | 1290 if (appsId == null) { |
| 1286 throw new core.ArgumentError("Parameter appsId is required."); | 1291 throw new core.ArgumentError("Parameter appsId is required."); |
| 1287 } | 1292 } |
| 1288 if (operationsId == null) { | 1293 if (operationsId == null) { |
| 1289 throw new core.ArgumentError("Parameter operationsId is required."); | 1294 throw new core.ArgumentError("Parameter operationsId is required."); |
| 1290 } | 1295 } |
| 1291 | 1296 |
| 1292 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons/' + commons.Escaper.ecapeVariable('$operationsId'); | 1297 _url = 'v1beta/apps/' + |
| 1298 commons.Escaper.ecapeVariable('$appsId') + |
| 1299 '/operations/' + |
| 1300 commons.Escaper.ecapeVariable('$operationsId'); |
| 1293 | 1301 |
| 1294 var _response = _requester.request(_url, | 1302 var _response = _requester.request(_url, "GET", |
| 1295 "GET", | 1303 body: _body, |
| 1296 body: _body, | 1304 queryParams: _queryParams, |
| 1297 queryParams: _queryParams, | 1305 uploadOptions: _uploadOptions, |
| 1298 uploadOptions: _uploadOptions, | 1306 uploadMedia: _uploadMedia, |
| 1299 uploadMedia: _uploadMedia, | 1307 downloadOptions: _downloadOptions); |
| 1300 downloadOptions: _downloadOptions); | |
| 1301 return _response.then((data) => new Operation.fromJson(data)); | 1308 return _response.then((data) => new Operation.fromJson(data)); |
| 1302 } | 1309 } |
| 1303 | 1310 |
| 1304 /** | 1311 /// Lists operations that match the specified filter in the request. If the |
| 1305 * Lists operations that match the specified filter in the request. If the | 1312 /// server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the |
| 1306 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 1313 /// name binding allows API services to override the binding to use different |
| 1307 * binding allows API services to override the binding to use different | 1314 /// resource name schemes, such as users / * /operations. To override the |
| 1308 * resource name schemes, such as users / * /operations. To override the | 1315 /// binding, API services can add a binding such as "/v1/{name=users / * |
| 1309 * binding, API services can add a binding such as "/v1/{name=users / * | 1316 /// }/operations" to their service configuration. For backwards |
| 1310 * }/operations" to their service configuration. For backwards compatibility, | 1317 /// compatibility, the default name includes the operations collection id, |
| 1311 * the default name includes the operations collection id, however overriding | 1318 /// however overriding users must ensure the name binding is the parent |
| 1312 * users must ensure the name binding is the parent resource, without the | 1319 /// resource, without the operations collection id. |
| 1313 * operations collection id. | 1320 /// |
| 1314 * | 1321 /// Request parameters: |
| 1315 * Request parameters: | 1322 /// |
| 1316 * | 1323 /// [appsId] - Part of `name`. The name of the operation's parent resource. |
| 1317 * [appsId] - Part of `name`. The name of the operation's parent resource. | 1324 /// |
| 1318 * | 1325 /// [filter] - The standard list filter. |
| 1319 * [pageToken] - The standard list page token. | 1326 /// |
| 1320 * | 1327 /// [pageToken] - The standard list page token. |
| 1321 * [pageSize] - The standard list page size. | 1328 /// |
| 1322 * | 1329 /// [pageSize] - The standard list page size. |
| 1323 * [filter] - The standard list filter. | 1330 /// |
| 1324 * | 1331 /// Completes with a [ListOperationsResponse]. |
| 1325 * Completes with a [ListOperationsResponse]. | 1332 /// |
| 1326 * | 1333 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1334 /// an error. |
| 1328 * error. | 1335 /// |
| 1329 * | 1336 /// If the used [http.Client] completes with an error when making a REST |
| 1330 * If the used [http.Client] completes with an error when making a REST call, | 1337 /// call, this method will complete with the same error. |
| 1331 * this method will complete with the same error. | 1338 async.Future<ListOperationsResponse> list(core.String appsId, |
| 1332 */ | 1339 {core.String filter, core.String pageToken, core.int pageSize}) { |
| 1333 async.Future<ListOperationsResponse> list(core.String appsId, {core.String pag
eToken, core.int pageSize, core.String filter}) { | |
| 1334 var _url = null; | 1340 var _url = null; |
| 1335 var _queryParams = new core.Map(); | 1341 var _queryParams = new core.Map(); |
| 1336 var _uploadMedia = null; | 1342 var _uploadMedia = null; |
| 1337 var _uploadOptions = null; | 1343 var _uploadOptions = null; |
| 1338 var _downloadOptions = commons.DownloadOptions.Metadata; | 1344 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1339 var _body = null; | 1345 var _body = null; |
| 1340 | 1346 |
| 1341 if (appsId == null) { | 1347 if (appsId == null) { |
| 1342 throw new core.ArgumentError("Parameter appsId is required."); | 1348 throw new core.ArgumentError("Parameter appsId is required."); |
| 1343 } | 1349 } |
| 1350 if (filter != null) { |
| 1351 _queryParams["filter"] = [filter]; |
| 1352 } |
| 1344 if (pageToken != null) { | 1353 if (pageToken != null) { |
| 1345 _queryParams["pageToken"] = [pageToken]; | 1354 _queryParams["pageToken"] = [pageToken]; |
| 1346 } | 1355 } |
| 1347 if (pageSize != null) { | 1356 if (pageSize != null) { |
| 1348 _queryParams["pageSize"] = ["${pageSize}"]; | 1357 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1349 } | 1358 } |
| 1350 if (filter != null) { | |
| 1351 _queryParams["filter"] = [filter]; | |
| 1352 } | |
| 1353 | 1359 |
| 1354 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; | 1360 _url = 'v1beta/apps/' + |
| 1361 commons.Escaper.ecapeVariable('$appsId') + |
| 1362 '/operations'; |
| 1355 | 1363 |
| 1356 var _response = _requester.request(_url, | 1364 var _response = _requester.request(_url, "GET", |
| 1357 "GET", | 1365 body: _body, |
| 1358 body: _body, | 1366 queryParams: _queryParams, |
| 1359 queryParams: _queryParams, | 1367 uploadOptions: _uploadOptions, |
| 1360 uploadOptions: _uploadOptions, | 1368 uploadMedia: _uploadMedia, |
| 1361 uploadMedia: _uploadMedia, | 1369 downloadOptions: _downloadOptions); |
| 1362 downloadOptions: _downloadOptions); | |
| 1363 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1370 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 1364 } | 1371 } |
| 1365 | |
| 1366 } | 1372 } |
| 1367 | 1373 |
| 1368 | |
| 1369 class AppsServicesResourceApi { | 1374 class AppsServicesResourceApi { |
| 1370 final commons.ApiRequester _requester; | 1375 final commons.ApiRequester _requester; |
| 1371 | 1376 |
| 1372 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour
ceApi(_requester); | 1377 AppsServicesVersionsResourceApi get versions => |
| 1378 new AppsServicesVersionsResourceApi(_requester); |
| 1373 | 1379 |
| 1374 AppsServicesResourceApi(commons.ApiRequester client) : | 1380 AppsServicesResourceApi(commons.ApiRequester client) : _requester = client; |
| 1375 _requester = client; | |
| 1376 | 1381 |
| 1377 /** | 1382 /// Deletes the specified service and all enclosed versions. |
| 1378 * Deletes the specified service and all enclosed versions. | 1383 /// |
| 1379 * | 1384 /// Request parameters: |
| 1380 * Request parameters: | 1385 /// |
| 1381 * | 1386 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1382 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1387 /// apps/myapp/services/default. |
| 1383 * apps/myapp/services/default. | 1388 /// |
| 1384 * | 1389 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1385 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1390 /// |
| 1386 * | 1391 /// Completes with a [Operation]. |
| 1387 * Completes with a [Operation]. | 1392 /// |
| 1388 * | 1393 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1394 /// an error. |
| 1390 * error. | 1395 /// |
| 1391 * | 1396 /// If the used [http.Client] completes with an error when making a REST |
| 1392 * If the used [http.Client] completes with an error when making a REST call, | 1397 /// call, this method will complete with the same error. |
| 1393 * this method will complete with the same error. | |
| 1394 */ | |
| 1395 async.Future<Operation> delete(core.String appsId, core.String servicesId) { | 1398 async.Future<Operation> delete(core.String appsId, core.String servicesId) { |
| 1396 var _url = null; | 1399 var _url = null; |
| 1397 var _queryParams = new core.Map(); | 1400 var _queryParams = new core.Map(); |
| 1398 var _uploadMedia = null; | 1401 var _uploadMedia = null; |
| 1399 var _uploadOptions = null; | 1402 var _uploadOptions = null; |
| 1400 var _downloadOptions = commons.DownloadOptions.Metadata; | 1403 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1401 var _body = null; | 1404 var _body = null; |
| 1402 | 1405 |
| 1403 if (appsId == null) { | 1406 if (appsId == null) { |
| 1404 throw new core.ArgumentError("Parameter appsId is required."); | 1407 throw new core.ArgumentError("Parameter appsId is required."); |
| 1405 } | 1408 } |
| 1406 if (servicesId == null) { | 1409 if (servicesId == null) { |
| 1407 throw new core.ArgumentError("Parameter servicesId is required."); | 1410 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1408 } | 1411 } |
| 1409 | 1412 |
| 1410 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId'); | 1413 _url = 'v1beta/apps/' + |
| 1414 commons.Escaper.ecapeVariable('$appsId') + |
| 1415 '/services/' + |
| 1416 commons.Escaper.ecapeVariable('$servicesId'); |
| 1411 | 1417 |
| 1412 var _response = _requester.request(_url, | 1418 var _response = _requester.request(_url, "DELETE", |
| 1413 "DELETE", | 1419 body: _body, |
| 1414 body: _body, | 1420 queryParams: _queryParams, |
| 1415 queryParams: _queryParams, | 1421 uploadOptions: _uploadOptions, |
| 1416 uploadOptions: _uploadOptions, | 1422 uploadMedia: _uploadMedia, |
| 1417 uploadMedia: _uploadMedia, | 1423 downloadOptions: _downloadOptions); |
| 1418 downloadOptions: _downloadOptions); | |
| 1419 return _response.then((data) => new Operation.fromJson(data)); | 1424 return _response.then((data) => new Operation.fromJson(data)); |
| 1420 } | 1425 } |
| 1421 | 1426 |
| 1422 /** | 1427 /// Gets the current configuration of the specified service. |
| 1423 * Gets the current configuration of the specified service. | 1428 /// |
| 1424 * | 1429 /// Request parameters: |
| 1425 * Request parameters: | 1430 /// |
| 1426 * | 1431 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1427 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1432 /// apps/myapp/services/default. |
| 1428 * apps/myapp/services/default. | 1433 /// |
| 1429 * | 1434 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1430 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1435 /// |
| 1431 * | 1436 /// Completes with a [Service]. |
| 1432 * Completes with a [Service]. | 1437 /// |
| 1433 * | 1438 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1434 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1439 /// an error. |
| 1435 * error. | 1440 /// |
| 1436 * | 1441 /// If the used [http.Client] completes with an error when making a REST |
| 1437 * If the used [http.Client] completes with an error when making a REST call, | 1442 /// call, this method will complete with the same error. |
| 1438 * this method will complete with the same error. | |
| 1439 */ | |
| 1440 async.Future<Service> get(core.String appsId, core.String servicesId) { | 1443 async.Future<Service> get(core.String appsId, core.String servicesId) { |
| 1441 var _url = null; | 1444 var _url = null; |
| 1442 var _queryParams = new core.Map(); | 1445 var _queryParams = new core.Map(); |
| 1443 var _uploadMedia = null; | 1446 var _uploadMedia = null; |
| 1444 var _uploadOptions = null; | 1447 var _uploadOptions = null; |
| 1445 var _downloadOptions = commons.DownloadOptions.Metadata; | 1448 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1446 var _body = null; | 1449 var _body = null; |
| 1447 | 1450 |
| 1448 if (appsId == null) { | 1451 if (appsId == null) { |
| 1449 throw new core.ArgumentError("Parameter appsId is required."); | 1452 throw new core.ArgumentError("Parameter appsId is required."); |
| 1450 } | 1453 } |
| 1451 if (servicesId == null) { | 1454 if (servicesId == null) { |
| 1452 throw new core.ArgumentError("Parameter servicesId is required."); | 1455 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1453 } | 1456 } |
| 1454 | 1457 |
| 1455 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId'); | 1458 _url = 'v1beta/apps/' + |
| 1459 commons.Escaper.ecapeVariable('$appsId') + |
| 1460 '/services/' + |
| 1461 commons.Escaper.ecapeVariable('$servicesId'); |
| 1456 | 1462 |
| 1457 var _response = _requester.request(_url, | 1463 var _response = _requester.request(_url, "GET", |
| 1458 "GET", | 1464 body: _body, |
| 1459 body: _body, | 1465 queryParams: _queryParams, |
| 1460 queryParams: _queryParams, | 1466 uploadOptions: _uploadOptions, |
| 1461 uploadOptions: _uploadOptions, | 1467 uploadMedia: _uploadMedia, |
| 1462 uploadMedia: _uploadMedia, | 1468 downloadOptions: _downloadOptions); |
| 1463 downloadOptions: _downloadOptions); | |
| 1464 return _response.then((data) => new Service.fromJson(data)); | 1469 return _response.then((data) => new Service.fromJson(data)); |
| 1465 } | 1470 } |
| 1466 | 1471 |
| 1467 /** | 1472 /// Lists all the services in the application. |
| 1468 * Lists all the services in the application. | 1473 /// |
| 1469 * | 1474 /// Request parameters: |
| 1470 * Request parameters: | 1475 /// |
| 1471 * | 1476 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 1472 * [appsId] - Part of `parent`. Name of the parent Application resource. | 1477 /// Example: apps/myapp. |
| 1473 * Example: apps/myapp. | 1478 /// |
| 1474 * | 1479 /// [pageToken] - Continuation token for fetching the next page of results. |
| 1475 * [pageToken] - Continuation token for fetching the next page of results. | 1480 /// |
| 1476 * | 1481 /// [pageSize] - Maximum results to return per page. |
| 1477 * [pageSize] - Maximum results to return per page. | 1482 /// |
| 1478 * | 1483 /// Completes with a [ListServicesResponse]. |
| 1479 * Completes with a [ListServicesResponse]. | 1484 /// |
| 1480 * | 1485 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1486 /// an error. |
| 1482 * error. | 1487 /// |
| 1483 * | 1488 /// If the used [http.Client] completes with an error when making a REST |
| 1484 * If the used [http.Client] completes with an error when making a REST call, | 1489 /// call, this method will complete with the same error. |
| 1485 * this method will complete with the same error. | 1490 async.Future<ListServicesResponse> list(core.String appsId, |
| 1486 */ | 1491 {core.String pageToken, core.int pageSize}) { |
| 1487 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { | |
| 1488 var _url = null; | 1492 var _url = null; |
| 1489 var _queryParams = new core.Map(); | 1493 var _queryParams = new core.Map(); |
| 1490 var _uploadMedia = null; | 1494 var _uploadMedia = null; |
| 1491 var _uploadOptions = null; | 1495 var _uploadOptions = null; |
| 1492 var _downloadOptions = commons.DownloadOptions.Metadata; | 1496 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1493 var _body = null; | 1497 var _body = null; |
| 1494 | 1498 |
| 1495 if (appsId == null) { | 1499 if (appsId == null) { |
| 1496 throw new core.ArgumentError("Parameter appsId is required."); | 1500 throw new core.ArgumentError("Parameter appsId is required."); |
| 1497 } | 1501 } |
| 1498 if (pageToken != null) { | 1502 if (pageToken != null) { |
| 1499 _queryParams["pageToken"] = [pageToken]; | 1503 _queryParams["pageToken"] = [pageToken]; |
| 1500 } | 1504 } |
| 1501 if (pageSize != null) { | 1505 if (pageSize != null) { |
| 1502 _queryParams["pageSize"] = ["${pageSize}"]; | 1506 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1503 } | 1507 } |
| 1504 | 1508 |
| 1505 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; | 1509 _url = |
| 1510 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; |
| 1506 | 1511 |
| 1507 var _response = _requester.request(_url, | 1512 var _response = _requester.request(_url, "GET", |
| 1508 "GET", | 1513 body: _body, |
| 1509 body: _body, | 1514 queryParams: _queryParams, |
| 1510 queryParams: _queryParams, | 1515 uploadOptions: _uploadOptions, |
| 1511 uploadOptions: _uploadOptions, | 1516 uploadMedia: _uploadMedia, |
| 1512 uploadMedia: _uploadMedia, | 1517 downloadOptions: _downloadOptions); |
| 1513 downloadOptions: _downloadOptions); | |
| 1514 return _response.then((data) => new ListServicesResponse.fromJson(data)); | 1518 return _response.then((data) => new ListServicesResponse.fromJson(data)); |
| 1515 } | 1519 } |
| 1516 | 1520 |
| 1517 /** | 1521 /// Updates the configuration of the specified service. |
| 1518 * Updates the configuration of the specified service. | 1522 /// |
| 1519 * | 1523 /// [request] - The metadata request object. |
| 1520 * [request] - The metadata request object. | 1524 /// |
| 1521 * | 1525 /// Request parameters: |
| 1522 * Request parameters: | 1526 /// |
| 1523 * | 1527 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 1524 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1528 /// apps/myapp/services/default. |
| 1525 * apps/myapp/services/default. | 1529 /// |
| 1526 * | 1530 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1527 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1531 /// |
| 1528 * | 1532 /// [migrateTraffic] - Set to true to gradually shift traffic to one or more |
| 1529 * [updateMask] - Standard field mask for the set of fields to be updated. | 1533 /// versions that you specify. By default, traffic is shifted immediately. |
| 1530 * | 1534 /// For gradual traffic migration, the target versions must be located within |
| 1531 * [migrateTraffic] - Set to true to gradually shift traffic to one or more | 1535 /// instances that are configured for both warmup requests |
| 1532 * versions that you specify. By default, traffic is shifted immediately. For | 1536 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#inboundservicetype) |
| 1533 * gradual traffic migration, the target versions must be located within | 1537 /// and automatic scaling |
| 1534 * instances that are configured for both warmup requests | 1538 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#automaticscaling). |
| 1535 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#inboundservicetype) | 1539 /// You must specify the shardBy |
| 1536 * and automatic scaling | 1540 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services#shardby) |
| 1537 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#automaticscaling). | 1541 /// field in the Service resource. Gradual traffic migration is not supported |
| 1538 * You must specify the shardBy | 1542 /// in the App Engine flexible environment. For examples, see Migrating and |
| 1539 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services#shardby) | 1543 /// Splitting Traffic |
| 1540 * field in the Service resource. Gradual traffic migration is not supported | 1544 /// (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-tra
ffic). |
| 1541 * in the App Engine flexible environment. For examples, see Migrating and | 1545 /// |
| 1542 * Splitting Traffic | 1546 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 1543 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 1547 /// |
| 1544 * | 1548 /// Completes with a [Operation]. |
| 1545 * Completes with a [Operation]. | 1549 /// |
| 1546 * | 1550 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1547 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1551 /// an error. |
| 1548 * error. | 1552 /// |
| 1549 * | 1553 /// If the used [http.Client] completes with an error when making a REST |
| 1550 * If the used [http.Client] completes with an error when making a REST call, | 1554 /// call, this method will complete with the same error. |
| 1551 * this method will complete with the same error. | 1555 async.Future<Operation> patch( |
| 1552 */ | 1556 Service request, core.String appsId, core.String servicesId, |
| 1553 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.String updateMask, core.bool migrateTraffic}) { | 1557 {core.bool migrateTraffic, core.String updateMask}) { |
| 1554 var _url = null; | 1558 var _url = null; |
| 1555 var _queryParams = new core.Map(); | 1559 var _queryParams = new core.Map(); |
| 1556 var _uploadMedia = null; | 1560 var _uploadMedia = null; |
| 1557 var _uploadOptions = null; | 1561 var _uploadOptions = null; |
| 1558 var _downloadOptions = commons.DownloadOptions.Metadata; | 1562 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1559 var _body = null; | 1563 var _body = null; |
| 1560 | 1564 |
| 1561 if (request != null) { | 1565 if (request != null) { |
| 1562 _body = convert.JSON.encode((request).toJson()); | 1566 _body = convert.JSON.encode((request).toJson()); |
| 1563 } | 1567 } |
| 1564 if (appsId == null) { | 1568 if (appsId == null) { |
| 1565 throw new core.ArgumentError("Parameter appsId is required."); | 1569 throw new core.ArgumentError("Parameter appsId is required."); |
| 1566 } | 1570 } |
| 1567 if (servicesId == null) { | 1571 if (servicesId == null) { |
| 1568 throw new core.ArgumentError("Parameter servicesId is required."); | 1572 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1569 } | 1573 } |
| 1574 if (migrateTraffic != null) { |
| 1575 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 1576 } |
| 1570 if (updateMask != null) { | 1577 if (updateMask != null) { |
| 1571 _queryParams["updateMask"] = [updateMask]; | 1578 _queryParams["updateMask"] = [updateMask]; |
| 1572 } | 1579 } |
| 1573 if (migrateTraffic != null) { | |
| 1574 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | |
| 1575 } | |
| 1576 | 1580 |
| 1577 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId'); | 1581 _url = 'v1beta/apps/' + |
| 1582 commons.Escaper.ecapeVariable('$appsId') + |
| 1583 '/services/' + |
| 1584 commons.Escaper.ecapeVariable('$servicesId'); |
| 1578 | 1585 |
| 1579 var _response = _requester.request(_url, | 1586 var _response = _requester.request(_url, "PATCH", |
| 1580 "PATCH", | 1587 body: _body, |
| 1581 body: _body, | 1588 queryParams: _queryParams, |
| 1582 queryParams: _queryParams, | 1589 uploadOptions: _uploadOptions, |
| 1583 uploadOptions: _uploadOptions, | 1590 uploadMedia: _uploadMedia, |
| 1584 uploadMedia: _uploadMedia, | 1591 downloadOptions: _downloadOptions); |
| 1585 downloadOptions: _downloadOptions); | |
| 1586 return _response.then((data) => new Operation.fromJson(data)); | 1592 return _response.then((data) => new Operation.fromJson(data)); |
| 1587 } | 1593 } |
| 1588 | |
| 1589 } | 1594 } |
| 1590 | 1595 |
| 1591 | |
| 1592 class AppsServicesVersionsResourceApi { | 1596 class AppsServicesVersionsResourceApi { |
| 1593 final commons.ApiRequester _requester; | 1597 final commons.ApiRequester _requester; |
| 1594 | 1598 |
| 1595 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers
ionsInstancesResourceApi(_requester); | 1599 AppsServicesVersionsInstancesResourceApi get instances => |
| 1600 new AppsServicesVersionsInstancesResourceApi(_requester); |
| 1596 | 1601 |
| 1597 AppsServicesVersionsResourceApi(commons.ApiRequester client) : | 1602 AppsServicesVersionsResourceApi(commons.ApiRequester client) |
| 1598 _requester = client; | 1603 : _requester = client; |
| 1599 | 1604 |
| 1600 /** | 1605 /// Deploys code and resource files to a new version. |
| 1601 * Deploys code and resource files to a new version. | 1606 /// |
| 1602 * | 1607 /// [request] - The metadata request object. |
| 1603 * [request] - The metadata request object. | 1608 /// |
| 1604 * | 1609 /// Request parameters: |
| 1605 * Request parameters: | 1610 /// |
| 1606 * | 1611 /// [appsId] - Part of `parent`. Name of the parent resource to create this |
| 1607 * [appsId] - Part of `parent`. Name of the parent resource to create this | 1612 /// version under. Example: apps/myapp/services/default. |
| 1608 * version under. Example: apps/myapp/services/default. | 1613 /// |
| 1609 * | 1614 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 1610 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1615 /// |
| 1611 * | 1616 /// Completes with a [Operation]. |
| 1612 * Completes with a [Operation]. | 1617 /// |
| 1613 * | 1618 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1614 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1619 /// an error. |
| 1615 * error. | 1620 /// |
| 1616 * | 1621 /// If the used [http.Client] completes with an error when making a REST |
| 1617 * If the used [http.Client] completes with an error when making a REST call, | 1622 /// call, this method will complete with the same error. |
| 1618 * this method will complete with the same error. | 1623 async.Future<Operation> create( |
| 1619 */ | 1624 Version request, core.String appsId, core.String servicesId) { |
| 1620 async.Future<Operation> create(Version request, core.String appsId, core.Strin
g servicesId) { | |
| 1621 var _url = null; | 1625 var _url = null; |
| 1622 var _queryParams = new core.Map(); | 1626 var _queryParams = new core.Map(); |
| 1623 var _uploadMedia = null; | 1627 var _uploadMedia = null; |
| 1624 var _uploadOptions = null; | 1628 var _uploadOptions = null; |
| 1625 var _downloadOptions = commons.DownloadOptions.Metadata; | 1629 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1626 var _body = null; | 1630 var _body = null; |
| 1627 | 1631 |
| 1628 if (request != null) { | 1632 if (request != null) { |
| 1629 _body = convert.JSON.encode((request).toJson()); | 1633 _body = convert.JSON.encode((request).toJson()); |
| 1630 } | 1634 } |
| 1631 if (appsId == null) { | 1635 if (appsId == null) { |
| 1632 throw new core.ArgumentError("Parameter appsId is required."); | 1636 throw new core.ArgumentError("Parameter appsId is required."); |
| 1633 } | 1637 } |
| 1634 if (servicesId == null) { | 1638 if (servicesId == null) { |
| 1635 throw new core.ArgumentError("Parameter servicesId is required."); | 1639 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1636 } | 1640 } |
| 1637 | 1641 |
| 1638 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1642 _url = 'v1beta/apps/' + |
| 1643 commons.Escaper.ecapeVariable('$appsId') + |
| 1644 '/services/' + |
| 1645 commons.Escaper.ecapeVariable('$servicesId') + |
| 1646 '/versions'; |
| 1639 | 1647 |
| 1640 var _response = _requester.request(_url, | 1648 var _response = _requester.request(_url, "POST", |
| 1641 "POST", | 1649 body: _body, |
| 1642 body: _body, | 1650 queryParams: _queryParams, |
| 1643 queryParams: _queryParams, | 1651 uploadOptions: _uploadOptions, |
| 1644 uploadOptions: _uploadOptions, | 1652 uploadMedia: _uploadMedia, |
| 1645 uploadMedia: _uploadMedia, | 1653 downloadOptions: _downloadOptions); |
| 1646 downloadOptions: _downloadOptions); | |
| 1647 return _response.then((data) => new Operation.fromJson(data)); | 1654 return _response.then((data) => new Operation.fromJson(data)); |
| 1648 } | 1655 } |
| 1649 | 1656 |
| 1650 /** | 1657 /// Deletes an existing Version resource. |
| 1651 * Deletes an existing Version resource. | 1658 /// |
| 1652 * | 1659 /// Request parameters: |
| 1653 * Request parameters: | 1660 /// |
| 1654 * | 1661 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1655 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1662 /// apps/myapp/services/default/versions/v1. |
| 1656 * apps/myapp/services/default/versions/v1. | 1663 /// |
| 1657 * | 1664 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1658 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1665 /// |
| 1659 * | 1666 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1660 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1667 /// |
| 1661 * | 1668 /// Completes with a [Operation]. |
| 1662 * Completes with a [Operation]. | 1669 /// |
| 1663 * | 1670 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1671 /// an error. |
| 1665 * error. | 1672 /// |
| 1666 * | 1673 /// If the used [http.Client] completes with an error when making a REST |
| 1667 * If the used [http.Client] completes with an error when making a REST call, | 1674 /// call, this method will complete with the same error. |
| 1668 * this method will complete with the same error. | 1675 async.Future<Operation> delete( |
| 1669 */ | 1676 core.String appsId, core.String servicesId, core.String versionsId) { |
| 1670 async.Future<Operation> delete(core.String appsId, core.String servicesId, cor
e.String versionsId) { | |
| 1671 var _url = null; | 1677 var _url = null; |
| 1672 var _queryParams = new core.Map(); | 1678 var _queryParams = new core.Map(); |
| 1673 var _uploadMedia = null; | 1679 var _uploadMedia = null; |
| 1674 var _uploadOptions = null; | 1680 var _uploadOptions = null; |
| 1675 var _downloadOptions = commons.DownloadOptions.Metadata; | 1681 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1676 var _body = null; | 1682 var _body = null; |
| 1677 | 1683 |
| 1678 if (appsId == null) { | 1684 if (appsId == null) { |
| 1679 throw new core.ArgumentError("Parameter appsId is required."); | 1685 throw new core.ArgumentError("Parameter appsId is required."); |
| 1680 } | 1686 } |
| 1681 if (servicesId == null) { | 1687 if (servicesId == null) { |
| 1682 throw new core.ArgumentError("Parameter servicesId is required."); | 1688 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1683 } | 1689 } |
| 1684 if (versionsId == null) { | 1690 if (versionsId == null) { |
| 1685 throw new core.ArgumentError("Parameter versionsId is required."); | 1691 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1686 } | 1692 } |
| 1687 | 1693 |
| 1688 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId'); | 1694 _url = 'v1beta/apps/' + |
| 1695 commons.Escaper.ecapeVariable('$appsId') + |
| 1696 '/services/' + |
| 1697 commons.Escaper.ecapeVariable('$servicesId') + |
| 1698 '/versions/' + |
| 1699 commons.Escaper.ecapeVariable('$versionsId'); |
| 1689 | 1700 |
| 1690 var _response = _requester.request(_url, | 1701 var _response = _requester.request(_url, "DELETE", |
| 1691 "DELETE", | 1702 body: _body, |
| 1692 body: _body, | 1703 queryParams: _queryParams, |
| 1693 queryParams: _queryParams, | 1704 uploadOptions: _uploadOptions, |
| 1694 uploadOptions: _uploadOptions, | 1705 uploadMedia: _uploadMedia, |
| 1695 uploadMedia: _uploadMedia, | 1706 downloadOptions: _downloadOptions); |
| 1696 downloadOptions: _downloadOptions); | |
| 1697 return _response.then((data) => new Operation.fromJson(data)); | 1707 return _response.then((data) => new Operation.fromJson(data)); |
| 1698 } | 1708 } |
| 1699 | 1709 |
| 1700 /** | 1710 /// Gets the specified Version resource. By default, only a BASIC_VIEW will |
| 1701 * Gets the specified Version resource. By default, only a BASIC_VIEW will be | 1711 /// be returned. Specify the FULL_VIEW parameter to get the full resource. |
| 1702 * returned. Specify the FULL_VIEW parameter to get the full resource. | 1712 /// |
| 1703 * | 1713 /// Request parameters: |
| 1704 * Request parameters: | 1714 /// |
| 1705 * | 1715 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1706 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1716 /// apps/myapp/services/default/versions/v1. |
| 1707 * apps/myapp/services/default/versions/v1. | 1717 /// |
| 1708 * | 1718 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1709 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1719 /// |
| 1710 * | 1720 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1711 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1721 /// |
| 1712 * | 1722 /// [view] - Controls the set of fields returned in the Get response. |
| 1713 * [view] - Controls the set of fields returned in the Get response. | 1723 /// Possible string values are: |
| 1714 * Possible string values are: | 1724 /// - "BASIC" : A BASIC. |
| 1715 * - "BASIC" : A BASIC. | 1725 /// - "FULL" : A FULL. |
| 1716 * - "FULL" : A FULL. | 1726 /// |
| 1717 * | 1727 /// Completes with a [Version]. |
| 1718 * Completes with a [Version]. | 1728 /// |
| 1719 * | 1729 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1720 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1730 /// an error. |
| 1721 * error. | 1731 /// |
| 1722 * | 1732 /// If the used [http.Client] completes with an error when making a REST |
| 1723 * If the used [http.Client] completes with an error when making a REST call, | 1733 /// call, this method will complete with the same error. |
| 1724 * this method will complete with the same error. | 1734 async.Future<Version> get( |
| 1725 */ | 1735 core.String appsId, core.String servicesId, core.String versionsId, |
| 1726 async.Future<Version> get(core.String appsId, core.String servicesId, core.Str
ing versionsId, {core.String view}) { | 1736 {core.String view}) { |
| 1727 var _url = null; | 1737 var _url = null; |
| 1728 var _queryParams = new core.Map(); | 1738 var _queryParams = new core.Map(); |
| 1729 var _uploadMedia = null; | 1739 var _uploadMedia = null; |
| 1730 var _uploadOptions = null; | 1740 var _uploadOptions = null; |
| 1731 var _downloadOptions = commons.DownloadOptions.Metadata; | 1741 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1732 var _body = null; | 1742 var _body = null; |
| 1733 | 1743 |
| 1734 if (appsId == null) { | 1744 if (appsId == null) { |
| 1735 throw new core.ArgumentError("Parameter appsId is required."); | 1745 throw new core.ArgumentError("Parameter appsId is required."); |
| 1736 } | 1746 } |
| 1737 if (servicesId == null) { | 1747 if (servicesId == null) { |
| 1738 throw new core.ArgumentError("Parameter servicesId is required."); | 1748 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1739 } | 1749 } |
| 1740 if (versionsId == null) { | 1750 if (versionsId == null) { |
| 1741 throw new core.ArgumentError("Parameter versionsId is required."); | 1751 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1742 } | 1752 } |
| 1743 if (view != null) { | 1753 if (view != null) { |
| 1744 _queryParams["view"] = [view]; | 1754 _queryParams["view"] = [view]; |
| 1745 } | 1755 } |
| 1746 | 1756 |
| 1747 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId'); | 1757 _url = 'v1beta/apps/' + |
| 1758 commons.Escaper.ecapeVariable('$appsId') + |
| 1759 '/services/' + |
| 1760 commons.Escaper.ecapeVariable('$servicesId') + |
| 1761 '/versions/' + |
| 1762 commons.Escaper.ecapeVariable('$versionsId'); |
| 1748 | 1763 |
| 1749 var _response = _requester.request(_url, | 1764 var _response = _requester.request(_url, "GET", |
| 1750 "GET", | 1765 body: _body, |
| 1751 body: _body, | 1766 queryParams: _queryParams, |
| 1752 queryParams: _queryParams, | 1767 uploadOptions: _uploadOptions, |
| 1753 uploadOptions: _uploadOptions, | 1768 uploadMedia: _uploadMedia, |
| 1754 uploadMedia: _uploadMedia, | 1769 downloadOptions: _downloadOptions); |
| 1755 downloadOptions: _downloadOptions); | |
| 1756 return _response.then((data) => new Version.fromJson(data)); | 1770 return _response.then((data) => new Version.fromJson(data)); |
| 1757 } | 1771 } |
| 1758 | 1772 |
| 1759 /** | 1773 /// Lists the versions of a service. |
| 1760 * Lists the versions of a service. | 1774 /// |
| 1761 * | 1775 /// Request parameters: |
| 1762 * Request parameters: | 1776 /// |
| 1763 * | 1777 /// [appsId] - Part of `parent`. Name of the parent Service resource. |
| 1764 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: | 1778 /// Example: apps/myapp/services/default. |
| 1765 * apps/myapp/services/default. | 1779 /// |
| 1766 * | 1780 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 1767 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1781 /// |
| 1768 * | 1782 /// [pageToken] - Continuation token for fetching the next page of results. |
| 1769 * [pageToken] - Continuation token for fetching the next page of results. | 1783 /// |
| 1770 * | 1784 /// [pageSize] - Maximum results to return per page. |
| 1771 * [pageSize] - Maximum results to return per page. | 1785 /// |
| 1772 * | 1786 /// [view] - Controls the set of fields returned in the List response. |
| 1773 * [view] - Controls the set of fields returned in the List response. | 1787 /// Possible string values are: |
| 1774 * Possible string values are: | 1788 /// - "BASIC" : A BASIC. |
| 1775 * - "BASIC" : A BASIC. | 1789 /// - "FULL" : A FULL. |
| 1776 * - "FULL" : A FULL. | 1790 /// |
| 1777 * | 1791 /// Completes with a [ListVersionsResponse]. |
| 1778 * Completes with a [ListVersionsResponse]. | 1792 /// |
| 1779 * | 1793 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1780 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1794 /// an error. |
| 1781 * error. | 1795 /// |
| 1782 * | 1796 /// If the used [http.Client] completes with an error when making a REST |
| 1783 * If the used [http.Client] completes with an error when making a REST call, | 1797 /// call, this method will complete with the same error. |
| 1784 * this method will complete with the same error. | 1798 async.Future<ListVersionsResponse> list( |
| 1785 */ | 1799 core.String appsId, core.String servicesId, |
| 1786 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.String pageToken, core.int pageSize, core.String view}) { | 1800 {core.String pageToken, core.int pageSize, core.String view}) { |
| 1787 var _url = null; | 1801 var _url = null; |
| 1788 var _queryParams = new core.Map(); | 1802 var _queryParams = new core.Map(); |
| 1789 var _uploadMedia = null; | 1803 var _uploadMedia = null; |
| 1790 var _uploadOptions = null; | 1804 var _uploadOptions = null; |
| 1791 var _downloadOptions = commons.DownloadOptions.Metadata; | 1805 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1792 var _body = null; | 1806 var _body = null; |
| 1793 | 1807 |
| 1794 if (appsId == null) { | 1808 if (appsId == null) { |
| 1795 throw new core.ArgumentError("Parameter appsId is required."); | 1809 throw new core.ArgumentError("Parameter appsId is required."); |
| 1796 } | 1810 } |
| 1797 if (servicesId == null) { | 1811 if (servicesId == null) { |
| 1798 throw new core.ArgumentError("Parameter servicesId is required."); | 1812 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1799 } | 1813 } |
| 1800 if (pageToken != null) { | 1814 if (pageToken != null) { |
| 1801 _queryParams["pageToken"] = [pageToken]; | 1815 _queryParams["pageToken"] = [pageToken]; |
| 1802 } | 1816 } |
| 1803 if (pageSize != null) { | 1817 if (pageSize != null) { |
| 1804 _queryParams["pageSize"] = ["${pageSize}"]; | 1818 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1805 } | 1819 } |
| 1806 if (view != null) { | 1820 if (view != null) { |
| 1807 _queryParams["view"] = [view]; | 1821 _queryParams["view"] = [view]; |
| 1808 } | 1822 } |
| 1809 | 1823 |
| 1810 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1824 _url = 'v1beta/apps/' + |
| 1825 commons.Escaper.ecapeVariable('$appsId') + |
| 1826 '/services/' + |
| 1827 commons.Escaper.ecapeVariable('$servicesId') + |
| 1828 '/versions'; |
| 1811 | 1829 |
| 1812 var _response = _requester.request(_url, | 1830 var _response = _requester.request(_url, "GET", |
| 1813 "GET", | 1831 body: _body, |
| 1814 body: _body, | 1832 queryParams: _queryParams, |
| 1815 queryParams: _queryParams, | 1833 uploadOptions: _uploadOptions, |
| 1816 uploadOptions: _uploadOptions, | 1834 uploadMedia: _uploadMedia, |
| 1817 uploadMedia: _uploadMedia, | 1835 downloadOptions: _downloadOptions); |
| 1818 downloadOptions: _downloadOptions); | |
| 1819 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 1836 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
| 1820 } | 1837 } |
| 1821 | 1838 |
| 1822 /** | 1839 /// Updates the specified Version resource. You can specify the following |
| 1823 * Updates the specified Version resource. You can specify the following | 1840 /// fields depending on the App Engine environment and type of scaling that |
| 1824 * fields depending on the App Engine environment and type of scaling that the | 1841 /// the version resource uses: |
| 1825 * version resource uses: | 1842 /// serving_status |
| 1826 * serving_status | 1843 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.serving_status): |
| 1827 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.serving_status): | 1844 /// For Version resources that use basic scaling, manual scaling, or run in |
| 1828 * For Version resources that use basic scaling, manual scaling, or run in | 1845 /// the App Engine flexible environment. |
| 1829 * the App Engine flexible environment. | 1846 /// instance_class |
| 1830 * instance_class | 1847 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.instance_class): |
| 1831 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.instance_class): | 1848 /// For Version resources that run in the App Engine standard environment. |
| 1832 * For Version resources that run in the App Engine standard environment. | 1849 /// automatic_scaling.min_idle_instances |
| 1833 * automatic_scaling.min_idle_instances | 1850 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1834 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1851 /// For Version resources that use automatic scaling and run in the App |
| 1835 * For Version resources that use automatic scaling and run in the App Engine | 1852 /// Engine standard environment. |
| 1836 * standard environment. | 1853 /// automatic_scaling.max_idle_instances |
| 1837 * automatic_scaling.max_idle_instances | 1854 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1838 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1855 /// For Version resources that use automatic scaling and run in the App |
| 1839 * For Version resources that use automatic scaling and run in the App Engine | 1856 /// Engine standard environment. |
| 1840 * standard environment. | 1857 /// automatic_scaling.min_total_instances |
| 1841 * | 1858 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1842 * [request] - The metadata request object. | 1859 /// For Version resources that use automatic scaling and run in the App |
| 1843 * | 1860 /// Engine Flexible environment. |
| 1844 * Request parameters: | 1861 /// automatic_scaling.max_total_instances |
| 1845 * | 1862 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1846 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1863 /// For Version resources that use automatic scaling and run in the App |
| 1847 * apps/myapp/services/default/versions/1. | 1864 /// Engine Flexible environment. |
| 1848 * | 1865 /// automatic_scaling.cool_down_period_sec |
| 1849 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1866 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1850 * | 1867 /// For Version resources that use automatic scaling and run in the App |
| 1851 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1868 /// Engine Flexible environment. |
| 1852 * | 1869 /// automatic_scaling.cpu_utilization.target_utilization |
| 1853 * [updateMask] - Standard field mask for the set of fields to be updated. | 1870 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#Version.FIELDS.automatic_scaling): |
| 1854 * | 1871 /// For Version resources that use automatic scaling and run in the App |
| 1855 * Completes with a [Operation]. | 1872 /// Engine Flexible environment. |
| 1856 * | 1873 /// |
| 1857 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1874 /// [request] - The metadata request object. |
| 1858 * error. | 1875 /// |
| 1859 * | 1876 /// Request parameters: |
| 1860 * If the used [http.Client] completes with an error when making a REST call, | 1877 /// |
| 1861 * this method will complete with the same error. | 1878 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 1862 */ | 1879 /// apps/myapp/services/default/versions/1. |
| 1863 async.Future<Operation> patch(Version request, core.String appsId, core.String
servicesId, core.String versionsId, {core.String updateMask}) { | 1880 /// |
| 1881 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1882 /// |
| 1883 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1884 /// |
| 1885 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 1886 /// |
| 1887 /// Completes with a [Operation]. |
| 1888 /// |
| 1889 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1890 /// an error. |
| 1891 /// |
| 1892 /// If the used [http.Client] completes with an error when making a REST |
| 1893 /// call, this method will complete with the same error. |
| 1894 async.Future<Operation> patch(Version request, core.String appsId, |
| 1895 core.String servicesId, core.String versionsId, |
| 1896 {core.String updateMask}) { |
| 1864 var _url = null; | 1897 var _url = null; |
| 1865 var _queryParams = new core.Map(); | 1898 var _queryParams = new core.Map(); |
| 1866 var _uploadMedia = null; | 1899 var _uploadMedia = null; |
| 1867 var _uploadOptions = null; | 1900 var _uploadOptions = null; |
| 1868 var _downloadOptions = commons.DownloadOptions.Metadata; | 1901 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1869 var _body = null; | 1902 var _body = null; |
| 1870 | 1903 |
| 1871 if (request != null) { | 1904 if (request != null) { |
| 1872 _body = convert.JSON.encode((request).toJson()); | 1905 _body = convert.JSON.encode((request).toJson()); |
| 1873 } | 1906 } |
| 1874 if (appsId == null) { | 1907 if (appsId == null) { |
| 1875 throw new core.ArgumentError("Parameter appsId is required."); | 1908 throw new core.ArgumentError("Parameter appsId is required."); |
| 1876 } | 1909 } |
| 1877 if (servicesId == null) { | 1910 if (servicesId == null) { |
| 1878 throw new core.ArgumentError("Parameter servicesId is required."); | 1911 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1879 } | 1912 } |
| 1880 if (versionsId == null) { | 1913 if (versionsId == null) { |
| 1881 throw new core.ArgumentError("Parameter versionsId is required."); | 1914 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1882 } | 1915 } |
| 1883 if (updateMask != null) { | 1916 if (updateMask != null) { |
| 1884 _queryParams["updateMask"] = [updateMask]; | 1917 _queryParams["updateMask"] = [updateMask]; |
| 1885 } | 1918 } |
| 1886 | 1919 |
| 1887 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId'); | 1920 _url = 'v1beta/apps/' + |
| 1921 commons.Escaper.ecapeVariable('$appsId') + |
| 1922 '/services/' + |
| 1923 commons.Escaper.ecapeVariable('$servicesId') + |
| 1924 '/versions/' + |
| 1925 commons.Escaper.ecapeVariable('$versionsId'); |
| 1888 | 1926 |
| 1889 var _response = _requester.request(_url, | 1927 var _response = _requester.request(_url, "PATCH", |
| 1890 "PATCH", | 1928 body: _body, |
| 1891 body: _body, | 1929 queryParams: _queryParams, |
| 1892 queryParams: _queryParams, | 1930 uploadOptions: _uploadOptions, |
| 1893 uploadOptions: _uploadOptions, | 1931 uploadMedia: _uploadMedia, |
| 1894 uploadMedia: _uploadMedia, | 1932 downloadOptions: _downloadOptions); |
| 1895 downloadOptions: _downloadOptions); | |
| 1896 return _response.then((data) => new Operation.fromJson(data)); | 1933 return _response.then((data) => new Operation.fromJson(data)); |
| 1897 } | 1934 } |
| 1898 | |
| 1899 } | 1935 } |
| 1900 | 1936 |
| 1901 | |
| 1902 class AppsServicesVersionsInstancesResourceApi { | 1937 class AppsServicesVersionsInstancesResourceApi { |
| 1903 final commons.ApiRequester _requester; | 1938 final commons.ApiRequester _requester; |
| 1904 | 1939 |
| 1905 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : | 1940 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) |
| 1906 _requester = client; | 1941 : _requester = client; |
| 1907 | 1942 |
| 1908 /** | 1943 /// Enables debugging on a VM instance. This allows you to use the SSH |
| 1909 * Enables debugging on a VM instance. This allows you to use the SSH command | 1944 /// command to connect to the virtual machine where the instance lives. While |
| 1910 * to connect to the virtual machine where the instance lives. While in "debug | 1945 /// in "debug mode", the instance continues to serve live traffic. You should |
| 1911 * mode", the instance continues to serve live traffic. You should delete the | 1946 /// delete the instance when you are done debugging and then allow the system |
| 1912 * instance when you are done debugging and then allow the system to take over | 1947 /// to take over and determine if another instance should be started.Only |
| 1913 * and determine if another instance should be started.Only applicable for | 1948 /// applicable for instances in App Engine flexible environment. |
| 1914 * instances in App Engine flexible environment. | 1949 /// |
| 1915 * | 1950 /// [request] - The metadata request object. |
| 1916 * [request] - The metadata request object. | 1951 /// |
| 1917 * | 1952 /// Request parameters: |
| 1918 * Request parameters: | 1953 /// |
| 1919 * | 1954 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1920 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1955 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 1921 * apps/myapp/services/default/versions/v1/instances/instance-1. | 1956 /// |
| 1922 * | 1957 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1923 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1958 /// |
| 1924 * | 1959 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1925 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1960 /// |
| 1926 * | 1961 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1927 * [instancesId] - Part of `name`. See documentation of `appsId`. | 1962 /// |
| 1928 * | 1963 /// Completes with a [Operation]. |
| 1929 * Completes with a [Operation]. | 1964 /// |
| 1930 * | 1965 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1931 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1966 /// an error. |
| 1932 * error. | 1967 /// |
| 1933 * | 1968 /// If the used [http.Client] completes with an error when making a REST |
| 1934 * If the used [http.Client] completes with an error when making a REST call, | 1969 /// call, this method will complete with the same error. |
| 1935 * this method will complete with the same error. | 1970 async.Future<Operation> debug( |
| 1936 */ | 1971 DebugInstanceRequest request, |
| 1937 async.Future<Operation> debug(DebugInstanceRequest request, core.String appsId
, core.String servicesId, core.String versionsId, core.String instancesId) { | 1972 core.String appsId, |
| 1973 core.String servicesId, |
| 1974 core.String versionsId, |
| 1975 core.String instancesId) { |
| 1938 var _url = null; | 1976 var _url = null; |
| 1939 var _queryParams = new core.Map(); | 1977 var _queryParams = new core.Map(); |
| 1940 var _uploadMedia = null; | 1978 var _uploadMedia = null; |
| 1941 var _uploadOptions = null; | 1979 var _uploadOptions = null; |
| 1942 var _downloadOptions = commons.DownloadOptions.Metadata; | 1980 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1943 var _body = null; | 1981 var _body = null; |
| 1944 | 1982 |
| 1945 if (request != null) { | 1983 if (request != null) { |
| 1946 _body = convert.JSON.encode((request).toJson()); | 1984 _body = convert.JSON.encode((request).toJson()); |
| 1947 } | 1985 } |
| 1948 if (appsId == null) { | 1986 if (appsId == null) { |
| 1949 throw new core.ArgumentError("Parameter appsId is required."); | 1987 throw new core.ArgumentError("Parameter appsId is required."); |
| 1950 } | 1988 } |
| 1951 if (servicesId == null) { | 1989 if (servicesId == null) { |
| 1952 throw new core.ArgumentError("Parameter servicesId is required."); | 1990 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1953 } | 1991 } |
| 1954 if (versionsId == null) { | 1992 if (versionsId == null) { |
| 1955 throw new core.ArgumentError("Parameter versionsId is required."); | 1993 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1956 } | 1994 } |
| 1957 if (instancesId == null) { | 1995 if (instancesId == null) { |
| 1958 throw new core.ArgumentError("Parameter instancesId is required."); | 1996 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1959 } | 1997 } |
| 1960 | 1998 |
| 1961 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable
('$instancesId') + ':debug'; | 1999 _url = 'v1beta/apps/' + |
| 2000 commons.Escaper.ecapeVariable('$appsId') + |
| 2001 '/services/' + |
| 2002 commons.Escaper.ecapeVariable('$servicesId') + |
| 2003 '/versions/' + |
| 2004 commons.Escaper.ecapeVariable('$versionsId') + |
| 2005 '/instances/' + |
| 2006 commons.Escaper.ecapeVariable('$instancesId') + |
| 2007 ':debug'; |
| 1962 | 2008 |
| 1963 var _response = _requester.request(_url, | 2009 var _response = _requester.request(_url, "POST", |
| 1964 "POST", | 2010 body: _body, |
| 1965 body: _body, | 2011 queryParams: _queryParams, |
| 1966 queryParams: _queryParams, | 2012 uploadOptions: _uploadOptions, |
| 1967 uploadOptions: _uploadOptions, | 2013 uploadMedia: _uploadMedia, |
| 1968 uploadMedia: _uploadMedia, | 2014 downloadOptions: _downloadOptions); |
| 1969 downloadOptions: _downloadOptions); | |
| 1970 return _response.then((data) => new Operation.fromJson(data)); | 2015 return _response.then((data) => new Operation.fromJson(data)); |
| 1971 } | 2016 } |
| 1972 | 2017 |
| 1973 /** | 2018 /// Stops a running instance. |
| 1974 * Stops a running instance. | 2019 /// |
| 1975 * | 2020 /// Request parameters: |
| 1976 * Request parameters: | 2021 /// |
| 1977 * | 2022 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1978 * [appsId] - Part of `name`. Name of the resource requested. Example: | 2023 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 1979 * apps/myapp/services/default/versions/v1/instances/instance-1. | 2024 /// |
| 1980 * | 2025 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1981 * [servicesId] - Part of `name`. See documentation of `appsId`. | 2026 /// |
| 1982 * | 2027 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1983 * [versionsId] - Part of `name`. See documentation of `appsId`. | 2028 /// |
| 1984 * | 2029 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1985 * [instancesId] - Part of `name`. See documentation of `appsId`. | 2030 /// |
| 1986 * | 2031 /// Completes with a [Operation]. |
| 1987 * Completes with a [Operation]. | 2032 /// |
| 1988 * | 2033 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1989 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2034 /// an error. |
| 1990 * error. | 2035 /// |
| 1991 * | 2036 /// If the used [http.Client] completes with an error when making a REST |
| 1992 * If the used [http.Client] completes with an error when making a REST call, | 2037 /// call, this method will complete with the same error. |
| 1993 * this method will complete with the same error. | 2038 async.Future<Operation> delete(core.String appsId, core.String servicesId, |
| 1994 */ | 2039 core.String versionsId, core.String instancesId) { |
| 1995 async.Future<Operation> delete(core.String appsId, core.String servicesId, cor
e.String versionsId, core.String instancesId) { | |
| 1996 var _url = null; | 2040 var _url = null; |
| 1997 var _queryParams = new core.Map(); | 2041 var _queryParams = new core.Map(); |
| 1998 var _uploadMedia = null; | 2042 var _uploadMedia = null; |
| 1999 var _uploadOptions = null; | 2043 var _uploadOptions = null; |
| 2000 var _downloadOptions = commons.DownloadOptions.Metadata; | 2044 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2001 var _body = null; | 2045 var _body = null; |
| 2002 | 2046 |
| 2003 if (appsId == null) { | 2047 if (appsId == null) { |
| 2004 throw new core.ArgumentError("Parameter appsId is required."); | 2048 throw new core.ArgumentError("Parameter appsId is required."); |
| 2005 } | 2049 } |
| 2006 if (servicesId == null) { | 2050 if (servicesId == null) { |
| 2007 throw new core.ArgumentError("Parameter servicesId is required."); | 2051 throw new core.ArgumentError("Parameter servicesId is required."); |
| 2008 } | 2052 } |
| 2009 if (versionsId == null) { | 2053 if (versionsId == null) { |
| 2010 throw new core.ArgumentError("Parameter versionsId is required."); | 2054 throw new core.ArgumentError("Parameter versionsId is required."); |
| 2011 } | 2055 } |
| 2012 if (instancesId == null) { | 2056 if (instancesId == null) { |
| 2013 throw new core.ArgumentError("Parameter instancesId is required."); | 2057 throw new core.ArgumentError("Parameter instancesId is required."); |
| 2014 } | 2058 } |
| 2015 | 2059 |
| 2016 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable
('$instancesId'); | 2060 _url = 'v1beta/apps/' + |
| 2061 commons.Escaper.ecapeVariable('$appsId') + |
| 2062 '/services/' + |
| 2063 commons.Escaper.ecapeVariable('$servicesId') + |
| 2064 '/versions/' + |
| 2065 commons.Escaper.ecapeVariable('$versionsId') + |
| 2066 '/instances/' + |
| 2067 commons.Escaper.ecapeVariable('$instancesId'); |
| 2017 | 2068 |
| 2018 var _response = _requester.request(_url, | 2069 var _response = _requester.request(_url, "DELETE", |
| 2019 "DELETE", | 2070 body: _body, |
| 2020 body: _body, | 2071 queryParams: _queryParams, |
| 2021 queryParams: _queryParams, | 2072 uploadOptions: _uploadOptions, |
| 2022 uploadOptions: _uploadOptions, | 2073 uploadMedia: _uploadMedia, |
| 2023 uploadMedia: _uploadMedia, | 2074 downloadOptions: _downloadOptions); |
| 2024 downloadOptions: _downloadOptions); | |
| 2025 return _response.then((data) => new Operation.fromJson(data)); | 2075 return _response.then((data) => new Operation.fromJson(data)); |
| 2026 } | 2076 } |
| 2027 | 2077 |
| 2028 /** | 2078 /// Gets instance information. |
| 2029 * Gets instance information. | 2079 /// |
| 2030 * | 2080 /// Request parameters: |
| 2031 * Request parameters: | 2081 /// |
| 2032 * | 2082 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 2033 * [appsId] - Part of `name`. Name of the resource requested. Example: | 2083 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 2034 * apps/myapp/services/default/versions/v1/instances/instance-1. | 2084 /// |
| 2035 * | 2085 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 2036 * [servicesId] - Part of `name`. See documentation of `appsId`. | 2086 /// |
| 2037 * | 2087 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 2038 * [versionsId] - Part of `name`. See documentation of `appsId`. | 2088 /// |
| 2039 * | 2089 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 2040 * [instancesId] - Part of `name`. See documentation of `appsId`. | 2090 /// |
| 2041 * | 2091 /// Completes with a [Instance]. |
| 2042 * Completes with a [Instance]. | 2092 /// |
| 2043 * | 2093 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2044 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2094 /// an error. |
| 2045 * error. | 2095 /// |
| 2046 * | 2096 /// If the used [http.Client] completes with an error when making a REST |
| 2047 * If the used [http.Client] completes with an error when making a REST call, | 2097 /// call, this method will complete with the same error. |
| 2048 * this method will complete with the same error. | 2098 async.Future<Instance> get(core.String appsId, core.String servicesId, |
| 2049 */ | 2099 core.String versionsId, core.String instancesId) { |
| 2050 async.Future<Instance> get(core.String appsId, core.String servicesId, core.St
ring versionsId, core.String instancesId) { | |
| 2051 var _url = null; | 2100 var _url = null; |
| 2052 var _queryParams = new core.Map(); | 2101 var _queryParams = new core.Map(); |
| 2053 var _uploadMedia = null; | 2102 var _uploadMedia = null; |
| 2054 var _uploadOptions = null; | 2103 var _uploadOptions = null; |
| 2055 var _downloadOptions = commons.DownloadOptions.Metadata; | 2104 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2056 var _body = null; | 2105 var _body = null; |
| 2057 | 2106 |
| 2058 if (appsId == null) { | 2107 if (appsId == null) { |
| 2059 throw new core.ArgumentError("Parameter appsId is required."); | 2108 throw new core.ArgumentError("Parameter appsId is required."); |
| 2060 } | 2109 } |
| 2061 if (servicesId == null) { | 2110 if (servicesId == null) { |
| 2062 throw new core.ArgumentError("Parameter servicesId is required."); | 2111 throw new core.ArgumentError("Parameter servicesId is required."); |
| 2063 } | 2112 } |
| 2064 if (versionsId == null) { | 2113 if (versionsId == null) { |
| 2065 throw new core.ArgumentError("Parameter versionsId is required."); | 2114 throw new core.ArgumentError("Parameter versionsId is required."); |
| 2066 } | 2115 } |
| 2067 if (instancesId == null) { | 2116 if (instancesId == null) { |
| 2068 throw new core.ArgumentError("Parameter instancesId is required."); | 2117 throw new core.ArgumentError("Parameter instancesId is required."); |
| 2069 } | 2118 } |
| 2070 | 2119 |
| 2071 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable
('$instancesId'); | 2120 _url = 'v1beta/apps/' + |
| 2121 commons.Escaper.ecapeVariable('$appsId') + |
| 2122 '/services/' + |
| 2123 commons.Escaper.ecapeVariable('$servicesId') + |
| 2124 '/versions/' + |
| 2125 commons.Escaper.ecapeVariable('$versionsId') + |
| 2126 '/instances/' + |
| 2127 commons.Escaper.ecapeVariable('$instancesId'); |
| 2072 | 2128 |
| 2073 var _response = _requester.request(_url, | 2129 var _response = _requester.request(_url, "GET", |
| 2074 "GET", | 2130 body: _body, |
| 2075 body: _body, | 2131 queryParams: _queryParams, |
| 2076 queryParams: _queryParams, | 2132 uploadOptions: _uploadOptions, |
| 2077 uploadOptions: _uploadOptions, | 2133 uploadMedia: _uploadMedia, |
| 2078 uploadMedia: _uploadMedia, | 2134 downloadOptions: _downloadOptions); |
| 2079 downloadOptions: _downloadOptions); | |
| 2080 return _response.then((data) => new Instance.fromJson(data)); | 2135 return _response.then((data) => new Instance.fromJson(data)); |
| 2081 } | 2136 } |
| 2082 | 2137 |
| 2083 /** | 2138 /// Lists the instances of a version.Tip: To aggregate details about |
| 2084 * Lists the instances of a version.Tip: To aggregate details about instances | 2139 /// instances over time, see the Stackdriver Monitoring API |
| 2085 * over time, see the Stackdriver Monitoring API | 2140 /// (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSerie
s/list). |
| 2086 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries
/list). | 2141 /// |
| 2087 * | 2142 /// Request parameters: |
| 2088 * Request parameters: | 2143 /// |
| 2089 * | 2144 /// [appsId] - Part of `parent`. Name of the parent Version resource. |
| 2090 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 2145 /// Example: apps/myapp/services/default/versions/v1. |
| 2091 * apps/myapp/services/default/versions/v1. | 2146 /// |
| 2092 * | 2147 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 2093 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 2148 /// |
| 2094 * | 2149 /// [versionsId] - Part of `parent`. See documentation of `appsId`. |
| 2095 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 2150 /// |
| 2096 * | 2151 /// [pageToken] - Continuation token for fetching the next page of results. |
| 2097 * [pageToken] - Continuation token for fetching the next page of results. | 2152 /// |
| 2098 * | 2153 /// [pageSize] - Maximum results to return per page. |
| 2099 * [pageSize] - Maximum results to return per page. | 2154 /// |
| 2100 * | 2155 /// Completes with a [ListInstancesResponse]. |
| 2101 * Completes with a [ListInstancesResponse]. | 2156 /// |
| 2102 * | 2157 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2158 /// an error. |
| 2104 * error. | 2159 /// |
| 2105 * | 2160 /// If the used [http.Client] completes with an error when making a REST |
| 2106 * If the used [http.Client] completes with an error when making a REST call, | 2161 /// call, this method will complete with the same error. |
| 2107 * this method will complete with the same error. | 2162 async.Future<ListInstancesResponse> list( |
| 2108 */ | 2163 core.String appsId, core.String servicesId, core.String versionsId, |
| 2109 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { | 2164 {core.String pageToken, core.int pageSize}) { |
| 2110 var _url = null; | 2165 var _url = null; |
| 2111 var _queryParams = new core.Map(); | 2166 var _queryParams = new core.Map(); |
| 2112 var _uploadMedia = null; | 2167 var _uploadMedia = null; |
| 2113 var _uploadOptions = null; | 2168 var _uploadOptions = null; |
| 2114 var _downloadOptions = commons.DownloadOptions.Metadata; | 2169 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2115 var _body = null; | 2170 var _body = null; |
| 2116 | 2171 |
| 2117 if (appsId == null) { | 2172 if (appsId == null) { |
| 2118 throw new core.ArgumentError("Parameter appsId is required."); | 2173 throw new core.ArgumentError("Parameter appsId is required."); |
| 2119 } | 2174 } |
| 2120 if (servicesId == null) { | 2175 if (servicesId == null) { |
| 2121 throw new core.ArgumentError("Parameter servicesId is required."); | 2176 throw new core.ArgumentError("Parameter servicesId is required."); |
| 2122 } | 2177 } |
| 2123 if (versionsId == null) { | 2178 if (versionsId == null) { |
| 2124 throw new core.ArgumentError("Parameter versionsId is required."); | 2179 throw new core.ArgumentError("Parameter versionsId is required."); |
| 2125 } | 2180 } |
| 2126 if (pageToken != null) { | 2181 if (pageToken != null) { |
| 2127 _queryParams["pageToken"] = [pageToken]; | 2182 _queryParams["pageToken"] = [pageToken]; |
| 2128 } | 2183 } |
| 2129 if (pageSize != null) { | 2184 if (pageSize != null) { |
| 2130 _queryParams["pageSize"] = ["${pageSize}"]; | 2185 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2131 } | 2186 } |
| 2132 | 2187 |
| 2133 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances'; | 2188 _url = 'v1beta/apps/' + |
| 2189 commons.Escaper.ecapeVariable('$appsId') + |
| 2190 '/services/' + |
| 2191 commons.Escaper.ecapeVariable('$servicesId') + |
| 2192 '/versions/' + |
| 2193 commons.Escaper.ecapeVariable('$versionsId') + |
| 2194 '/instances'; |
| 2134 | 2195 |
| 2135 var _response = _requester.request(_url, | 2196 var _response = _requester.request(_url, "GET", |
| 2136 "GET", | 2197 body: _body, |
| 2137 body: _body, | 2198 queryParams: _queryParams, |
| 2138 queryParams: _queryParams, | 2199 uploadOptions: _uploadOptions, |
| 2139 uploadOptions: _uploadOptions, | 2200 uploadMedia: _uploadMedia, |
| 2140 uploadMedia: _uploadMedia, | 2201 downloadOptions: _downloadOptions); |
| 2141 downloadOptions: _downloadOptions); | |
| 2142 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 2202 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
| 2143 } | 2203 } |
| 2144 | |
| 2145 } | 2204 } |
| 2146 | 2205 |
| 2206 /// Google Cloud Endpoints |
| 2207 /// (https://cloud.google.com/appengine/docs/python/endpoints/) configuration |
| 2208 /// for API handlers. |
| 2209 class ApiConfigHandler { |
| 2210 /// Action to take when users access resources that require authentication. |
| 2211 /// Defaults to redirect. |
| 2212 /// Possible string values are: |
| 2213 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. |
| 2214 /// AUTH_FAIL_ACTION_REDIRECT is assumed. |
| 2215 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 2216 /// The user is redirected back to the application URL after signing in or |
| 2217 /// creating an account. |
| 2218 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP |
| 2219 /// status code and an error message. |
| 2220 core.String authFailAction; |
| 2147 | 2221 |
| 2222 /// Level of login required to access this resource. Defaults to optional. |
| 2223 /// Possible string values are: |
| 2224 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
| 2225 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
| 2226 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
| 2227 /// taken. In addition, if the user is not an administrator for the |
| 2228 /// application, they are given an error message regardless of |
| 2229 /// auth_fail_action. If the user is an administrator, the handler proceeds. |
| 2230 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 2231 /// normally. Otherwise, the auth_fail_action is taken. |
| 2232 core.String login; |
| 2148 | 2233 |
| 2149 /** | 2234 /// Path to the script from the application root directory. |
| 2150 * Google Cloud Endpoints | |
| 2151 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for | |
| 2152 * API handlers. | |
| 2153 */ | |
| 2154 class ApiConfigHandler { | |
| 2155 /** | |
| 2156 * Action to take when users access resources that require authentication. | |
| 2157 * Defaults to redirect. | |
| 2158 * Possible string values are: | |
| 2159 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | |
| 2160 * is assumed. | |
| 2161 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | |
| 2162 * The user is redirected back to the application URL after signing in or | |
| 2163 * creating an account. | |
| 2164 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | |
| 2165 * code and an error message. | |
| 2166 */ | |
| 2167 core.String authFailAction; | |
| 2168 /** | |
| 2169 * Level of login required to access this resource. Defaults to optional. | |
| 2170 * Possible string values are: | |
| 2171 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | |
| 2172 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | |
| 2173 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | |
| 2174 * taken. In addition, if the user is not an administrator for the | |
| 2175 * application, they are given an error message regardless of | |
| 2176 * auth_fail_action. If the user is an administrator, the handler proceeds. | |
| 2177 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | |
| 2178 * normally. Otherwise, the auth_fail_action is taken. | |
| 2179 */ | |
| 2180 core.String login; | |
| 2181 /** Path to the script from the application root directory. */ | |
| 2182 core.String script; | 2235 core.String script; |
| 2183 /** | 2236 |
| 2184 * Security (HTTPS) enforcement for this URL. | 2237 /// Security (HTTPS) enforcement for this URL. |
| 2185 * Possible string values are: | 2238 /// Possible string values are: |
| 2186 * - "SECURE_UNSPECIFIED" : Not specified. | 2239 /// - "SECURE_UNSPECIFIED" : Not specified. |
| 2187 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 2240 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match |
| 2188 * handler succeed without redirects. The application can examine the request | 2241 /// the handler succeed without redirects. The application can examine the |
| 2189 * to determine which protocol was used, and respond accordingly. | 2242 /// request to determine which protocol was used, and respond accordingly. |
| 2190 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 2243 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 2191 * HTTPS are automatically redirected to the HTTP equivalent URL. | 2244 /// HTTPS are automatically redirected to the HTTP equivalent URL. |
| 2192 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | 2245 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match |
| 2193 * handler succeed without redirects. The application can examine the request | 2246 /// the handler succeed without redirects. The application can examine the |
| 2194 * to determine which protocol was used and respond accordingly. | 2247 /// request to determine which protocol was used and respond accordingly. |
| 2195 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | 2248 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do |
| 2196 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | 2249 /// not use HTTPS are automatically redirected to the HTTPS URL with the same |
| 2197 * Query parameters are reserved for the redirect. | 2250 /// path. Query parameters are reserved for the redirect. |
| 2198 */ | |
| 2199 core.String securityLevel; | 2251 core.String securityLevel; |
| 2200 /** URL to serve the endpoint at. */ | 2252 |
| 2253 /// URL to serve the endpoint at. |
| 2201 core.String url; | 2254 core.String url; |
| 2202 | 2255 |
| 2203 ApiConfigHandler(); | 2256 ApiConfigHandler(); |
| 2204 | 2257 |
| 2205 ApiConfigHandler.fromJson(core.Map _json) { | 2258 ApiConfigHandler.fromJson(core.Map _json) { |
| 2206 if (_json.containsKey("authFailAction")) { | 2259 if (_json.containsKey("authFailAction")) { |
| 2207 authFailAction = _json["authFailAction"]; | 2260 authFailAction = _json["authFailAction"]; |
| 2208 } | 2261 } |
| 2209 if (_json.containsKey("login")) { | 2262 if (_json.containsKey("login")) { |
| 2210 login = _json["login"]; | 2263 login = _json["login"]; |
| 2211 } | 2264 } |
| 2212 if (_json.containsKey("script")) { | 2265 if (_json.containsKey("script")) { |
| 2213 script = _json["script"]; | 2266 script = _json["script"]; |
| 2214 } | 2267 } |
| 2215 if (_json.containsKey("securityLevel")) { | 2268 if (_json.containsKey("securityLevel")) { |
| 2216 securityLevel = _json["securityLevel"]; | 2269 securityLevel = _json["securityLevel"]; |
| 2217 } | 2270 } |
| 2218 if (_json.containsKey("url")) { | 2271 if (_json.containsKey("url")) { |
| 2219 url = _json["url"]; | 2272 url = _json["url"]; |
| 2220 } | 2273 } |
| 2221 } | 2274 } |
| 2222 | 2275 |
| 2223 core.Map<core.String, core.Object> toJson() { | 2276 core.Map<core.String, core.Object> toJson() { |
| 2224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2277 final core.Map<core.String, core.Object> _json = |
| 2278 new core.Map<core.String, core.Object>(); |
| 2225 if (authFailAction != null) { | 2279 if (authFailAction != null) { |
| 2226 _json["authFailAction"] = authFailAction; | 2280 _json["authFailAction"] = authFailAction; |
| 2227 } | 2281 } |
| 2228 if (login != null) { | 2282 if (login != null) { |
| 2229 _json["login"] = login; | 2283 _json["login"] = login; |
| 2230 } | 2284 } |
| 2231 if (script != null) { | 2285 if (script != null) { |
| 2232 _json["script"] = script; | 2286 _json["script"] = script; |
| 2233 } | 2287 } |
| 2234 if (securityLevel != null) { | 2288 if (securityLevel != null) { |
| 2235 _json["securityLevel"] = securityLevel; | 2289 _json["securityLevel"] = securityLevel; |
| 2236 } | 2290 } |
| 2237 if (url != null) { | 2291 if (url != null) { |
| 2238 _json["url"] = url; | 2292 _json["url"] = url; |
| 2239 } | 2293 } |
| 2240 return _json; | 2294 return _json; |
| 2241 } | 2295 } |
| 2242 } | 2296 } |
| 2243 | 2297 |
| 2244 /** Uses Google Cloud Endpoints to handle requests. */ | 2298 /// Uses Google Cloud Endpoints to handle requests. |
| 2245 class ApiEndpointHandler { | 2299 class ApiEndpointHandler { |
| 2246 /** Path to the script from the application root directory. */ | 2300 /// Path to the script from the application root directory. |
| 2247 core.String scriptPath; | 2301 core.String scriptPath; |
| 2248 | 2302 |
| 2249 ApiEndpointHandler(); | 2303 ApiEndpointHandler(); |
| 2250 | 2304 |
| 2251 ApiEndpointHandler.fromJson(core.Map _json) { | 2305 ApiEndpointHandler.fromJson(core.Map _json) { |
| 2252 if (_json.containsKey("scriptPath")) { | 2306 if (_json.containsKey("scriptPath")) { |
| 2253 scriptPath = _json["scriptPath"]; | 2307 scriptPath = _json["scriptPath"]; |
| 2254 } | 2308 } |
| 2255 } | 2309 } |
| 2256 | 2310 |
| 2257 core.Map<core.String, core.Object> toJson() { | 2311 core.Map<core.String, core.Object> toJson() { |
| 2258 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2312 final core.Map<core.String, core.Object> _json = |
| 2313 new core.Map<core.String, core.Object>(); |
| 2259 if (scriptPath != null) { | 2314 if (scriptPath != null) { |
| 2260 _json["scriptPath"] = scriptPath; | 2315 _json["scriptPath"] = scriptPath; |
| 2261 } | 2316 } |
| 2262 return _json; | 2317 return _json; |
| 2263 } | 2318 } |
| 2264 } | 2319 } |
| 2265 | 2320 |
| 2266 /** | 2321 /// An Application resource contains the top-level configuration of an App |
| 2267 * An Application resource contains the top-level configuration of an App Engine | 2322 /// Engine application. Next tag: 20 |
| 2268 * application. Next tag: 20 | |
| 2269 */ | |
| 2270 class Application { | 2323 class Application { |
| 2271 /** | 2324 /// Google Apps authentication domain that controls which users can access |
| 2272 * Google Apps authentication domain that controls which users can access this | 2325 /// this application.Defaults to open access for any Google Account. |
| 2273 * application.Defaults to open access for any Google Account. | |
| 2274 */ | |
| 2275 core.String authDomain; | 2326 core.String authDomain; |
| 2276 /** | 2327 |
| 2277 * Google Cloud Storage bucket that can be used for storing files associated | 2328 /// Google Cloud Storage bucket that can be used for storing files associated |
| 2278 * with this application. This bucket is associated with the application and | 2329 /// with this application. This bucket is associated with the application and |
| 2279 * can be used by the gcloud deployment commands.@OutputOnly | 2330 /// can be used by the gcloud deployment commands.@OutputOnly |
| 2280 */ | |
| 2281 core.String codeBucket; | 2331 core.String codeBucket; |
| 2282 /** | 2332 |
| 2283 * Google Cloud Storage bucket that can be used by this application to store | 2333 /// Google Cloud Storage bucket that can be used by this application to store |
| 2284 * content.@OutputOnly | 2334 /// content.@OutputOnly |
| 2285 */ | |
| 2286 core.String defaultBucket; | 2335 core.String defaultBucket; |
| 2287 /** Cookie expiration policy for this application. */ | 2336 |
| 2337 /// Cookie expiration policy for this application. |
| 2288 core.String defaultCookieExpiration; | 2338 core.String defaultCookieExpiration; |
| 2289 /** | 2339 |
| 2290 * Hostname used to reach this application, as resolved by App | 2340 /// Hostname used to reach this application, as resolved by App |
| 2291 * Engine.@OutputOnly | 2341 /// Engine.@OutputOnly |
| 2292 */ | |
| 2293 core.String defaultHostname; | 2342 core.String defaultHostname; |
| 2294 /** | 2343 |
| 2295 * HTTP path dispatch rules for requests to the application that do not | 2344 /// HTTP path dispatch rules for requests to the application that do not |
| 2296 * explicitly target a service or version. Rules are order-dependent. Up to 20 | 2345 /// explicitly target a service or version. Rules are order-dependent. Up to |
| 2297 * dispatch rules can be supported.@OutputOnly | 2346 /// 20 dispatch rules can be supported.@OutputOnly |
| 2298 */ | |
| 2299 core.List<UrlDispatchRule> dispatchRules; | 2347 core.List<UrlDispatchRule> dispatchRules; |
| 2300 /** The feature specific settings to be used in the application. */ | 2348 |
| 2349 /// The feature specific settings to be used in the application. |
| 2301 FeatureSettings featureSettings; | 2350 FeatureSettings featureSettings; |
| 2302 /** | 2351 |
| 2303 * The Google Container Registry domain used for storing managed build docker | 2352 /// The Google Container Registry domain used for storing managed build |
| 2304 * images for this application. | 2353 /// docker images for this application. |
| 2305 */ | |
| 2306 core.String gcrDomain; | 2354 core.String gcrDomain; |
| 2307 IdentityAwareProxy iap; | 2355 IdentityAwareProxy iap; |
| 2308 /** | 2356 |
| 2309 * Identifier of the Application resource. This identifier is equivalent to | 2357 /// Identifier of the Application resource. This identifier is equivalent to |
| 2310 * the project ID of the Google Cloud Platform project where you want to | 2358 /// the project ID of the Google Cloud Platform project where you want to |
| 2311 * deploy your application. Example: myapp. | 2359 /// deploy your application. Example: myapp. |
| 2312 */ | |
| 2313 core.String id; | 2360 core.String id; |
| 2314 /** | 2361 |
| 2315 * Location from which this application will be run. Application instances | 2362 /// Location from which this application will be run. Application instances |
| 2316 * will run out of data centers in the chosen location, which is also where | 2363 /// will run out of data centers in the chosen location, which is also where |
| 2317 * all of the application's end user content is stored.Defaults to | 2364 /// all of the application's end user content is stored.Defaults to |
| 2318 * us-central.Options are:us-central - Central USeurope-west - Western | 2365 /// us-central.Options are:us-central - Central USeurope-west - Western |
| 2319 * Europeus-east1 - Eastern US | 2366 /// Europeus-east1 - Eastern US |
| 2320 */ | |
| 2321 core.String locationId; | 2367 core.String locationId; |
| 2322 /** | 2368 |
| 2323 * Full path to the Application resource in the API. Example: | 2369 /// Full path to the Application resource in the API. Example: |
| 2324 * apps/myapp.@OutputOnly | 2370 /// apps/myapp.@OutputOnly |
| 2325 */ | |
| 2326 core.String name; | 2371 core.String name; |
| 2327 /** | 2372 |
| 2328 * Serving status of this application. | 2373 /// Serving status of this application. |
| 2329 * Possible string values are: | 2374 /// Possible string values are: |
| 2330 * - "UNSPECIFIED" : Serving status is unspecified. | 2375 /// - "UNSPECIFIED" : Serving status is unspecified. |
| 2331 * - "SERVING" : Application is serving. | 2376 /// - "SERVING" : Application is serving. |
| 2332 * - "USER_DISABLED" : Application has been disabled by the user. | 2377 /// - "USER_DISABLED" : Application has been disabled by the user. |
| 2333 * - "SYSTEM_DISABLED" : Application has been disabled by the system. | 2378 /// - "SYSTEM_DISABLED" : Application has been disabled by the system. |
| 2334 */ | |
| 2335 core.String servingStatus; | 2379 core.String servingStatus; |
| 2336 | 2380 |
| 2337 Application(); | 2381 Application(); |
| 2338 | 2382 |
| 2339 Application.fromJson(core.Map _json) { | 2383 Application.fromJson(core.Map _json) { |
| 2340 if (_json.containsKey("authDomain")) { | 2384 if (_json.containsKey("authDomain")) { |
| 2341 authDomain = _json["authDomain"]; | 2385 authDomain = _json["authDomain"]; |
| 2342 } | 2386 } |
| 2343 if (_json.containsKey("codeBucket")) { | 2387 if (_json.containsKey("codeBucket")) { |
| 2344 codeBucket = _json["codeBucket"]; | 2388 codeBucket = _json["codeBucket"]; |
| 2345 } | 2389 } |
| 2346 if (_json.containsKey("defaultBucket")) { | 2390 if (_json.containsKey("defaultBucket")) { |
| 2347 defaultBucket = _json["defaultBucket"]; | 2391 defaultBucket = _json["defaultBucket"]; |
| 2348 } | 2392 } |
| 2349 if (_json.containsKey("defaultCookieExpiration")) { | 2393 if (_json.containsKey("defaultCookieExpiration")) { |
| 2350 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 2394 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 2351 } | 2395 } |
| 2352 if (_json.containsKey("defaultHostname")) { | 2396 if (_json.containsKey("defaultHostname")) { |
| 2353 defaultHostname = _json["defaultHostname"]; | 2397 defaultHostname = _json["defaultHostname"]; |
| 2354 } | 2398 } |
| 2355 if (_json.containsKey("dispatchRules")) { | 2399 if (_json.containsKey("dispatchRules")) { |
| 2356 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 2400 dispatchRules = _json["dispatchRules"] |
| 2401 .map((value) => new UrlDispatchRule.fromJson(value)) |
| 2402 .toList(); |
| 2357 } | 2403 } |
| 2358 if (_json.containsKey("featureSettings")) { | 2404 if (_json.containsKey("featureSettings")) { |
| 2359 featureSettings = new FeatureSettings.fromJson(_json["featureSettings"]); | 2405 featureSettings = new FeatureSettings.fromJson(_json["featureSettings"]); |
| 2360 } | 2406 } |
| 2361 if (_json.containsKey("gcrDomain")) { | 2407 if (_json.containsKey("gcrDomain")) { |
| 2362 gcrDomain = _json["gcrDomain"]; | 2408 gcrDomain = _json["gcrDomain"]; |
| 2363 } | 2409 } |
| 2364 if (_json.containsKey("iap")) { | 2410 if (_json.containsKey("iap")) { |
| 2365 iap = new IdentityAwareProxy.fromJson(_json["iap"]); | 2411 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
| 2366 } | 2412 } |
| 2367 if (_json.containsKey("id")) { | 2413 if (_json.containsKey("id")) { |
| 2368 id = _json["id"]; | 2414 id = _json["id"]; |
| 2369 } | 2415 } |
| 2370 if (_json.containsKey("locationId")) { | 2416 if (_json.containsKey("locationId")) { |
| 2371 locationId = _json["locationId"]; | 2417 locationId = _json["locationId"]; |
| 2372 } | 2418 } |
| 2373 if (_json.containsKey("name")) { | 2419 if (_json.containsKey("name")) { |
| 2374 name = _json["name"]; | 2420 name = _json["name"]; |
| 2375 } | 2421 } |
| 2376 if (_json.containsKey("servingStatus")) { | 2422 if (_json.containsKey("servingStatus")) { |
| 2377 servingStatus = _json["servingStatus"]; | 2423 servingStatus = _json["servingStatus"]; |
| 2378 } | 2424 } |
| 2379 } | 2425 } |
| 2380 | 2426 |
| 2381 core.Map<core.String, core.Object> toJson() { | 2427 core.Map<core.String, core.Object> toJson() { |
| 2382 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2428 final core.Map<core.String, core.Object> _json = |
| 2429 new core.Map<core.String, core.Object>(); |
| 2383 if (authDomain != null) { | 2430 if (authDomain != null) { |
| 2384 _json["authDomain"] = authDomain; | 2431 _json["authDomain"] = authDomain; |
| 2385 } | 2432 } |
| 2386 if (codeBucket != null) { | 2433 if (codeBucket != null) { |
| 2387 _json["codeBucket"] = codeBucket; | 2434 _json["codeBucket"] = codeBucket; |
| 2388 } | 2435 } |
| 2389 if (defaultBucket != null) { | 2436 if (defaultBucket != null) { |
| 2390 _json["defaultBucket"] = defaultBucket; | 2437 _json["defaultBucket"] = defaultBucket; |
| 2391 } | 2438 } |
| 2392 if (defaultCookieExpiration != null) { | 2439 if (defaultCookieExpiration != null) { |
| 2393 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 2440 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 2394 } | 2441 } |
| 2395 if (defaultHostname != null) { | 2442 if (defaultHostname != null) { |
| 2396 _json["defaultHostname"] = defaultHostname; | 2443 _json["defaultHostname"] = defaultHostname; |
| 2397 } | 2444 } |
| 2398 if (dispatchRules != null) { | 2445 if (dispatchRules != null) { |
| 2399 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 2446 _json["dispatchRules"] = |
| 2447 dispatchRules.map((value) => (value).toJson()).toList(); |
| 2400 } | 2448 } |
| 2401 if (featureSettings != null) { | 2449 if (featureSettings != null) { |
| 2402 _json["featureSettings"] = (featureSettings).toJson(); | 2450 _json["featureSettings"] = (featureSettings).toJson(); |
| 2403 } | 2451 } |
| 2404 if (gcrDomain != null) { | 2452 if (gcrDomain != null) { |
| 2405 _json["gcrDomain"] = gcrDomain; | 2453 _json["gcrDomain"] = gcrDomain; |
| 2406 } | 2454 } |
| 2407 if (iap != null) { | 2455 if (iap != null) { |
| 2408 _json["iap"] = (iap).toJson(); | 2456 _json["iap"] = (iap).toJson(); |
| 2409 } | 2457 } |
| 2410 if (id != null) { | 2458 if (id != null) { |
| 2411 _json["id"] = id; | 2459 _json["id"] = id; |
| 2412 } | 2460 } |
| 2413 if (locationId != null) { | 2461 if (locationId != null) { |
| 2414 _json["locationId"] = locationId; | 2462 _json["locationId"] = locationId; |
| 2415 } | 2463 } |
| 2416 if (name != null) { | 2464 if (name != null) { |
| 2417 _json["name"] = name; | 2465 _json["name"] = name; |
| 2418 } | 2466 } |
| 2419 if (servingStatus != null) { | 2467 if (servingStatus != null) { |
| 2420 _json["servingStatus"] = servingStatus; | 2468 _json["servingStatus"] = servingStatus; |
| 2421 } | 2469 } |
| 2422 return _json; | 2470 return _json; |
| 2423 } | 2471 } |
| 2424 } | 2472 } |
| 2425 | 2473 |
| 2426 /** | 2474 /// An SSL certificate that a user has been authorized to administer. A user is |
| 2427 * An SSL certificate that a user has been authorized to administer. A user is | 2475 /// authorized to administer any certificate that applies to one of their |
| 2428 * authorized to administer any certificate that applies to one of their | 2476 /// authorized domains. |
| 2429 * authorized domains. | |
| 2430 */ | |
| 2431 class AuthorizedCertificate { | 2477 class AuthorizedCertificate { |
| 2432 /** | 2478 /// The SSL certificate serving the AuthorizedCertificate resource. This must |
| 2433 * The SSL certificate serving the AuthorizedCertificate resource. This must | 2479 /// be obtained independently from a certificate authority. |
| 2434 * be obtained independently from a certificate authority. | |
| 2435 */ | |
| 2436 CertificateRawData certificateRawData; | 2480 CertificateRawData certificateRawData; |
| 2437 /** | 2481 |
| 2438 * The user-specified display name of the certificate. This is not guaranteed | 2482 /// The user-specified display name of the certificate. This is not |
| 2439 * to be unique. Example: My Certificate. | 2483 /// guaranteed to be unique. Example: My Certificate. |
| 2440 */ | |
| 2441 core.String displayName; | 2484 core.String displayName; |
| 2442 /** | 2485 |
| 2443 * Aggregate count of the domain mappings with this certificate mapped. This | 2486 /// Aggregate count of the domain mappings with this certificate mapped. This |
| 2444 * count includes domain mappings on applications for which the user does not | 2487 /// count includes domain mappings on applications for which the user does |
| 2445 * have VIEWER permissions.Only returned by GET or LIST requests when | 2488 /// not have VIEWER permissions.Only returned by GET or LIST requests when |
| 2446 * specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly | 2489 /// specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly |
| 2447 */ | |
| 2448 core.int domainMappingsCount; | 2490 core.int domainMappingsCount; |
| 2449 /** | 2491 |
| 2450 * Topmost applicable domains of this certificate. This certificate applies to | 2492 /// Topmost applicable domains of this certificate. This certificate applies |
| 2451 * these domains and their subdomains. Example: example.com.@OutputOnly | 2493 /// to these domains and their subdomains. Example: example.com.@OutputOnly |
| 2452 */ | |
| 2453 core.List<core.String> domainNames; | 2494 core.List<core.String> domainNames; |
| 2454 /** | 2495 |
| 2455 * The time when this certificate expires. To update the renewal time on this | 2496 /// The time when this certificate expires. To update the renewal time on |
| 2456 * certificate, upload an SSL certificate with a different expiration time | 2497 /// this certificate, upload an SSL certificate with a different expiration |
| 2457 * using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly | 2498 /// time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly |
| 2458 */ | |
| 2459 core.String expireTime; | 2499 core.String expireTime; |
| 2460 /** | 2500 |
| 2461 * Relative name of the certificate. This is a unique value autogenerated on | 2501 /// Relative name of the certificate. This is a unique value autogenerated on |
| 2462 * AuthorizedCertificate resource creation. Example: 12345.@OutputOnly | 2502 /// AuthorizedCertificate resource creation. Example: 12345.@OutputOnly |
| 2463 */ | |
| 2464 core.String id; | 2503 core.String id; |
| 2465 /** | 2504 |
| 2466 * Full path to the AuthorizedCertificate resource in the API. Example: | 2505 /// Only applicable if this certificate is managed by App Engine. Managed |
| 2467 * apps/myapp/authorizedCertificates/12345.@OutputOnly | 2506 /// certificates are tied to the lifecycle of a DomainMapping and cannot be |
| 2468 */ | 2507 /// updated or deleted via the AuthorizedCertificates API. If this |
| 2508 /// certificate is manually administered by the user, this field will be |
| 2509 /// empty.@OutputOnly |
| 2510 ManagedCertificate managedCertificate; |
| 2511 |
| 2512 /// Full path to the AuthorizedCertificate resource in the API. Example: |
| 2513 /// apps/myapp/authorizedCertificates/12345.@OutputOnly |
| 2469 core.String name; | 2514 core.String name; |
| 2470 /** | 2515 |
| 2471 * The full paths to user visible Domain Mapping resources that have this | 2516 /// The full paths to user visible Domain Mapping resources that have this |
| 2472 * certificate mapped. Example: apps/myapp/domainMappings/example.com.This may | 2517 /// certificate mapped. Example: apps/myapp/domainMappings/example.com.This |
| 2473 * not represent the full list of mapped domain mappings if the user does not | 2518 /// may not represent the full list of mapped domain mappings if the user |
| 2474 * have VIEWER permissions on all of the applications that have this | 2519 /// does not have VIEWER permissions on all of the applications that have |
| 2475 * certificate mapped. See domain_mappings_count for a complete count.Only | 2520 /// this certificate mapped. See domain_mappings_count for a complete |
| 2476 * returned by GET or LIST requests when specifically requested by the | 2521 /// count.Only returned by GET or LIST requests when specifically requested |
| 2477 * view=FULL_CERTIFICATE option.@OutputOnly | 2522 /// by the view=FULL_CERTIFICATE option.@OutputOnly |
| 2478 */ | |
| 2479 core.List<core.String> visibleDomainMappings; | 2523 core.List<core.String> visibleDomainMappings; |
| 2480 | 2524 |
| 2481 AuthorizedCertificate(); | 2525 AuthorizedCertificate(); |
| 2482 | 2526 |
| 2483 AuthorizedCertificate.fromJson(core.Map _json) { | 2527 AuthorizedCertificate.fromJson(core.Map _json) { |
| 2484 if (_json.containsKey("certificateRawData")) { | 2528 if (_json.containsKey("certificateRawData")) { |
| 2485 certificateRawData = new CertificateRawData.fromJson(_json["certificateRaw
Data"]); | 2529 certificateRawData = |
| 2530 new CertificateRawData.fromJson(_json["certificateRawData"]); |
| 2486 } | 2531 } |
| 2487 if (_json.containsKey("displayName")) { | 2532 if (_json.containsKey("displayName")) { |
| 2488 displayName = _json["displayName"]; | 2533 displayName = _json["displayName"]; |
| 2489 } | 2534 } |
| 2490 if (_json.containsKey("domainMappingsCount")) { | 2535 if (_json.containsKey("domainMappingsCount")) { |
| 2491 domainMappingsCount = _json["domainMappingsCount"]; | 2536 domainMappingsCount = _json["domainMappingsCount"]; |
| 2492 } | 2537 } |
| 2493 if (_json.containsKey("domainNames")) { | 2538 if (_json.containsKey("domainNames")) { |
| 2494 domainNames = _json["domainNames"]; | 2539 domainNames = _json["domainNames"]; |
| 2495 } | 2540 } |
| 2496 if (_json.containsKey("expireTime")) { | 2541 if (_json.containsKey("expireTime")) { |
| 2497 expireTime = _json["expireTime"]; | 2542 expireTime = _json["expireTime"]; |
| 2498 } | 2543 } |
| 2499 if (_json.containsKey("id")) { | 2544 if (_json.containsKey("id")) { |
| 2500 id = _json["id"]; | 2545 id = _json["id"]; |
| 2501 } | 2546 } |
| 2547 if (_json.containsKey("managedCertificate")) { |
| 2548 managedCertificate = |
| 2549 new ManagedCertificate.fromJson(_json["managedCertificate"]); |
| 2550 } |
| 2502 if (_json.containsKey("name")) { | 2551 if (_json.containsKey("name")) { |
| 2503 name = _json["name"]; | 2552 name = _json["name"]; |
| 2504 } | 2553 } |
| 2505 if (_json.containsKey("visibleDomainMappings")) { | 2554 if (_json.containsKey("visibleDomainMappings")) { |
| 2506 visibleDomainMappings = _json["visibleDomainMappings"]; | 2555 visibleDomainMappings = _json["visibleDomainMappings"]; |
| 2507 } | 2556 } |
| 2508 } | 2557 } |
| 2509 | 2558 |
| 2510 core.Map<core.String, core.Object> toJson() { | 2559 core.Map<core.String, core.Object> toJson() { |
| 2511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2560 final core.Map<core.String, core.Object> _json = |
| 2561 new core.Map<core.String, core.Object>(); |
| 2512 if (certificateRawData != null) { | 2562 if (certificateRawData != null) { |
| 2513 _json["certificateRawData"] = (certificateRawData).toJson(); | 2563 _json["certificateRawData"] = (certificateRawData).toJson(); |
| 2514 } | 2564 } |
| 2515 if (displayName != null) { | 2565 if (displayName != null) { |
| 2516 _json["displayName"] = displayName; | 2566 _json["displayName"] = displayName; |
| 2517 } | 2567 } |
| 2518 if (domainMappingsCount != null) { | 2568 if (domainMappingsCount != null) { |
| 2519 _json["domainMappingsCount"] = domainMappingsCount; | 2569 _json["domainMappingsCount"] = domainMappingsCount; |
| 2520 } | 2570 } |
| 2521 if (domainNames != null) { | 2571 if (domainNames != null) { |
| 2522 _json["domainNames"] = domainNames; | 2572 _json["domainNames"] = domainNames; |
| 2523 } | 2573 } |
| 2524 if (expireTime != null) { | 2574 if (expireTime != null) { |
| 2525 _json["expireTime"] = expireTime; | 2575 _json["expireTime"] = expireTime; |
| 2526 } | 2576 } |
| 2527 if (id != null) { | 2577 if (id != null) { |
| 2528 _json["id"] = id; | 2578 _json["id"] = id; |
| 2529 } | 2579 } |
| 2580 if (managedCertificate != null) { |
| 2581 _json["managedCertificate"] = (managedCertificate).toJson(); |
| 2582 } |
| 2530 if (name != null) { | 2583 if (name != null) { |
| 2531 _json["name"] = name; | 2584 _json["name"] = name; |
| 2532 } | 2585 } |
| 2533 if (visibleDomainMappings != null) { | 2586 if (visibleDomainMappings != null) { |
| 2534 _json["visibleDomainMappings"] = visibleDomainMappings; | 2587 _json["visibleDomainMappings"] = visibleDomainMappings; |
| 2535 } | 2588 } |
| 2536 return _json; | 2589 return _json; |
| 2537 } | 2590 } |
| 2538 } | 2591 } |
| 2539 | 2592 |
| 2540 /** | 2593 /// A domain that a user has been authorized to administer. To authorize use of |
| 2541 * A domain that a user has been authorized to administer. To authorize use of a | 2594 /// a domain, verify ownership via Webmaster Central |
| 2542 * domain, verify ownership via Webmaster Central | 2595 /// (https://www.google.com/webmasters/verification/home). |
| 2543 * (https://www.google.com/webmasters/verification/home). | |
| 2544 */ | |
| 2545 class AuthorizedDomain { | 2596 class AuthorizedDomain { |
| 2546 /** | 2597 /// Fully qualified domain name of the domain authorized for use. Example: |
| 2547 * Fully qualified domain name of the domain authorized for use. Example: | 2598 /// example.com. |
| 2548 * example.com. | |
| 2549 */ | |
| 2550 core.String id; | 2599 core.String id; |
| 2551 /** | 2600 |
| 2552 * Full path to the AuthorizedDomain resource in the API. Example: | 2601 /// Full path to the AuthorizedDomain resource in the API. Example: |
| 2553 * apps/myapp/authorizedDomains/example.com.@OutputOnly | 2602 /// apps/myapp/authorizedDomains/example.com.@OutputOnly |
| 2554 */ | |
| 2555 core.String name; | 2603 core.String name; |
| 2556 | 2604 |
| 2557 AuthorizedDomain(); | 2605 AuthorizedDomain(); |
| 2558 | 2606 |
| 2559 AuthorizedDomain.fromJson(core.Map _json) { | 2607 AuthorizedDomain.fromJson(core.Map _json) { |
| 2560 if (_json.containsKey("id")) { | 2608 if (_json.containsKey("id")) { |
| 2561 id = _json["id"]; | 2609 id = _json["id"]; |
| 2562 } | 2610 } |
| 2563 if (_json.containsKey("name")) { | 2611 if (_json.containsKey("name")) { |
| 2564 name = _json["name"]; | 2612 name = _json["name"]; |
| 2565 } | 2613 } |
| 2566 } | 2614 } |
| 2567 | 2615 |
| 2568 core.Map<core.String, core.Object> toJson() { | 2616 core.Map<core.String, core.Object> toJson() { |
| 2569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2617 final core.Map<core.String, core.Object> _json = |
| 2618 new core.Map<core.String, core.Object>(); |
| 2570 if (id != null) { | 2619 if (id != null) { |
| 2571 _json["id"] = id; | 2620 _json["id"] = id; |
| 2572 } | 2621 } |
| 2573 if (name != null) { | 2622 if (name != null) { |
| 2574 _json["name"] = name; | 2623 _json["name"] = name; |
| 2575 } | 2624 } |
| 2576 return _json; | 2625 return _json; |
| 2577 } | 2626 } |
| 2578 } | 2627 } |
| 2579 | 2628 |
| 2580 /** | 2629 /// Automatic scaling is based on request rate, response latencies, and other |
| 2581 * Automatic scaling is based on request rate, response latencies, and other | 2630 /// application metrics. |
| 2582 * application metrics. | |
| 2583 */ | |
| 2584 class AutomaticScaling { | 2631 class AutomaticScaling { |
| 2585 /** | 2632 /// Amount of time that the Autoscaler |
| 2586 * Amount of time that the Autoscaler | 2633 /// (https://cloud.google.com/compute/docs/autoscaler/) should wait between |
| 2587 * (https://cloud.google.com/compute/docs/autoscaler/) should wait between | 2634 /// changes to the number of virtual machines. Only applicable for VM |
| 2588 * changes to the number of virtual machines. Only applicable for VM runtimes. | 2635 /// runtimes. |
| 2589 */ | |
| 2590 core.String coolDownPeriod; | 2636 core.String coolDownPeriod; |
| 2591 /** Target scaling by CPU usage. */ | 2637 |
| 2638 /// Target scaling by CPU usage. |
| 2592 CpuUtilization cpuUtilization; | 2639 CpuUtilization cpuUtilization; |
| 2593 /** Target scaling by disk usage. */ | 2640 |
| 2641 /// Target scaling by disk usage. |
| 2594 DiskUtilization diskUtilization; | 2642 DiskUtilization diskUtilization; |
| 2595 /** | 2643 |
| 2596 * Number of concurrent requests an automatic scaling instance can accept | 2644 /// Number of concurrent requests an automatic scaling instance can accept |
| 2597 * before the scheduler spawns a new instance.Defaults to a runtime-specific | 2645 /// before the scheduler spawns a new instance.Defaults to a runtime-specific |
| 2598 * value. | 2646 /// value. |
| 2599 */ | |
| 2600 core.int maxConcurrentRequests; | 2647 core.int maxConcurrentRequests; |
| 2601 /** | 2648 |
| 2602 * Maximum number of idle instances that should be maintained for this | 2649 /// Maximum number of idle instances that should be maintained for this |
| 2603 * version. | 2650 /// version. |
| 2604 */ | |
| 2605 core.int maxIdleInstances; | 2651 core.int maxIdleInstances; |
| 2606 /** | 2652 |
| 2607 * Maximum amount of time that a request should wait in the pending queue | 2653 /// Maximum amount of time that a request should wait in the pending queue |
| 2608 * before starting a new instance to handle it. | 2654 /// before starting a new instance to handle it. |
| 2609 */ | |
| 2610 core.String maxPendingLatency; | 2655 core.String maxPendingLatency; |
| 2611 /** Maximum number of instances that should be started to handle requests. */ | 2656 |
| 2657 /// Maximum number of instances that should be started to handle requests. |
| 2612 core.int maxTotalInstances; | 2658 core.int maxTotalInstances; |
| 2613 /** | 2659 |
| 2614 * Minimum number of idle instances that should be maintained for this | 2660 /// Minimum number of idle instances that should be maintained for this |
| 2615 * version. Only applicable for the default version of a service. | 2661 /// version. Only applicable for the default version of a service. |
| 2616 */ | |
| 2617 core.int minIdleInstances; | 2662 core.int minIdleInstances; |
| 2618 /** | 2663 |
| 2619 * Minimum amount of time a request should wait in the pending queue before | 2664 /// Minimum amount of time a request should wait in the pending queue before |
| 2620 * starting a new instance to handle it. | 2665 /// starting a new instance to handle it. |
| 2621 */ | |
| 2622 core.String minPendingLatency; | 2666 core.String minPendingLatency; |
| 2623 /** | 2667 |
| 2624 * Minimum number of instances that should be maintained for this version. | 2668 /// Minimum number of instances that should be maintained for this version. |
| 2625 */ | |
| 2626 core.int minTotalInstances; | 2669 core.int minTotalInstances; |
| 2627 /** Target scaling by network usage. */ | 2670 |
| 2671 /// Target scaling by network usage. |
| 2628 NetworkUtilization networkUtilization; | 2672 NetworkUtilization networkUtilization; |
| 2629 /** Target scaling by request utilization. */ | 2673 |
| 2674 /// Target scaling by request utilization. |
| 2630 RequestUtilization requestUtilization; | 2675 RequestUtilization requestUtilization; |
| 2631 /** Scheduler settings for standard environment. */ | 2676 |
| 2677 /// Scheduler settings for standard environment. |
| 2632 StandardSchedulerSettings standardSchedulerSettings; | 2678 StandardSchedulerSettings standardSchedulerSettings; |
| 2633 | 2679 |
| 2634 AutomaticScaling(); | 2680 AutomaticScaling(); |
| 2635 | 2681 |
| 2636 AutomaticScaling.fromJson(core.Map _json) { | 2682 AutomaticScaling.fromJson(core.Map _json) { |
| 2637 if (_json.containsKey("coolDownPeriod")) { | 2683 if (_json.containsKey("coolDownPeriod")) { |
| 2638 coolDownPeriod = _json["coolDownPeriod"]; | 2684 coolDownPeriod = _json["coolDownPeriod"]; |
| 2639 } | 2685 } |
| 2640 if (_json.containsKey("cpuUtilization")) { | 2686 if (_json.containsKey("cpuUtilization")) { |
| 2641 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]); | 2687 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2658 if (_json.containsKey("minIdleInstances")) { | 2704 if (_json.containsKey("minIdleInstances")) { |
| 2659 minIdleInstances = _json["minIdleInstances"]; | 2705 minIdleInstances = _json["minIdleInstances"]; |
| 2660 } | 2706 } |
| 2661 if (_json.containsKey("minPendingLatency")) { | 2707 if (_json.containsKey("minPendingLatency")) { |
| 2662 minPendingLatency = _json["minPendingLatency"]; | 2708 minPendingLatency = _json["minPendingLatency"]; |
| 2663 } | 2709 } |
| 2664 if (_json.containsKey("minTotalInstances")) { | 2710 if (_json.containsKey("minTotalInstances")) { |
| 2665 minTotalInstances = _json["minTotalInstances"]; | 2711 minTotalInstances = _json["minTotalInstances"]; |
| 2666 } | 2712 } |
| 2667 if (_json.containsKey("networkUtilization")) { | 2713 if (_json.containsKey("networkUtilization")) { |
| 2668 networkUtilization = new NetworkUtilization.fromJson(_json["networkUtiliza
tion"]); | 2714 networkUtilization = |
| 2715 new NetworkUtilization.fromJson(_json["networkUtilization"]); |
| 2669 } | 2716 } |
| 2670 if (_json.containsKey("requestUtilization")) { | 2717 if (_json.containsKey("requestUtilization")) { |
| 2671 requestUtilization = new RequestUtilization.fromJson(_json["requestUtiliza
tion"]); | 2718 requestUtilization = |
| 2719 new RequestUtilization.fromJson(_json["requestUtilization"]); |
| 2672 } | 2720 } |
| 2673 if (_json.containsKey("standardSchedulerSettings")) { | 2721 if (_json.containsKey("standardSchedulerSettings")) { |
| 2674 standardSchedulerSettings = new StandardSchedulerSettings.fromJson(_json["
standardSchedulerSettings"]); | 2722 standardSchedulerSettings = new StandardSchedulerSettings.fromJson( |
| 2723 _json["standardSchedulerSettings"]); |
| 2675 } | 2724 } |
| 2676 } | 2725 } |
| 2677 | 2726 |
| 2678 core.Map<core.String, core.Object> toJson() { | 2727 core.Map<core.String, core.Object> toJson() { |
| 2679 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2728 final core.Map<core.String, core.Object> _json = |
| 2729 new core.Map<core.String, core.Object>(); |
| 2680 if (coolDownPeriod != null) { | 2730 if (coolDownPeriod != null) { |
| 2681 _json["coolDownPeriod"] = coolDownPeriod; | 2731 _json["coolDownPeriod"] = coolDownPeriod; |
| 2682 } | 2732 } |
| 2683 if (cpuUtilization != null) { | 2733 if (cpuUtilization != null) { |
| 2684 _json["cpuUtilization"] = (cpuUtilization).toJson(); | 2734 _json["cpuUtilization"] = (cpuUtilization).toJson(); |
| 2685 } | 2735 } |
| 2686 if (diskUtilization != null) { | 2736 if (diskUtilization != null) { |
| 2687 _json["diskUtilization"] = (diskUtilization).toJson(); | 2737 _json["diskUtilization"] = (diskUtilization).toJson(); |
| 2688 } | 2738 } |
| 2689 if (maxConcurrentRequests != null) { | 2739 if (maxConcurrentRequests != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2713 if (requestUtilization != null) { | 2763 if (requestUtilization != null) { |
| 2714 _json["requestUtilization"] = (requestUtilization).toJson(); | 2764 _json["requestUtilization"] = (requestUtilization).toJson(); |
| 2715 } | 2765 } |
| 2716 if (standardSchedulerSettings != null) { | 2766 if (standardSchedulerSettings != null) { |
| 2717 _json["standardSchedulerSettings"] = (standardSchedulerSettings).toJson(); | 2767 _json["standardSchedulerSettings"] = (standardSchedulerSettings).toJson(); |
| 2718 } | 2768 } |
| 2719 return _json; | 2769 return _json; |
| 2720 } | 2770 } |
| 2721 } | 2771 } |
| 2722 | 2772 |
| 2723 /** | 2773 /// A service with basic scaling will create an instance when the application |
| 2724 * A service with basic scaling will create an instance when the application | 2774 /// receives a request. The instance will be turned down when the app becomes |
| 2725 * receives a request. The instance will be turned down when the app becomes | 2775 /// idle. Basic scaling is ideal for work that is intermittent or driven by |
| 2726 * idle. Basic scaling is ideal for work that is intermittent or driven by user | 2776 /// user activity. |
| 2727 * activity. | |
| 2728 */ | |
| 2729 class BasicScaling { | 2777 class BasicScaling { |
| 2730 /** | 2778 /// Duration of time after the last request that an instance must wait before |
| 2731 * Duration of time after the last request that an instance must wait before | 2779 /// the instance is shut down. |
| 2732 * the instance is shut down. | |
| 2733 */ | |
| 2734 core.String idleTimeout; | 2780 core.String idleTimeout; |
| 2735 /** Maximum number of instances to create for this version. */ | 2781 |
| 2782 /// Maximum number of instances to create for this version. |
| 2736 core.int maxInstances; | 2783 core.int maxInstances; |
| 2737 | 2784 |
| 2738 BasicScaling(); | 2785 BasicScaling(); |
| 2739 | 2786 |
| 2740 BasicScaling.fromJson(core.Map _json) { | 2787 BasicScaling.fromJson(core.Map _json) { |
| 2741 if (_json.containsKey("idleTimeout")) { | 2788 if (_json.containsKey("idleTimeout")) { |
| 2742 idleTimeout = _json["idleTimeout"]; | 2789 idleTimeout = _json["idleTimeout"]; |
| 2743 } | 2790 } |
| 2744 if (_json.containsKey("maxInstances")) { | 2791 if (_json.containsKey("maxInstances")) { |
| 2745 maxInstances = _json["maxInstances"]; | 2792 maxInstances = _json["maxInstances"]; |
| 2746 } | 2793 } |
| 2747 } | 2794 } |
| 2748 | 2795 |
| 2749 core.Map<core.String, core.Object> toJson() { | 2796 core.Map<core.String, core.Object> toJson() { |
| 2750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2797 final core.Map<core.String, core.Object> _json = |
| 2798 new core.Map<core.String, core.Object>(); |
| 2751 if (idleTimeout != null) { | 2799 if (idleTimeout != null) { |
| 2752 _json["idleTimeout"] = idleTimeout; | 2800 _json["idleTimeout"] = idleTimeout; |
| 2753 } | 2801 } |
| 2754 if (maxInstances != null) { | 2802 if (maxInstances != null) { |
| 2755 _json["maxInstances"] = maxInstances; | 2803 _json["maxInstances"] = maxInstances; |
| 2756 } | 2804 } |
| 2757 return _json; | 2805 return _json; |
| 2758 } | 2806 } |
| 2759 } | 2807 } |
| 2760 | 2808 |
| 2761 /** Request message for Firewall.BatchUpdateIngressRules. */ | 2809 /// Request message for Firewall.BatchUpdateIngressRules. |
| 2762 class BatchUpdateIngressRulesRequest { | 2810 class BatchUpdateIngressRulesRequest { |
| 2763 /** A list of FirewallRules to replace the existing set. */ | 2811 /// A list of FirewallRules to replace the existing set. |
| 2764 core.List<FirewallRule> ingressRules; | 2812 core.List<FirewallRule> ingressRules; |
| 2765 | 2813 |
| 2766 BatchUpdateIngressRulesRequest(); | 2814 BatchUpdateIngressRulesRequest(); |
| 2767 | 2815 |
| 2768 BatchUpdateIngressRulesRequest.fromJson(core.Map _json) { | 2816 BatchUpdateIngressRulesRequest.fromJson(core.Map _json) { |
| 2769 if (_json.containsKey("ingressRules")) { | 2817 if (_json.containsKey("ingressRules")) { |
| 2770 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); | 2818 ingressRules = _json["ingressRules"] |
| 2819 .map((value) => new FirewallRule.fromJson(value)) |
| 2820 .toList(); |
| 2771 } | 2821 } |
| 2772 } | 2822 } |
| 2773 | 2823 |
| 2774 core.Map<core.String, core.Object> toJson() { | 2824 core.Map<core.String, core.Object> toJson() { |
| 2775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2825 final core.Map<core.String, core.Object> _json = |
| 2826 new core.Map<core.String, core.Object>(); |
| 2776 if (ingressRules != null) { | 2827 if (ingressRules != null) { |
| 2777 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); | 2828 _json["ingressRules"] = |
| 2829 ingressRules.map((value) => (value).toJson()).toList(); |
| 2778 } | 2830 } |
| 2779 return _json; | 2831 return _json; |
| 2780 } | 2832 } |
| 2781 } | 2833 } |
| 2782 | 2834 |
| 2783 /** Response message for Firewall.UpdateAllIngressRules. */ | 2835 /// Response message for Firewall.UpdateAllIngressRules. |
| 2784 class BatchUpdateIngressRulesResponse { | 2836 class BatchUpdateIngressRulesResponse { |
| 2785 /** The full list of ingress FirewallRules for this application. */ | 2837 /// The full list of ingress FirewallRules for this application. |
| 2786 core.List<FirewallRule> ingressRules; | 2838 core.List<FirewallRule> ingressRules; |
| 2787 | 2839 |
| 2788 BatchUpdateIngressRulesResponse(); | 2840 BatchUpdateIngressRulesResponse(); |
| 2789 | 2841 |
| 2790 BatchUpdateIngressRulesResponse.fromJson(core.Map _json) { | 2842 BatchUpdateIngressRulesResponse.fromJson(core.Map _json) { |
| 2791 if (_json.containsKey("ingressRules")) { | 2843 if (_json.containsKey("ingressRules")) { |
| 2792 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); | 2844 ingressRules = _json["ingressRules"] |
| 2845 .map((value) => new FirewallRule.fromJson(value)) |
| 2846 .toList(); |
| 2793 } | 2847 } |
| 2794 } | 2848 } |
| 2795 | 2849 |
| 2796 core.Map<core.String, core.Object> toJson() { | 2850 core.Map<core.String, core.Object> toJson() { |
| 2797 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2851 final core.Map<core.String, core.Object> _json = |
| 2852 new core.Map<core.String, core.Object>(); |
| 2798 if (ingressRules != null) { | 2853 if (ingressRules != null) { |
| 2799 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); | 2854 _json["ingressRules"] = |
| 2855 ingressRules.map((value) => (value).toJson()).toList(); |
| 2800 } | 2856 } |
| 2801 return _json; | 2857 return _json; |
| 2802 } | 2858 } |
| 2803 } | 2859 } |
| 2804 | 2860 |
| 2805 /** Google Cloud Container Builder build information. */ | 2861 /// Google Cloud Container Builder build information. |
| 2806 class BuildInfo { | 2862 class BuildInfo { |
| 2807 /** | 2863 /// The Google Cloud Container Builder build id. Example: |
| 2808 * The Google Cloud Container Builder build id. Example: | 2864 /// "f966068f-08b2-42c8-bdfe-74137dff2bf9" |
| 2809 * "f966068f-08b2-42c8-bdfe-74137dff2bf9" | |
| 2810 */ | |
| 2811 core.String cloudBuildId; | 2865 core.String cloudBuildId; |
| 2812 | 2866 |
| 2813 BuildInfo(); | 2867 BuildInfo(); |
| 2814 | 2868 |
| 2815 BuildInfo.fromJson(core.Map _json) { | 2869 BuildInfo.fromJson(core.Map _json) { |
| 2816 if (_json.containsKey("cloudBuildId")) { | 2870 if (_json.containsKey("cloudBuildId")) { |
| 2817 cloudBuildId = _json["cloudBuildId"]; | 2871 cloudBuildId = _json["cloudBuildId"]; |
| 2818 } | 2872 } |
| 2819 } | 2873 } |
| 2820 | 2874 |
| 2821 core.Map<core.String, core.Object> toJson() { | 2875 core.Map<core.String, core.Object> toJson() { |
| 2822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2876 final core.Map<core.String, core.Object> _json = |
| 2877 new core.Map<core.String, core.Object>(); |
| 2823 if (cloudBuildId != null) { | 2878 if (cloudBuildId != null) { |
| 2824 _json["cloudBuildId"] = cloudBuildId; | 2879 _json["cloudBuildId"] = cloudBuildId; |
| 2825 } | 2880 } |
| 2826 return _json; | 2881 return _json; |
| 2827 } | 2882 } |
| 2828 } | 2883 } |
| 2829 | 2884 |
| 2830 /** An SSL certificate obtained from a certificate authority. */ | 2885 /// An SSL certificate obtained from a certificate authority. |
| 2831 class CertificateRawData { | 2886 class CertificateRawData { |
| 2832 /** | 2887 /// Unencrypted PEM encoded RSA private key. This field is set once on |
| 2833 * Unencrypted PEM encoded RSA private key. This field is set once on | 2888 /// certificate creation and then encrypted. The key size must be 2048 bits |
| 2834 * certificate creation and then encrypted. The key size must be 2048 bits or | 2889 /// or fewer. Must include the header and footer. Example: <pre> -----BEGIN |
| 2835 * fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA | 2890 /// RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE |
| 2836 * PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- | 2891 /// KEY----- </pre> @InputOnly |
| 2837 * </pre> @InputOnly | |
| 2838 */ | |
| 2839 core.String privateKey; | 2892 core.String privateKey; |
| 2840 /** | 2893 |
| 2841 * PEM encoded x.509 public key certificate. This field is set once on | 2894 /// PEM encoded x.509 public key certificate. This field is set once on |
| 2842 * certificate creation. Must include the header and footer. Example: <pre> | 2895 /// certificate creation. Must include the header and footer. Example: <pre> |
| 2843 * -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- | 2896 /// -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- |
| 2844 * </pre> | 2897 /// </pre> |
| 2845 */ | |
| 2846 core.String publicCertificate; | 2898 core.String publicCertificate; |
| 2847 | 2899 |
| 2848 CertificateRawData(); | 2900 CertificateRawData(); |
| 2849 | 2901 |
| 2850 CertificateRawData.fromJson(core.Map _json) { | 2902 CertificateRawData.fromJson(core.Map _json) { |
| 2851 if (_json.containsKey("privateKey")) { | 2903 if (_json.containsKey("privateKey")) { |
| 2852 privateKey = _json["privateKey"]; | 2904 privateKey = _json["privateKey"]; |
| 2853 } | 2905 } |
| 2854 if (_json.containsKey("publicCertificate")) { | 2906 if (_json.containsKey("publicCertificate")) { |
| 2855 publicCertificate = _json["publicCertificate"]; | 2907 publicCertificate = _json["publicCertificate"]; |
| 2856 } | 2908 } |
| 2857 } | 2909 } |
| 2858 | 2910 |
| 2859 core.Map<core.String, core.Object> toJson() { | 2911 core.Map<core.String, core.Object> toJson() { |
| 2860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2912 final core.Map<core.String, core.Object> _json = |
| 2913 new core.Map<core.String, core.Object>(); |
| 2861 if (privateKey != null) { | 2914 if (privateKey != null) { |
| 2862 _json["privateKey"] = privateKey; | 2915 _json["privateKey"] = privateKey; |
| 2863 } | 2916 } |
| 2864 if (publicCertificate != null) { | 2917 if (publicCertificate != null) { |
| 2865 _json["publicCertificate"] = publicCertificate; | 2918 _json["publicCertificate"] = publicCertificate; |
| 2866 } | 2919 } |
| 2867 return _json; | 2920 return _json; |
| 2868 } | 2921 } |
| 2869 } | 2922 } |
| 2870 | 2923 |
| 2871 /** | 2924 /// Docker image that is used to create a container and start a VM instance for |
| 2872 * Docker image that is used to create a container and start a VM instance for | 2925 /// the version that you deploy. Only applicable for instances running in the |
| 2873 * the version that you deploy. Only applicable for instances running in the App | 2926 /// App Engine flexible environment. |
| 2874 * Engine flexible environment. | |
| 2875 */ | |
| 2876 class ContainerInfo { | 2927 class ContainerInfo { |
| 2877 /** | 2928 /// URI to the hosted container image in Google Container Registry. The URI |
| 2878 * URI to the hosted container image in Google Container Registry. The URI | 2929 /// must be fully qualified and include a tag or digest. Examples: |
| 2879 * must be fully qualified and include a tag or digest. Examples: | 2930 /// "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
| 2880 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" | |
| 2881 */ | |
| 2882 core.String image; | 2931 core.String image; |
| 2883 | 2932 |
| 2884 ContainerInfo(); | 2933 ContainerInfo(); |
| 2885 | 2934 |
| 2886 ContainerInfo.fromJson(core.Map _json) { | 2935 ContainerInfo.fromJson(core.Map _json) { |
| 2887 if (_json.containsKey("image")) { | 2936 if (_json.containsKey("image")) { |
| 2888 image = _json["image"]; | 2937 image = _json["image"]; |
| 2889 } | 2938 } |
| 2890 } | 2939 } |
| 2891 | 2940 |
| 2892 core.Map<core.String, core.Object> toJson() { | 2941 core.Map<core.String, core.Object> toJson() { |
| 2893 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2942 final core.Map<core.String, core.Object> _json = |
| 2943 new core.Map<core.String, core.Object>(); |
| 2894 if (image != null) { | 2944 if (image != null) { |
| 2895 _json["image"] = image; | 2945 _json["image"] = image; |
| 2896 } | 2946 } |
| 2897 return _json; | 2947 return _json; |
| 2898 } | 2948 } |
| 2899 } | 2949 } |
| 2900 | 2950 |
| 2901 /** Target scaling by CPU usage. */ | 2951 /// Target scaling by CPU usage. |
| 2902 class CpuUtilization { | 2952 class CpuUtilization { |
| 2903 /** Period of time over which CPU utilization is calculated. */ | 2953 /// Period of time over which CPU utilization is calculated. |
| 2904 core.String aggregationWindowLength; | 2954 core.String aggregationWindowLength; |
| 2905 /** | 2955 |
| 2906 * Target CPU utilization ratio to maintain when scaling. Must be between 0 | 2956 /// Target CPU utilization ratio to maintain when scaling. Must be between 0 |
| 2907 * and 1. | 2957 /// and 1. |
| 2908 */ | |
| 2909 core.double targetUtilization; | 2958 core.double targetUtilization; |
| 2910 | 2959 |
| 2911 CpuUtilization(); | 2960 CpuUtilization(); |
| 2912 | 2961 |
| 2913 CpuUtilization.fromJson(core.Map _json) { | 2962 CpuUtilization.fromJson(core.Map _json) { |
| 2914 if (_json.containsKey("aggregationWindowLength")) { | 2963 if (_json.containsKey("aggregationWindowLength")) { |
| 2915 aggregationWindowLength = _json["aggregationWindowLength"]; | 2964 aggregationWindowLength = _json["aggregationWindowLength"]; |
| 2916 } | 2965 } |
| 2917 if (_json.containsKey("targetUtilization")) { | 2966 if (_json.containsKey("targetUtilization")) { |
| 2918 targetUtilization = _json["targetUtilization"]; | 2967 targetUtilization = _json["targetUtilization"]; |
| 2919 } | 2968 } |
| 2920 } | 2969 } |
| 2921 | 2970 |
| 2922 core.Map<core.String, core.Object> toJson() { | 2971 core.Map<core.String, core.Object> toJson() { |
| 2923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2972 final core.Map<core.String, core.Object> _json = |
| 2973 new core.Map<core.String, core.Object>(); |
| 2924 if (aggregationWindowLength != null) { | 2974 if (aggregationWindowLength != null) { |
| 2925 _json["aggregationWindowLength"] = aggregationWindowLength; | 2975 _json["aggregationWindowLength"] = aggregationWindowLength; |
| 2926 } | 2976 } |
| 2927 if (targetUtilization != null) { | 2977 if (targetUtilization != null) { |
| 2928 _json["targetUtilization"] = targetUtilization; | 2978 _json["targetUtilization"] = targetUtilization; |
| 2929 } | 2979 } |
| 2930 return _json; | 2980 return _json; |
| 2931 } | 2981 } |
| 2932 } | 2982 } |
| 2933 | 2983 |
| 2934 /** Request message for Instances.DebugInstance. */ | 2984 /// Request message for Instances.DebugInstance. |
| 2935 class DebugInstanceRequest { | 2985 class DebugInstanceRequest { |
| 2936 /** | 2986 /// Public SSH key to add to the instance. Examples: |
| 2937 * Public SSH key to add to the instance. Examples: | 2987 /// [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] |
| 2938 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] | 2988 /// [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
| 2939 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 2989 /// {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
| 2940 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, | 2990 /// see Adding and Removing SSH Keys |
| 2941 * see Adding and Removing SSH Keys | 2991 /// (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys)
. |
| 2942 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). | |
| 2943 */ | |
| 2944 core.String sshKey; | 2992 core.String sshKey; |
| 2945 | 2993 |
| 2946 DebugInstanceRequest(); | 2994 DebugInstanceRequest(); |
| 2947 | 2995 |
| 2948 DebugInstanceRequest.fromJson(core.Map _json) { | 2996 DebugInstanceRequest.fromJson(core.Map _json) { |
| 2949 if (_json.containsKey("sshKey")) { | 2997 if (_json.containsKey("sshKey")) { |
| 2950 sshKey = _json["sshKey"]; | 2998 sshKey = _json["sshKey"]; |
| 2951 } | 2999 } |
| 2952 } | 3000 } |
| 2953 | 3001 |
| 2954 core.Map<core.String, core.Object> toJson() { | 3002 core.Map<core.String, core.Object> toJson() { |
| 2955 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3003 final core.Map<core.String, core.Object> _json = |
| 3004 new core.Map<core.String, core.Object>(); |
| 2956 if (sshKey != null) { | 3005 if (sshKey != null) { |
| 2957 _json["sshKey"] = sshKey; | 3006 _json["sshKey"] = sshKey; |
| 2958 } | 3007 } |
| 2959 return _json; | 3008 return _json; |
| 2960 } | 3009 } |
| 2961 } | 3010 } |
| 2962 | 3011 |
| 2963 /** Code and application artifacts used to deploy a version to App Engine. */ | 3012 /// Code and application artifacts used to deploy a version to App Engine. |
| 2964 class Deployment { | 3013 class Deployment { |
| 2965 /** Google Cloud Container Builder build information. */ | 3014 /// Google Cloud Container Builder build information. |
| 2966 BuildInfo build; | 3015 BuildInfo build; |
| 2967 /** | 3016 |
| 2968 * The Docker image for the container that runs the version. Only applicable | 3017 /// The Docker image for the container that runs the version. Only applicable |
| 2969 * for instances running in the App Engine flexible environment. | 3018 /// for instances running in the App Engine flexible environment. |
| 2970 */ | |
| 2971 ContainerInfo container; | 3019 ContainerInfo container; |
| 2972 /** | 3020 |
| 2973 * Manifest of the files stored in Google Cloud Storage that are included as | 3021 /// Manifest of the files stored in Google Cloud Storage that are included as |
| 2974 * part of this version. All files must be readable using the credentials | 3022 /// part of this version. All files must be readable using the credentials |
| 2975 * supplied with this call. | 3023 /// supplied with this call. |
| 2976 */ | |
| 2977 core.Map<core.String, FileInfo> files; | 3024 core.Map<core.String, FileInfo> files; |
| 2978 /** The zip file for this deployment, if this is a zip deployment. */ | 3025 |
| 3026 /// The zip file for this deployment, if this is a zip deployment. |
| 2979 ZipInfo zip; | 3027 ZipInfo zip; |
| 2980 | 3028 |
| 2981 Deployment(); | 3029 Deployment(); |
| 2982 | 3030 |
| 2983 Deployment.fromJson(core.Map _json) { | 3031 Deployment.fromJson(core.Map _json) { |
| 2984 if (_json.containsKey("build")) { | 3032 if (_json.containsKey("build")) { |
| 2985 build = new BuildInfo.fromJson(_json["build"]); | 3033 build = new BuildInfo.fromJson(_json["build"]); |
| 2986 } | 3034 } |
| 2987 if (_json.containsKey("container")) { | 3035 if (_json.containsKey("container")) { |
| 2988 container = new ContainerInfo.fromJson(_json["container"]); | 3036 container = new ContainerInfo.fromJson(_json["container"]); |
| 2989 } | 3037 } |
| 2990 if (_json.containsKey("files")) { | 3038 if (_json.containsKey("files")) { |
| 2991 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json
["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(it
em)); | 3039 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>( |
| 3040 _json["files"], |
| 3041 (core.Map<core.String, core.Object> item) => |
| 3042 new FileInfo.fromJson(item)); |
| 2992 } | 3043 } |
| 2993 if (_json.containsKey("zip")) { | 3044 if (_json.containsKey("zip")) { |
| 2994 zip = new ZipInfo.fromJson(_json["zip"]); | 3045 zip = new ZipInfo.fromJson(_json["zip"]); |
| 2995 } | 3046 } |
| 2996 } | 3047 } |
| 2997 | 3048 |
| 2998 core.Map<core.String, core.Object> toJson() { | 3049 core.Map<core.String, core.Object> toJson() { |
| 2999 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3050 final core.Map<core.String, core.Object> _json = |
| 3051 new core.Map<core.String, core.Object>(); |
| 3000 if (build != null) { | 3052 if (build != null) { |
| 3001 _json["build"] = (build).toJson(); | 3053 _json["build"] = (build).toJson(); |
| 3002 } | 3054 } |
| 3003 if (container != null) { | 3055 if (container != null) { |
| 3004 _json["container"] = (container).toJson(); | 3056 _json["container"] = (container).toJson(); |
| 3005 } | 3057 } |
| 3006 if (files != null) { | 3058 if (files != null) { |
| 3007 _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Objec
t>>(files, (FileInfo item) => (item).toJson()); | 3059 _json["files"] = |
| 3060 commons.mapMap<FileInfo, core.Map<core.String, core.Object>>( |
| 3061 files, (FileInfo item) => (item).toJson()); |
| 3008 } | 3062 } |
| 3009 if (zip != null) { | 3063 if (zip != null) { |
| 3010 _json["zip"] = (zip).toJson(); | 3064 _json["zip"] = (zip).toJson(); |
| 3011 } | 3065 } |
| 3012 return _json; | 3066 return _json; |
| 3013 } | 3067 } |
| 3014 } | 3068 } |
| 3015 | 3069 |
| 3016 /** Target scaling by disk usage. Only applicable for VM runtimes. */ | 3070 /// Target scaling by disk usage. Only applicable for VM runtimes. |
| 3017 class DiskUtilization { | 3071 class DiskUtilization { |
| 3018 /** Target bytes read per second. */ | 3072 /// Target bytes read per second. |
| 3019 core.int targetReadBytesPerSecond; | 3073 core.int targetReadBytesPerSecond; |
| 3020 /** Target ops read per seconds. */ | 3074 |
| 3075 /// Target ops read per seconds. |
| 3021 core.int targetReadOpsPerSecond; | 3076 core.int targetReadOpsPerSecond; |
| 3022 /** Target bytes written per second. */ | 3077 |
| 3078 /// Target bytes written per second. |
| 3023 core.int targetWriteBytesPerSecond; | 3079 core.int targetWriteBytesPerSecond; |
| 3024 /** Target ops written per second. */ | 3080 |
| 3081 /// Target ops written per second. |
| 3025 core.int targetWriteOpsPerSecond; | 3082 core.int targetWriteOpsPerSecond; |
| 3026 | 3083 |
| 3027 DiskUtilization(); | 3084 DiskUtilization(); |
| 3028 | 3085 |
| 3029 DiskUtilization.fromJson(core.Map _json) { | 3086 DiskUtilization.fromJson(core.Map _json) { |
| 3030 if (_json.containsKey("targetReadBytesPerSecond")) { | 3087 if (_json.containsKey("targetReadBytesPerSecond")) { |
| 3031 targetReadBytesPerSecond = _json["targetReadBytesPerSecond"]; | 3088 targetReadBytesPerSecond = _json["targetReadBytesPerSecond"]; |
| 3032 } | 3089 } |
| 3033 if (_json.containsKey("targetReadOpsPerSecond")) { | 3090 if (_json.containsKey("targetReadOpsPerSecond")) { |
| 3034 targetReadOpsPerSecond = _json["targetReadOpsPerSecond"]; | 3091 targetReadOpsPerSecond = _json["targetReadOpsPerSecond"]; |
| 3035 } | 3092 } |
| 3036 if (_json.containsKey("targetWriteBytesPerSecond")) { | 3093 if (_json.containsKey("targetWriteBytesPerSecond")) { |
| 3037 targetWriteBytesPerSecond = _json["targetWriteBytesPerSecond"]; | 3094 targetWriteBytesPerSecond = _json["targetWriteBytesPerSecond"]; |
| 3038 } | 3095 } |
| 3039 if (_json.containsKey("targetWriteOpsPerSecond")) { | 3096 if (_json.containsKey("targetWriteOpsPerSecond")) { |
| 3040 targetWriteOpsPerSecond = _json["targetWriteOpsPerSecond"]; | 3097 targetWriteOpsPerSecond = _json["targetWriteOpsPerSecond"]; |
| 3041 } | 3098 } |
| 3042 } | 3099 } |
| 3043 | 3100 |
| 3044 core.Map<core.String, core.Object> toJson() { | 3101 core.Map<core.String, core.Object> toJson() { |
| 3045 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3102 final core.Map<core.String, core.Object> _json = |
| 3103 new core.Map<core.String, core.Object>(); |
| 3046 if (targetReadBytesPerSecond != null) { | 3104 if (targetReadBytesPerSecond != null) { |
| 3047 _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; | 3105 _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; |
| 3048 } | 3106 } |
| 3049 if (targetReadOpsPerSecond != null) { | 3107 if (targetReadOpsPerSecond != null) { |
| 3050 _json["targetReadOpsPerSecond"] = targetReadOpsPerSecond; | 3108 _json["targetReadOpsPerSecond"] = targetReadOpsPerSecond; |
| 3051 } | 3109 } |
| 3052 if (targetWriteBytesPerSecond != null) { | 3110 if (targetWriteBytesPerSecond != null) { |
| 3053 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; | 3111 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; |
| 3054 } | 3112 } |
| 3055 if (targetWriteOpsPerSecond != null) { | 3113 if (targetWriteOpsPerSecond != null) { |
| 3056 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; | 3114 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; |
| 3057 } | 3115 } |
| 3058 return _json; | 3116 return _json; |
| 3059 } | 3117 } |
| 3060 } | 3118 } |
| 3061 | 3119 |
| 3062 /** A domain serving an App Engine application. */ | 3120 /// A domain serving an App Engine application. |
| 3063 class DomainMapping { | 3121 class DomainMapping { |
| 3064 /** | 3122 /// Relative name of the domain serving the application. Example: |
| 3065 * Relative name of the domain serving the application. Example: example.com. | 3123 /// example.com. |
| 3066 */ | |
| 3067 core.String id; | 3124 core.String id; |
| 3068 /** | 3125 |
| 3069 * Full path to the DomainMapping resource in the API. Example: | 3126 /// Full path to the DomainMapping resource in the API. Example: |
| 3070 * apps/myapp/domainMapping/example.com.@OutputOnly | 3127 /// apps/myapp/domainMapping/example.com.@OutputOnly |
| 3071 */ | |
| 3072 core.String name; | 3128 core.String name; |
| 3073 /** | 3129 |
| 3074 * The resource records required to configure this domain mapping. These | 3130 /// The resource records required to configure this domain mapping. These |
| 3075 * records must be added to the domain's DNS configuration in order to serve | 3131 /// records must be added to the domain's DNS configuration in order to serve |
| 3076 * the application via this domain mapping.@OutputOnly | 3132 /// the application via this domain mapping.@OutputOnly |
| 3077 */ | |
| 3078 core.List<ResourceRecord> resourceRecords; | 3133 core.List<ResourceRecord> resourceRecords; |
| 3079 /** | 3134 |
| 3080 * SSL configuration for this domain. If unconfigured, this domain will not | 3135 /// SSL configuration for this domain. If unconfigured, this domain will not |
| 3081 * serve with SSL. | 3136 /// serve with SSL. |
| 3082 */ | |
| 3083 SslSettings sslSettings; | 3137 SslSettings sslSettings; |
| 3084 | 3138 |
| 3085 DomainMapping(); | 3139 DomainMapping(); |
| 3086 | 3140 |
| 3087 DomainMapping.fromJson(core.Map _json) { | 3141 DomainMapping.fromJson(core.Map _json) { |
| 3088 if (_json.containsKey("id")) { | 3142 if (_json.containsKey("id")) { |
| 3089 id = _json["id"]; | 3143 id = _json["id"]; |
| 3090 } | 3144 } |
| 3091 if (_json.containsKey("name")) { | 3145 if (_json.containsKey("name")) { |
| 3092 name = _json["name"]; | 3146 name = _json["name"]; |
| 3093 } | 3147 } |
| 3094 if (_json.containsKey("resourceRecords")) { | 3148 if (_json.containsKey("resourceRecords")) { |
| 3095 resourceRecords = _json["resourceRecords"].map((value) => new ResourceReco
rd.fromJson(value)).toList(); | 3149 resourceRecords = _json["resourceRecords"] |
| 3150 .map((value) => new ResourceRecord.fromJson(value)) |
| 3151 .toList(); |
| 3096 } | 3152 } |
| 3097 if (_json.containsKey("sslSettings")) { | 3153 if (_json.containsKey("sslSettings")) { |
| 3098 sslSettings = new SslSettings.fromJson(_json["sslSettings"]); | 3154 sslSettings = new SslSettings.fromJson(_json["sslSettings"]); |
| 3099 } | 3155 } |
| 3100 } | 3156 } |
| 3101 | 3157 |
| 3102 core.Map<core.String, core.Object> toJson() { | 3158 core.Map<core.String, core.Object> toJson() { |
| 3103 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3159 final core.Map<core.String, core.Object> _json = |
| 3160 new core.Map<core.String, core.Object>(); |
| 3104 if (id != null) { | 3161 if (id != null) { |
| 3105 _json["id"] = id; | 3162 _json["id"] = id; |
| 3106 } | 3163 } |
| 3107 if (name != null) { | 3164 if (name != null) { |
| 3108 _json["name"] = name; | 3165 _json["name"] = name; |
| 3109 } | 3166 } |
| 3110 if (resourceRecords != null) { | 3167 if (resourceRecords != null) { |
| 3111 _json["resourceRecords"] = resourceRecords.map((value) => (value).toJson()
).toList(); | 3168 _json["resourceRecords"] = |
| 3169 resourceRecords.map((value) => (value).toJson()).toList(); |
| 3112 } | 3170 } |
| 3113 if (sslSettings != null) { | 3171 if (sslSettings != null) { |
| 3114 _json["sslSettings"] = (sslSettings).toJson(); | 3172 _json["sslSettings"] = (sslSettings).toJson(); |
| 3115 } | 3173 } |
| 3116 return _json; | 3174 return _json; |
| 3117 } | 3175 } |
| 3118 } | 3176 } |
| 3119 | 3177 |
| 3120 /** | 3178 /// A generic empty message that you can re-use to avoid defining duplicated |
| 3121 * A generic empty message that you can re-use to avoid defining duplicated | 3179 /// empty messages in your APIs. A typical example is to use it as the request |
| 3122 * empty messages in your APIs. A typical example is to use it as the request or | 3180 /// or the response type of an API method. For instance: |
| 3123 * the response type of an API method. For instance: | 3181 /// service Foo { |
| 3124 * service Foo { | 3182 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 3125 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 3183 /// } |
| 3126 * } | 3184 /// The JSON representation for Empty is empty JSON object {}. |
| 3127 * The JSON representation for Empty is empty JSON object {}. | |
| 3128 */ | |
| 3129 class Empty { | 3185 class Empty { |
| 3130 | |
| 3131 Empty(); | 3186 Empty(); |
| 3132 | 3187 |
| 3133 Empty.fromJson(core.Map _json) { | 3188 Empty.fromJson(core.Map _json) {} |
| 3134 } | |
| 3135 | 3189 |
| 3136 core.Map<core.String, core.Object> toJson() { | 3190 core.Map<core.String, core.Object> toJson() { |
| 3137 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3191 final core.Map<core.String, core.Object> _json = |
| 3192 new core.Map<core.String, core.Object>(); |
| 3138 return _json; | 3193 return _json; |
| 3139 } | 3194 } |
| 3140 } | 3195 } |
| 3141 | 3196 |
| 3142 /** | 3197 /// Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The |
| 3143 * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The | 3198 /// Endpoints API Service provides tooling for serving Open API and gRPC |
| 3144 * Endpoints API Service provides tooling for serving Open API and gRPC | 3199 /// endpoints via an NGINX proxy.The fields here refer to the name and |
| 3145 * endpoints via an NGINX proxy.The fields here refer to the name and | 3200 /// configuration id of a "service" resource in the Service Management API |
| 3146 * configuration id of a "service" resource in the Service Management API | 3201 /// (https://cloud.google.com/service-management/overview). |
| 3147 * (https://cloud.google.com/service-management/overview). | |
| 3148 */ | |
| 3149 class EndpointsApiService { | 3202 class EndpointsApiService { |
| 3150 /** | 3203 /// Endpoints service configuration id as specified by the Service Management |
| 3151 * Endpoints service configuration id as specified by the Service Management | 3204 /// API. For example "2016-09-19r1" |
| 3152 * API. For example "2016-09-19r1" | |
| 3153 */ | |
| 3154 core.String configId; | 3205 core.String configId; |
| 3155 /** | 3206 |
| 3156 * Endpoints service name which is the name of the "service" resource in the | 3207 /// Endpoints service name which is the name of the "service" resource in the |
| 3157 * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" | 3208 /// Service Management API. For example |
| 3158 */ | 3209 /// "myapi.endpoints.myproject.cloud.goog" |
| 3159 core.String name; | 3210 core.String name; |
| 3160 | 3211 |
| 3161 EndpointsApiService(); | 3212 EndpointsApiService(); |
| 3162 | 3213 |
| 3163 EndpointsApiService.fromJson(core.Map _json) { | 3214 EndpointsApiService.fromJson(core.Map _json) { |
| 3164 if (_json.containsKey("configId")) { | 3215 if (_json.containsKey("configId")) { |
| 3165 configId = _json["configId"]; | 3216 configId = _json["configId"]; |
| 3166 } | 3217 } |
| 3167 if (_json.containsKey("name")) { | 3218 if (_json.containsKey("name")) { |
| 3168 name = _json["name"]; | 3219 name = _json["name"]; |
| 3169 } | 3220 } |
| 3170 } | 3221 } |
| 3171 | 3222 |
| 3172 core.Map<core.String, core.Object> toJson() { | 3223 core.Map<core.String, core.Object> toJson() { |
| 3173 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3224 final core.Map<core.String, core.Object> _json = |
| 3225 new core.Map<core.String, core.Object>(); |
| 3174 if (configId != null) { | 3226 if (configId != null) { |
| 3175 _json["configId"] = configId; | 3227 _json["configId"] = configId; |
| 3176 } | 3228 } |
| 3177 if (name != null) { | 3229 if (name != null) { |
| 3178 _json["name"] = name; | 3230 _json["name"] = name; |
| 3179 } | 3231 } |
| 3180 return _json; | 3232 return _json; |
| 3181 } | 3233 } |
| 3182 } | 3234 } |
| 3183 | 3235 |
| 3184 /** Custom static error page to be served when an error occurs. */ | 3236 /// Custom static error page to be served when an error occurs. |
| 3185 class ErrorHandler { | 3237 class ErrorHandler { |
| 3186 /** | 3238 /// Error condition this handler applies to. |
| 3187 * Error condition this handler applies to. | 3239 /// Possible string values are: |
| 3188 * Possible string values are: | 3240 /// - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is |
| 3189 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. | 3241 /// assumed. |
| 3190 * - "ERROR_CODE_DEFAULT" : All other error types. | 3242 /// - "ERROR_CODE_DEFAULT" : All other error types. |
| 3191 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. | 3243 /// - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. |
| 3192 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial | 3244 /// - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's |
| 3193 * of Service protection configuration. | 3245 /// Denial of Service protection configuration. |
| 3194 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. | 3246 /// - "ERROR_CODE_TIMEOUT" : Deadline reached before the application |
| 3195 */ | 3247 /// responds. |
| 3196 core.String errorCode; | 3248 core.String errorCode; |
| 3197 /** MIME type of file. Defaults to text/html. */ | 3249 |
| 3250 /// MIME type of file. Defaults to text/html. |
| 3198 core.String mimeType; | 3251 core.String mimeType; |
| 3199 /** Static file content to be served for this error. */ | 3252 |
| 3253 /// Static file content to be served for this error. |
| 3200 core.String staticFile; | 3254 core.String staticFile; |
| 3201 | 3255 |
| 3202 ErrorHandler(); | 3256 ErrorHandler(); |
| 3203 | 3257 |
| 3204 ErrorHandler.fromJson(core.Map _json) { | 3258 ErrorHandler.fromJson(core.Map _json) { |
| 3205 if (_json.containsKey("errorCode")) { | 3259 if (_json.containsKey("errorCode")) { |
| 3206 errorCode = _json["errorCode"]; | 3260 errorCode = _json["errorCode"]; |
| 3207 } | 3261 } |
| 3208 if (_json.containsKey("mimeType")) { | 3262 if (_json.containsKey("mimeType")) { |
| 3209 mimeType = _json["mimeType"]; | 3263 mimeType = _json["mimeType"]; |
| 3210 } | 3264 } |
| 3211 if (_json.containsKey("staticFile")) { | 3265 if (_json.containsKey("staticFile")) { |
| 3212 staticFile = _json["staticFile"]; | 3266 staticFile = _json["staticFile"]; |
| 3213 } | 3267 } |
| 3214 } | 3268 } |
| 3215 | 3269 |
| 3216 core.Map<core.String, core.Object> toJson() { | 3270 core.Map<core.String, core.Object> toJson() { |
| 3217 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3271 final core.Map<core.String, core.Object> _json = |
| 3272 new core.Map<core.String, core.Object>(); |
| 3218 if (errorCode != null) { | 3273 if (errorCode != null) { |
| 3219 _json["errorCode"] = errorCode; | 3274 _json["errorCode"] = errorCode; |
| 3220 } | 3275 } |
| 3221 if (mimeType != null) { | 3276 if (mimeType != null) { |
| 3222 _json["mimeType"] = mimeType; | 3277 _json["mimeType"] = mimeType; |
| 3223 } | 3278 } |
| 3224 if (staticFile != null) { | 3279 if (staticFile != null) { |
| 3225 _json["staticFile"] = staticFile; | 3280 _json["staticFile"] = staticFile; |
| 3226 } | 3281 } |
| 3227 return _json; | 3282 return _json; |
| 3228 } | 3283 } |
| 3229 } | 3284 } |
| 3230 | 3285 |
| 3231 /** | 3286 /// The feature specific settings to be used in the application. These define |
| 3232 * The feature specific settings to be used in the application. These define | 3287 /// behaviors that are user configurable. |
| 3233 * behaviors that are user configurable. | |
| 3234 */ | |
| 3235 class FeatureSettings { | 3288 class FeatureSettings { |
| 3236 /** | 3289 /// Boolean value indicating if split health checks should be used instead of |
| 3237 * Boolean value indicating if split health checks should be used instead of | 3290 /// the legacy health checks. At an app.yaml level, this means defaulting to |
| 3238 * the legacy health checks. At an app.yaml level, this means defaulting to | 3291 /// 'readiness_check' and 'liveness_check' values instead of 'health_check' |
| 3239 * 'readiness_check' and 'liveness_check' values instead of 'health_check' | 3292 /// ones. Once the legacy 'health_check' behavior is deprecated, and this |
| 3240 * ones. Once the legacy 'health_check' behavior is deprecated, and this value | 3293 /// value is always true, this setting can be removed. |
| 3241 * is always true, this setting can be removed. | |
| 3242 */ | |
| 3243 core.bool splitHealthChecks; | 3294 core.bool splitHealthChecks; |
| 3244 | 3295 |
| 3245 FeatureSettings(); | 3296 FeatureSettings(); |
| 3246 | 3297 |
| 3247 FeatureSettings.fromJson(core.Map _json) { | 3298 FeatureSettings.fromJson(core.Map _json) { |
| 3248 if (_json.containsKey("splitHealthChecks")) { | 3299 if (_json.containsKey("splitHealthChecks")) { |
| 3249 splitHealthChecks = _json["splitHealthChecks"]; | 3300 splitHealthChecks = _json["splitHealthChecks"]; |
| 3250 } | 3301 } |
| 3251 } | 3302 } |
| 3252 | 3303 |
| 3253 core.Map<core.String, core.Object> toJson() { | 3304 core.Map<core.String, core.Object> toJson() { |
| 3254 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3305 final core.Map<core.String, core.Object> _json = |
| 3306 new core.Map<core.String, core.Object>(); |
| 3255 if (splitHealthChecks != null) { | 3307 if (splitHealthChecks != null) { |
| 3256 _json["splitHealthChecks"] = splitHealthChecks; | 3308 _json["splitHealthChecks"] = splitHealthChecks; |
| 3257 } | 3309 } |
| 3258 return _json; | 3310 return _json; |
| 3259 } | 3311 } |
| 3260 } | 3312 } |
| 3261 | 3313 |
| 3262 /** | 3314 /// Single source file that is part of the version to be deployed. Each source |
| 3263 * Single source file that is part of the version to be deployed. Each source | 3315 /// file that is deployed must be specified separately. |
| 3264 * file that is deployed must be specified separately. | |
| 3265 */ | |
| 3266 class FileInfo { | 3316 class FileInfo { |
| 3267 /** | 3317 /// The MIME type of the file.Defaults to the value from Google Cloud |
| 3268 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 3318 /// Storage. |
| 3269 */ | |
| 3270 core.String mimeType; | 3319 core.String mimeType; |
| 3271 /** The SHA1 hash of the file, in hex. */ | 3320 |
| 3321 /// The SHA1 hash of the file, in hex. |
| 3272 core.String sha1Sum; | 3322 core.String sha1Sum; |
| 3273 /** | 3323 |
| 3274 * URL source to use to fetch this file. Must be a URL to a resource in Google | 3324 /// URL source to use to fetch this file. Must be a URL to a resource in |
| 3275 * Cloud Storage in the form | 3325 /// Google Cloud Storage in the form |
| 3276 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | 3326 /// 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
| 3277 */ | |
| 3278 core.String sourceUrl; | 3327 core.String sourceUrl; |
| 3279 | 3328 |
| 3280 FileInfo(); | 3329 FileInfo(); |
| 3281 | 3330 |
| 3282 FileInfo.fromJson(core.Map _json) { | 3331 FileInfo.fromJson(core.Map _json) { |
| 3283 if (_json.containsKey("mimeType")) { | 3332 if (_json.containsKey("mimeType")) { |
| 3284 mimeType = _json["mimeType"]; | 3333 mimeType = _json["mimeType"]; |
| 3285 } | 3334 } |
| 3286 if (_json.containsKey("sha1Sum")) { | 3335 if (_json.containsKey("sha1Sum")) { |
| 3287 sha1Sum = _json["sha1Sum"]; | 3336 sha1Sum = _json["sha1Sum"]; |
| 3288 } | 3337 } |
| 3289 if (_json.containsKey("sourceUrl")) { | 3338 if (_json.containsKey("sourceUrl")) { |
| 3290 sourceUrl = _json["sourceUrl"]; | 3339 sourceUrl = _json["sourceUrl"]; |
| 3291 } | 3340 } |
| 3292 } | 3341 } |
| 3293 | 3342 |
| 3294 core.Map<core.String, core.Object> toJson() { | 3343 core.Map<core.String, core.Object> toJson() { |
| 3295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3344 final core.Map<core.String, core.Object> _json = |
| 3345 new core.Map<core.String, core.Object>(); |
| 3296 if (mimeType != null) { | 3346 if (mimeType != null) { |
| 3297 _json["mimeType"] = mimeType; | 3347 _json["mimeType"] = mimeType; |
| 3298 } | 3348 } |
| 3299 if (sha1Sum != null) { | 3349 if (sha1Sum != null) { |
| 3300 _json["sha1Sum"] = sha1Sum; | 3350 _json["sha1Sum"] = sha1Sum; |
| 3301 } | 3351 } |
| 3302 if (sourceUrl != null) { | 3352 if (sourceUrl != null) { |
| 3303 _json["sourceUrl"] = sourceUrl; | 3353 _json["sourceUrl"] = sourceUrl; |
| 3304 } | 3354 } |
| 3305 return _json; | 3355 return _json; |
| 3306 } | 3356 } |
| 3307 } | 3357 } |
| 3308 | 3358 |
| 3309 /** | 3359 /// A single firewall rule that is evaluated against incoming traffic and |
| 3310 * A single firewall rule that is evaluated against incoming traffic and | 3360 /// provides an action to take on matched requests. |
| 3311 * provides an action to take on matched requests. | |
| 3312 */ | |
| 3313 class FirewallRule { | 3361 class FirewallRule { |
| 3314 /** | 3362 /// The action to take on matched requests. |
| 3315 * The action to take on matched requests. | 3363 /// Possible string values are: |
| 3316 * Possible string values are: | 3364 /// - "UNSPECIFIED_ACTION" |
| 3317 * - "UNSPECIFIED_ACTION" | 3365 /// - "ALLOW" : Matching requests are allowed. |
| 3318 * - "ALLOW" : Matching requests are allowed. | 3366 /// - "DENY" : Matching requests are denied. |
| 3319 * - "DENY" : Matching requests are denied. | |
| 3320 */ | |
| 3321 core.String action; | 3367 core.String action; |
| 3322 /** | 3368 |
| 3323 * An optional string description of this rule. This field has a maximum | 3369 /// An optional string description of this rule. This field has a maximum |
| 3324 * length of 100 characters. | 3370 /// length of 100 characters. |
| 3325 */ | |
| 3326 core.String description; | 3371 core.String description; |
| 3327 /** | 3372 |
| 3328 * A positive integer between 1, Int32.MaxValue-1 that defines the order of | 3373 /// A positive integer between 1, Int32.MaxValue-1 that defines the order of |
| 3329 * rule evaluation. Rules with the lowest priority are evaluated first.A | 3374 /// rule evaluation. Rules with the lowest priority are evaluated first.A |
| 3330 * default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic | 3375 /// default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic |
| 3331 * when no previous rule matches. Only the action of this rule can be modified | 3376 /// when no previous rule matches. Only the action of this rule can be |
| 3332 * by the user. | 3377 /// modified by the user. |
| 3333 */ | |
| 3334 core.int priority; | 3378 core.int priority; |
| 3335 /** | 3379 |
| 3336 * IP address or range, defined using CIDR notation, of requests that this | 3380 /// IP address or range, defined using CIDR notation, of requests that this |
| 3337 * rule applies to. You can use the wildcard character "*" to match all IPs | 3381 /// rule applies to. You can use the wildcard character "*" to match all IPs |
| 3338 * equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1 or | 3382 /// equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1 or |
| 3339 * 192.168.0.0/16 or 2001:db8::/32 or | 3383 /// 192.168.0.0/16 or 2001:db8::/32 or |
| 3340 * 2001:0db8:0000:0042:0000:8a2e:0370:7334.<p>Truncation will be silently | 3384 /// 2001:0db8:0000:0042:0000:8a2e:0370:7334.<p>Truncation will be silently |
| 3341 * performed on addresses which are not properly truncated. For example, | 3385 /// performed on addresses which are not properly truncated. For example, |
| 3342 * 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for | 3386 /// 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for |
| 3343 * IPv6, 2001:db8::1/32 is accepted as the same address as 2001:db8::/32. | 3387 /// IPv6, 2001:db8::1/32 is accepted as the same address as 2001:db8::/32. |
| 3344 */ | |
| 3345 core.String sourceRange; | 3388 core.String sourceRange; |
| 3346 | 3389 |
| 3347 FirewallRule(); | 3390 FirewallRule(); |
| 3348 | 3391 |
| 3349 FirewallRule.fromJson(core.Map _json) { | 3392 FirewallRule.fromJson(core.Map _json) { |
| 3350 if (_json.containsKey("action")) { | 3393 if (_json.containsKey("action")) { |
| 3351 action = _json["action"]; | 3394 action = _json["action"]; |
| 3352 } | 3395 } |
| 3353 if (_json.containsKey("description")) { | 3396 if (_json.containsKey("description")) { |
| 3354 description = _json["description"]; | 3397 description = _json["description"]; |
| 3355 } | 3398 } |
| 3356 if (_json.containsKey("priority")) { | 3399 if (_json.containsKey("priority")) { |
| 3357 priority = _json["priority"]; | 3400 priority = _json["priority"]; |
| 3358 } | 3401 } |
| 3359 if (_json.containsKey("sourceRange")) { | 3402 if (_json.containsKey("sourceRange")) { |
| 3360 sourceRange = _json["sourceRange"]; | 3403 sourceRange = _json["sourceRange"]; |
| 3361 } | 3404 } |
| 3362 } | 3405 } |
| 3363 | 3406 |
| 3364 core.Map<core.String, core.Object> toJson() { | 3407 core.Map<core.String, core.Object> toJson() { |
| 3365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3408 final core.Map<core.String, core.Object> _json = |
| 3409 new core.Map<core.String, core.Object>(); |
| 3366 if (action != null) { | 3410 if (action != null) { |
| 3367 _json["action"] = action; | 3411 _json["action"] = action; |
| 3368 } | 3412 } |
| 3369 if (description != null) { | 3413 if (description != null) { |
| 3370 _json["description"] = description; | 3414 _json["description"] = description; |
| 3371 } | 3415 } |
| 3372 if (priority != null) { | 3416 if (priority != null) { |
| 3373 _json["priority"] = priority; | 3417 _json["priority"] = priority; |
| 3374 } | 3418 } |
| 3375 if (sourceRange != null) { | 3419 if (sourceRange != null) { |
| 3376 _json["sourceRange"] = sourceRange; | 3420 _json["sourceRange"] = sourceRange; |
| 3377 } | 3421 } |
| 3378 return _json; | 3422 return _json; |
| 3379 } | 3423 } |
| 3380 } | 3424 } |
| 3381 | 3425 |
| 3382 /** | 3426 /// Health checking configuration for VM instances. Unhealthy instances are |
| 3383 * Health checking configuration for VM instances. Unhealthy instances are | 3427 /// killed and replaced with new instances. Only applicable for instances in |
| 3384 * killed and replaced with new instances. Only applicable for instances in App | 3428 /// App Engine flexible environment. |
| 3385 * Engine flexible environment. | |
| 3386 */ | |
| 3387 class HealthCheck { | 3429 class HealthCheck { |
| 3388 /** Interval between health checks. */ | 3430 /// Interval between health checks. |
| 3389 core.String checkInterval; | 3431 core.String checkInterval; |
| 3390 /** Whether to explicitly disable health checks for this instance. */ | 3432 |
| 3433 /// Whether to explicitly disable health checks for this instance. |
| 3391 core.bool disableHealthCheck; | 3434 core.bool disableHealthCheck; |
| 3392 /** | 3435 |
| 3393 * Number of consecutive successful health checks required before receiving | 3436 /// Number of consecutive successful health checks required before receiving |
| 3394 * traffic. | 3437 /// traffic. |
| 3395 */ | |
| 3396 core.int healthyThreshold; | 3438 core.int healthyThreshold; |
| 3397 /** | 3439 |
| 3398 * Host header to send when performing an HTTP health check. Example: | 3440 /// Host header to send when performing an HTTP health check. Example: |
| 3399 * "myapp.appspot.com" | 3441 /// "myapp.appspot.com" |
| 3400 */ | |
| 3401 core.String host; | 3442 core.String host; |
| 3402 /** | 3443 |
| 3403 * Number of consecutive failed health checks required before an instance is | 3444 /// Number of consecutive failed health checks required before an instance is |
| 3404 * restarted. | 3445 /// restarted. |
| 3405 */ | |
| 3406 core.int restartThreshold; | 3446 core.int restartThreshold; |
| 3407 /** Time before the health check is considered failed. */ | 3447 |
| 3448 /// Time before the health check is considered failed. |
| 3408 core.String timeout; | 3449 core.String timeout; |
| 3409 /** | 3450 |
| 3410 * Number of consecutive failed health checks required before removing | 3451 /// Number of consecutive failed health checks required before removing |
| 3411 * traffic. | 3452 /// traffic. |
| 3412 */ | |
| 3413 core.int unhealthyThreshold; | 3453 core.int unhealthyThreshold; |
| 3414 | 3454 |
| 3415 HealthCheck(); | 3455 HealthCheck(); |
| 3416 | 3456 |
| 3417 HealthCheck.fromJson(core.Map _json) { | 3457 HealthCheck.fromJson(core.Map _json) { |
| 3418 if (_json.containsKey("checkInterval")) { | 3458 if (_json.containsKey("checkInterval")) { |
| 3419 checkInterval = _json["checkInterval"]; | 3459 checkInterval = _json["checkInterval"]; |
| 3420 } | 3460 } |
| 3421 if (_json.containsKey("disableHealthCheck")) { | 3461 if (_json.containsKey("disableHealthCheck")) { |
| 3422 disableHealthCheck = _json["disableHealthCheck"]; | 3462 disableHealthCheck = _json["disableHealthCheck"]; |
| 3423 } | 3463 } |
| 3424 if (_json.containsKey("healthyThreshold")) { | 3464 if (_json.containsKey("healthyThreshold")) { |
| 3425 healthyThreshold = _json["healthyThreshold"]; | 3465 healthyThreshold = _json["healthyThreshold"]; |
| 3426 } | 3466 } |
| 3427 if (_json.containsKey("host")) { | 3467 if (_json.containsKey("host")) { |
| 3428 host = _json["host"]; | 3468 host = _json["host"]; |
| 3429 } | 3469 } |
| 3430 if (_json.containsKey("restartThreshold")) { | 3470 if (_json.containsKey("restartThreshold")) { |
| 3431 restartThreshold = _json["restartThreshold"]; | 3471 restartThreshold = _json["restartThreshold"]; |
| 3432 } | 3472 } |
| 3433 if (_json.containsKey("timeout")) { | 3473 if (_json.containsKey("timeout")) { |
| 3434 timeout = _json["timeout"]; | 3474 timeout = _json["timeout"]; |
| 3435 } | 3475 } |
| 3436 if (_json.containsKey("unhealthyThreshold")) { | 3476 if (_json.containsKey("unhealthyThreshold")) { |
| 3437 unhealthyThreshold = _json["unhealthyThreshold"]; | 3477 unhealthyThreshold = _json["unhealthyThreshold"]; |
| 3438 } | 3478 } |
| 3439 } | 3479 } |
| 3440 | 3480 |
| 3441 core.Map<core.String, core.Object> toJson() { | 3481 core.Map<core.String, core.Object> toJson() { |
| 3442 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3482 final core.Map<core.String, core.Object> _json = |
| 3483 new core.Map<core.String, core.Object>(); |
| 3443 if (checkInterval != null) { | 3484 if (checkInterval != null) { |
| 3444 _json["checkInterval"] = checkInterval; | 3485 _json["checkInterval"] = checkInterval; |
| 3445 } | 3486 } |
| 3446 if (disableHealthCheck != null) { | 3487 if (disableHealthCheck != null) { |
| 3447 _json["disableHealthCheck"] = disableHealthCheck; | 3488 _json["disableHealthCheck"] = disableHealthCheck; |
| 3448 } | 3489 } |
| 3449 if (healthyThreshold != null) { | 3490 if (healthyThreshold != null) { |
| 3450 _json["healthyThreshold"] = healthyThreshold; | 3491 _json["healthyThreshold"] = healthyThreshold; |
| 3451 } | 3492 } |
| 3452 if (host != null) { | 3493 if (host != null) { |
| 3453 _json["host"] = host; | 3494 _json["host"] = host; |
| 3454 } | 3495 } |
| 3455 if (restartThreshold != null) { | 3496 if (restartThreshold != null) { |
| 3456 _json["restartThreshold"] = restartThreshold; | 3497 _json["restartThreshold"] = restartThreshold; |
| 3457 } | 3498 } |
| 3458 if (timeout != null) { | 3499 if (timeout != null) { |
| 3459 _json["timeout"] = timeout; | 3500 _json["timeout"] = timeout; |
| 3460 } | 3501 } |
| 3461 if (unhealthyThreshold != null) { | 3502 if (unhealthyThreshold != null) { |
| 3462 _json["unhealthyThreshold"] = unhealthyThreshold; | 3503 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 3463 } | 3504 } |
| 3464 return _json; | 3505 return _json; |
| 3465 } | 3506 } |
| 3466 } | 3507 } |
| 3467 | 3508 |
| 3468 /** Identity-Aware Proxy */ | 3509 /// Identity-Aware Proxy |
| 3469 class IdentityAwareProxy { | 3510 class IdentityAwareProxy { |
| 3470 /** | 3511 /// Whether the serving infrastructure will authenticate and authorize all |
| 3471 * Whether the serving infrastructure will authenticate and authorize all | 3512 /// incoming requests.If true, the oauth2_client_id and oauth2_client_secret |
| 3472 * incoming requests.If true, the oauth2_client_id and oauth2_client_secret | 3513 /// fields must be non-empty. |
| 3473 * fields must be non-empty. | |
| 3474 */ | |
| 3475 core.bool enabled; | 3514 core.bool enabled; |
| 3476 /** OAuth2 client ID to use for the authentication flow. */ | 3515 |
| 3516 /// OAuth2 client ID to use for the authentication flow. |
| 3477 core.String oauth2ClientId; | 3517 core.String oauth2ClientId; |
| 3478 /** | 3518 |
| 3479 * OAuth2 client secret to use for the authentication flow.For security | 3519 /// OAuth2 client secret to use for the authentication flow.For security |
| 3480 * reasons, this value cannot be retrieved via the API. Instead, the SHA-256 | 3520 /// reasons, this value cannot be retrieved via the API. Instead, the SHA-256 |
| 3481 * hash of the value is returned in the oauth2_client_secret_sha256 | 3521 /// hash of the value is returned in the oauth2_client_secret_sha256 |
| 3482 * field.@InputOnly | 3522 /// field.@InputOnly |
| 3483 */ | |
| 3484 core.String oauth2ClientSecret; | 3523 core.String oauth2ClientSecret; |
| 3485 /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ | 3524 |
| 3525 /// Hex-encoded SHA-256 hash of the client secret.@OutputOnly |
| 3486 core.String oauth2ClientSecretSha256; | 3526 core.String oauth2ClientSecretSha256; |
| 3487 | 3527 |
| 3488 IdentityAwareProxy(); | 3528 IdentityAwareProxy(); |
| 3489 | 3529 |
| 3490 IdentityAwareProxy.fromJson(core.Map _json) { | 3530 IdentityAwareProxy.fromJson(core.Map _json) { |
| 3491 if (_json.containsKey("enabled")) { | 3531 if (_json.containsKey("enabled")) { |
| 3492 enabled = _json["enabled"]; | 3532 enabled = _json["enabled"]; |
| 3493 } | 3533 } |
| 3494 if (_json.containsKey("oauth2ClientId")) { | 3534 if (_json.containsKey("oauth2ClientId")) { |
| 3495 oauth2ClientId = _json["oauth2ClientId"]; | 3535 oauth2ClientId = _json["oauth2ClientId"]; |
| 3496 } | 3536 } |
| 3497 if (_json.containsKey("oauth2ClientSecret")) { | 3537 if (_json.containsKey("oauth2ClientSecret")) { |
| 3498 oauth2ClientSecret = _json["oauth2ClientSecret"]; | 3538 oauth2ClientSecret = _json["oauth2ClientSecret"]; |
| 3499 } | 3539 } |
| 3500 if (_json.containsKey("oauth2ClientSecretSha256")) { | 3540 if (_json.containsKey("oauth2ClientSecretSha256")) { |
| 3501 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; | 3541 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; |
| 3502 } | 3542 } |
| 3503 } | 3543 } |
| 3504 | 3544 |
| 3505 core.Map<core.String, core.Object> toJson() { | 3545 core.Map<core.String, core.Object> toJson() { |
| 3506 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3546 final core.Map<core.String, core.Object> _json = |
| 3547 new core.Map<core.String, core.Object>(); |
| 3507 if (enabled != null) { | 3548 if (enabled != null) { |
| 3508 _json["enabled"] = enabled; | 3549 _json["enabled"] = enabled; |
| 3509 } | 3550 } |
| 3510 if (oauth2ClientId != null) { | 3551 if (oauth2ClientId != null) { |
| 3511 _json["oauth2ClientId"] = oauth2ClientId; | 3552 _json["oauth2ClientId"] = oauth2ClientId; |
| 3512 } | 3553 } |
| 3513 if (oauth2ClientSecret != null) { | 3554 if (oauth2ClientSecret != null) { |
| 3514 _json["oauth2ClientSecret"] = oauth2ClientSecret; | 3555 _json["oauth2ClientSecret"] = oauth2ClientSecret; |
| 3515 } | 3556 } |
| 3516 if (oauth2ClientSecretSha256 != null) { | 3557 if (oauth2ClientSecretSha256 != null) { |
| 3517 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; | 3558 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; |
| 3518 } | 3559 } |
| 3519 return _json; | 3560 return _json; |
| 3520 } | 3561 } |
| 3521 } | 3562 } |
| 3522 | 3563 |
| 3523 /** | 3564 /// An Instance resource is the computing unit that App Engine uses to |
| 3524 * An Instance resource is the computing unit that App Engine uses to | 3565 /// automatically scale an application. |
| 3525 * automatically scale an application. | |
| 3526 */ | |
| 3527 class Instance { | 3566 class Instance { |
| 3528 /** App Engine release this instance is running on.@OutputOnly */ | 3567 /// App Engine release this instance is running on.@OutputOnly |
| 3529 core.String appEngineRelease; | 3568 core.String appEngineRelease; |
| 3530 /** | 3569 |
| 3531 * Availability of the instance.@OutputOnly | 3570 /// Availability of the instance.@OutputOnly |
| 3532 * Possible string values are: | 3571 /// Possible string values are: |
| 3533 * - "UNSPECIFIED" | 3572 /// - "UNSPECIFIED" |
| 3534 * - "RESIDENT" | 3573 /// - "RESIDENT" |
| 3535 * - "DYNAMIC" | 3574 /// - "DYNAMIC" |
| 3536 */ | |
| 3537 core.String availability; | 3575 core.String availability; |
| 3538 /** Average latency (ms) over the last minute.@OutputOnly */ | 3576 |
| 3577 /// Average latency (ms) over the last minute.@OutputOnly |
| 3539 core.int averageLatency; | 3578 core.int averageLatency; |
| 3540 /** Number of errors since this instance was started.@OutputOnly */ | 3579 |
| 3580 /// Number of errors since this instance was started.@OutputOnly |
| 3541 core.int errors; | 3581 core.int errors; |
| 3542 /** | 3582 |
| 3543 * Relative name of the instance within the version. Example: | 3583 /// Relative name of the instance within the version. Example: |
| 3544 * instance-1.@OutputOnly | 3584 /// instance-1.@OutputOnly |
| 3545 */ | |
| 3546 core.String id; | 3585 core.String id; |
| 3547 /** Total memory in use (bytes).@OutputOnly */ | 3586 |
| 3587 /// Total memory in use (bytes).@OutputOnly |
| 3548 core.String memoryUsage; | 3588 core.String memoryUsage; |
| 3549 /** | 3589 |
| 3550 * Full path to the Instance resource in the API. Example: | 3590 /// Full path to the Instance resource in the API. Example: |
| 3551 * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly | 3591 /// apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly |
| 3552 */ | |
| 3553 core.String name; | 3592 core.String name; |
| 3554 /** Average queries per second (QPS) over the last minute.@OutputOnly */ | 3593 |
| 3594 /// Average queries per second (QPS) over the last minute.@OutputOnly |
| 3555 core.double qps; | 3595 core.double qps; |
| 3556 /** Number of requests since this instance was started.@OutputOnly */ | 3596 |
| 3597 /// Number of requests since this instance was started.@OutputOnly |
| 3557 core.int requests; | 3598 core.int requests; |
| 3558 /** Time that this instance was started.@OutputOnly */ | 3599 |
| 3600 /// Time that this instance was started.@OutputOnly |
| 3559 core.String startTime; | 3601 core.String startTime; |
| 3560 /** | 3602 |
| 3561 * Whether this instance is in debug mode. Only applicable for instances in | 3603 /// Whether this instance is in debug mode. Only applicable for instances in |
| 3562 * App Engine flexible environment.@OutputOnly | 3604 /// App Engine flexible environment.@OutputOnly |
| 3563 */ | |
| 3564 core.bool vmDebugEnabled; | 3605 core.bool vmDebugEnabled; |
| 3565 /** | 3606 |
| 3566 * Virtual machine ID of this instance. Only applicable for instances in App | 3607 /// Virtual machine ID of this instance. Only applicable for instances in App |
| 3567 * Engine flexible environment.@OutputOnly | 3608 /// Engine flexible environment.@OutputOnly |
| 3568 */ | |
| 3569 core.String vmId; | 3609 core.String vmId; |
| 3570 /** | 3610 |
| 3571 * The IP address of this instance. Only applicable for instances in App | 3611 /// The IP address of this instance. Only applicable for instances in App |
| 3572 * Engine flexible environment.@OutputOnly | 3612 /// Engine flexible environment.@OutputOnly |
| 3573 */ | |
| 3574 core.String vmIp; | 3613 core.String vmIp; |
| 3575 /** | 3614 |
| 3576 * Name of the virtual machine where this instance lives. Only applicable for | 3615 /// Name of the virtual machine where this instance lives. Only applicable |
| 3577 * instances in App Engine flexible environment.@OutputOnly | 3616 /// for instances in App Engine flexible environment.@OutputOnly |
| 3578 */ | |
| 3579 core.String vmName; | 3617 core.String vmName; |
| 3580 /** | 3618 |
| 3581 * Status of the virtual machine where this instance lives. Only applicable | 3619 /// Status of the virtual machine where this instance lives. Only applicable |
| 3582 * for instances in App Engine flexible environment.@OutputOnly | 3620 /// for instances in App Engine flexible environment.@OutputOnly |
| 3583 */ | |
| 3584 core.String vmStatus; | 3621 core.String vmStatus; |
| 3585 /** | 3622 |
| 3586 * Zone where the virtual machine is located. Only applicable for instances in | 3623 /// Zone where the virtual machine is located. Only applicable for instances |
| 3587 * App Engine flexible environment.@OutputOnly | 3624 /// in App Engine flexible environment.@OutputOnly |
| 3588 */ | |
| 3589 core.String vmZoneName; | 3625 core.String vmZoneName; |
| 3590 | 3626 |
| 3591 Instance(); | 3627 Instance(); |
| 3592 | 3628 |
| 3593 Instance.fromJson(core.Map _json) { | 3629 Instance.fromJson(core.Map _json) { |
| 3594 if (_json.containsKey("appEngineRelease")) { | 3630 if (_json.containsKey("appEngineRelease")) { |
| 3595 appEngineRelease = _json["appEngineRelease"]; | 3631 appEngineRelease = _json["appEngineRelease"]; |
| 3596 } | 3632 } |
| 3597 if (_json.containsKey("availability")) { | 3633 if (_json.containsKey("availability")) { |
| 3598 availability = _json["availability"]; | 3634 availability = _json["availability"]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3635 } | 3671 } |
| 3636 if (_json.containsKey("vmStatus")) { | 3672 if (_json.containsKey("vmStatus")) { |
| 3637 vmStatus = _json["vmStatus"]; | 3673 vmStatus = _json["vmStatus"]; |
| 3638 } | 3674 } |
| 3639 if (_json.containsKey("vmZoneName")) { | 3675 if (_json.containsKey("vmZoneName")) { |
| 3640 vmZoneName = _json["vmZoneName"]; | 3676 vmZoneName = _json["vmZoneName"]; |
| 3641 } | 3677 } |
| 3642 } | 3678 } |
| 3643 | 3679 |
| 3644 core.Map<core.String, core.Object> toJson() { | 3680 core.Map<core.String, core.Object> toJson() { |
| 3645 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3681 final core.Map<core.String, core.Object> _json = |
| 3682 new core.Map<core.String, core.Object>(); |
| 3646 if (appEngineRelease != null) { | 3683 if (appEngineRelease != null) { |
| 3647 _json["appEngineRelease"] = appEngineRelease; | 3684 _json["appEngineRelease"] = appEngineRelease; |
| 3648 } | 3685 } |
| 3649 if (availability != null) { | 3686 if (availability != null) { |
| 3650 _json["availability"] = availability; | 3687 _json["availability"] = availability; |
| 3651 } | 3688 } |
| 3652 if (averageLatency != null) { | 3689 if (averageLatency != null) { |
| 3653 _json["averageLatency"] = averageLatency; | 3690 _json["averageLatency"] = averageLatency; |
| 3654 } | 3691 } |
| 3655 if (errors != null) { | 3692 if (errors != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3688 if (vmStatus != null) { | 3725 if (vmStatus != null) { |
| 3689 _json["vmStatus"] = vmStatus; | 3726 _json["vmStatus"] = vmStatus; |
| 3690 } | 3727 } |
| 3691 if (vmZoneName != null) { | 3728 if (vmZoneName != null) { |
| 3692 _json["vmZoneName"] = vmZoneName; | 3729 _json["vmZoneName"] = vmZoneName; |
| 3693 } | 3730 } |
| 3694 return _json; | 3731 return _json; |
| 3695 } | 3732 } |
| 3696 } | 3733 } |
| 3697 | 3734 |
| 3698 /** Third-party Python runtime library that is required by the application. */ | 3735 /// Third-party Python runtime library that is required by the application. |
| 3699 class Library { | 3736 class Library { |
| 3700 /** Name of the library. Example: "django". */ | 3737 /// Name of the library. Example: "django". |
| 3701 core.String name; | 3738 core.String name; |
| 3702 /** Version of the library to select, or "latest". */ | 3739 |
| 3740 /// Version of the library to select, or "latest". |
| 3703 core.String version; | 3741 core.String version; |
| 3704 | 3742 |
| 3705 Library(); | 3743 Library(); |
| 3706 | 3744 |
| 3707 Library.fromJson(core.Map _json) { | 3745 Library.fromJson(core.Map _json) { |
| 3708 if (_json.containsKey("name")) { | 3746 if (_json.containsKey("name")) { |
| 3709 name = _json["name"]; | 3747 name = _json["name"]; |
| 3710 } | 3748 } |
| 3711 if (_json.containsKey("version")) { | 3749 if (_json.containsKey("version")) { |
| 3712 version = _json["version"]; | 3750 version = _json["version"]; |
| 3713 } | 3751 } |
| 3714 } | 3752 } |
| 3715 | 3753 |
| 3716 core.Map<core.String, core.Object> toJson() { | 3754 core.Map<core.String, core.Object> toJson() { |
| 3717 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3755 final core.Map<core.String, core.Object> _json = |
| 3756 new core.Map<core.String, core.Object>(); |
| 3718 if (name != null) { | 3757 if (name != null) { |
| 3719 _json["name"] = name; | 3758 _json["name"] = name; |
| 3720 } | 3759 } |
| 3721 if (version != null) { | 3760 if (version != null) { |
| 3722 _json["version"] = version; | 3761 _json["version"] = version; |
| 3723 } | 3762 } |
| 3724 return _json; | 3763 return _json; |
| 3725 } | 3764 } |
| 3726 } | 3765 } |
| 3727 | 3766 |
| 3728 /** Response message for AuthorizedCertificates.ListAuthorizedCertificates. */ | 3767 /// Response message for AuthorizedCertificates.ListAuthorizedCertificates. |
| 3729 class ListAuthorizedCertificatesResponse { | 3768 class ListAuthorizedCertificatesResponse { |
| 3730 /** The SSL certificates the user is authorized to administer. */ | 3769 /// The SSL certificates the user is authorized to administer. |
| 3731 core.List<AuthorizedCertificate> certificates; | 3770 core.List<AuthorizedCertificate> certificates; |
| 3732 /** Continuation token for fetching the next page of results. */ | 3771 |
| 3772 /// Continuation token for fetching the next page of results. |
| 3733 core.String nextPageToken; | 3773 core.String nextPageToken; |
| 3734 | 3774 |
| 3735 ListAuthorizedCertificatesResponse(); | 3775 ListAuthorizedCertificatesResponse(); |
| 3736 | 3776 |
| 3737 ListAuthorizedCertificatesResponse.fromJson(core.Map _json) { | 3777 ListAuthorizedCertificatesResponse.fromJson(core.Map _json) { |
| 3738 if (_json.containsKey("certificates")) { | 3778 if (_json.containsKey("certificates")) { |
| 3739 certificates = _json["certificates"].map((value) => new AuthorizedCertific
ate.fromJson(value)).toList(); | 3779 certificates = _json["certificates"] |
| 3780 .map((value) => new AuthorizedCertificate.fromJson(value)) |
| 3781 .toList(); |
| 3740 } | 3782 } |
| 3741 if (_json.containsKey("nextPageToken")) { | 3783 if (_json.containsKey("nextPageToken")) { |
| 3742 nextPageToken = _json["nextPageToken"]; | 3784 nextPageToken = _json["nextPageToken"]; |
| 3743 } | 3785 } |
| 3744 } | 3786 } |
| 3745 | 3787 |
| 3746 core.Map<core.String, core.Object> toJson() { | 3788 core.Map<core.String, core.Object> toJson() { |
| 3747 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3789 final core.Map<core.String, core.Object> _json = |
| 3790 new core.Map<core.String, core.Object>(); |
| 3748 if (certificates != null) { | 3791 if (certificates != null) { |
| 3749 _json["certificates"] = certificates.map((value) => (value).toJson()).toLi
st(); | 3792 _json["certificates"] = |
| 3793 certificates.map((value) => (value).toJson()).toList(); |
| 3750 } | 3794 } |
| 3751 if (nextPageToken != null) { | 3795 if (nextPageToken != null) { |
| 3752 _json["nextPageToken"] = nextPageToken; | 3796 _json["nextPageToken"] = nextPageToken; |
| 3753 } | 3797 } |
| 3754 return _json; | 3798 return _json; |
| 3755 } | 3799 } |
| 3756 } | 3800 } |
| 3757 | 3801 |
| 3758 /** Response message for AuthorizedDomains.ListAuthorizedDomains. */ | 3802 /// Response message for AuthorizedDomains.ListAuthorizedDomains. |
| 3759 class ListAuthorizedDomainsResponse { | 3803 class ListAuthorizedDomainsResponse { |
| 3760 /** The authorized domains belonging to the user. */ | 3804 /// The authorized domains belonging to the user. |
| 3761 core.List<AuthorizedDomain> domains; | 3805 core.List<AuthorizedDomain> domains; |
| 3762 /** Continuation token for fetching the next page of results. */ | 3806 |
| 3807 /// Continuation token for fetching the next page of results. |
| 3763 core.String nextPageToken; | 3808 core.String nextPageToken; |
| 3764 | 3809 |
| 3765 ListAuthorizedDomainsResponse(); | 3810 ListAuthorizedDomainsResponse(); |
| 3766 | 3811 |
| 3767 ListAuthorizedDomainsResponse.fromJson(core.Map _json) { | 3812 ListAuthorizedDomainsResponse.fromJson(core.Map _json) { |
| 3768 if (_json.containsKey("domains")) { | 3813 if (_json.containsKey("domains")) { |
| 3769 domains = _json["domains"].map((value) => new AuthorizedDomain.fromJson(va
lue)).toList(); | 3814 domains = _json["domains"] |
| 3815 .map((value) => new AuthorizedDomain.fromJson(value)) |
| 3816 .toList(); |
| 3770 } | 3817 } |
| 3771 if (_json.containsKey("nextPageToken")) { | 3818 if (_json.containsKey("nextPageToken")) { |
| 3772 nextPageToken = _json["nextPageToken"]; | 3819 nextPageToken = _json["nextPageToken"]; |
| 3773 } | 3820 } |
| 3774 } | 3821 } |
| 3775 | 3822 |
| 3776 core.Map<core.String, core.Object> toJson() { | 3823 core.Map<core.String, core.Object> toJson() { |
| 3777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3824 final core.Map<core.String, core.Object> _json = |
| 3825 new core.Map<core.String, core.Object>(); |
| 3778 if (domains != null) { | 3826 if (domains != null) { |
| 3779 _json["domains"] = domains.map((value) => (value).toJson()).toList(); | 3827 _json["domains"] = domains.map((value) => (value).toJson()).toList(); |
| 3780 } | 3828 } |
| 3781 if (nextPageToken != null) { | 3829 if (nextPageToken != null) { |
| 3782 _json["nextPageToken"] = nextPageToken; | 3830 _json["nextPageToken"] = nextPageToken; |
| 3783 } | 3831 } |
| 3784 return _json; | 3832 return _json; |
| 3785 } | 3833 } |
| 3786 } | 3834 } |
| 3787 | 3835 |
| 3788 /** Response message for DomainMappings.ListDomainMappings. */ | 3836 /// Response message for DomainMappings.ListDomainMappings. |
| 3789 class ListDomainMappingsResponse { | 3837 class ListDomainMappingsResponse { |
| 3790 /** The domain mappings for the application. */ | 3838 /// The domain mappings for the application. |
| 3791 core.List<DomainMapping> domainMappings; | 3839 core.List<DomainMapping> domainMappings; |
| 3792 /** Continuation token for fetching the next page of results. */ | 3840 |
| 3841 /// Continuation token for fetching the next page of results. |
| 3793 core.String nextPageToken; | 3842 core.String nextPageToken; |
| 3794 | 3843 |
| 3795 ListDomainMappingsResponse(); | 3844 ListDomainMappingsResponse(); |
| 3796 | 3845 |
| 3797 ListDomainMappingsResponse.fromJson(core.Map _json) { | 3846 ListDomainMappingsResponse.fromJson(core.Map _json) { |
| 3798 if (_json.containsKey("domainMappings")) { | 3847 if (_json.containsKey("domainMappings")) { |
| 3799 domainMappings = _json["domainMappings"].map((value) => new DomainMapping.
fromJson(value)).toList(); | 3848 domainMappings = _json["domainMappings"] |
| 3849 .map((value) => new DomainMapping.fromJson(value)) |
| 3850 .toList(); |
| 3800 } | 3851 } |
| 3801 if (_json.containsKey("nextPageToken")) { | 3852 if (_json.containsKey("nextPageToken")) { |
| 3802 nextPageToken = _json["nextPageToken"]; | 3853 nextPageToken = _json["nextPageToken"]; |
| 3803 } | 3854 } |
| 3804 } | 3855 } |
| 3805 | 3856 |
| 3806 core.Map<core.String, core.Object> toJson() { | 3857 core.Map<core.String, core.Object> toJson() { |
| 3807 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3858 final core.Map<core.String, core.Object> _json = |
| 3859 new core.Map<core.String, core.Object>(); |
| 3808 if (domainMappings != null) { | 3860 if (domainMappings != null) { |
| 3809 _json["domainMappings"] = domainMappings.map((value) => (value).toJson()).
toList(); | 3861 _json["domainMappings"] = |
| 3862 domainMappings.map((value) => (value).toJson()).toList(); |
| 3810 } | 3863 } |
| 3811 if (nextPageToken != null) { | 3864 if (nextPageToken != null) { |
| 3812 _json["nextPageToken"] = nextPageToken; | 3865 _json["nextPageToken"] = nextPageToken; |
| 3813 } | 3866 } |
| 3814 return _json; | 3867 return _json; |
| 3815 } | 3868 } |
| 3816 } | 3869 } |
| 3817 | 3870 |
| 3818 /** Response message for Firewall.ListIngressRules. */ | 3871 /// Response message for Firewall.ListIngressRules. |
| 3819 class ListIngressRulesResponse { | 3872 class ListIngressRulesResponse { |
| 3820 /** The ingress FirewallRules for this application. */ | 3873 /// The ingress FirewallRules for this application. |
| 3821 core.List<FirewallRule> ingressRules; | 3874 core.List<FirewallRule> ingressRules; |
| 3822 /** Continuation token for fetching the next page of results. */ | 3875 |
| 3876 /// Continuation token for fetching the next page of results. |
| 3823 core.String nextPageToken; | 3877 core.String nextPageToken; |
| 3824 | 3878 |
| 3825 ListIngressRulesResponse(); | 3879 ListIngressRulesResponse(); |
| 3826 | 3880 |
| 3827 ListIngressRulesResponse.fromJson(core.Map _json) { | 3881 ListIngressRulesResponse.fromJson(core.Map _json) { |
| 3828 if (_json.containsKey("ingressRules")) { | 3882 if (_json.containsKey("ingressRules")) { |
| 3829 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); | 3883 ingressRules = _json["ingressRules"] |
| 3884 .map((value) => new FirewallRule.fromJson(value)) |
| 3885 .toList(); |
| 3830 } | 3886 } |
| 3831 if (_json.containsKey("nextPageToken")) { | 3887 if (_json.containsKey("nextPageToken")) { |
| 3832 nextPageToken = _json["nextPageToken"]; | 3888 nextPageToken = _json["nextPageToken"]; |
| 3833 } | 3889 } |
| 3834 } | 3890 } |
| 3835 | 3891 |
| 3836 core.Map<core.String, core.Object> toJson() { | 3892 core.Map<core.String, core.Object> toJson() { |
| 3837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3893 final core.Map<core.String, core.Object> _json = |
| 3894 new core.Map<core.String, core.Object>(); |
| 3838 if (ingressRules != null) { | 3895 if (ingressRules != null) { |
| 3839 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); | 3896 _json["ingressRules"] = |
| 3897 ingressRules.map((value) => (value).toJson()).toList(); |
| 3840 } | 3898 } |
| 3841 if (nextPageToken != null) { | 3899 if (nextPageToken != null) { |
| 3842 _json["nextPageToken"] = nextPageToken; | 3900 _json["nextPageToken"] = nextPageToken; |
| 3843 } | 3901 } |
| 3844 return _json; | 3902 return _json; |
| 3845 } | 3903 } |
| 3846 } | 3904 } |
| 3847 | 3905 |
| 3848 /** Response message for Instances.ListInstances. */ | 3906 /// Response message for Instances.ListInstances. |
| 3849 class ListInstancesResponse { | 3907 class ListInstancesResponse { |
| 3850 /** The instances belonging to the requested version. */ | 3908 /// The instances belonging to the requested version. |
| 3851 core.List<Instance> instances; | 3909 core.List<Instance> instances; |
| 3852 /** Continuation token for fetching the next page of results. */ | 3910 |
| 3911 /// Continuation token for fetching the next page of results. |
| 3853 core.String nextPageToken; | 3912 core.String nextPageToken; |
| 3854 | 3913 |
| 3855 ListInstancesResponse(); | 3914 ListInstancesResponse(); |
| 3856 | 3915 |
| 3857 ListInstancesResponse.fromJson(core.Map _json) { | 3916 ListInstancesResponse.fromJson(core.Map _json) { |
| 3858 if (_json.containsKey("instances")) { | 3917 if (_json.containsKey("instances")) { |
| 3859 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); | 3918 instances = _json["instances"] |
| 3919 .map((value) => new Instance.fromJson(value)) |
| 3920 .toList(); |
| 3860 } | 3921 } |
| 3861 if (_json.containsKey("nextPageToken")) { | 3922 if (_json.containsKey("nextPageToken")) { |
| 3862 nextPageToken = _json["nextPageToken"]; | 3923 nextPageToken = _json["nextPageToken"]; |
| 3863 } | 3924 } |
| 3864 } | 3925 } |
| 3865 | 3926 |
| 3866 core.Map<core.String, core.Object> toJson() { | 3927 core.Map<core.String, core.Object> toJson() { |
| 3867 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3928 final core.Map<core.String, core.Object> _json = |
| 3929 new core.Map<core.String, core.Object>(); |
| 3868 if (instances != null) { | 3930 if (instances != null) { |
| 3869 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 3931 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 3870 } | 3932 } |
| 3871 if (nextPageToken != null) { | 3933 if (nextPageToken != null) { |
| 3872 _json["nextPageToken"] = nextPageToken; | 3934 _json["nextPageToken"] = nextPageToken; |
| 3873 } | 3935 } |
| 3874 return _json; | 3936 return _json; |
| 3875 } | 3937 } |
| 3876 } | 3938 } |
| 3877 | 3939 |
| 3878 /** The response message for Locations.ListLocations. */ | 3940 /// The response message for Locations.ListLocations. |
| 3879 class ListLocationsResponse { | 3941 class ListLocationsResponse { |
| 3880 /** A list of locations that matches the specified filter in the request. */ | 3942 /// A list of locations that matches the specified filter in the request. |
| 3881 core.List<Location> locations; | 3943 core.List<Location> locations; |
| 3882 /** The standard List next-page token. */ | 3944 |
| 3945 /// The standard List next-page token. |
| 3883 core.String nextPageToken; | 3946 core.String nextPageToken; |
| 3884 | 3947 |
| 3885 ListLocationsResponse(); | 3948 ListLocationsResponse(); |
| 3886 | 3949 |
| 3887 ListLocationsResponse.fromJson(core.Map _json) { | 3950 ListLocationsResponse.fromJson(core.Map _json) { |
| 3888 if (_json.containsKey("locations")) { | 3951 if (_json.containsKey("locations")) { |
| 3889 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); | 3952 locations = _json["locations"] |
| 3953 .map((value) => new Location.fromJson(value)) |
| 3954 .toList(); |
| 3890 } | 3955 } |
| 3891 if (_json.containsKey("nextPageToken")) { | 3956 if (_json.containsKey("nextPageToken")) { |
| 3892 nextPageToken = _json["nextPageToken"]; | 3957 nextPageToken = _json["nextPageToken"]; |
| 3893 } | 3958 } |
| 3894 } | 3959 } |
| 3895 | 3960 |
| 3896 core.Map<core.String, core.Object> toJson() { | 3961 core.Map<core.String, core.Object> toJson() { |
| 3897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3962 final core.Map<core.String, core.Object> _json = |
| 3963 new core.Map<core.String, core.Object>(); |
| 3898 if (locations != null) { | 3964 if (locations != null) { |
| 3899 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 3965 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 3900 } | 3966 } |
| 3901 if (nextPageToken != null) { | 3967 if (nextPageToken != null) { |
| 3902 _json["nextPageToken"] = nextPageToken; | 3968 _json["nextPageToken"] = nextPageToken; |
| 3903 } | 3969 } |
| 3904 return _json; | 3970 return _json; |
| 3905 } | 3971 } |
| 3906 } | 3972 } |
| 3907 | 3973 |
| 3908 /** The response message for Operations.ListOperations. */ | 3974 /// The response message for Operations.ListOperations. |
| 3909 class ListOperationsResponse { | 3975 class ListOperationsResponse { |
| 3910 /** The standard List next-page token. */ | 3976 /// The standard List next-page token. |
| 3911 core.String nextPageToken; | 3977 core.String nextPageToken; |
| 3912 /** A list of operations that matches the specified filter in the request. */ | 3978 |
| 3979 /// A list of operations that matches the specified filter in the request. |
| 3913 core.List<Operation> operations; | 3980 core.List<Operation> operations; |
| 3914 | 3981 |
| 3915 ListOperationsResponse(); | 3982 ListOperationsResponse(); |
| 3916 | 3983 |
| 3917 ListOperationsResponse.fromJson(core.Map _json) { | 3984 ListOperationsResponse.fromJson(core.Map _json) { |
| 3918 if (_json.containsKey("nextPageToken")) { | 3985 if (_json.containsKey("nextPageToken")) { |
| 3919 nextPageToken = _json["nextPageToken"]; | 3986 nextPageToken = _json["nextPageToken"]; |
| 3920 } | 3987 } |
| 3921 if (_json.containsKey("operations")) { | 3988 if (_json.containsKey("operations")) { |
| 3922 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 3989 operations = _json["operations"] |
| 3990 .map((value) => new Operation.fromJson(value)) |
| 3991 .toList(); |
| 3923 } | 3992 } |
| 3924 } | 3993 } |
| 3925 | 3994 |
| 3926 core.Map<core.String, core.Object> toJson() { | 3995 core.Map<core.String, core.Object> toJson() { |
| 3927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3996 final core.Map<core.String, core.Object> _json = |
| 3997 new core.Map<core.String, core.Object>(); |
| 3928 if (nextPageToken != null) { | 3998 if (nextPageToken != null) { |
| 3929 _json["nextPageToken"] = nextPageToken; | 3999 _json["nextPageToken"] = nextPageToken; |
| 3930 } | 4000 } |
| 3931 if (operations != null) { | 4001 if (operations != null) { |
| 3932 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 4002 _json["operations"] = |
| 4003 operations.map((value) => (value).toJson()).toList(); |
| 3933 } | 4004 } |
| 3934 return _json; | 4005 return _json; |
| 3935 } | 4006 } |
| 3936 } | 4007 } |
| 3937 | 4008 |
| 3938 /** Response message for Services.ListServices. */ | 4009 /// Response message for Services.ListServices. |
| 3939 class ListServicesResponse { | 4010 class ListServicesResponse { |
| 3940 /** Continuation token for fetching the next page of results. */ | 4011 /// Continuation token for fetching the next page of results. |
| 3941 core.String nextPageToken; | 4012 core.String nextPageToken; |
| 3942 /** The services belonging to the requested application. */ | 4013 |
| 4014 /// The services belonging to the requested application. |
| 3943 core.List<Service> services; | 4015 core.List<Service> services; |
| 3944 | 4016 |
| 3945 ListServicesResponse(); | 4017 ListServicesResponse(); |
| 3946 | 4018 |
| 3947 ListServicesResponse.fromJson(core.Map _json) { | 4019 ListServicesResponse.fromJson(core.Map _json) { |
| 3948 if (_json.containsKey("nextPageToken")) { | 4020 if (_json.containsKey("nextPageToken")) { |
| 3949 nextPageToken = _json["nextPageToken"]; | 4021 nextPageToken = _json["nextPageToken"]; |
| 3950 } | 4022 } |
| 3951 if (_json.containsKey("services")) { | 4023 if (_json.containsKey("services")) { |
| 3952 services = _json["services"].map((value) => new Service.fromJson(value)).t
oList(); | 4024 services = _json["services"] |
| 4025 .map((value) => new Service.fromJson(value)) |
| 4026 .toList(); |
| 3953 } | 4027 } |
| 3954 } | 4028 } |
| 3955 | 4029 |
| 3956 core.Map<core.String, core.Object> toJson() { | 4030 core.Map<core.String, core.Object> toJson() { |
| 3957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4031 final core.Map<core.String, core.Object> _json = |
| 4032 new core.Map<core.String, core.Object>(); |
| 3958 if (nextPageToken != null) { | 4033 if (nextPageToken != null) { |
| 3959 _json["nextPageToken"] = nextPageToken; | 4034 _json["nextPageToken"] = nextPageToken; |
| 3960 } | 4035 } |
| 3961 if (services != null) { | 4036 if (services != null) { |
| 3962 _json["services"] = services.map((value) => (value).toJson()).toList(); | 4037 _json["services"] = services.map((value) => (value).toJson()).toList(); |
| 3963 } | 4038 } |
| 3964 return _json; | 4039 return _json; |
| 3965 } | 4040 } |
| 3966 } | 4041 } |
| 3967 | 4042 |
| 3968 /** Response message for Versions.ListVersions. */ | 4043 /// Response message for Versions.ListVersions. |
| 3969 class ListVersionsResponse { | 4044 class ListVersionsResponse { |
| 3970 /** Continuation token for fetching the next page of results. */ | 4045 /// Continuation token for fetching the next page of results. |
| 3971 core.String nextPageToken; | 4046 core.String nextPageToken; |
| 3972 /** The versions belonging to the requested service. */ | 4047 |
| 4048 /// The versions belonging to the requested service. |
| 3973 core.List<Version> versions; | 4049 core.List<Version> versions; |
| 3974 | 4050 |
| 3975 ListVersionsResponse(); | 4051 ListVersionsResponse(); |
| 3976 | 4052 |
| 3977 ListVersionsResponse.fromJson(core.Map _json) { | 4053 ListVersionsResponse.fromJson(core.Map _json) { |
| 3978 if (_json.containsKey("nextPageToken")) { | 4054 if (_json.containsKey("nextPageToken")) { |
| 3979 nextPageToken = _json["nextPageToken"]; | 4055 nextPageToken = _json["nextPageToken"]; |
| 3980 } | 4056 } |
| 3981 if (_json.containsKey("versions")) { | 4057 if (_json.containsKey("versions")) { |
| 3982 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); | 4058 versions = _json["versions"] |
| 4059 .map((value) => new Version.fromJson(value)) |
| 4060 .toList(); |
| 3983 } | 4061 } |
| 3984 } | 4062 } |
| 3985 | 4063 |
| 3986 core.Map<core.String, core.Object> toJson() { | 4064 core.Map<core.String, core.Object> toJson() { |
| 3987 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4065 final core.Map<core.String, core.Object> _json = |
| 4066 new core.Map<core.String, core.Object>(); |
| 3988 if (nextPageToken != null) { | 4067 if (nextPageToken != null) { |
| 3989 _json["nextPageToken"] = nextPageToken; | 4068 _json["nextPageToken"] = nextPageToken; |
| 3990 } | 4069 } |
| 3991 if (versions != null) { | 4070 if (versions != null) { |
| 3992 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 4071 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
| 3993 } | 4072 } |
| 3994 return _json; | 4073 return _json; |
| 3995 } | 4074 } |
| 3996 } | 4075 } |
| 3997 | 4076 |
| 3998 /** | 4077 /// Health checking configuration for VM instances. Unhealthy instances are |
| 3999 * Health checking configuration for VM instances. Unhealthy instances are | 4078 /// killed and replaced with new instances. |
| 4000 * killed and replaced with new instances. | |
| 4001 */ | |
| 4002 class LivenessCheck { | 4079 class LivenessCheck { |
| 4003 /** Interval between health checks. */ | 4080 /// Interval between health checks. |
| 4004 core.String checkInterval; | 4081 core.String checkInterval; |
| 4005 /** | 4082 |
| 4006 * Number of consecutive failed checks required before considering the VM | 4083 /// Number of consecutive failed checks required before considering the VM |
| 4007 * unhealthy. | 4084 /// unhealthy. |
| 4008 */ | |
| 4009 core.int failureThreshold; | 4085 core.int failureThreshold; |
| 4010 /** | 4086 |
| 4011 * Host header to send when performing a HTTP Liveness check. Example: | 4087 /// Host header to send when performing a HTTP Liveness check. Example: |
| 4012 * "myapp.appspot.com" | 4088 /// "myapp.appspot.com" |
| 4013 */ | |
| 4014 core.String host; | 4089 core.String host; |
| 4015 /** The initial delay before starting to execute the checks. */ | 4090 |
| 4091 /// The initial delay before starting to execute the checks. |
| 4016 core.String initialDelay; | 4092 core.String initialDelay; |
| 4017 /** The request path. */ | 4093 |
| 4094 /// The request path. |
| 4018 core.String path; | 4095 core.String path; |
| 4019 /** | 4096 |
| 4020 * Number of consecutive successful checks required before considering the VM | 4097 /// Number of consecutive successful checks required before considering the |
| 4021 * healthy. | 4098 /// VM healthy. |
| 4022 */ | |
| 4023 core.int successThreshold; | 4099 core.int successThreshold; |
| 4024 /** Time before the check is considered failed. */ | 4100 |
| 4101 /// Time before the check is considered failed. |
| 4025 core.String timeout; | 4102 core.String timeout; |
| 4026 | 4103 |
| 4027 LivenessCheck(); | 4104 LivenessCheck(); |
| 4028 | 4105 |
| 4029 LivenessCheck.fromJson(core.Map _json) { | 4106 LivenessCheck.fromJson(core.Map _json) { |
| 4030 if (_json.containsKey("checkInterval")) { | 4107 if (_json.containsKey("checkInterval")) { |
| 4031 checkInterval = _json["checkInterval"]; | 4108 checkInterval = _json["checkInterval"]; |
| 4032 } | 4109 } |
| 4033 if (_json.containsKey("failureThreshold")) { | 4110 if (_json.containsKey("failureThreshold")) { |
| 4034 failureThreshold = _json["failureThreshold"]; | 4111 failureThreshold = _json["failureThreshold"]; |
| 4035 } | 4112 } |
| 4036 if (_json.containsKey("host")) { | 4113 if (_json.containsKey("host")) { |
| 4037 host = _json["host"]; | 4114 host = _json["host"]; |
| 4038 } | 4115 } |
| 4039 if (_json.containsKey("initialDelay")) { | 4116 if (_json.containsKey("initialDelay")) { |
| 4040 initialDelay = _json["initialDelay"]; | 4117 initialDelay = _json["initialDelay"]; |
| 4041 } | 4118 } |
| 4042 if (_json.containsKey("path")) { | 4119 if (_json.containsKey("path")) { |
| 4043 path = _json["path"]; | 4120 path = _json["path"]; |
| 4044 } | 4121 } |
| 4045 if (_json.containsKey("successThreshold")) { | 4122 if (_json.containsKey("successThreshold")) { |
| 4046 successThreshold = _json["successThreshold"]; | 4123 successThreshold = _json["successThreshold"]; |
| 4047 } | 4124 } |
| 4048 if (_json.containsKey("timeout")) { | 4125 if (_json.containsKey("timeout")) { |
| 4049 timeout = _json["timeout"]; | 4126 timeout = _json["timeout"]; |
| 4050 } | 4127 } |
| 4051 } | 4128 } |
| 4052 | 4129 |
| 4053 core.Map<core.String, core.Object> toJson() { | 4130 core.Map<core.String, core.Object> toJson() { |
| 4054 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4131 final core.Map<core.String, core.Object> _json = |
| 4132 new core.Map<core.String, core.Object>(); |
| 4055 if (checkInterval != null) { | 4133 if (checkInterval != null) { |
| 4056 _json["checkInterval"] = checkInterval; | 4134 _json["checkInterval"] = checkInterval; |
| 4057 } | 4135 } |
| 4058 if (failureThreshold != null) { | 4136 if (failureThreshold != null) { |
| 4059 _json["failureThreshold"] = failureThreshold; | 4137 _json["failureThreshold"] = failureThreshold; |
| 4060 } | 4138 } |
| 4061 if (host != null) { | 4139 if (host != null) { |
| 4062 _json["host"] = host; | 4140 _json["host"] = host; |
| 4063 } | 4141 } |
| 4064 if (initialDelay != null) { | 4142 if (initialDelay != null) { |
| 4065 _json["initialDelay"] = initialDelay; | 4143 _json["initialDelay"] = initialDelay; |
| 4066 } | 4144 } |
| 4067 if (path != null) { | 4145 if (path != null) { |
| 4068 _json["path"] = path; | 4146 _json["path"] = path; |
| 4069 } | 4147 } |
| 4070 if (successThreshold != null) { | 4148 if (successThreshold != null) { |
| 4071 _json["successThreshold"] = successThreshold; | 4149 _json["successThreshold"] = successThreshold; |
| 4072 } | 4150 } |
| 4073 if (timeout != null) { | 4151 if (timeout != null) { |
| 4074 _json["timeout"] = timeout; | 4152 _json["timeout"] = timeout; |
| 4075 } | 4153 } |
| 4076 return _json; | 4154 return _json; |
| 4077 } | 4155 } |
| 4078 } | 4156 } |
| 4079 | 4157 |
| 4080 /** A resource that represents Google Cloud Platform location. */ | 4158 /// A resource that represents Google Cloud Platform location. |
| 4081 class Location { | 4159 class Location { |
| 4082 /** | 4160 /// Cross-service attributes for the location. For example |
| 4083 * Cross-service attributes for the location. For example | 4161 /// {"cloud.googleapis.com/region": "us-east1"} |
| 4084 * {"cloud.googleapis.com/region": "us-east1"} | |
| 4085 */ | |
| 4086 core.Map<core.String, core.String> labels; | 4162 core.Map<core.String, core.String> labels; |
| 4087 /** The canonical id for this location. For example: "us-east1". */ | 4163 |
| 4164 /// The canonical id for this location. For example: "us-east1". |
| 4088 core.String locationId; | 4165 core.String locationId; |
| 4089 /** | 4166 |
| 4090 * Service-specific metadata. For example the available capacity at the given | 4167 /// Service-specific metadata. For example the available capacity at the |
| 4091 * location. | 4168 /// given location. |
| 4092 * | 4169 /// |
| 4093 * The values for Object must be JSON objects. It can consist of `num`, | 4170 /// The values for Object must be JSON objects. It can consist of `num`, |
| 4094 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4171 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4095 */ | |
| 4096 core.Map<core.String, core.Object> metadata; | 4172 core.Map<core.String, core.Object> metadata; |
| 4097 /** | 4173 |
| 4098 * Resource name for the location, which may vary between implementations. For | 4174 /// Resource name for the location, which may vary between implementations. |
| 4099 * example: "projects/example-project/locations/us-east1" | 4175 /// For example: "projects/example-project/locations/us-east1" |
| 4100 */ | |
| 4101 core.String name; | 4176 core.String name; |
| 4102 | 4177 |
| 4103 Location(); | 4178 Location(); |
| 4104 | 4179 |
| 4105 Location.fromJson(core.Map _json) { | 4180 Location.fromJson(core.Map _json) { |
| 4106 if (_json.containsKey("labels")) { | 4181 if (_json.containsKey("labels")) { |
| 4107 labels = _json["labels"]; | 4182 labels = _json["labels"]; |
| 4108 } | 4183 } |
| 4109 if (_json.containsKey("locationId")) { | 4184 if (_json.containsKey("locationId")) { |
| 4110 locationId = _json["locationId"]; | 4185 locationId = _json["locationId"]; |
| 4111 } | 4186 } |
| 4112 if (_json.containsKey("metadata")) { | 4187 if (_json.containsKey("metadata")) { |
| 4113 metadata = _json["metadata"]; | 4188 metadata = _json["metadata"]; |
| 4114 } | 4189 } |
| 4115 if (_json.containsKey("name")) { | 4190 if (_json.containsKey("name")) { |
| 4116 name = _json["name"]; | 4191 name = _json["name"]; |
| 4117 } | 4192 } |
| 4118 } | 4193 } |
| 4119 | 4194 |
| 4120 core.Map<core.String, core.Object> toJson() { | 4195 core.Map<core.String, core.Object> toJson() { |
| 4121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4196 final core.Map<core.String, core.Object> _json = |
| 4197 new core.Map<core.String, core.Object>(); |
| 4122 if (labels != null) { | 4198 if (labels != null) { |
| 4123 _json["labels"] = labels; | 4199 _json["labels"] = labels; |
| 4124 } | 4200 } |
| 4125 if (locationId != null) { | 4201 if (locationId != null) { |
| 4126 _json["locationId"] = locationId; | 4202 _json["locationId"] = locationId; |
| 4127 } | 4203 } |
| 4128 if (metadata != null) { | 4204 if (metadata != null) { |
| 4129 _json["metadata"] = metadata; | 4205 _json["metadata"] = metadata; |
| 4130 } | 4206 } |
| 4131 if (name != null) { | 4207 if (name != null) { |
| 4132 _json["name"] = name; | 4208 _json["name"] = name; |
| 4133 } | 4209 } |
| 4134 return _json; | 4210 return _json; |
| 4135 } | 4211 } |
| 4136 } | 4212 } |
| 4137 | 4213 |
| 4138 /** Metadata for the given google.cloud.location.Location. */ | 4214 /// Metadata for the given google.cloud.location.Location. |
| 4139 class LocationMetadata { | 4215 class LocationMetadata { |
| 4140 /** | 4216 /// App Engine Flexible Environment is available in the given |
| 4141 * App Engine Flexible Environment is available in the given | 4217 /// location.@OutputOnly |
| 4142 * location.@OutputOnly | |
| 4143 */ | |
| 4144 core.bool flexibleEnvironmentAvailable; | 4218 core.bool flexibleEnvironmentAvailable; |
| 4145 /** | 4219 |
| 4146 * App Engine Standard Environment is available in the given | 4220 /// App Engine Standard Environment is available in the given |
| 4147 * location.@OutputOnly | 4221 /// location.@OutputOnly |
| 4148 */ | |
| 4149 core.bool standardEnvironmentAvailable; | 4222 core.bool standardEnvironmentAvailable; |
| 4150 | 4223 |
| 4151 LocationMetadata(); | 4224 LocationMetadata(); |
| 4152 | 4225 |
| 4153 LocationMetadata.fromJson(core.Map _json) { | 4226 LocationMetadata.fromJson(core.Map _json) { |
| 4154 if (_json.containsKey("flexibleEnvironmentAvailable")) { | 4227 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
| 4155 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; | 4228 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
| 4156 } | 4229 } |
| 4157 if (_json.containsKey("standardEnvironmentAvailable")) { | 4230 if (_json.containsKey("standardEnvironmentAvailable")) { |
| 4158 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; | 4231 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; |
| 4159 } | 4232 } |
| 4160 } | 4233 } |
| 4161 | 4234 |
| 4162 core.Map<core.String, core.Object> toJson() { | 4235 core.Map<core.String, core.Object> toJson() { |
| 4163 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4236 final core.Map<core.String, core.Object> _json = |
| 4237 new core.Map<core.String, core.Object>(); |
| 4164 if (flexibleEnvironmentAvailable != null) { | 4238 if (flexibleEnvironmentAvailable != null) { |
| 4165 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; | 4239 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; |
| 4166 } | 4240 } |
| 4167 if (standardEnvironmentAvailable != null) { | 4241 if (standardEnvironmentAvailable != null) { |
| 4168 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; | 4242 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; |
| 4169 } | 4243 } |
| 4170 return _json; | 4244 return _json; |
| 4171 } | 4245 } |
| 4172 } | 4246 } |
| 4173 | 4247 |
| 4174 /** | 4248 /// A certificate managed by App Engine. |
| 4175 * A service with manual scaling runs continuously, allowing you to perform | 4249 class ManagedCertificate { |
| 4176 * complex initialization and rely on the state of its memory over time. | 4250 /// Time at which the certificate was last renewed. The renewal process is |
| 4177 */ | 4251 /// fully managed. Certificate renewal will automatically occur before the |
| 4252 /// certificate expires. Renewal errors can be tracked via |
| 4253 /// ManagementStatus.@OutputOnly |
| 4254 core.String lastRenewalTime; |
| 4255 |
| 4256 /// Status of certificate management. Refers to the most recent certificate |
| 4257 /// acquisition or renewal attempt.@OutputOnly |
| 4258 /// Possible string values are: |
| 4259 /// - "MANAGEMENT_STATUS_UNSPECIFIED" |
| 4260 /// - "OK" : Certificate was successfully obtained and inserted into the |
| 4261 /// serving system. |
| 4262 /// - "PENDING" : Certificate is under active attempts to acquire or renew. |
| 4263 /// - "FAILED_RETRYING_NOT_VISIBLE" : Most recent renewal failed due to an |
| 4264 /// invalid DNS setup and will be retried. Renewal attempts will continue to |
| 4265 /// fail until the certificate domain's DNS configuration is fixed. The last |
| 4266 /// successfully provisioned certificate may still be serving. |
| 4267 /// - "FAILED_PERMANENT" : All renewal attempts have been exhausted, likely |
| 4268 /// due to an invalid DNS setup. |
| 4269 core.String status; |
| 4270 |
| 4271 ManagedCertificate(); |
| 4272 |
| 4273 ManagedCertificate.fromJson(core.Map _json) { |
| 4274 if (_json.containsKey("lastRenewalTime")) { |
| 4275 lastRenewalTime = _json["lastRenewalTime"]; |
| 4276 } |
| 4277 if (_json.containsKey("status")) { |
| 4278 status = _json["status"]; |
| 4279 } |
| 4280 } |
| 4281 |
| 4282 core.Map<core.String, core.Object> toJson() { |
| 4283 final core.Map<core.String, core.Object> _json = |
| 4284 new core.Map<core.String, core.Object>(); |
| 4285 if (lastRenewalTime != null) { |
| 4286 _json["lastRenewalTime"] = lastRenewalTime; |
| 4287 } |
| 4288 if (status != null) { |
| 4289 _json["status"] = status; |
| 4290 } |
| 4291 return _json; |
| 4292 } |
| 4293 } |
| 4294 |
| 4295 /// A service with manual scaling runs continuously, allowing you to perform |
| 4296 /// complex initialization and rely on the state of its memory over time. |
| 4178 class ManualScaling { | 4297 class ManualScaling { |
| 4179 /** | 4298 /// Number of instances to assign to the service at the start. This number |
| 4180 * Number of instances to assign to the service at the start. This number can | 4299 /// can later be altered by using the Modules API |
| 4181 * later be altered by using the Modules API | 4300 /// (https://cloud.google.com/appengine/docs/python/modules/functions) |
| 4182 * (https://cloud.google.com/appengine/docs/python/modules/functions) | 4301 /// set_num_instances() function. |
| 4183 * set_num_instances() function. | |
| 4184 */ | |
| 4185 core.int instances; | 4302 core.int instances; |
| 4186 | 4303 |
| 4187 ManualScaling(); | 4304 ManualScaling(); |
| 4188 | 4305 |
| 4189 ManualScaling.fromJson(core.Map _json) { | 4306 ManualScaling.fromJson(core.Map _json) { |
| 4190 if (_json.containsKey("instances")) { | 4307 if (_json.containsKey("instances")) { |
| 4191 instances = _json["instances"]; | 4308 instances = _json["instances"]; |
| 4192 } | 4309 } |
| 4193 } | 4310 } |
| 4194 | 4311 |
| 4195 core.Map<core.String, core.Object> toJson() { | 4312 core.Map<core.String, core.Object> toJson() { |
| 4196 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4313 final core.Map<core.String, core.Object> _json = |
| 4314 new core.Map<core.String, core.Object>(); |
| 4197 if (instances != null) { | 4315 if (instances != null) { |
| 4198 _json["instances"] = instances; | 4316 _json["instances"] = instances; |
| 4199 } | 4317 } |
| 4200 return _json; | 4318 return _json; |
| 4201 } | 4319 } |
| 4202 } | 4320 } |
| 4203 | 4321 |
| 4204 /** | 4322 /// Extra network settings. Only applicable for App Engine flexible environment |
| 4205 * Extra network settings. Only applicable for App Engine flexible environment | 4323 /// versions |
| 4206 * versions | |
| 4207 */ | |
| 4208 class Network { | 4324 class Network { |
| 4209 /** | 4325 /// List of ports, or port pairs, to forward from the virtual machine to the |
| 4210 * List of ports, or port pairs, to forward from the virtual machine to the | 4326 /// application container. Only applicable for App Engine flexible |
| 4211 * application container. Only applicable for App Engine flexible environment | 4327 /// environment versions. |
| 4212 * versions. | |
| 4213 */ | |
| 4214 core.List<core.String> forwardedPorts; | 4328 core.List<core.String> forwardedPorts; |
| 4215 /** | 4329 |
| 4216 * Tag to apply to the VM instance during creation. Only applicable for for | 4330 /// Tag to apply to the VM instance during creation. Only applicable for for |
| 4217 * App Engine flexible environment versions. | 4331 /// App Engine flexible environment versions. |
| 4218 */ | |
| 4219 core.String instanceTag; | 4332 core.String instanceTag; |
| 4220 /** | 4333 |
| 4221 * Google Compute Engine network where the virtual machines are created. | 4334 /// Google Compute Engine network where the virtual machines are created. |
| 4222 * Specify the short name, not the resource path.Defaults to default. | 4335 /// Specify the short name, not the resource path.Defaults to default. |
| 4223 */ | |
| 4224 core.String name; | 4336 core.String name; |
| 4225 /** | 4337 |
| 4226 * Google Cloud Platform sub-network where the virtual machines are created. | 4338 /// Google Cloud Platform sub-network where the virtual machines are created. |
| 4227 * Specify the short name, not the resource path.If a subnetwork name is | 4339 /// Specify the short name, not the resource path.If a subnetwork name is |
| 4228 * specified, a network name will also be required unless it is for the | 4340 /// specified, a network name will also be required unless it is for the |
| 4229 * default network. | 4341 /// default network. |
| 4230 * If the network the VM instance is being created in is a Legacy network, | 4342 /// If the network the VM instance is being created in is a Legacy network, |
| 4231 * then the IP address is allocated from the IPv4Range. | 4343 /// then the IP address is allocated from the IPv4Range. |
| 4232 * If the network the VM instance is being created in is an auto Subnet Mode | 4344 /// If the network the VM instance is being created in is an auto Subnet Mode |
| 4233 * Network, then only network name should be specified (not the | 4345 /// Network, then only network name should be specified (not the |
| 4234 * subnetwork_name) and the IP address is created from the IPCidrRange of the | 4346 /// subnetwork_name) and the IP address is created from the IPCidrRange of |
| 4235 * subnetwork that exists in that zone for that network. | 4347 /// the subnetwork that exists in that zone for that network. |
| 4236 * If the network the VM instance is being created in is a custom Subnet Mode | 4348 /// If the network the VM instance is being created in is a custom Subnet |
| 4237 * Network, then the subnetwork_name must be specified and the IP address is | 4349 /// Mode Network, then the subnetwork_name must be specified and the IP |
| 4238 * created from the IPCidrRange of the subnetwork.If specified, the subnetwork | 4350 /// address is created from the IPCidrRange of the subnetwork.If specified, |
| 4239 * must exist in the same region as the App Engine flexible environment | 4351 /// the subnetwork must exist in the same region as the App Engine flexible |
| 4240 * application. | 4352 /// environment application. |
| 4241 */ | |
| 4242 core.String subnetworkName; | 4353 core.String subnetworkName; |
| 4243 | 4354 |
| 4244 Network(); | 4355 Network(); |
| 4245 | 4356 |
| 4246 Network.fromJson(core.Map _json) { | 4357 Network.fromJson(core.Map _json) { |
| 4247 if (_json.containsKey("forwardedPorts")) { | 4358 if (_json.containsKey("forwardedPorts")) { |
| 4248 forwardedPorts = _json["forwardedPorts"]; | 4359 forwardedPorts = _json["forwardedPorts"]; |
| 4249 } | 4360 } |
| 4250 if (_json.containsKey("instanceTag")) { | 4361 if (_json.containsKey("instanceTag")) { |
| 4251 instanceTag = _json["instanceTag"]; | 4362 instanceTag = _json["instanceTag"]; |
| 4252 } | 4363 } |
| 4253 if (_json.containsKey("name")) { | 4364 if (_json.containsKey("name")) { |
| 4254 name = _json["name"]; | 4365 name = _json["name"]; |
| 4255 } | 4366 } |
| 4256 if (_json.containsKey("subnetworkName")) { | 4367 if (_json.containsKey("subnetworkName")) { |
| 4257 subnetworkName = _json["subnetworkName"]; | 4368 subnetworkName = _json["subnetworkName"]; |
| 4258 } | 4369 } |
| 4259 } | 4370 } |
| 4260 | 4371 |
| 4261 core.Map<core.String, core.Object> toJson() { | 4372 core.Map<core.String, core.Object> toJson() { |
| 4262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4373 final core.Map<core.String, core.Object> _json = |
| 4374 new core.Map<core.String, core.Object>(); |
| 4263 if (forwardedPorts != null) { | 4375 if (forwardedPorts != null) { |
| 4264 _json["forwardedPorts"] = forwardedPorts; | 4376 _json["forwardedPorts"] = forwardedPorts; |
| 4265 } | 4377 } |
| 4266 if (instanceTag != null) { | 4378 if (instanceTag != null) { |
| 4267 _json["instanceTag"] = instanceTag; | 4379 _json["instanceTag"] = instanceTag; |
| 4268 } | 4380 } |
| 4269 if (name != null) { | 4381 if (name != null) { |
| 4270 _json["name"] = name; | 4382 _json["name"] = name; |
| 4271 } | 4383 } |
| 4272 if (subnetworkName != null) { | 4384 if (subnetworkName != null) { |
| 4273 _json["subnetworkName"] = subnetworkName; | 4385 _json["subnetworkName"] = subnetworkName; |
| 4274 } | 4386 } |
| 4275 return _json; | 4387 return _json; |
| 4276 } | 4388 } |
| 4277 } | 4389 } |
| 4278 | 4390 |
| 4279 /** Target scaling by network usage. Only applicable for VM runtimes. */ | 4391 /// Target scaling by network usage. Only applicable for VM runtimes. |
| 4280 class NetworkUtilization { | 4392 class NetworkUtilization { |
| 4281 /** Target bytes received per second. */ | 4393 /// Target bytes received per second. |
| 4282 core.int targetReceivedBytesPerSecond; | 4394 core.int targetReceivedBytesPerSecond; |
| 4283 /** Target packets received per second. */ | 4395 |
| 4396 /// Target packets received per second. |
| 4284 core.int targetReceivedPacketsPerSecond; | 4397 core.int targetReceivedPacketsPerSecond; |
| 4285 /** Target bytes sent per second. */ | 4398 |
| 4399 /// Target bytes sent per second. |
| 4286 core.int targetSentBytesPerSecond; | 4400 core.int targetSentBytesPerSecond; |
| 4287 /** Target packets sent per second. */ | 4401 |
| 4402 /// Target packets sent per second. |
| 4288 core.int targetSentPacketsPerSecond; | 4403 core.int targetSentPacketsPerSecond; |
| 4289 | 4404 |
| 4290 NetworkUtilization(); | 4405 NetworkUtilization(); |
| 4291 | 4406 |
| 4292 NetworkUtilization.fromJson(core.Map _json) { | 4407 NetworkUtilization.fromJson(core.Map _json) { |
| 4293 if (_json.containsKey("targetReceivedBytesPerSecond")) { | 4408 if (_json.containsKey("targetReceivedBytesPerSecond")) { |
| 4294 targetReceivedBytesPerSecond = _json["targetReceivedBytesPerSecond"]; | 4409 targetReceivedBytesPerSecond = _json["targetReceivedBytesPerSecond"]; |
| 4295 } | 4410 } |
| 4296 if (_json.containsKey("targetReceivedPacketsPerSecond")) { | 4411 if (_json.containsKey("targetReceivedPacketsPerSecond")) { |
| 4297 targetReceivedPacketsPerSecond = _json["targetReceivedPacketsPerSecond"]; | 4412 targetReceivedPacketsPerSecond = _json["targetReceivedPacketsPerSecond"]; |
| 4298 } | 4413 } |
| 4299 if (_json.containsKey("targetSentBytesPerSecond")) { | 4414 if (_json.containsKey("targetSentBytesPerSecond")) { |
| 4300 targetSentBytesPerSecond = _json["targetSentBytesPerSecond"]; | 4415 targetSentBytesPerSecond = _json["targetSentBytesPerSecond"]; |
| 4301 } | 4416 } |
| 4302 if (_json.containsKey("targetSentPacketsPerSecond")) { | 4417 if (_json.containsKey("targetSentPacketsPerSecond")) { |
| 4303 targetSentPacketsPerSecond = _json["targetSentPacketsPerSecond"]; | 4418 targetSentPacketsPerSecond = _json["targetSentPacketsPerSecond"]; |
| 4304 } | 4419 } |
| 4305 } | 4420 } |
| 4306 | 4421 |
| 4307 core.Map<core.String, core.Object> toJson() { | 4422 core.Map<core.String, core.Object> toJson() { |
| 4308 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4423 final core.Map<core.String, core.Object> _json = |
| 4424 new core.Map<core.String, core.Object>(); |
| 4309 if (targetReceivedBytesPerSecond != null) { | 4425 if (targetReceivedBytesPerSecond != null) { |
| 4310 _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; | 4426 _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; |
| 4311 } | 4427 } |
| 4312 if (targetReceivedPacketsPerSecond != null) { | 4428 if (targetReceivedPacketsPerSecond != null) { |
| 4313 _json["targetReceivedPacketsPerSecond"] = targetReceivedPacketsPerSecond; | 4429 _json["targetReceivedPacketsPerSecond"] = targetReceivedPacketsPerSecond; |
| 4314 } | 4430 } |
| 4315 if (targetSentBytesPerSecond != null) { | 4431 if (targetSentBytesPerSecond != null) { |
| 4316 _json["targetSentBytesPerSecond"] = targetSentBytesPerSecond; | 4432 _json["targetSentBytesPerSecond"] = targetSentBytesPerSecond; |
| 4317 } | 4433 } |
| 4318 if (targetSentPacketsPerSecond != null) { | 4434 if (targetSentPacketsPerSecond != null) { |
| 4319 _json["targetSentPacketsPerSecond"] = targetSentPacketsPerSecond; | 4435 _json["targetSentPacketsPerSecond"] = targetSentPacketsPerSecond; |
| 4320 } | 4436 } |
| 4321 return _json; | 4437 return _json; |
| 4322 } | 4438 } |
| 4323 } | 4439 } |
| 4324 | 4440 |
| 4325 /** | 4441 /// This resource represents a long-running operation that is the result of a |
| 4326 * This resource represents a long-running operation that is the result of a | 4442 /// network API call. |
| 4327 * network API call. | |
| 4328 */ | |
| 4329 class Operation { | 4443 class Operation { |
| 4330 /** | 4444 /// If the value is false, it means the operation is still in progress. If |
| 4331 * If the value is false, it means the operation is still in progress. If | 4445 /// true, the operation is completed, and either error or response is |
| 4332 * true, the operation is completed, and either error or response is | 4446 /// available. |
| 4333 * available. | |
| 4334 */ | |
| 4335 core.bool done; | 4447 core.bool done; |
| 4336 /** The error result of the operation in case of failure or cancellation. */ | 4448 |
| 4449 /// The error result of the operation in case of failure or cancellation. |
| 4337 Status error; | 4450 Status error; |
| 4338 /** | 4451 |
| 4339 * Service-specific metadata associated with the operation. It typically | 4452 /// Service-specific metadata associated with the operation. It typically |
| 4340 * contains progress information and common metadata such as create time. Some | 4453 /// contains progress information and common metadata such as create time. |
| 4341 * services might not provide such metadata. Any method that returns a | 4454 /// Some services might not provide such metadata. Any method that returns a |
| 4342 * long-running operation should document the metadata type, if any. | 4455 /// long-running operation should document the metadata type, if any. |
| 4343 * | 4456 /// |
| 4344 * The values for Object must be JSON objects. It can consist of `num`, | 4457 /// The values for Object must be JSON objects. It can consist of `num`, |
| 4345 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4458 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4346 */ | |
| 4347 core.Map<core.String, core.Object> metadata; | 4459 core.Map<core.String, core.Object> metadata; |
| 4348 /** | 4460 |
| 4349 * The server-assigned name, which is only unique within the same service that | 4461 /// The server-assigned name, which is only unique within the same service |
| 4350 * originally returns it. If you use the default HTTP mapping, the name should | 4462 /// that originally returns it. If you use the default HTTP mapping, the name |
| 4351 * have the format of operations/some/unique/name. | 4463 /// should have the format of operations/some/unique/name. |
| 4352 */ | |
| 4353 core.String name; | 4464 core.String name; |
| 4354 /** | 4465 |
| 4355 * The normal response of the operation in case of success. If the original | 4466 /// The normal response of the operation in case of success. If the original |
| 4356 * method returns no data on success, such as Delete, the response is | 4467 /// method returns no data on success, such as Delete, the response is |
| 4357 * google.protobuf.Empty. If the original method is standard | 4468 /// google.protobuf.Empty. If the original method is standard |
| 4358 * Get/Create/Update, the response should be the resource. For other methods, | 4469 /// Get/Create/Update, the response should be the resource. For other |
| 4359 * the response should have the type XxxResponse, where Xxx is the original | 4470 /// methods, the response should have the type XxxResponse, where Xxx is the |
| 4360 * method name. For example, if the original method name is TakeSnapshot(), | 4471 /// original method name. For example, if the original method name is |
| 4361 * the inferred response type is TakeSnapshotResponse. | 4472 /// TakeSnapshot(), the inferred response type is TakeSnapshotResponse. |
| 4362 * | 4473 /// |
| 4363 * The values for Object must be JSON objects. It can consist of `num`, | 4474 /// The values for Object must be JSON objects. It can consist of `num`, |
| 4364 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4475 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4365 */ | |
| 4366 core.Map<core.String, core.Object> response; | 4476 core.Map<core.String, core.Object> response; |
| 4367 | 4477 |
| 4368 Operation(); | 4478 Operation(); |
| 4369 | 4479 |
| 4370 Operation.fromJson(core.Map _json) { | 4480 Operation.fromJson(core.Map _json) { |
| 4371 if (_json.containsKey("done")) { | 4481 if (_json.containsKey("done")) { |
| 4372 done = _json["done"]; | 4482 done = _json["done"]; |
| 4373 } | 4483 } |
| 4374 if (_json.containsKey("error")) { | 4484 if (_json.containsKey("error")) { |
| 4375 error = new Status.fromJson(_json["error"]); | 4485 error = new Status.fromJson(_json["error"]); |
| 4376 } | 4486 } |
| 4377 if (_json.containsKey("metadata")) { | 4487 if (_json.containsKey("metadata")) { |
| 4378 metadata = _json["metadata"]; | 4488 metadata = _json["metadata"]; |
| 4379 } | 4489 } |
| 4380 if (_json.containsKey("name")) { | 4490 if (_json.containsKey("name")) { |
| 4381 name = _json["name"]; | 4491 name = _json["name"]; |
| 4382 } | 4492 } |
| 4383 if (_json.containsKey("response")) { | 4493 if (_json.containsKey("response")) { |
| 4384 response = _json["response"]; | 4494 response = _json["response"]; |
| 4385 } | 4495 } |
| 4386 } | 4496 } |
| 4387 | 4497 |
| 4388 core.Map<core.String, core.Object> toJson() { | 4498 core.Map<core.String, core.Object> toJson() { |
| 4389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4499 final core.Map<core.String, core.Object> _json = |
| 4500 new core.Map<core.String, core.Object>(); |
| 4390 if (done != null) { | 4501 if (done != null) { |
| 4391 _json["done"] = done; | 4502 _json["done"] = done; |
| 4392 } | 4503 } |
| 4393 if (error != null) { | 4504 if (error != null) { |
| 4394 _json["error"] = (error).toJson(); | 4505 _json["error"] = (error).toJson(); |
| 4395 } | 4506 } |
| 4396 if (metadata != null) { | 4507 if (metadata != null) { |
| 4397 _json["metadata"] = metadata; | 4508 _json["metadata"] = metadata; |
| 4398 } | 4509 } |
| 4399 if (name != null) { | 4510 if (name != null) { |
| 4400 _json["name"] = name; | 4511 _json["name"] = name; |
| 4401 } | 4512 } |
| 4402 if (response != null) { | 4513 if (response != null) { |
| 4403 _json["response"] = response; | 4514 _json["response"] = response; |
| 4404 } | 4515 } |
| 4405 return _json; | 4516 return _json; |
| 4406 } | 4517 } |
| 4407 } | 4518 } |
| 4408 | 4519 |
| 4409 /** Metadata for the given google.longrunning.Operation. */ | 4520 /// Metadata for the given google.longrunning.Operation. |
| 4410 class OperationMetadata { | 4521 class OperationMetadata { |
| 4411 /** Timestamp that this operation completed.@OutputOnly */ | 4522 /// Timestamp that this operation completed.@OutputOnly |
| 4412 core.String endTime; | 4523 core.String endTime; |
| 4413 /** Timestamp that this operation was created.@OutputOnly */ | 4524 |
| 4525 /// Timestamp that this operation was created.@OutputOnly |
| 4414 core.String insertTime; | 4526 core.String insertTime; |
| 4415 /** | 4527 |
| 4416 * API method that initiated this operation. Example: | 4528 /// API method that initiated this operation. Example: |
| 4417 * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly | 4529 /// google.appengine.v1beta4.Version.CreateVersion.@OutputOnly |
| 4418 */ | |
| 4419 core.String method; | 4530 core.String method; |
| 4420 /** | 4531 |
| 4421 * Type of this operation. Deprecated, use method field instead. Example: | 4532 /// Type of this operation. Deprecated, use method field instead. Example: |
| 4422 * "create_version".@OutputOnly | 4533 /// "create_version".@OutputOnly |
| 4423 */ | |
| 4424 core.String operationType; | 4534 core.String operationType; |
| 4425 /** | 4535 |
| 4426 * Name of the resource that this operation is acting on. Example: | 4536 /// Name of the resource that this operation is acting on. Example: |
| 4427 * apps/myapp/modules/default.@OutputOnly | 4537 /// apps/myapp/modules/default.@OutputOnly |
| 4428 */ | |
| 4429 core.String target; | 4538 core.String target; |
| 4430 /** User who requested this operation.@OutputOnly */ | 4539 |
| 4540 /// User who requested this operation.@OutputOnly |
| 4431 core.String user; | 4541 core.String user; |
| 4432 | 4542 |
| 4433 OperationMetadata(); | 4543 OperationMetadata(); |
| 4434 | 4544 |
| 4435 OperationMetadata.fromJson(core.Map _json) { | 4545 OperationMetadata.fromJson(core.Map _json) { |
| 4436 if (_json.containsKey("endTime")) { | 4546 if (_json.containsKey("endTime")) { |
| 4437 endTime = _json["endTime"]; | 4547 endTime = _json["endTime"]; |
| 4438 } | 4548 } |
| 4439 if (_json.containsKey("insertTime")) { | 4549 if (_json.containsKey("insertTime")) { |
| 4440 insertTime = _json["insertTime"]; | 4550 insertTime = _json["insertTime"]; |
| 4441 } | 4551 } |
| 4442 if (_json.containsKey("method")) { | 4552 if (_json.containsKey("method")) { |
| 4443 method = _json["method"]; | 4553 method = _json["method"]; |
| 4444 } | 4554 } |
| 4445 if (_json.containsKey("operationType")) { | 4555 if (_json.containsKey("operationType")) { |
| 4446 operationType = _json["operationType"]; | 4556 operationType = _json["operationType"]; |
| 4447 } | 4557 } |
| 4448 if (_json.containsKey("target")) { | 4558 if (_json.containsKey("target")) { |
| 4449 target = _json["target"]; | 4559 target = _json["target"]; |
| 4450 } | 4560 } |
| 4451 if (_json.containsKey("user")) { | 4561 if (_json.containsKey("user")) { |
| 4452 user = _json["user"]; | 4562 user = _json["user"]; |
| 4453 } | 4563 } |
| 4454 } | 4564 } |
| 4455 | 4565 |
| 4456 core.Map<core.String, core.Object> toJson() { | 4566 core.Map<core.String, core.Object> toJson() { |
| 4457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4567 final core.Map<core.String, core.Object> _json = |
| 4568 new core.Map<core.String, core.Object>(); |
| 4458 if (endTime != null) { | 4569 if (endTime != null) { |
| 4459 _json["endTime"] = endTime; | 4570 _json["endTime"] = endTime; |
| 4460 } | 4571 } |
| 4461 if (insertTime != null) { | 4572 if (insertTime != null) { |
| 4462 _json["insertTime"] = insertTime; | 4573 _json["insertTime"] = insertTime; |
| 4463 } | 4574 } |
| 4464 if (method != null) { | 4575 if (method != null) { |
| 4465 _json["method"] = method; | 4576 _json["method"] = method; |
| 4466 } | 4577 } |
| 4467 if (operationType != null) { | 4578 if (operationType != null) { |
| 4468 _json["operationType"] = operationType; | 4579 _json["operationType"] = operationType; |
| 4469 } | 4580 } |
| 4470 if (target != null) { | 4581 if (target != null) { |
| 4471 _json["target"] = target; | 4582 _json["target"] = target; |
| 4472 } | 4583 } |
| 4473 if (user != null) { | 4584 if (user != null) { |
| 4474 _json["user"] = user; | 4585 _json["user"] = user; |
| 4475 } | 4586 } |
| 4476 return _json; | 4587 return _json; |
| 4477 } | 4588 } |
| 4478 } | 4589 } |
| 4479 | 4590 |
| 4480 /** Metadata for the given google.longrunning.Operation. */ | 4591 /// Metadata for the given google.longrunning.Operation. |
| 4481 class OperationMetadataExperimental { | 4592 class OperationMetadataExperimental { |
| 4482 /** Time that this operation completed.@OutputOnly */ | 4593 /// Time that this operation completed.@OutputOnly |
| 4483 core.String endTime; | 4594 core.String endTime; |
| 4484 /** Time that this operation was created.@OutputOnly */ | 4595 |
| 4596 /// Time that this operation was created.@OutputOnly |
| 4485 core.String insertTime; | 4597 core.String insertTime; |
| 4486 /** | 4598 |
| 4487 * API method that initiated this operation. Example: | 4599 /// API method that initiated this operation. Example: |
| 4488 * google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly | 4600 /// google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly |
| 4489 */ | |
| 4490 core.String method; | 4601 core.String method; |
| 4491 /** | 4602 |
| 4492 * Name of the resource that this operation is acting on. Example: | 4603 /// Name of the resource that this operation is acting on. Example: |
| 4493 * apps/myapp/customDomains/example.com.@OutputOnly | 4604 /// apps/myapp/customDomains/example.com.@OutputOnly |
| 4494 */ | |
| 4495 core.String target; | 4605 core.String target; |
| 4496 /** User who requested this operation.@OutputOnly */ | 4606 |
| 4607 /// User who requested this operation.@OutputOnly |
| 4497 core.String user; | 4608 core.String user; |
| 4498 | 4609 |
| 4499 OperationMetadataExperimental(); | 4610 OperationMetadataExperimental(); |
| 4500 | 4611 |
| 4501 OperationMetadataExperimental.fromJson(core.Map _json) { | 4612 OperationMetadataExperimental.fromJson(core.Map _json) { |
| 4502 if (_json.containsKey("endTime")) { | 4613 if (_json.containsKey("endTime")) { |
| 4503 endTime = _json["endTime"]; | 4614 endTime = _json["endTime"]; |
| 4504 } | 4615 } |
| 4505 if (_json.containsKey("insertTime")) { | 4616 if (_json.containsKey("insertTime")) { |
| 4506 insertTime = _json["insertTime"]; | 4617 insertTime = _json["insertTime"]; |
| 4507 } | 4618 } |
| 4508 if (_json.containsKey("method")) { | 4619 if (_json.containsKey("method")) { |
| 4509 method = _json["method"]; | 4620 method = _json["method"]; |
| 4510 } | 4621 } |
| 4511 if (_json.containsKey("target")) { | 4622 if (_json.containsKey("target")) { |
| 4512 target = _json["target"]; | 4623 target = _json["target"]; |
| 4513 } | 4624 } |
| 4514 if (_json.containsKey("user")) { | 4625 if (_json.containsKey("user")) { |
| 4515 user = _json["user"]; | 4626 user = _json["user"]; |
| 4516 } | 4627 } |
| 4517 } | 4628 } |
| 4518 | 4629 |
| 4519 core.Map<core.String, core.Object> toJson() { | 4630 core.Map<core.String, core.Object> toJson() { |
| 4520 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4631 final core.Map<core.String, core.Object> _json = |
| 4632 new core.Map<core.String, core.Object>(); |
| 4521 if (endTime != null) { | 4633 if (endTime != null) { |
| 4522 _json["endTime"] = endTime; | 4634 _json["endTime"] = endTime; |
| 4523 } | 4635 } |
| 4524 if (insertTime != null) { | 4636 if (insertTime != null) { |
| 4525 _json["insertTime"] = insertTime; | 4637 _json["insertTime"] = insertTime; |
| 4526 } | 4638 } |
| 4527 if (method != null) { | 4639 if (method != null) { |
| 4528 _json["method"] = method; | 4640 _json["method"] = method; |
| 4529 } | 4641 } |
| 4530 if (target != null) { | 4642 if (target != null) { |
| 4531 _json["target"] = target; | 4643 _json["target"] = target; |
| 4532 } | 4644 } |
| 4533 if (user != null) { | 4645 if (user != null) { |
| 4534 _json["user"] = user; | 4646 _json["user"] = user; |
| 4535 } | 4647 } |
| 4536 return _json; | 4648 return _json; |
| 4537 } | 4649 } |
| 4538 } | 4650 } |
| 4539 | 4651 |
| 4540 /** Metadata for the given google.longrunning.Operation. */ | 4652 /// Metadata for the given google.longrunning.Operation. |
| 4541 class OperationMetadataV1 { | 4653 class OperationMetadataV1 { |
| 4542 /** Time that this operation completed.@OutputOnly */ | 4654 /// Time that this operation completed.@OutputOnly |
| 4543 core.String endTime; | 4655 core.String endTime; |
| 4544 /** | 4656 |
| 4545 * Ephemeral message that may change every time the operation is polled. | 4657 /// Ephemeral message that may change every time the operation is polled. |
| 4546 * @OutputOnly | 4658 /// @OutputOnly |
| 4547 */ | |
| 4548 core.String ephemeralMessage; | 4659 core.String ephemeralMessage; |
| 4549 /** Time that this operation was created.@OutputOnly */ | 4660 |
| 4661 /// Time that this operation was created.@OutputOnly |
| 4550 core.String insertTime; | 4662 core.String insertTime; |
| 4551 /** | 4663 |
| 4552 * API method that initiated this operation. Example: | 4664 /// API method that initiated this operation. Example: |
| 4553 * google.appengine.v1.Versions.CreateVersion.@OutputOnly | 4665 /// google.appengine.v1.Versions.CreateVersion.@OutputOnly |
| 4554 */ | |
| 4555 core.String method; | 4666 core.String method; |
| 4556 /** | 4667 |
| 4557 * Name of the resource that this operation is acting on. Example: | 4668 /// Name of the resource that this operation is acting on. Example: |
| 4558 * apps/myapp/services/default.@OutputOnly | 4669 /// apps/myapp/services/default.@OutputOnly |
| 4559 */ | |
| 4560 core.String target; | 4670 core.String target; |
| 4561 /** User who requested this operation.@OutputOnly */ | 4671 |
| 4672 /// User who requested this operation.@OutputOnly |
| 4562 core.String user; | 4673 core.String user; |
| 4563 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4674 |
| 4675 /// Durable messages that persist on every operation poll. @OutputOnly |
| 4564 core.List<core.String> warning; | 4676 core.List<core.String> warning; |
| 4565 | 4677 |
| 4566 OperationMetadataV1(); | 4678 OperationMetadataV1(); |
| 4567 | 4679 |
| 4568 OperationMetadataV1.fromJson(core.Map _json) { | 4680 OperationMetadataV1.fromJson(core.Map _json) { |
| 4569 if (_json.containsKey("endTime")) { | 4681 if (_json.containsKey("endTime")) { |
| 4570 endTime = _json["endTime"]; | 4682 endTime = _json["endTime"]; |
| 4571 } | 4683 } |
| 4572 if (_json.containsKey("ephemeralMessage")) { | 4684 if (_json.containsKey("ephemeralMessage")) { |
| 4573 ephemeralMessage = _json["ephemeralMessage"]; | 4685 ephemeralMessage = _json["ephemeralMessage"]; |
| 4574 } | 4686 } |
| 4575 if (_json.containsKey("insertTime")) { | 4687 if (_json.containsKey("insertTime")) { |
| 4576 insertTime = _json["insertTime"]; | 4688 insertTime = _json["insertTime"]; |
| 4577 } | 4689 } |
| 4578 if (_json.containsKey("method")) { | 4690 if (_json.containsKey("method")) { |
| 4579 method = _json["method"]; | 4691 method = _json["method"]; |
| 4580 } | 4692 } |
| 4581 if (_json.containsKey("target")) { | 4693 if (_json.containsKey("target")) { |
| 4582 target = _json["target"]; | 4694 target = _json["target"]; |
| 4583 } | 4695 } |
| 4584 if (_json.containsKey("user")) { | 4696 if (_json.containsKey("user")) { |
| 4585 user = _json["user"]; | 4697 user = _json["user"]; |
| 4586 } | 4698 } |
| 4587 if (_json.containsKey("warning")) { | 4699 if (_json.containsKey("warning")) { |
| 4588 warning = _json["warning"]; | 4700 warning = _json["warning"]; |
| 4589 } | 4701 } |
| 4590 } | 4702 } |
| 4591 | 4703 |
| 4592 core.Map<core.String, core.Object> toJson() { | 4704 core.Map<core.String, core.Object> toJson() { |
| 4593 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4705 final core.Map<core.String, core.Object> _json = |
| 4706 new core.Map<core.String, core.Object>(); |
| 4594 if (endTime != null) { | 4707 if (endTime != null) { |
| 4595 _json["endTime"] = endTime; | 4708 _json["endTime"] = endTime; |
| 4596 } | 4709 } |
| 4597 if (ephemeralMessage != null) { | 4710 if (ephemeralMessage != null) { |
| 4598 _json["ephemeralMessage"] = ephemeralMessage; | 4711 _json["ephemeralMessage"] = ephemeralMessage; |
| 4599 } | 4712 } |
| 4600 if (insertTime != null) { | 4713 if (insertTime != null) { |
| 4601 _json["insertTime"] = insertTime; | 4714 _json["insertTime"] = insertTime; |
| 4602 } | 4715 } |
| 4603 if (method != null) { | 4716 if (method != null) { |
| 4604 _json["method"] = method; | 4717 _json["method"] = method; |
| 4605 } | 4718 } |
| 4606 if (target != null) { | 4719 if (target != null) { |
| 4607 _json["target"] = target; | 4720 _json["target"] = target; |
| 4608 } | 4721 } |
| 4609 if (user != null) { | 4722 if (user != null) { |
| 4610 _json["user"] = user; | 4723 _json["user"] = user; |
| 4611 } | 4724 } |
| 4612 if (warning != null) { | 4725 if (warning != null) { |
| 4613 _json["warning"] = warning; | 4726 _json["warning"] = warning; |
| 4614 } | 4727 } |
| 4615 return _json; | 4728 return _json; |
| 4616 } | 4729 } |
| 4617 } | 4730 } |
| 4618 | 4731 |
| 4619 /** Metadata for the given google.longrunning.Operation. */ | 4732 /// Metadata for the given google.longrunning.Operation. |
| 4620 class OperationMetadataV1Alpha { | 4733 class OperationMetadataV1Alpha { |
| 4621 /** Time that this operation completed.@OutputOnly */ | 4734 /// Time that this operation completed.@OutputOnly |
| 4622 core.String endTime; | 4735 core.String endTime; |
| 4623 /** | 4736 |
| 4624 * Ephemeral message that may change every time the operation is polled. | 4737 /// Ephemeral message that may change every time the operation is polled. |
| 4625 * @OutputOnly | 4738 /// @OutputOnly |
| 4626 */ | |
| 4627 core.String ephemeralMessage; | 4739 core.String ephemeralMessage; |
| 4628 /** Time that this operation was created.@OutputOnly */ | 4740 |
| 4741 /// Time that this operation was created.@OutputOnly |
| 4629 core.String insertTime; | 4742 core.String insertTime; |
| 4630 /** | 4743 |
| 4631 * API method that initiated this operation. Example: | 4744 /// API method that initiated this operation. Example: |
| 4632 * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly | 4745 /// google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly |
| 4633 */ | |
| 4634 core.String method; | 4746 core.String method; |
| 4635 /** | 4747 |
| 4636 * Name of the resource that this operation is acting on. Example: | 4748 /// Name of the resource that this operation is acting on. Example: |
| 4637 * apps/myapp/services/default.@OutputOnly | 4749 /// apps/myapp/services/default.@OutputOnly |
| 4638 */ | |
| 4639 core.String target; | 4750 core.String target; |
| 4640 /** User who requested this operation.@OutputOnly */ | 4751 |
| 4752 /// User who requested this operation.@OutputOnly |
| 4641 core.String user; | 4753 core.String user; |
| 4642 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4754 |
| 4755 /// Durable messages that persist on every operation poll. @OutputOnly |
| 4643 core.List<core.String> warning; | 4756 core.List<core.String> warning; |
| 4644 | 4757 |
| 4645 OperationMetadataV1Alpha(); | 4758 OperationMetadataV1Alpha(); |
| 4646 | 4759 |
| 4647 OperationMetadataV1Alpha.fromJson(core.Map _json) { | 4760 OperationMetadataV1Alpha.fromJson(core.Map _json) { |
| 4648 if (_json.containsKey("endTime")) { | 4761 if (_json.containsKey("endTime")) { |
| 4649 endTime = _json["endTime"]; | 4762 endTime = _json["endTime"]; |
| 4650 } | 4763 } |
| 4651 if (_json.containsKey("ephemeralMessage")) { | 4764 if (_json.containsKey("ephemeralMessage")) { |
| 4652 ephemeralMessage = _json["ephemeralMessage"]; | 4765 ephemeralMessage = _json["ephemeralMessage"]; |
| 4653 } | 4766 } |
| 4654 if (_json.containsKey("insertTime")) { | 4767 if (_json.containsKey("insertTime")) { |
| 4655 insertTime = _json["insertTime"]; | 4768 insertTime = _json["insertTime"]; |
| 4656 } | 4769 } |
| 4657 if (_json.containsKey("method")) { | 4770 if (_json.containsKey("method")) { |
| 4658 method = _json["method"]; | 4771 method = _json["method"]; |
| 4659 } | 4772 } |
| 4660 if (_json.containsKey("target")) { | 4773 if (_json.containsKey("target")) { |
| 4661 target = _json["target"]; | 4774 target = _json["target"]; |
| 4662 } | 4775 } |
| 4663 if (_json.containsKey("user")) { | 4776 if (_json.containsKey("user")) { |
| 4664 user = _json["user"]; | 4777 user = _json["user"]; |
| 4665 } | 4778 } |
| 4666 if (_json.containsKey("warning")) { | 4779 if (_json.containsKey("warning")) { |
| 4667 warning = _json["warning"]; | 4780 warning = _json["warning"]; |
| 4668 } | 4781 } |
| 4669 } | 4782 } |
| 4670 | 4783 |
| 4671 core.Map<core.String, core.Object> toJson() { | 4784 core.Map<core.String, core.Object> toJson() { |
| 4672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4785 final core.Map<core.String, core.Object> _json = |
| 4786 new core.Map<core.String, core.Object>(); |
| 4673 if (endTime != null) { | 4787 if (endTime != null) { |
| 4674 _json["endTime"] = endTime; | 4788 _json["endTime"] = endTime; |
| 4675 } | 4789 } |
| 4676 if (ephemeralMessage != null) { | 4790 if (ephemeralMessage != null) { |
| 4677 _json["ephemeralMessage"] = ephemeralMessage; | 4791 _json["ephemeralMessage"] = ephemeralMessage; |
| 4678 } | 4792 } |
| 4679 if (insertTime != null) { | 4793 if (insertTime != null) { |
| 4680 _json["insertTime"] = insertTime; | 4794 _json["insertTime"] = insertTime; |
| 4681 } | 4795 } |
| 4682 if (method != null) { | 4796 if (method != null) { |
| 4683 _json["method"] = method; | 4797 _json["method"] = method; |
| 4684 } | 4798 } |
| 4685 if (target != null) { | 4799 if (target != null) { |
| 4686 _json["target"] = target; | 4800 _json["target"] = target; |
| 4687 } | 4801 } |
| 4688 if (user != null) { | 4802 if (user != null) { |
| 4689 _json["user"] = user; | 4803 _json["user"] = user; |
| 4690 } | 4804 } |
| 4691 if (warning != null) { | 4805 if (warning != null) { |
| 4692 _json["warning"] = warning; | 4806 _json["warning"] = warning; |
| 4693 } | 4807 } |
| 4694 return _json; | 4808 return _json; |
| 4695 } | 4809 } |
| 4696 } | 4810 } |
| 4697 | 4811 |
| 4698 /** Metadata for the given google.longrunning.Operation. */ | 4812 /// Metadata for the given google.longrunning.Operation. |
| 4699 class OperationMetadataV1Beta { | 4813 class OperationMetadataV1Beta { |
| 4700 /** Time that this operation completed.@OutputOnly */ | 4814 /// Time that this operation completed.@OutputOnly |
| 4701 core.String endTime; | 4815 core.String endTime; |
| 4702 /** | 4816 |
| 4703 * Ephemeral message that may change every time the operation is polled. | 4817 /// Ephemeral message that may change every time the operation is polled. |
| 4704 * @OutputOnly | 4818 /// @OutputOnly |
| 4705 */ | |
| 4706 core.String ephemeralMessage; | 4819 core.String ephemeralMessage; |
| 4707 /** Time that this operation was created.@OutputOnly */ | 4820 |
| 4821 /// Time that this operation was created.@OutputOnly |
| 4708 core.String insertTime; | 4822 core.String insertTime; |
| 4709 /** | 4823 |
| 4710 * API method that initiated this operation. Example: | 4824 /// API method that initiated this operation. Example: |
| 4711 * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly | 4825 /// google.appengine.v1beta.Versions.CreateVersion.@OutputOnly |
| 4712 */ | |
| 4713 core.String method; | 4826 core.String method; |
| 4714 /** | 4827 |
| 4715 * Name of the resource that this operation is acting on. Example: | 4828 /// Name of the resource that this operation is acting on. Example: |
| 4716 * apps/myapp/services/default.@OutputOnly | 4829 /// apps/myapp/services/default.@OutputOnly |
| 4717 */ | |
| 4718 core.String target; | 4830 core.String target; |
| 4719 /** User who requested this operation.@OutputOnly */ | 4831 |
| 4832 /// User who requested this operation.@OutputOnly |
| 4720 core.String user; | 4833 core.String user; |
| 4721 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4834 |
| 4835 /// Durable messages that persist on every operation poll. @OutputOnly |
| 4722 core.List<core.String> warning; | 4836 core.List<core.String> warning; |
| 4723 | 4837 |
| 4724 OperationMetadataV1Beta(); | 4838 OperationMetadataV1Beta(); |
| 4725 | 4839 |
| 4726 OperationMetadataV1Beta.fromJson(core.Map _json) { | 4840 OperationMetadataV1Beta.fromJson(core.Map _json) { |
| 4727 if (_json.containsKey("endTime")) { | 4841 if (_json.containsKey("endTime")) { |
| 4728 endTime = _json["endTime"]; | 4842 endTime = _json["endTime"]; |
| 4729 } | 4843 } |
| 4730 if (_json.containsKey("ephemeralMessage")) { | 4844 if (_json.containsKey("ephemeralMessage")) { |
| 4731 ephemeralMessage = _json["ephemeralMessage"]; | 4845 ephemeralMessage = _json["ephemeralMessage"]; |
| 4732 } | 4846 } |
| 4733 if (_json.containsKey("insertTime")) { | 4847 if (_json.containsKey("insertTime")) { |
| 4734 insertTime = _json["insertTime"]; | 4848 insertTime = _json["insertTime"]; |
| 4735 } | 4849 } |
| 4736 if (_json.containsKey("method")) { | 4850 if (_json.containsKey("method")) { |
| 4737 method = _json["method"]; | 4851 method = _json["method"]; |
| 4738 } | 4852 } |
| 4739 if (_json.containsKey("target")) { | 4853 if (_json.containsKey("target")) { |
| 4740 target = _json["target"]; | 4854 target = _json["target"]; |
| 4741 } | 4855 } |
| 4742 if (_json.containsKey("user")) { | 4856 if (_json.containsKey("user")) { |
| 4743 user = _json["user"]; | 4857 user = _json["user"]; |
| 4744 } | 4858 } |
| 4745 if (_json.containsKey("warning")) { | 4859 if (_json.containsKey("warning")) { |
| 4746 warning = _json["warning"]; | 4860 warning = _json["warning"]; |
| 4747 } | 4861 } |
| 4748 } | 4862 } |
| 4749 | 4863 |
| 4750 core.Map<core.String, core.Object> toJson() { | 4864 core.Map<core.String, core.Object> toJson() { |
| 4751 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4865 final core.Map<core.String, core.Object> _json = |
| 4866 new core.Map<core.String, core.Object>(); |
| 4752 if (endTime != null) { | 4867 if (endTime != null) { |
| 4753 _json["endTime"] = endTime; | 4868 _json["endTime"] = endTime; |
| 4754 } | 4869 } |
| 4755 if (ephemeralMessage != null) { | 4870 if (ephemeralMessage != null) { |
| 4756 _json["ephemeralMessage"] = ephemeralMessage; | 4871 _json["ephemeralMessage"] = ephemeralMessage; |
| 4757 } | 4872 } |
| 4758 if (insertTime != null) { | 4873 if (insertTime != null) { |
| 4759 _json["insertTime"] = insertTime; | 4874 _json["insertTime"] = insertTime; |
| 4760 } | 4875 } |
| 4761 if (method != null) { | 4876 if (method != null) { |
| 4762 _json["method"] = method; | 4877 _json["method"] = method; |
| 4763 } | 4878 } |
| 4764 if (target != null) { | 4879 if (target != null) { |
| 4765 _json["target"] = target; | 4880 _json["target"] = target; |
| 4766 } | 4881 } |
| 4767 if (user != null) { | 4882 if (user != null) { |
| 4768 _json["user"] = user; | 4883 _json["user"] = user; |
| 4769 } | 4884 } |
| 4770 if (warning != null) { | 4885 if (warning != null) { |
| 4771 _json["warning"] = warning; | 4886 _json["warning"] = warning; |
| 4772 } | 4887 } |
| 4773 return _json; | 4888 return _json; |
| 4774 } | 4889 } |
| 4775 } | 4890 } |
| 4776 | 4891 |
| 4777 /** Metadata for the given google.longrunning.Operation. */ | 4892 /// Metadata for the given google.longrunning.Operation. |
| 4778 class OperationMetadataV1Beta5 { | 4893 class OperationMetadataV1Beta5 { |
| 4779 /** Timestamp that this operation completed.@OutputOnly */ | 4894 /// Timestamp that this operation completed.@OutputOnly |
| 4780 core.String endTime; | 4895 core.String endTime; |
| 4781 /** Timestamp that this operation was created.@OutputOnly */ | 4896 |
| 4897 /// Timestamp that this operation was created.@OutputOnly |
| 4782 core.String insertTime; | 4898 core.String insertTime; |
| 4783 /** | 4899 |
| 4784 * API method name that initiated this operation. Example: | 4900 /// API method name that initiated this operation. Example: |
| 4785 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly | 4901 /// google.appengine.v1beta5.Version.CreateVersion.@OutputOnly |
| 4786 */ | |
| 4787 core.String method; | 4902 core.String method; |
| 4788 /** | 4903 |
| 4789 * Name of the resource that this operation is acting on. Example: | 4904 /// Name of the resource that this operation is acting on. Example: |
| 4790 * apps/myapp/services/default.@OutputOnly | 4905 /// apps/myapp/services/default.@OutputOnly |
| 4791 */ | |
| 4792 core.String target; | 4906 core.String target; |
| 4793 /** User who requested this operation.@OutputOnly */ | 4907 |
| 4908 /// User who requested this operation.@OutputOnly |
| 4794 core.String user; | 4909 core.String user; |
| 4795 | 4910 |
| 4796 OperationMetadataV1Beta5(); | 4911 OperationMetadataV1Beta5(); |
| 4797 | 4912 |
| 4798 OperationMetadataV1Beta5.fromJson(core.Map _json) { | 4913 OperationMetadataV1Beta5.fromJson(core.Map _json) { |
| 4799 if (_json.containsKey("endTime")) { | 4914 if (_json.containsKey("endTime")) { |
| 4800 endTime = _json["endTime"]; | 4915 endTime = _json["endTime"]; |
| 4801 } | 4916 } |
| 4802 if (_json.containsKey("insertTime")) { | 4917 if (_json.containsKey("insertTime")) { |
| 4803 insertTime = _json["insertTime"]; | 4918 insertTime = _json["insertTime"]; |
| 4804 } | 4919 } |
| 4805 if (_json.containsKey("method")) { | 4920 if (_json.containsKey("method")) { |
| 4806 method = _json["method"]; | 4921 method = _json["method"]; |
| 4807 } | 4922 } |
| 4808 if (_json.containsKey("target")) { | 4923 if (_json.containsKey("target")) { |
| 4809 target = _json["target"]; | 4924 target = _json["target"]; |
| 4810 } | 4925 } |
| 4811 if (_json.containsKey("user")) { | 4926 if (_json.containsKey("user")) { |
| 4812 user = _json["user"]; | 4927 user = _json["user"]; |
| 4813 } | 4928 } |
| 4814 } | 4929 } |
| 4815 | 4930 |
| 4816 core.Map<core.String, core.Object> toJson() { | 4931 core.Map<core.String, core.Object> toJson() { |
| 4817 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4932 final core.Map<core.String, core.Object> _json = |
| 4933 new core.Map<core.String, core.Object>(); |
| 4818 if (endTime != null) { | 4934 if (endTime != null) { |
| 4819 _json["endTime"] = endTime; | 4935 _json["endTime"] = endTime; |
| 4820 } | 4936 } |
| 4821 if (insertTime != null) { | 4937 if (insertTime != null) { |
| 4822 _json["insertTime"] = insertTime; | 4938 _json["insertTime"] = insertTime; |
| 4823 } | 4939 } |
| 4824 if (method != null) { | 4940 if (method != null) { |
| 4825 _json["method"] = method; | 4941 _json["method"] = method; |
| 4826 } | 4942 } |
| 4827 if (target != null) { | 4943 if (target != null) { |
| 4828 _json["target"] = target; | 4944 _json["target"] = target; |
| 4829 } | 4945 } |
| 4830 if (user != null) { | 4946 if (user != null) { |
| 4831 _json["user"] = user; | 4947 _json["user"] = user; |
| 4832 } | 4948 } |
| 4833 return _json; | 4949 return _json; |
| 4834 } | 4950 } |
| 4835 } | 4951 } |
| 4836 | 4952 |
| 4837 /** | 4953 /// Readiness checking configuration for VM instances. Unhealthy instances are |
| 4838 * Readiness checking configuration for VM instances. Unhealthy instances are | 4954 /// removed from traffic rotation. |
| 4839 * removed from traffic rotation. | |
| 4840 */ | |
| 4841 class ReadinessCheck { | 4955 class ReadinessCheck { |
| 4842 /** | 4956 /// A maximum time limit on application initialization, measured from moment |
| 4843 * A maximum time limit on application initialization, measured from moment | 4957 /// the application successfully replies to a healthcheck until it is ready |
| 4844 * the application successfully replies to a healthcheck until it is ready to | 4958 /// to serve traffic. |
| 4845 * serve traffic. | |
| 4846 */ | |
| 4847 core.String appStartTimeout; | 4959 core.String appStartTimeout; |
| 4848 /** Interval between health checks. */ | 4960 |
| 4961 /// Interval between health checks. |
| 4849 core.String checkInterval; | 4962 core.String checkInterval; |
| 4850 /** Number of consecutive failed checks required before removing traffic. */ | 4963 |
| 4964 /// Number of consecutive failed checks required before removing traffic. |
| 4851 core.int failureThreshold; | 4965 core.int failureThreshold; |
| 4852 /** | 4966 |
| 4853 * Host header to send when performing a HTTP Readiness check. Example: | 4967 /// Host header to send when performing a HTTP Readiness check. Example: |
| 4854 * "myapp.appspot.com" | 4968 /// "myapp.appspot.com" |
| 4855 */ | |
| 4856 core.String host; | 4969 core.String host; |
| 4857 /** The request path. */ | 4970 |
| 4971 /// The request path. |
| 4858 core.String path; | 4972 core.String path; |
| 4859 /** | 4973 |
| 4860 * Number of consecutive successful checks required before receiving traffic. | 4974 /// Number of consecutive successful checks required before receiving |
| 4861 */ | 4975 /// traffic. |
| 4862 core.int successThreshold; | 4976 core.int successThreshold; |
| 4863 /** Time before the check is considered failed. */ | 4977 |
| 4978 /// Time before the check is considered failed. |
| 4864 core.String timeout; | 4979 core.String timeout; |
| 4865 | 4980 |
| 4866 ReadinessCheck(); | 4981 ReadinessCheck(); |
| 4867 | 4982 |
| 4868 ReadinessCheck.fromJson(core.Map _json) { | 4983 ReadinessCheck.fromJson(core.Map _json) { |
| 4869 if (_json.containsKey("appStartTimeout")) { | 4984 if (_json.containsKey("appStartTimeout")) { |
| 4870 appStartTimeout = _json["appStartTimeout"]; | 4985 appStartTimeout = _json["appStartTimeout"]; |
| 4871 } | 4986 } |
| 4872 if (_json.containsKey("checkInterval")) { | 4987 if (_json.containsKey("checkInterval")) { |
| 4873 checkInterval = _json["checkInterval"]; | 4988 checkInterval = _json["checkInterval"]; |
| 4874 } | 4989 } |
| 4875 if (_json.containsKey("failureThreshold")) { | 4990 if (_json.containsKey("failureThreshold")) { |
| 4876 failureThreshold = _json["failureThreshold"]; | 4991 failureThreshold = _json["failureThreshold"]; |
| 4877 } | 4992 } |
| 4878 if (_json.containsKey("host")) { | 4993 if (_json.containsKey("host")) { |
| 4879 host = _json["host"]; | 4994 host = _json["host"]; |
| 4880 } | 4995 } |
| 4881 if (_json.containsKey("path")) { | 4996 if (_json.containsKey("path")) { |
| 4882 path = _json["path"]; | 4997 path = _json["path"]; |
| 4883 } | 4998 } |
| 4884 if (_json.containsKey("successThreshold")) { | 4999 if (_json.containsKey("successThreshold")) { |
| 4885 successThreshold = _json["successThreshold"]; | 5000 successThreshold = _json["successThreshold"]; |
| 4886 } | 5001 } |
| 4887 if (_json.containsKey("timeout")) { | 5002 if (_json.containsKey("timeout")) { |
| 4888 timeout = _json["timeout"]; | 5003 timeout = _json["timeout"]; |
| 4889 } | 5004 } |
| 4890 } | 5005 } |
| 4891 | 5006 |
| 4892 core.Map<core.String, core.Object> toJson() { | 5007 core.Map<core.String, core.Object> toJson() { |
| 4893 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5008 final core.Map<core.String, core.Object> _json = |
| 5009 new core.Map<core.String, core.Object>(); |
| 4894 if (appStartTimeout != null) { | 5010 if (appStartTimeout != null) { |
| 4895 _json["appStartTimeout"] = appStartTimeout; | 5011 _json["appStartTimeout"] = appStartTimeout; |
| 4896 } | 5012 } |
| 4897 if (checkInterval != null) { | 5013 if (checkInterval != null) { |
| 4898 _json["checkInterval"] = checkInterval; | 5014 _json["checkInterval"] = checkInterval; |
| 4899 } | 5015 } |
| 4900 if (failureThreshold != null) { | 5016 if (failureThreshold != null) { |
| 4901 _json["failureThreshold"] = failureThreshold; | 5017 _json["failureThreshold"] = failureThreshold; |
| 4902 } | 5018 } |
| 4903 if (host != null) { | 5019 if (host != null) { |
| 4904 _json["host"] = host; | 5020 _json["host"] = host; |
| 4905 } | 5021 } |
| 4906 if (path != null) { | 5022 if (path != null) { |
| 4907 _json["path"] = path; | 5023 _json["path"] = path; |
| 4908 } | 5024 } |
| 4909 if (successThreshold != null) { | 5025 if (successThreshold != null) { |
| 4910 _json["successThreshold"] = successThreshold; | 5026 _json["successThreshold"] = successThreshold; |
| 4911 } | 5027 } |
| 4912 if (timeout != null) { | 5028 if (timeout != null) { |
| 4913 _json["timeout"] = timeout; | 5029 _json["timeout"] = timeout; |
| 4914 } | 5030 } |
| 4915 return _json; | 5031 return _json; |
| 4916 } | 5032 } |
| 4917 } | 5033 } |
| 4918 | 5034 |
| 4919 /** Request message for 'Applications.RepairApplication'. */ | 5035 /// Request message for 'Applications.RepairApplication'. |
| 4920 class RepairApplicationRequest { | 5036 class RepairApplicationRequest { |
| 4921 | |
| 4922 RepairApplicationRequest(); | 5037 RepairApplicationRequest(); |
| 4923 | 5038 |
| 4924 RepairApplicationRequest.fromJson(core.Map _json) { | 5039 RepairApplicationRequest.fromJson(core.Map _json) {} |
| 4925 } | |
| 4926 | 5040 |
| 4927 core.Map<core.String, core.Object> toJson() { | 5041 core.Map<core.String, core.Object> toJson() { |
| 4928 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5042 final core.Map<core.String, core.Object> _json = |
| 5043 new core.Map<core.String, core.Object>(); |
| 4929 return _json; | 5044 return _json; |
| 4930 } | 5045 } |
| 4931 } | 5046 } |
| 4932 | 5047 |
| 4933 /** Target scaling by request utilization. Only applicable for VM runtimes. */ | 5048 /// Target scaling by request utilization. Only applicable for VM runtimes. |
| 4934 class RequestUtilization { | 5049 class RequestUtilization { |
| 4935 /** Target number of concurrent requests. */ | 5050 /// Target number of concurrent requests. |
| 4936 core.int targetConcurrentRequests; | 5051 core.int targetConcurrentRequests; |
| 4937 /** Target requests per second. */ | 5052 |
| 5053 /// Target requests per second. |
| 4938 core.int targetRequestCountPerSecond; | 5054 core.int targetRequestCountPerSecond; |
| 4939 | 5055 |
| 4940 RequestUtilization(); | 5056 RequestUtilization(); |
| 4941 | 5057 |
| 4942 RequestUtilization.fromJson(core.Map _json) { | 5058 RequestUtilization.fromJson(core.Map _json) { |
| 4943 if (_json.containsKey("targetConcurrentRequests")) { | 5059 if (_json.containsKey("targetConcurrentRequests")) { |
| 4944 targetConcurrentRequests = _json["targetConcurrentRequests"]; | 5060 targetConcurrentRequests = _json["targetConcurrentRequests"]; |
| 4945 } | 5061 } |
| 4946 if (_json.containsKey("targetRequestCountPerSecond")) { | 5062 if (_json.containsKey("targetRequestCountPerSecond")) { |
| 4947 targetRequestCountPerSecond = _json["targetRequestCountPerSecond"]; | 5063 targetRequestCountPerSecond = _json["targetRequestCountPerSecond"]; |
| 4948 } | 5064 } |
| 4949 } | 5065 } |
| 4950 | 5066 |
| 4951 core.Map<core.String, core.Object> toJson() { | 5067 core.Map<core.String, core.Object> toJson() { |
| 4952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5068 final core.Map<core.String, core.Object> _json = |
| 5069 new core.Map<core.String, core.Object>(); |
| 4953 if (targetConcurrentRequests != null) { | 5070 if (targetConcurrentRequests != null) { |
| 4954 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 5071 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
| 4955 } | 5072 } |
| 4956 if (targetRequestCountPerSecond != null) { | 5073 if (targetRequestCountPerSecond != null) { |
| 4957 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; | 5074 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; |
| 4958 } | 5075 } |
| 4959 return _json; | 5076 return _json; |
| 4960 } | 5077 } |
| 4961 } | 5078 } |
| 4962 | 5079 |
| 4963 /** A DNS resource record. */ | 5080 /// A DNS resource record. |
| 4964 class ResourceRecord { | 5081 class ResourceRecord { |
| 4965 /** | 5082 /// Relative name of the object affected by this record. Only applicable for |
| 4966 * Relative name of the object affected by this record. Only applicable for | 5083 /// CNAME records. Example: 'www'. |
| 4967 * CNAME records. Example: 'www'. | |
| 4968 */ | |
| 4969 core.String name; | 5084 core.String name; |
| 4970 /** | 5085 |
| 4971 * Data for this record. Values vary by record type, as defined in RFC 1035 | 5086 /// Data for this record. Values vary by record type, as defined in RFC 1035 |
| 4972 * (section 5) and RFC 1034 (section 3.6.1). | 5087 /// (section 5) and RFC 1034 (section 3.6.1). |
| 4973 */ | |
| 4974 core.String rrdata; | 5088 core.String rrdata; |
| 4975 /** | 5089 |
| 4976 * Resource record type. Example: AAAA. | 5090 /// Resource record type. Example: AAAA. |
| 4977 * Possible string values are: | 5091 /// Possible string values are: |
| 4978 * - "A" : An A resource record. Data is an IPv4 address. | 5092 /// - "A" : An A resource record. Data is an IPv4 address. |
| 4979 * - "AAAA" : An AAAA resource record. Data is an IPv6 address. | 5093 /// - "AAAA" : An AAAA resource record. Data is an IPv6 address. |
| 4980 * - "CNAME" : A CNAME resource record. Data is a domain name to be aliased. | 5094 /// - "CNAME" : A CNAME resource record. Data is a domain name to be aliased. |
| 4981 */ | |
| 4982 core.String type; | 5095 core.String type; |
| 4983 | 5096 |
| 4984 ResourceRecord(); | 5097 ResourceRecord(); |
| 4985 | 5098 |
| 4986 ResourceRecord.fromJson(core.Map _json) { | 5099 ResourceRecord.fromJson(core.Map _json) { |
| 4987 if (_json.containsKey("name")) { | 5100 if (_json.containsKey("name")) { |
| 4988 name = _json["name"]; | 5101 name = _json["name"]; |
| 4989 } | 5102 } |
| 4990 if (_json.containsKey("rrdata")) { | 5103 if (_json.containsKey("rrdata")) { |
| 4991 rrdata = _json["rrdata"]; | 5104 rrdata = _json["rrdata"]; |
| 4992 } | 5105 } |
| 4993 if (_json.containsKey("type")) { | 5106 if (_json.containsKey("type")) { |
| 4994 type = _json["type"]; | 5107 type = _json["type"]; |
| 4995 } | 5108 } |
| 4996 } | 5109 } |
| 4997 | 5110 |
| 4998 core.Map<core.String, core.Object> toJson() { | 5111 core.Map<core.String, core.Object> toJson() { |
| 4999 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5112 final core.Map<core.String, core.Object> _json = |
| 5113 new core.Map<core.String, core.Object>(); |
| 5000 if (name != null) { | 5114 if (name != null) { |
| 5001 _json["name"] = name; | 5115 _json["name"] = name; |
| 5002 } | 5116 } |
| 5003 if (rrdata != null) { | 5117 if (rrdata != null) { |
| 5004 _json["rrdata"] = rrdata; | 5118 _json["rrdata"] = rrdata; |
| 5005 } | 5119 } |
| 5006 if (type != null) { | 5120 if (type != null) { |
| 5007 _json["type"] = type; | 5121 _json["type"] = type; |
| 5008 } | 5122 } |
| 5009 return _json; | 5123 return _json; |
| 5010 } | 5124 } |
| 5011 } | 5125 } |
| 5012 | 5126 |
| 5013 /** Machine resources for a version. */ | 5127 /// Machine resources for a version. |
| 5014 class Resources { | 5128 class Resources { |
| 5015 /** Number of CPU cores needed. */ | 5129 /// Number of CPU cores needed. |
| 5016 core.double cpu; | 5130 core.double cpu; |
| 5017 /** Disk size (GB) needed. */ | 5131 |
| 5132 /// Disk size (GB) needed. |
| 5018 core.double diskGb; | 5133 core.double diskGb; |
| 5019 /** Memory (GB) needed. */ | 5134 |
| 5135 /// Memory (GB) needed. |
| 5020 core.double memoryGb; | 5136 core.double memoryGb; |
| 5021 /** User specified volumes. */ | 5137 |
| 5138 /// User specified volumes. |
| 5022 core.List<Volume> volumes; | 5139 core.List<Volume> volumes; |
| 5023 | 5140 |
| 5024 Resources(); | 5141 Resources(); |
| 5025 | 5142 |
| 5026 Resources.fromJson(core.Map _json) { | 5143 Resources.fromJson(core.Map _json) { |
| 5027 if (_json.containsKey("cpu")) { | 5144 if (_json.containsKey("cpu")) { |
| 5028 cpu = _json["cpu"]; | 5145 cpu = _json["cpu"]; |
| 5029 } | 5146 } |
| 5030 if (_json.containsKey("diskGb")) { | 5147 if (_json.containsKey("diskGb")) { |
| 5031 diskGb = _json["diskGb"]; | 5148 diskGb = _json["diskGb"]; |
| 5032 } | 5149 } |
| 5033 if (_json.containsKey("memoryGb")) { | 5150 if (_json.containsKey("memoryGb")) { |
| 5034 memoryGb = _json["memoryGb"]; | 5151 memoryGb = _json["memoryGb"]; |
| 5035 } | 5152 } |
| 5036 if (_json.containsKey("volumes")) { | 5153 if (_json.containsKey("volumes")) { |
| 5037 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); | 5154 volumes = |
| 5155 _json["volumes"].map((value) => new Volume.fromJson(value)).toList(); |
| 5038 } | 5156 } |
| 5039 } | 5157 } |
| 5040 | 5158 |
| 5041 core.Map<core.String, core.Object> toJson() { | 5159 core.Map<core.String, core.Object> toJson() { |
| 5042 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5160 final core.Map<core.String, core.Object> _json = |
| 5161 new core.Map<core.String, core.Object>(); |
| 5043 if (cpu != null) { | 5162 if (cpu != null) { |
| 5044 _json["cpu"] = cpu; | 5163 _json["cpu"] = cpu; |
| 5045 } | 5164 } |
| 5046 if (diskGb != null) { | 5165 if (diskGb != null) { |
| 5047 _json["diskGb"] = diskGb; | 5166 _json["diskGb"] = diskGb; |
| 5048 } | 5167 } |
| 5049 if (memoryGb != null) { | 5168 if (memoryGb != null) { |
| 5050 _json["memoryGb"] = memoryGb; | 5169 _json["memoryGb"] = memoryGb; |
| 5051 } | 5170 } |
| 5052 if (volumes != null) { | 5171 if (volumes != null) { |
| 5053 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); | 5172 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); |
| 5054 } | 5173 } |
| 5055 return _json; | 5174 return _json; |
| 5056 } | 5175 } |
| 5057 } | 5176 } |
| 5058 | 5177 |
| 5059 /** Executes a script to handle the request that matches the URL pattern. */ | 5178 /// Executes a script to handle the request that matches the URL pattern. |
| 5060 class ScriptHandler { | 5179 class ScriptHandler { |
| 5061 /** Path to the script from the application root directory. */ | 5180 /// Path to the script from the application root directory. |
| 5062 core.String scriptPath; | 5181 core.String scriptPath; |
| 5063 | 5182 |
| 5064 ScriptHandler(); | 5183 ScriptHandler(); |
| 5065 | 5184 |
| 5066 ScriptHandler.fromJson(core.Map _json) { | 5185 ScriptHandler.fromJson(core.Map _json) { |
| 5067 if (_json.containsKey("scriptPath")) { | 5186 if (_json.containsKey("scriptPath")) { |
| 5068 scriptPath = _json["scriptPath"]; | 5187 scriptPath = _json["scriptPath"]; |
| 5069 } | 5188 } |
| 5070 } | 5189 } |
| 5071 | 5190 |
| 5072 core.Map<core.String, core.Object> toJson() { | 5191 core.Map<core.String, core.Object> toJson() { |
| 5073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5192 final core.Map<core.String, core.Object> _json = |
| 5193 new core.Map<core.String, core.Object>(); |
| 5074 if (scriptPath != null) { | 5194 if (scriptPath != null) { |
| 5075 _json["scriptPath"] = scriptPath; | 5195 _json["scriptPath"] = scriptPath; |
| 5076 } | 5196 } |
| 5077 return _json; | 5197 return _json; |
| 5078 } | 5198 } |
| 5079 } | 5199 } |
| 5080 | 5200 |
| 5081 /** | 5201 /// A Service resource is a logical component of an application that can share |
| 5082 * A Service resource is a logical component of an application that can share | 5202 /// state and communicate in a secure fashion with other services. For example, |
| 5083 * state and communicate in a secure fashion with other services. For example, | 5203 /// an application that handles customer requests might include separate |
| 5084 * an application that handles customer requests might include separate services | 5204 /// services to handle tasks such as backend data analysis or API requests from |
| 5085 * to handle tasks such as backend data analysis or API requests from mobile | 5205 /// mobile devices. Each service has a collection of versions that define a |
| 5086 * devices. Each service has a collection of versions that define a specific set | 5206 /// specific set of code used to implement the functionality of that service. |
| 5087 * of code used to implement the functionality of that service. | |
| 5088 */ | |
| 5089 class Service { | 5207 class Service { |
| 5090 /** | 5208 /// Relative name of the service within the application. Example: |
| 5091 * Relative name of the service within the application. Example: | 5209 /// default.@OutputOnly |
| 5092 * default.@OutputOnly | |
| 5093 */ | |
| 5094 core.String id; | 5210 core.String id; |
| 5095 /** | 5211 |
| 5096 * Full path to the Service resource in the API. Example: | 5212 /// Full path to the Service resource in the API. Example: |
| 5097 * apps/myapp/services/default.@OutputOnly | 5213 /// apps/myapp/services/default.@OutputOnly |
| 5098 */ | |
| 5099 core.String name; | 5214 core.String name; |
| 5100 /** | 5215 |
| 5101 * Mapping that defines fractional HTTP traffic diversion to different | 5216 /// Mapping that defines fractional HTTP traffic diversion to different |
| 5102 * versions within the service. | 5217 /// versions within the service. |
| 5103 */ | |
| 5104 TrafficSplit split; | 5218 TrafficSplit split; |
| 5105 | 5219 |
| 5106 Service(); | 5220 Service(); |
| 5107 | 5221 |
| 5108 Service.fromJson(core.Map _json) { | 5222 Service.fromJson(core.Map _json) { |
| 5109 if (_json.containsKey("id")) { | 5223 if (_json.containsKey("id")) { |
| 5110 id = _json["id"]; | 5224 id = _json["id"]; |
| 5111 } | 5225 } |
| 5112 if (_json.containsKey("name")) { | 5226 if (_json.containsKey("name")) { |
| 5113 name = _json["name"]; | 5227 name = _json["name"]; |
| 5114 } | 5228 } |
| 5115 if (_json.containsKey("split")) { | 5229 if (_json.containsKey("split")) { |
| 5116 split = new TrafficSplit.fromJson(_json["split"]); | 5230 split = new TrafficSplit.fromJson(_json["split"]); |
| 5117 } | 5231 } |
| 5118 } | 5232 } |
| 5119 | 5233 |
| 5120 core.Map<core.String, core.Object> toJson() { | 5234 core.Map<core.String, core.Object> toJson() { |
| 5121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5235 final core.Map<core.String, core.Object> _json = |
| 5236 new core.Map<core.String, core.Object>(); |
| 5122 if (id != null) { | 5237 if (id != null) { |
| 5123 _json["id"] = id; | 5238 _json["id"] = id; |
| 5124 } | 5239 } |
| 5125 if (name != null) { | 5240 if (name != null) { |
| 5126 _json["name"] = name; | 5241 _json["name"] = name; |
| 5127 } | 5242 } |
| 5128 if (split != null) { | 5243 if (split != null) { |
| 5129 _json["split"] = (split).toJson(); | 5244 _json["split"] = (split).toJson(); |
| 5130 } | 5245 } |
| 5131 return _json; | 5246 return _json; |
| 5132 } | 5247 } |
| 5133 } | 5248 } |
| 5134 | 5249 |
| 5135 /** SSL configuration for a DomainMapping resource. */ | 5250 /// SSL configuration for a DomainMapping resource. |
| 5136 class SslSettings { | 5251 class SslSettings { |
| 5137 /** | 5252 /// ID of the AuthorizedCertificate resource configuring SSL for the |
| 5138 * ID of the AuthorizedCertificate resource configuring SSL for the | 5253 /// application. Clearing this field will remove SSL support.By default, a |
| 5139 * application. Clearing this field will remove SSL support. Example: 12345. | 5254 /// managed certificate is automatically created for every domain mapping. To |
| 5140 */ | 5255 /// omit SSL support or to configure SSL manually, specify |
| 5256 /// SslManagementType.MANUAL on a CREATE or UPDATE request. You must be |
| 5257 /// authorized to administer the AuthorizedCertificate resource to manually |
| 5258 /// map it to a DomainMapping resource. Example: 12345. |
| 5141 core.String certificateId; | 5259 core.String certificateId; |
| 5142 | 5260 |
| 5261 /// ID of the managed AuthorizedCertificate resource currently being |
| 5262 /// provisioned, if applicable. Until the new managed certificate has been |
| 5263 /// successfully provisioned, the previous SSL state will be preserved. Once |
| 5264 /// the provisioning process completes, the certificate_id field will reflect |
| 5265 /// the new managed certificate and this field will be left empty. To remove |
| 5266 /// SSL support while there is still a pending managed certificate, clear the |
| 5267 /// certificate_id field with an UpdateDomainMappingRequest.@OutputOnly |
| 5268 core.String pendingManagedCertificateId; |
| 5269 |
| 5270 /// SSL management type for this domain. If AUTOMATIC, a managed certificate |
| 5271 /// is automatically provisioned. If MANUAL, certificate_id must be manually |
| 5272 /// specified in order to configure SSL for this domain. |
| 5273 /// Possible string values are: |
| 5274 /// - "AUTOMATIC" : SSL support for this domain is configured automatically. |
| 5275 /// The mapped SSL certificate will be automatically renewed. |
| 5276 /// - "MANUAL" : SSL support for this domain is configured manually by the |
| 5277 /// user. Either the domain has no SSL support or a user-obtained SSL |
| 5278 /// certificate has been explictly mapped to this domain. |
| 5279 core.String sslManagementType; |
| 5280 |
| 5143 SslSettings(); | 5281 SslSettings(); |
| 5144 | 5282 |
| 5145 SslSettings.fromJson(core.Map _json) { | 5283 SslSettings.fromJson(core.Map _json) { |
| 5146 if (_json.containsKey("certificateId")) { | 5284 if (_json.containsKey("certificateId")) { |
| 5147 certificateId = _json["certificateId"]; | 5285 certificateId = _json["certificateId"]; |
| 5148 } | 5286 } |
| 5287 if (_json.containsKey("pendingManagedCertificateId")) { |
| 5288 pendingManagedCertificateId = _json["pendingManagedCertificateId"]; |
| 5289 } |
| 5290 if (_json.containsKey("sslManagementType")) { |
| 5291 sslManagementType = _json["sslManagementType"]; |
| 5292 } |
| 5149 } | 5293 } |
| 5150 | 5294 |
| 5151 core.Map<core.String, core.Object> toJson() { | 5295 core.Map<core.String, core.Object> toJson() { |
| 5152 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5296 final core.Map<core.String, core.Object> _json = |
| 5297 new core.Map<core.String, core.Object>(); |
| 5153 if (certificateId != null) { | 5298 if (certificateId != null) { |
| 5154 _json["certificateId"] = certificateId; | 5299 _json["certificateId"] = certificateId; |
| 5155 } | 5300 } |
| 5301 if (pendingManagedCertificateId != null) { |
| 5302 _json["pendingManagedCertificateId"] = pendingManagedCertificateId; |
| 5303 } |
| 5304 if (sslManagementType != null) { |
| 5305 _json["sslManagementType"] = sslManagementType; |
| 5306 } |
| 5156 return _json; | 5307 return _json; |
| 5157 } | 5308 } |
| 5158 } | 5309 } |
| 5159 | 5310 |
| 5160 /** Scheduler settings for standard environment. */ | 5311 /// Scheduler settings for standard environment. |
| 5161 class StandardSchedulerSettings { | 5312 class StandardSchedulerSettings { |
| 5162 /** | 5313 /// Maximum number of instances for an app version. Set to a non-positive |
| 5163 * Maximum number of instances for an app version. Set to a non-positive value | 5314 /// value (0 by convention) to disable max_instances configuration. |
| 5164 * (0 by convention) to disable max_instances configuration. | |
| 5165 */ | |
| 5166 core.int maxInstances; | 5315 core.int maxInstances; |
| 5167 /** | 5316 |
| 5168 * Minimum number of instances for an app version. Set to a non-positive value | 5317 /// Minimum number of instances for an app version. Set to a non-positive |
| 5169 * (0 by convention) to disable min_instances configuration. | 5318 /// value (0 by convention) to disable min_instances configuration. |
| 5170 */ | |
| 5171 core.int minInstances; | 5319 core.int minInstances; |
| 5172 /** Target CPU utilization ratio to maintain when scaling. */ | 5320 |
| 5321 /// Target CPU utilization ratio to maintain when scaling. |
| 5173 core.double targetCpuUtilization; | 5322 core.double targetCpuUtilization; |
| 5174 /** Target throughput utilization ratio to maintain when scaling */ | 5323 |
| 5324 /// Target throughput utilization ratio to maintain when scaling |
| 5175 core.double targetThroughputUtilization; | 5325 core.double targetThroughputUtilization; |
| 5176 | 5326 |
| 5177 StandardSchedulerSettings(); | 5327 StandardSchedulerSettings(); |
| 5178 | 5328 |
| 5179 StandardSchedulerSettings.fromJson(core.Map _json) { | 5329 StandardSchedulerSettings.fromJson(core.Map _json) { |
| 5180 if (_json.containsKey("maxInstances")) { | 5330 if (_json.containsKey("maxInstances")) { |
| 5181 maxInstances = _json["maxInstances"]; | 5331 maxInstances = _json["maxInstances"]; |
| 5182 } | 5332 } |
| 5183 if (_json.containsKey("minInstances")) { | 5333 if (_json.containsKey("minInstances")) { |
| 5184 minInstances = _json["minInstances"]; | 5334 minInstances = _json["minInstances"]; |
| 5185 } | 5335 } |
| 5186 if (_json.containsKey("targetCpuUtilization")) { | 5336 if (_json.containsKey("targetCpuUtilization")) { |
| 5187 targetCpuUtilization = _json["targetCpuUtilization"]; | 5337 targetCpuUtilization = _json["targetCpuUtilization"]; |
| 5188 } | 5338 } |
| 5189 if (_json.containsKey("targetThroughputUtilization")) { | 5339 if (_json.containsKey("targetThroughputUtilization")) { |
| 5190 targetThroughputUtilization = _json["targetThroughputUtilization"]; | 5340 targetThroughputUtilization = _json["targetThroughputUtilization"]; |
| 5191 } | 5341 } |
| 5192 } | 5342 } |
| 5193 | 5343 |
| 5194 core.Map<core.String, core.Object> toJson() { | 5344 core.Map<core.String, core.Object> toJson() { |
| 5195 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5345 final core.Map<core.String, core.Object> _json = |
| 5346 new core.Map<core.String, core.Object>(); |
| 5196 if (maxInstances != null) { | 5347 if (maxInstances != null) { |
| 5197 _json["maxInstances"] = maxInstances; | 5348 _json["maxInstances"] = maxInstances; |
| 5198 } | 5349 } |
| 5199 if (minInstances != null) { | 5350 if (minInstances != null) { |
| 5200 _json["minInstances"] = minInstances; | 5351 _json["minInstances"] = minInstances; |
| 5201 } | 5352 } |
| 5202 if (targetCpuUtilization != null) { | 5353 if (targetCpuUtilization != null) { |
| 5203 _json["targetCpuUtilization"] = targetCpuUtilization; | 5354 _json["targetCpuUtilization"] = targetCpuUtilization; |
| 5204 } | 5355 } |
| 5205 if (targetThroughputUtilization != null) { | 5356 if (targetThroughputUtilization != null) { |
| 5206 _json["targetThroughputUtilization"] = targetThroughputUtilization; | 5357 _json["targetThroughputUtilization"] = targetThroughputUtilization; |
| 5207 } | 5358 } |
| 5208 return _json; | 5359 return _json; |
| 5209 } | 5360 } |
| 5210 } | 5361 } |
| 5211 | 5362 |
| 5212 /** | 5363 /// Files served directly to the user for a given URL, such as images, CSS |
| 5213 * Files served directly to the user for a given URL, such as images, CSS | 5364 /// stylesheets, or JavaScript source files. Static file handlers describe |
| 5214 * stylesheets, or JavaScript source files. Static file handlers describe which | 5365 /// which files in the application directory are static files, and which URLs |
| 5215 * files in the application directory are static files, and which URLs serve | 5366 /// serve them. |
| 5216 * them. | |
| 5217 */ | |
| 5218 class StaticFilesHandler { | 5367 class StaticFilesHandler { |
| 5219 /** | 5368 /// Whether files should also be uploaded as code data. By default, files |
| 5220 * Whether files should also be uploaded as code data. By default, files | 5369 /// declared in static file handlers are uploaded as static data and are only |
| 5221 * declared in static file handlers are uploaded as static data and are only | 5370 /// served to end users; they cannot be read by the application. If enabled, |
| 5222 * served to end users; they cannot be read by the application. If enabled, | 5371 /// uploads are charged against both your code and static data storage |
| 5223 * uploads are charged against both your code and static data storage resource | 5372 /// resource quotas. |
| 5224 * quotas. | |
| 5225 */ | |
| 5226 core.bool applicationReadable; | 5373 core.bool applicationReadable; |
| 5227 /** | 5374 |
| 5228 * Time a static file served by this handler should be cached by web proxies | 5375 /// Time a static file served by this handler should be cached by web proxies |
| 5229 * and browsers. | 5376 /// and browsers. |
| 5230 */ | |
| 5231 core.String expiration; | 5377 core.String expiration; |
| 5232 /** HTTP headers to use for all responses from these URLs. */ | 5378 |
| 5379 /// HTTP headers to use for all responses from these URLs. |
| 5233 core.Map<core.String, core.String> httpHeaders; | 5380 core.Map<core.String, core.String> httpHeaders; |
| 5234 /** | 5381 |
| 5235 * MIME type used to serve all files served by this handler.Defaults to | 5382 /// MIME type used to serve all files served by this handler.Defaults to |
| 5236 * file-specific MIME types, which are derived from each file's filename | 5383 /// file-specific MIME types, which are derived from each file's filename |
| 5237 * extension. | 5384 /// extension. |
| 5238 */ | |
| 5239 core.String mimeType; | 5385 core.String mimeType; |
| 5240 /** | 5386 |
| 5241 * Path to the static files matched by the URL pattern, from the application | 5387 /// Path to the static files matched by the URL pattern, from the application |
| 5242 * root directory. The path can refer to text matched in groupings in the URL | 5388 /// root directory. The path can refer to text matched in groupings in the |
| 5243 * pattern. | 5389 /// URL pattern. |
| 5244 */ | |
| 5245 core.String path; | 5390 core.String path; |
| 5246 /** | 5391 |
| 5247 * Whether this handler should match the request if the file referenced by the | 5392 /// Whether this handler should match the request if the file referenced by |
| 5248 * handler does not exist. | 5393 /// the handler does not exist. |
| 5249 */ | |
| 5250 core.bool requireMatchingFile; | 5394 core.bool requireMatchingFile; |
| 5251 /** | 5395 |
| 5252 * Regular expression that matches the file paths for all files that should be | 5396 /// Regular expression that matches the file paths for all files that should |
| 5253 * referenced by this handler. | 5397 /// be referenced by this handler. |
| 5254 */ | |
| 5255 core.String uploadPathRegex; | 5398 core.String uploadPathRegex; |
| 5256 | 5399 |
| 5257 StaticFilesHandler(); | 5400 StaticFilesHandler(); |
| 5258 | 5401 |
| 5259 StaticFilesHandler.fromJson(core.Map _json) { | 5402 StaticFilesHandler.fromJson(core.Map _json) { |
| 5260 if (_json.containsKey("applicationReadable")) { | 5403 if (_json.containsKey("applicationReadable")) { |
| 5261 applicationReadable = _json["applicationReadable"]; | 5404 applicationReadable = _json["applicationReadable"]; |
| 5262 } | 5405 } |
| 5263 if (_json.containsKey("expiration")) { | 5406 if (_json.containsKey("expiration")) { |
| 5264 expiration = _json["expiration"]; | 5407 expiration = _json["expiration"]; |
| 5265 } | 5408 } |
| 5266 if (_json.containsKey("httpHeaders")) { | 5409 if (_json.containsKey("httpHeaders")) { |
| 5267 httpHeaders = _json["httpHeaders"]; | 5410 httpHeaders = _json["httpHeaders"]; |
| 5268 } | 5411 } |
| 5269 if (_json.containsKey("mimeType")) { | 5412 if (_json.containsKey("mimeType")) { |
| 5270 mimeType = _json["mimeType"]; | 5413 mimeType = _json["mimeType"]; |
| 5271 } | 5414 } |
| 5272 if (_json.containsKey("path")) { | 5415 if (_json.containsKey("path")) { |
| 5273 path = _json["path"]; | 5416 path = _json["path"]; |
| 5274 } | 5417 } |
| 5275 if (_json.containsKey("requireMatchingFile")) { | 5418 if (_json.containsKey("requireMatchingFile")) { |
| 5276 requireMatchingFile = _json["requireMatchingFile"]; | 5419 requireMatchingFile = _json["requireMatchingFile"]; |
| 5277 } | 5420 } |
| 5278 if (_json.containsKey("uploadPathRegex")) { | 5421 if (_json.containsKey("uploadPathRegex")) { |
| 5279 uploadPathRegex = _json["uploadPathRegex"]; | 5422 uploadPathRegex = _json["uploadPathRegex"]; |
| 5280 } | 5423 } |
| 5281 } | 5424 } |
| 5282 | 5425 |
| 5283 core.Map<core.String, core.Object> toJson() { | 5426 core.Map<core.String, core.Object> toJson() { |
| 5284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5427 final core.Map<core.String, core.Object> _json = |
| 5428 new core.Map<core.String, core.Object>(); |
| 5285 if (applicationReadable != null) { | 5429 if (applicationReadable != null) { |
| 5286 _json["applicationReadable"] = applicationReadable; | 5430 _json["applicationReadable"] = applicationReadable; |
| 5287 } | 5431 } |
| 5288 if (expiration != null) { | 5432 if (expiration != null) { |
| 5289 _json["expiration"] = expiration; | 5433 _json["expiration"] = expiration; |
| 5290 } | 5434 } |
| 5291 if (httpHeaders != null) { | 5435 if (httpHeaders != null) { |
| 5292 _json["httpHeaders"] = httpHeaders; | 5436 _json["httpHeaders"] = httpHeaders; |
| 5293 } | 5437 } |
| 5294 if (mimeType != null) { | 5438 if (mimeType != null) { |
| 5295 _json["mimeType"] = mimeType; | 5439 _json["mimeType"] = mimeType; |
| 5296 } | 5440 } |
| 5297 if (path != null) { | 5441 if (path != null) { |
| 5298 _json["path"] = path; | 5442 _json["path"] = path; |
| 5299 } | 5443 } |
| 5300 if (requireMatchingFile != null) { | 5444 if (requireMatchingFile != null) { |
| 5301 _json["requireMatchingFile"] = requireMatchingFile; | 5445 _json["requireMatchingFile"] = requireMatchingFile; |
| 5302 } | 5446 } |
| 5303 if (uploadPathRegex != null) { | 5447 if (uploadPathRegex != null) { |
| 5304 _json["uploadPathRegex"] = uploadPathRegex; | 5448 _json["uploadPathRegex"] = uploadPathRegex; |
| 5305 } | 5449 } |
| 5306 return _json; | 5450 return _json; |
| 5307 } | 5451 } |
| 5308 } | 5452 } |
| 5309 | 5453 |
| 5310 /** | 5454 /// The Status type defines a logical error model that is suitable for |
| 5311 * The Status type defines a logical error model that is suitable for different | 5455 /// different programming environments, including REST APIs and RPC APIs. It is |
| 5312 * programming environments, including REST APIs and RPC APIs. It is used by | 5456 /// used by gRPC (https://github.com/grpc). The error model is designed to be: |
| 5313 * gRPC (https://github.com/grpc). The error model is designed to be: | 5457 /// Simple to use and understand for most users |
| 5314 * Simple to use and understand for most users | 5458 /// Flexible enough to meet unexpected needsOverviewThe Status message contains |
| 5315 * Flexible enough to meet unexpected needsOverviewThe Status message contains | 5459 /// three pieces of data: error code, error message, and error details. The |
| 5316 * three pieces of data: error code, error message, and error details. The error | 5460 /// error code should be an enum value of google.rpc.Code, but it may accept |
| 5317 * code should be an enum value of google.rpc.Code, but it may accept additional | 5461 /// additional error codes if needed. The error message should be a |
| 5318 * error codes if needed. The error message should be a developer-facing English | 5462 /// developer-facing English message that helps developers understand and |
| 5319 * message that helps developers understand and resolve the error. If a | 5463 /// resolve the error. If a localized user-facing error message is needed, put |
| 5320 * localized user-facing error message is needed, put the localized message in | 5464 /// the localized message in the error details or localize it in the client. |
| 5321 * the error details or localize it in the client. The optional error details | 5465 /// The optional error details may contain arbitrary information about the |
| 5322 * may contain arbitrary information about the error. There is a predefined set | 5466 /// error. There is a predefined set of error detail types in the package |
| 5323 * of error detail types in the package google.rpc that can be used for common | 5467 /// google.rpc that can be used for common error conditions.Language mappingThe |
| 5324 * error conditions.Language mappingThe Status message is the logical | 5468 /// Status message is the logical representation of the error model, but it is |
| 5325 * representation of the error model, but it is not necessarily the actual wire | 5469 /// not necessarily the actual wire format. When the Status message is exposed |
| 5326 * format. When the Status message is exposed in different client libraries and | 5470 /// in different client libraries and different wire protocols, it can be |
| 5327 * different wire protocols, it can be mapped differently. For example, it will | 5471 /// mapped differently. For example, it will likely be mapped to some |
| 5328 * likely be mapped to some exceptions in Java, but more likely mapped to some | 5472 /// exceptions in Java, but more likely mapped to some error codes in C.Other |
| 5329 * error codes in C.Other usesThe error model and the Status message can be used | 5473 /// usesThe error model and the Status message can be used in a variety of |
| 5330 * in a variety of environments, either with or without APIs, to provide a | 5474 /// environments, either with or without APIs, to provide a consistent |
| 5331 * consistent developer experience across different environments.Example uses of | 5475 /// developer experience across different environments.Example uses of this |
| 5332 * this error model include: | 5476 /// error model include: |
| 5333 * Partial errors. If a service needs to return partial errors to the client, it | 5477 /// Partial errors. If a service needs to return partial errors to the client, |
| 5334 * may embed the Status in the normal response to indicate the partial errors. | 5478 /// it may embed the Status in the normal response to indicate the partial |
| 5335 * Workflow errors. A typical workflow has multiple steps. Each step may have a | 5479 /// errors. |
| 5336 * Status message for error reporting. | 5480 /// Workflow errors. A typical workflow has multiple steps. Each step may have |
| 5337 * Batch operations. If a client uses batch request and batch response, the | 5481 /// a Status message for error reporting. |
| 5338 * Status message should be used directly inside batch response, one for each | 5482 /// Batch operations. If a client uses batch request and batch response, the |
| 5339 * error sub-response. | 5483 /// Status message should be used directly inside batch response, one for each |
| 5340 * Asynchronous operations. If an API call embeds asynchronous operation results | 5484 /// error sub-response. |
| 5341 * in its response, the status of those operations should be represented | 5485 /// Asynchronous operations. If an API call embeds asynchronous operation |
| 5342 * directly using the Status message. | 5486 /// results in its response, the status of those operations should be |
| 5343 * Logging. If some API errors are stored in logs, the message Status could be | 5487 /// represented directly using the Status message. |
| 5344 * used directly after any stripping needed for security/privacy reasons. | 5488 /// Logging. If some API errors are stored in logs, the message Status could be |
| 5345 */ | 5489 /// used directly after any stripping needed for security/privacy reasons. |
| 5346 class Status { | 5490 class Status { |
| 5347 /** The status code, which should be an enum value of google.rpc.Code. */ | 5491 /// The status code, which should be an enum value of google.rpc.Code. |
| 5348 core.int code; | 5492 core.int code; |
| 5349 /** | 5493 |
| 5350 * A list of messages that carry the error details. There is a common set of | 5494 /// A list of messages that carry the error details. There is a common set of |
| 5351 * message types for APIs to use. | 5495 /// message types for APIs to use. |
| 5352 * | 5496 /// |
| 5353 * The values for Object must be JSON objects. It can consist of `num`, | 5497 /// The values for Object must be JSON objects. It can consist of `num`, |
| 5354 * `String`, `bool` and `null` as well as `Map` and `List` values. | 5498 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 5355 */ | |
| 5356 core.List<core.Map<core.String, core.Object>> details; | 5499 core.List<core.Map<core.String, core.Object>> details; |
| 5357 /** | 5500 |
| 5358 * A developer-facing error message, which should be in English. Any | 5501 /// A developer-facing error message, which should be in English. Any |
| 5359 * user-facing error message should be localized and sent in the | 5502 /// user-facing error message should be localized and sent in the |
| 5360 * google.rpc.Status.details field, or localized by the client. | 5503 /// google.rpc.Status.details field, or localized by the client. |
| 5361 */ | |
| 5362 core.String message; | 5504 core.String message; |
| 5363 | 5505 |
| 5364 Status(); | 5506 Status(); |
| 5365 | 5507 |
| 5366 Status.fromJson(core.Map _json) { | 5508 Status.fromJson(core.Map _json) { |
| 5367 if (_json.containsKey("code")) { | 5509 if (_json.containsKey("code")) { |
| 5368 code = _json["code"]; | 5510 code = _json["code"]; |
| 5369 } | 5511 } |
| 5370 if (_json.containsKey("details")) { | 5512 if (_json.containsKey("details")) { |
| 5371 details = _json["details"]; | 5513 details = _json["details"]; |
| 5372 } | 5514 } |
| 5373 if (_json.containsKey("message")) { | 5515 if (_json.containsKey("message")) { |
| 5374 message = _json["message"]; | 5516 message = _json["message"]; |
| 5375 } | 5517 } |
| 5376 } | 5518 } |
| 5377 | 5519 |
| 5378 core.Map<core.String, core.Object> toJson() { | 5520 core.Map<core.String, core.Object> toJson() { |
| 5379 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5521 final core.Map<core.String, core.Object> _json = |
| 5522 new core.Map<core.String, core.Object>(); |
| 5380 if (code != null) { | 5523 if (code != null) { |
| 5381 _json["code"] = code; | 5524 _json["code"] = code; |
| 5382 } | 5525 } |
| 5383 if (details != null) { | 5526 if (details != null) { |
| 5384 _json["details"] = details; | 5527 _json["details"] = details; |
| 5385 } | 5528 } |
| 5386 if (message != null) { | 5529 if (message != null) { |
| 5387 _json["message"] = message; | 5530 _json["message"] = message; |
| 5388 } | 5531 } |
| 5389 return _json; | 5532 return _json; |
| 5390 } | 5533 } |
| 5391 } | 5534 } |
| 5392 | 5535 |
| 5393 /** | 5536 /// Traffic routing configuration for versions within a single service. Traffic |
| 5394 * Traffic routing configuration for versions within a single service. Traffic | 5537 /// splits define how traffic directed to the service is assigned to versions. |
| 5395 * splits define how traffic directed to the service is assigned to versions. | |
| 5396 */ | |
| 5397 class TrafficSplit { | 5538 class TrafficSplit { |
| 5398 /** | 5539 /// Mapping from version IDs within the service to fractional (0.000, 1] |
| 5399 * Mapping from version IDs within the service to fractional (0.000, 1] | 5540 /// allocations of traffic for that version. Each version can be specified |
| 5400 * allocations of traffic for that version. Each version can be specified only | 5541 /// only once, but some versions in the service may not have any traffic |
| 5401 * once, but some versions in the service may not have any traffic allocation. | 5542 /// allocation. Services that have traffic allocated cannot be deleted until |
| 5402 * Services that have traffic allocated cannot be deleted until either the | 5543 /// either the service is deleted or their traffic allocation is removed. |
| 5403 * service is deleted or their traffic allocation is removed. Allocations must | 5544 /// Allocations must sum to 1. Up to two decimal place precision is supported |
| 5404 * sum to 1. Up to two decimal place precision is supported for IP-based | 5545 /// for IP-based splits and up to three decimal places is supported for |
| 5405 * splits and up to three decimal places is supported for cookie-based splits. | 5546 /// cookie-based splits. |
| 5406 */ | |
| 5407 core.Map<core.String, core.double> allocations; | 5547 core.Map<core.String, core.double> allocations; |
| 5408 /** | 5548 |
| 5409 * Mechanism used to determine which version a request is sent to. The traffic | 5549 /// Mechanism used to determine which version a request is sent to. The |
| 5410 * selection algorithm will be stable for either type until allocations are | 5550 /// traffic selection algorithm will be stable for either type until |
| 5411 * changed. | 5551 /// allocations are changed. |
| 5412 * Possible string values are: | 5552 /// Possible string values are: |
| 5413 * - "UNSPECIFIED" : Diversion method unspecified. | 5553 /// - "UNSPECIFIED" : Diversion method unspecified. |
| 5414 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The | 5554 /// - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." |
| 5415 * cookie must be set by the application itself or no diversion will occur. | 5555 /// The cookie must be set by the application itself or no diversion will |
| 5416 * - "IP" : Diversion based on applying the modulus operation to a fingerprint | 5556 /// occur. |
| 5417 * of the IP address. | 5557 /// - "IP" : Diversion based on applying the modulus operation to a |
| 5418 * - "RANDOM" : Diversion based on weighted random assignment. An incoming | 5558 /// fingerprint of the IP address. |
| 5419 * request is randomly routed to a version in the traffic split, with | 5559 /// - "RANDOM" : Diversion based on weighted random assignment. An incoming |
| 5420 * probability proportional to the version's traffic share. | 5560 /// request is randomly routed to a version in the traffic split, with |
| 5421 */ | 5561 /// probability proportional to the version's traffic share. |
| 5422 core.String shardBy; | 5562 core.String shardBy; |
| 5423 | 5563 |
| 5424 TrafficSplit(); | 5564 TrafficSplit(); |
| 5425 | 5565 |
| 5426 TrafficSplit.fromJson(core.Map _json) { | 5566 TrafficSplit.fromJson(core.Map _json) { |
| 5427 if (_json.containsKey("allocations")) { | 5567 if (_json.containsKey("allocations")) { |
| 5428 allocations = _json["allocations"]; | 5568 allocations = _json["allocations"]; |
| 5429 } | 5569 } |
| 5430 if (_json.containsKey("shardBy")) { | 5570 if (_json.containsKey("shardBy")) { |
| 5431 shardBy = _json["shardBy"]; | 5571 shardBy = _json["shardBy"]; |
| 5432 } | 5572 } |
| 5433 } | 5573 } |
| 5434 | 5574 |
| 5435 core.Map<core.String, core.Object> toJson() { | 5575 core.Map<core.String, core.Object> toJson() { |
| 5436 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5576 final core.Map<core.String, core.Object> _json = |
| 5577 new core.Map<core.String, core.Object>(); |
| 5437 if (allocations != null) { | 5578 if (allocations != null) { |
| 5438 _json["allocations"] = allocations; | 5579 _json["allocations"] = allocations; |
| 5439 } | 5580 } |
| 5440 if (shardBy != null) { | 5581 if (shardBy != null) { |
| 5441 _json["shardBy"] = shardBy; | 5582 _json["shardBy"] = shardBy; |
| 5442 } | 5583 } |
| 5443 return _json; | 5584 return _json; |
| 5444 } | 5585 } |
| 5445 } | 5586 } |
| 5446 | 5587 |
| 5447 /** Rules to match an HTTP request and dispatch that request to a service. */ | 5588 /// Rules to match an HTTP request and dispatch that request to a service. |
| 5448 class UrlDispatchRule { | 5589 class UrlDispatchRule { |
| 5449 /** | 5590 /// Domain name to match against. The wildcard "*" is supported if specified |
| 5450 * Domain name to match against. The wildcard "*" is supported if specified | 5591 /// before a period: "*.".Defaults to matching all domains: "*". |
| 5451 * before a period: "*.".Defaults to matching all domains: "*". | |
| 5452 */ | |
| 5453 core.String domain; | 5592 core.String domain; |
| 5454 /** | 5593 |
| 5455 * Pathname within the host. Must start with a "/". A single "*" can be | 5594 /// Pathname within the host. Must start with a "/". A single "*" can be |
| 5456 * included at the end of the path.The sum of the lengths of the domain and | 5595 /// included at the end of the path.The sum of the lengths of the domain and |
| 5457 * path may not exceed 100 characters. | 5596 /// path may not exceed 100 characters. |
| 5458 */ | |
| 5459 core.String path; | 5597 core.String path; |
| 5460 /** | 5598 |
| 5461 * Resource ID of a service in this application that should serve the matched | 5599 /// Resource ID of a service in this application that should serve the |
| 5462 * request. The service must already exist. Example: default. | 5600 /// matched request. The service must already exist. Example: default. |
| 5463 */ | |
| 5464 core.String service; | 5601 core.String service; |
| 5465 | 5602 |
| 5466 UrlDispatchRule(); | 5603 UrlDispatchRule(); |
| 5467 | 5604 |
| 5468 UrlDispatchRule.fromJson(core.Map _json) { | 5605 UrlDispatchRule.fromJson(core.Map _json) { |
| 5469 if (_json.containsKey("domain")) { | 5606 if (_json.containsKey("domain")) { |
| 5470 domain = _json["domain"]; | 5607 domain = _json["domain"]; |
| 5471 } | 5608 } |
| 5472 if (_json.containsKey("path")) { | 5609 if (_json.containsKey("path")) { |
| 5473 path = _json["path"]; | 5610 path = _json["path"]; |
| 5474 } | 5611 } |
| 5475 if (_json.containsKey("service")) { | 5612 if (_json.containsKey("service")) { |
| 5476 service = _json["service"]; | 5613 service = _json["service"]; |
| 5477 } | 5614 } |
| 5478 } | 5615 } |
| 5479 | 5616 |
| 5480 core.Map<core.String, core.Object> toJson() { | 5617 core.Map<core.String, core.Object> toJson() { |
| 5481 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5618 final core.Map<core.String, core.Object> _json = |
| 5619 new core.Map<core.String, core.Object>(); |
| 5482 if (domain != null) { | 5620 if (domain != null) { |
| 5483 _json["domain"] = domain; | 5621 _json["domain"] = domain; |
| 5484 } | 5622 } |
| 5485 if (path != null) { | 5623 if (path != null) { |
| 5486 _json["path"] = path; | 5624 _json["path"] = path; |
| 5487 } | 5625 } |
| 5488 if (service != null) { | 5626 if (service != null) { |
| 5489 _json["service"] = service; | 5627 _json["service"] = service; |
| 5490 } | 5628 } |
| 5491 return _json; | 5629 return _json; |
| 5492 } | 5630 } |
| 5493 } | 5631 } |
| 5494 | 5632 |
| 5495 /** | 5633 /// URL pattern and description of how the URL should be handled. App Engine |
| 5496 * URL pattern and description of how the URL should be handled. App Engine can | 5634 /// can handle URLs by executing application code or by serving static files |
| 5497 * handle URLs by executing application code or by serving static files uploaded | 5635 /// uploaded with the version, such as images, CSS, or JavaScript. |
| 5498 * with the version, such as images, CSS, or JavaScript. | |
| 5499 */ | |
| 5500 class UrlMap { | 5636 class UrlMap { |
| 5501 /** Uses API Endpoints to handle requests. */ | 5637 /// Uses API Endpoints to handle requests. |
| 5502 ApiEndpointHandler apiEndpoint; | 5638 ApiEndpointHandler apiEndpoint; |
| 5503 /** | 5639 |
| 5504 * Action to take when users access resources that require authentication. | 5640 /// Action to take when users access resources that require authentication. |
| 5505 * Defaults to redirect. | 5641 /// Defaults to redirect. |
| 5506 * Possible string values are: | 5642 /// Possible string values are: |
| 5507 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | 5643 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. |
| 5508 * is assumed. | 5644 /// AUTH_FAIL_ACTION_REDIRECT is assumed. |
| 5509 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | 5645 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 5510 * The user is redirected back to the application URL after signing in or | 5646 /// The user is redirected back to the application URL after signing in or |
| 5511 * creating an account. | 5647 /// creating an account. |
| 5512 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | 5648 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP |
| 5513 * code and an error message. | 5649 /// status code and an error message. |
| 5514 */ | |
| 5515 core.String authFailAction; | 5650 core.String authFailAction; |
| 5516 /** | 5651 |
| 5517 * Level of login required to access this resource. | 5652 /// Level of login required to access this resource. |
| 5518 * Possible string values are: | 5653 /// Possible string values are: |
| 5519 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | 5654 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
| 5520 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | 5655 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
| 5521 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | 5656 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
| 5522 * taken. In addition, if the user is not an administrator for the | 5657 /// taken. In addition, if the user is not an administrator for the |
| 5523 * application, they are given an error message regardless of | 5658 /// application, they are given an error message regardless of |
| 5524 * auth_fail_action. If the user is an administrator, the handler proceeds. | 5659 /// auth_fail_action. If the user is an administrator, the handler proceeds. |
| 5525 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | 5660 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 5526 * normally. Otherwise, the auth_fail_action is taken. | 5661 /// normally. Otherwise, the auth_fail_action is taken. |
| 5527 */ | |
| 5528 core.String login; | 5662 core.String login; |
| 5529 /** | 5663 |
| 5530 * 30x code to use when performing redirects for the secure field. Defaults to | 5664 /// 30x code to use when performing redirects for the secure field. Defaults |
| 5531 * 302. | 5665 /// to 302. |
| 5532 * Possible string values are: | 5666 /// Possible string values are: |
| 5533 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is | 5667 /// - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is |
| 5534 * assumed. | 5668 /// assumed. |
| 5535 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. | 5669 /// - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. |
| 5536 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. | 5670 /// - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. |
| 5537 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. | 5671 /// - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. |
| 5538 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. | 5672 /// - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. |
| 5539 */ | |
| 5540 core.String redirectHttpResponseCode; | 5673 core.String redirectHttpResponseCode; |
| 5541 /** Executes a script to handle the request that matches this URL pattern. */ | 5674 |
| 5675 /// Executes a script to handle the request that matches this URL pattern. |
| 5542 ScriptHandler script; | 5676 ScriptHandler script; |
| 5543 /** | 5677 |
| 5544 * Security (HTTPS) enforcement for this URL. | 5678 /// Security (HTTPS) enforcement for this URL. |
| 5545 * Possible string values are: | 5679 /// Possible string values are: |
| 5546 * - "SECURE_UNSPECIFIED" : Not specified. | 5680 /// - "SECURE_UNSPECIFIED" : Not specified. |
| 5547 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 5681 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match |
| 5548 * handler succeed without redirects. The application can examine the request | 5682 /// the handler succeed without redirects. The application can examine the |
| 5549 * to determine which protocol was used, and respond accordingly. | 5683 /// request to determine which protocol was used, and respond accordingly. |
| 5550 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 5684 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 5551 * HTTPS are automatically redirected to the HTTP equivalent URL. | 5685 /// HTTPS are automatically redirected to the HTTP equivalent URL. |
| 5552 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | 5686 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match |
| 5553 * handler succeed without redirects. The application can examine the request | 5687 /// the handler succeed without redirects. The application can examine the |
| 5554 * to determine which protocol was used and respond accordingly. | 5688 /// request to determine which protocol was used and respond accordingly. |
| 5555 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | 5689 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do |
| 5556 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | 5690 /// not use HTTPS are automatically redirected to the HTTPS URL with the same |
| 5557 * Query parameters are reserved for the redirect. | 5691 /// path. Query parameters are reserved for the redirect. |
| 5558 */ | |
| 5559 core.String securityLevel; | 5692 core.String securityLevel; |
| 5560 /** Returns the contents of a file, such as an image, as the response. */ | 5693 |
| 5694 /// Returns the contents of a file, such as an image, as the response. |
| 5561 StaticFilesHandler staticFiles; | 5695 StaticFilesHandler staticFiles; |
| 5562 /** | 5696 |
| 5563 * URL prefix. Uses regular expression syntax, which means regexp special | 5697 /// URL prefix. Uses regular expression syntax, which means regexp special |
| 5564 * characters must be escaped, but should not contain groupings. All URLs that | 5698 /// characters must be escaped, but should not contain groupings. All URLs |
| 5565 * begin with this prefix are handled by this handler, using the portion of | 5699 /// that begin with this prefix are handled by this handler, using the |
| 5566 * the URL after the prefix as part of the file path. | 5700 /// portion of the URL after the prefix as part of the file path. |
| 5567 */ | |
| 5568 core.String urlRegex; | 5701 core.String urlRegex; |
| 5569 | 5702 |
| 5570 UrlMap(); | 5703 UrlMap(); |
| 5571 | 5704 |
| 5572 UrlMap.fromJson(core.Map _json) { | 5705 UrlMap.fromJson(core.Map _json) { |
| 5573 if (_json.containsKey("apiEndpoint")) { | 5706 if (_json.containsKey("apiEndpoint")) { |
| 5574 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); | 5707 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); |
| 5575 } | 5708 } |
| 5576 if (_json.containsKey("authFailAction")) { | 5709 if (_json.containsKey("authFailAction")) { |
| 5577 authFailAction = _json["authFailAction"]; | 5710 authFailAction = _json["authFailAction"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5590 } | 5723 } |
| 5591 if (_json.containsKey("staticFiles")) { | 5724 if (_json.containsKey("staticFiles")) { |
| 5592 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); | 5725 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); |
| 5593 } | 5726 } |
| 5594 if (_json.containsKey("urlRegex")) { | 5727 if (_json.containsKey("urlRegex")) { |
| 5595 urlRegex = _json["urlRegex"]; | 5728 urlRegex = _json["urlRegex"]; |
| 5596 } | 5729 } |
| 5597 } | 5730 } |
| 5598 | 5731 |
| 5599 core.Map<core.String, core.Object> toJson() { | 5732 core.Map<core.String, core.Object> toJson() { |
| 5600 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5733 final core.Map<core.String, core.Object> _json = |
| 5734 new core.Map<core.String, core.Object>(); |
| 5601 if (apiEndpoint != null) { | 5735 if (apiEndpoint != null) { |
| 5602 _json["apiEndpoint"] = (apiEndpoint).toJson(); | 5736 _json["apiEndpoint"] = (apiEndpoint).toJson(); |
| 5603 } | 5737 } |
| 5604 if (authFailAction != null) { | 5738 if (authFailAction != null) { |
| 5605 _json["authFailAction"] = authFailAction; | 5739 _json["authFailAction"] = authFailAction; |
| 5606 } | 5740 } |
| 5607 if (login != null) { | 5741 if (login != null) { |
| 5608 _json["login"] = login; | 5742 _json["login"] = login; |
| 5609 } | 5743 } |
| 5610 if (redirectHttpResponseCode != null) { | 5744 if (redirectHttpResponseCode != null) { |
| 5611 _json["redirectHttpResponseCode"] = redirectHttpResponseCode; | 5745 _json["redirectHttpResponseCode"] = redirectHttpResponseCode; |
| 5612 } | 5746 } |
| 5613 if (script != null) { | 5747 if (script != null) { |
| 5614 _json["script"] = (script).toJson(); | 5748 _json["script"] = (script).toJson(); |
| 5615 } | 5749 } |
| 5616 if (securityLevel != null) { | 5750 if (securityLevel != null) { |
| 5617 _json["securityLevel"] = securityLevel; | 5751 _json["securityLevel"] = securityLevel; |
| 5618 } | 5752 } |
| 5619 if (staticFiles != null) { | 5753 if (staticFiles != null) { |
| 5620 _json["staticFiles"] = (staticFiles).toJson(); | 5754 _json["staticFiles"] = (staticFiles).toJson(); |
| 5621 } | 5755 } |
| 5622 if (urlRegex != null) { | 5756 if (urlRegex != null) { |
| 5623 _json["urlRegex"] = urlRegex; | 5757 _json["urlRegex"] = urlRegex; |
| 5624 } | 5758 } |
| 5625 return _json; | 5759 return _json; |
| 5626 } | 5760 } |
| 5627 } | 5761 } |
| 5628 | 5762 |
| 5629 /** | 5763 /// A Version resource is a specific set of source code and configuration files |
| 5630 * A Version resource is a specific set of source code and configuration files | 5764 /// that are deployed into a service. |
| 5631 * that are deployed into a service. | |
| 5632 */ | |
| 5633 class Version { | 5765 class Version { |
| 5634 /** | 5766 /// Serving configuration for Google Cloud Endpoints |
| 5635 * Serving configuration for Google Cloud Endpoints | 5767 /// (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned |
| 5636 * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned | 5768 /// in GET requests if view=FULL is set. |
| 5637 * in GET requests if view=FULL is set. | |
| 5638 */ | |
| 5639 ApiConfigHandler apiConfig; | 5769 ApiConfigHandler apiConfig; |
| 5640 /** | 5770 |
| 5641 * Automatic scaling is based on request rate, response latencies, and other | 5771 /// Automatic scaling is based on request rate, response latencies, and other |
| 5642 * application metrics. | 5772 /// application metrics. |
| 5643 */ | |
| 5644 AutomaticScaling automaticScaling; | 5773 AutomaticScaling automaticScaling; |
| 5645 /** | 5774 |
| 5646 * A service with basic scaling will create an instance when the application | 5775 /// A service with basic scaling will create an instance when the application |
| 5647 * receives a request. The instance will be turned down when the app becomes | 5776 /// receives a request. The instance will be turned down when the app becomes |
| 5648 * idle. Basic scaling is ideal for work that is intermittent or driven by | 5777 /// idle. Basic scaling is ideal for work that is intermittent or driven by |
| 5649 * user activity. | 5778 /// user activity. |
| 5650 */ | |
| 5651 BasicScaling basicScaling; | 5779 BasicScaling basicScaling; |
| 5652 /** | 5780 |
| 5653 * Metadata settings that are supplied to this version to enable beta runtime | 5781 /// Metadata settings that are supplied to this version to enable beta |
| 5654 * features. | 5782 /// runtime features. |
| 5655 */ | |
| 5656 core.Map<core.String, core.String> betaSettings; | 5783 core.Map<core.String, core.String> betaSettings; |
| 5657 /** Time that this version was created.@OutputOnly */ | 5784 |
| 5785 /// Time that this version was created.@OutputOnly |
| 5658 core.String createTime; | 5786 core.String createTime; |
| 5659 /** Email address of the user who created this version.@OutputOnly */ | 5787 |
| 5788 /// Email address of the user who created this version.@OutputOnly |
| 5660 core.String createdBy; | 5789 core.String createdBy; |
| 5661 /** | 5790 |
| 5662 * Duration that static files should be cached by web proxies and browsers. | 5791 /// Duration that static files should be cached by web proxies and browsers. |
| 5663 * Only applicable if the corresponding StaticFilesHandler | 5792 /// Only applicable if the corresponding StaticFilesHandler |
| 5664 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#staticfileshandler) | 5793 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/a
pps.services.versions#staticfileshandler) |
| 5665 * does not specify its own expiration time.Only returned in GET requests if | 5794 /// does not specify its own expiration time.Only returned in GET requests if |
| 5666 * view=FULL is set. | 5795 /// view=FULL is set. |
| 5667 */ | |
| 5668 core.String defaultExpiration; | 5796 core.String defaultExpiration; |
| 5669 /** | 5797 |
| 5670 * Code and application artifacts that make up this version.Only returned in | 5798 /// Code and application artifacts that make up this version.Only returned in |
| 5671 * GET requests if view=FULL is set. | 5799 /// GET requests if view=FULL is set. |
| 5672 */ | |
| 5673 Deployment deployment; | 5800 Deployment deployment; |
| 5674 /** | 5801 |
| 5675 * Total size in bytes of all the files that are included in this version and | 5802 /// Total size in bytes of all the files that are included in this version |
| 5676 * curerntly hosted on the App Engine disk.@OutputOnly | 5803 /// and curerntly hosted on the App Engine disk.@OutputOnly |
| 5677 */ | |
| 5678 core.String diskUsageBytes; | 5804 core.String diskUsageBytes; |
| 5679 /** | 5805 |
| 5680 * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud | 5806 /// Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud |
| 5681 * Endpoints Extensible Service Proxy will be provided to serve the API | 5807 /// Endpoints Extensible Service Proxy will be provided to serve the API |
| 5682 * implemented by the app. | 5808 /// implemented by the app. |
| 5683 */ | |
| 5684 EndpointsApiService endpointsApiService; | 5809 EndpointsApiService endpointsApiService; |
| 5685 /** | 5810 |
| 5686 * App Engine execution environment for this version.Defaults to standard. | 5811 /// App Engine execution environment for this version.Defaults to standard. |
| 5687 */ | |
| 5688 core.String env; | 5812 core.String env; |
| 5689 /** | 5813 |
| 5690 * Environment variables available to the application.Only returned in GET | 5814 /// Environment variables available to the application.Only returned in GET |
| 5691 * requests if view=FULL is set. | 5815 /// requests if view=FULL is set. |
| 5692 */ | |
| 5693 core.Map<core.String, core.String> envVariables; | 5816 core.Map<core.String, core.String> envVariables; |
| 5694 /** | 5817 |
| 5695 * Custom static error pages. Limited to 10KB per page.Only returned in GET | 5818 /// Custom static error pages. Limited to 10KB per page.Only returned in GET |
| 5696 * requests if view=FULL is set. | 5819 /// requests if view=FULL is set. |
| 5697 */ | |
| 5698 core.List<ErrorHandler> errorHandlers; | 5820 core.List<ErrorHandler> errorHandlers; |
| 5699 /** | 5821 |
| 5700 * An ordered list of URL-matching patterns that should be applied to incoming | 5822 /// An ordered list of URL-matching patterns that should be applied to |
| 5701 * requests. The first matching URL handles the request and other request | 5823 /// incoming requests. The first matching URL handles the request and other |
| 5702 * handlers are not attempted.Only returned in GET requests if view=FULL is | 5824 /// request handlers are not attempted.Only returned in GET requests if |
| 5703 * set. | 5825 /// view=FULL is set. |
| 5704 */ | |
| 5705 core.List<UrlMap> handlers; | 5826 core.List<UrlMap> handlers; |
| 5706 /** | 5827 |
| 5707 * Configures health checking for VM instances. Unhealthy instances are | 5828 /// Configures health checking for VM instances. Unhealthy instances are |
| 5708 * stopped and replaced with new instances. Only applicable for VM | 5829 /// stopped and replaced with new instances. Only applicable for VM |
| 5709 * runtimes.Only returned in GET requests if view=FULL is set. | 5830 /// runtimes.Only returned in GET requests if view=FULL is set. |
| 5710 */ | |
| 5711 HealthCheck healthCheck; | 5831 HealthCheck healthCheck; |
| 5712 /** | 5832 |
| 5713 * Relative name of the version within the service. Example: v1. Version names | 5833 /// Relative name of the version within the service. Example: v1. Version |
| 5714 * can contain only lowercase letters, numbers, or hyphens. Reserved names: | 5834 /// names can contain only lowercase letters, numbers, or hyphens. Reserved |
| 5715 * "default", "latest", and any name with the prefix "ah-". | 5835 /// names: "default", "latest", and any name with the prefix "ah-". |
| 5716 */ | |
| 5717 core.String id; | 5836 core.String id; |
| 5718 /** | 5837 |
| 5719 * Before an application can receive email or XMPP messages, the application | 5838 /// Before an application can receive email or XMPP messages, the application |
| 5720 * must be configured to enable the service. | 5839 /// must be configured to enable the service. |
| 5721 */ | |
| 5722 core.List<core.String> inboundServices; | 5840 core.List<core.String> inboundServices; |
| 5723 /** | 5841 |
| 5724 * Instance class that is used to run this version. Valid values are: | 5842 /// Instance class that is used to run this version. Valid values are: |
| 5725 * AutomaticScaling: F1, F2, F4, F4_1G | 5843 /// AutomaticScaling: F1, F2, F4, F4_1G |
| 5726 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for | 5844 /// ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for |
| 5727 * AutomaticScaling and B1 for ManualScaling or BasicScaling. | 5845 /// AutomaticScaling and B1 for ManualScaling or BasicScaling. |
| 5728 */ | |
| 5729 core.String instanceClass; | 5846 core.String instanceClass; |
| 5730 /** | 5847 |
| 5731 * Configuration for third-party Python runtime libraries that are required by | 5848 /// Configuration for third-party Python runtime libraries that are required |
| 5732 * the application.Only returned in GET requests if view=FULL is set. | 5849 /// by the application.Only returned in GET requests if view=FULL is set. |
| 5733 */ | |
| 5734 core.List<Library> libraries; | 5850 core.List<Library> libraries; |
| 5735 /** | 5851 |
| 5736 * Configures liveness health checking for VM instances. Unhealthy instances | 5852 /// Configures liveness health checking for VM instances. Unhealthy instances |
| 5737 * are stopped and replaced with new instancesOnly returned in GET requests if | 5853 /// are stopped and replaced with new instancesOnly returned in GET requests |
| 5738 * view=FULL is set. | 5854 /// if view=FULL is set. |
| 5739 */ | |
| 5740 LivenessCheck livenessCheck; | 5855 LivenessCheck livenessCheck; |
| 5741 /** | 5856 |
| 5742 * A service with manual scaling runs continuously, allowing you to perform | 5857 /// A service with manual scaling runs continuously, allowing you to perform |
| 5743 * complex initialization and rely on the state of its memory over time. | 5858 /// complex initialization and rely on the state of its memory over time. |
| 5744 */ | |
| 5745 ManualScaling manualScaling; | 5859 ManualScaling manualScaling; |
| 5746 /** | 5860 |
| 5747 * Full path to the Version resource in the API. Example: | 5861 /// Full path to the Version resource in the API. Example: |
| 5748 * apps/myapp/services/default/versions/v1.@OutputOnly | 5862 /// apps/myapp/services/default/versions/v1.@OutputOnly |
| 5749 */ | |
| 5750 core.String name; | 5863 core.String name; |
| 5751 /** | 5864 |
| 5752 * Extra network settings. Only applicable for App Engine flexible environment | 5865 /// Extra network settings. Only applicable for App Engine flexible |
| 5753 * versions. | 5866 /// environment versions. |
| 5754 */ | |
| 5755 Network network; | 5867 Network network; |
| 5756 /** | 5868 |
| 5757 * Files that match this pattern will not be built into this version. Only | 5869 /// Files that match this pattern will not be built into this version. Only |
| 5758 * applicable for Go runtimes.Only returned in GET requests if view=FULL is | 5870 /// applicable for Go runtimes.Only returned in GET requests if view=FULL is |
| 5759 * set. | 5871 /// set. |
| 5760 */ | |
| 5761 core.String nobuildFilesRegex; | 5872 core.String nobuildFilesRegex; |
| 5762 /** | 5873 |
| 5763 * Configures readiness health checking for VM instances. Unhealthy instances | 5874 /// Configures readiness health checking for VM instances. Unhealthy |
| 5764 * are not put into the backend traffic rotation.Only returned in GET requests | 5875 /// instances are not put into the backend traffic rotation.Only returned in |
| 5765 * if view=FULL is set. | 5876 /// GET requests if view=FULL is set. |
| 5766 */ | |
| 5767 ReadinessCheck readinessCheck; | 5877 ReadinessCheck readinessCheck; |
| 5768 /** Machine resources for this version. Only applicable for VM runtimes. */ | 5878 |
| 5879 /// Machine resources for this version. Only applicable for VM runtimes. |
| 5769 Resources resources; | 5880 Resources resources; |
| 5770 /** Desired runtime. Example: python27. */ | 5881 |
| 5882 /// Desired runtime. Example: python27. |
| 5771 core.String runtime; | 5883 core.String runtime; |
| 5772 /** | 5884 |
| 5773 * The version of the API in the given runtime environment. Please see the | 5885 /// The version of the API in the given runtime environment. Please see the |
| 5774 * app.yaml reference for valid values at | 5886 /// app.yaml reference for valid values at |
| 5775 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref | 5887 /// https://cloud.google.com/appengine/docs/standard/<language>/config/appref |
| 5776 */ | |
| 5777 core.String runtimeApiVersion; | 5888 core.String runtimeApiVersion; |
| 5778 /** | 5889 |
| 5779 * Current serving status of this version. Only the versions with a SERVING | 5890 /// Current serving status of this version. Only the versions with a SERVING |
| 5780 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 5891 /// status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is |
| 5781 * invalid value. Defaults to SERVING. | 5892 /// an invalid value. Defaults to SERVING. |
| 5782 * Possible string values are: | 5893 /// Possible string values are: |
| 5783 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. | 5894 /// - "SERVING_STATUS_UNSPECIFIED" : Not specified. |
| 5784 * - "SERVING" : Currently serving. Instances are created according to the | 5895 /// - "SERVING" : Currently serving. Instances are created according to the |
| 5785 * scaling settings of the version. | 5896 /// scaling settings of the version. |
| 5786 * - "STOPPED" : Disabled. No instances will be created and the scaling | 5897 /// - "STOPPED" : Disabled. No instances will be created and the scaling |
| 5787 * settings are ignored until the state of the version changes to SERVING. | 5898 /// settings are ignored until the state of the version changes to SERVING. |
| 5788 */ | |
| 5789 core.String servingStatus; | 5899 core.String servingStatus; |
| 5790 /** Whether multiple requests can be dispatched to this version at once. */ | 5900 |
| 5901 /// Whether multiple requests can be dispatched to this version at once. |
| 5791 core.bool threadsafe; | 5902 core.bool threadsafe; |
| 5792 /** | 5903 |
| 5793 * Serving URL for this version. Example: | 5904 /// Serving URL for this version. Example: |
| 5794 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly | 5905 /// "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly |
| 5795 */ | |
| 5796 core.String versionUrl; | 5906 core.String versionUrl; |
| 5797 /** Whether to deploy this version in a container on a virtual machine. */ | 5907 |
| 5908 /// Whether to deploy this version in a container on a virtual machine. |
| 5798 core.bool vm; | 5909 core.bool vm; |
| 5799 | 5910 |
| 5800 Version(); | 5911 Version(); |
| 5801 | 5912 |
| 5802 Version.fromJson(core.Map _json) { | 5913 Version.fromJson(core.Map _json) { |
| 5803 if (_json.containsKey("apiConfig")) { | 5914 if (_json.containsKey("apiConfig")) { |
| 5804 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); | 5915 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); |
| 5805 } | 5916 } |
| 5806 if (_json.containsKey("automaticScaling")) { | 5917 if (_json.containsKey("automaticScaling")) { |
| 5807 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); | 5918 automaticScaling = |
| 5919 new AutomaticScaling.fromJson(_json["automaticScaling"]); |
| 5808 } | 5920 } |
| 5809 if (_json.containsKey("basicScaling")) { | 5921 if (_json.containsKey("basicScaling")) { |
| 5810 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); | 5922 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); |
| 5811 } | 5923 } |
| 5812 if (_json.containsKey("betaSettings")) { | 5924 if (_json.containsKey("betaSettings")) { |
| 5813 betaSettings = _json["betaSettings"]; | 5925 betaSettings = _json["betaSettings"]; |
| 5814 } | 5926 } |
| 5815 if (_json.containsKey("createTime")) { | 5927 if (_json.containsKey("createTime")) { |
| 5816 createTime = _json["createTime"]; | 5928 createTime = _json["createTime"]; |
| 5817 } | 5929 } |
| 5818 if (_json.containsKey("createdBy")) { | 5930 if (_json.containsKey("createdBy")) { |
| 5819 createdBy = _json["createdBy"]; | 5931 createdBy = _json["createdBy"]; |
| 5820 } | 5932 } |
| 5821 if (_json.containsKey("defaultExpiration")) { | 5933 if (_json.containsKey("defaultExpiration")) { |
| 5822 defaultExpiration = _json["defaultExpiration"]; | 5934 defaultExpiration = _json["defaultExpiration"]; |
| 5823 } | 5935 } |
| 5824 if (_json.containsKey("deployment")) { | 5936 if (_json.containsKey("deployment")) { |
| 5825 deployment = new Deployment.fromJson(_json["deployment"]); | 5937 deployment = new Deployment.fromJson(_json["deployment"]); |
| 5826 } | 5938 } |
| 5827 if (_json.containsKey("diskUsageBytes")) { | 5939 if (_json.containsKey("diskUsageBytes")) { |
| 5828 diskUsageBytes = _json["diskUsageBytes"]; | 5940 diskUsageBytes = _json["diskUsageBytes"]; |
| 5829 } | 5941 } |
| 5830 if (_json.containsKey("endpointsApiService")) { | 5942 if (_json.containsKey("endpointsApiService")) { |
| 5831 endpointsApiService = new EndpointsApiService.fromJson(_json["endpointsApi
Service"]); | 5943 endpointsApiService = |
| 5944 new EndpointsApiService.fromJson(_json["endpointsApiService"]); |
| 5832 } | 5945 } |
| 5833 if (_json.containsKey("env")) { | 5946 if (_json.containsKey("env")) { |
| 5834 env = _json["env"]; | 5947 env = _json["env"]; |
| 5835 } | 5948 } |
| 5836 if (_json.containsKey("envVariables")) { | 5949 if (_json.containsKey("envVariables")) { |
| 5837 envVariables = _json["envVariables"]; | 5950 envVariables = _json["envVariables"]; |
| 5838 } | 5951 } |
| 5839 if (_json.containsKey("errorHandlers")) { | 5952 if (_json.containsKey("errorHandlers")) { |
| 5840 errorHandlers = _json["errorHandlers"].map((value) => new ErrorHandler.fro
mJson(value)).toList(); | 5953 errorHandlers = _json["errorHandlers"] |
| 5954 .map((value) => new ErrorHandler.fromJson(value)) |
| 5955 .toList(); |
| 5841 } | 5956 } |
| 5842 if (_json.containsKey("handlers")) { | 5957 if (_json.containsKey("handlers")) { |
| 5843 handlers = _json["handlers"].map((value) => new UrlMap.fromJson(value)).to
List(); | 5958 handlers = |
| 5959 _json["handlers"].map((value) => new UrlMap.fromJson(value)).toList(); |
| 5844 } | 5960 } |
| 5845 if (_json.containsKey("healthCheck")) { | 5961 if (_json.containsKey("healthCheck")) { |
| 5846 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]); | 5962 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]); |
| 5847 } | 5963 } |
| 5848 if (_json.containsKey("id")) { | 5964 if (_json.containsKey("id")) { |
| 5849 id = _json["id"]; | 5965 id = _json["id"]; |
| 5850 } | 5966 } |
| 5851 if (_json.containsKey("inboundServices")) { | 5967 if (_json.containsKey("inboundServices")) { |
| 5852 inboundServices = _json["inboundServices"]; | 5968 inboundServices = _json["inboundServices"]; |
| 5853 } | 5969 } |
| 5854 if (_json.containsKey("instanceClass")) { | 5970 if (_json.containsKey("instanceClass")) { |
| 5855 instanceClass = _json["instanceClass"]; | 5971 instanceClass = _json["instanceClass"]; |
| 5856 } | 5972 } |
| 5857 if (_json.containsKey("libraries")) { | 5973 if (_json.containsKey("libraries")) { |
| 5858 libraries = _json["libraries"].map((value) => new Library.fromJson(value))
.toList(); | 5974 libraries = _json["libraries"] |
| 5975 .map((value) => new Library.fromJson(value)) |
| 5976 .toList(); |
| 5859 } | 5977 } |
| 5860 if (_json.containsKey("livenessCheck")) { | 5978 if (_json.containsKey("livenessCheck")) { |
| 5861 livenessCheck = new LivenessCheck.fromJson(_json["livenessCheck"]); | 5979 livenessCheck = new LivenessCheck.fromJson(_json["livenessCheck"]); |
| 5862 } | 5980 } |
| 5863 if (_json.containsKey("manualScaling")) { | 5981 if (_json.containsKey("manualScaling")) { |
| 5864 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); | 5982 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); |
| 5865 } | 5983 } |
| 5866 if (_json.containsKey("name")) { | 5984 if (_json.containsKey("name")) { |
| 5867 name = _json["name"]; | 5985 name = _json["name"]; |
| 5868 } | 5986 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5892 } | 6010 } |
| 5893 if (_json.containsKey("versionUrl")) { | 6011 if (_json.containsKey("versionUrl")) { |
| 5894 versionUrl = _json["versionUrl"]; | 6012 versionUrl = _json["versionUrl"]; |
| 5895 } | 6013 } |
| 5896 if (_json.containsKey("vm")) { | 6014 if (_json.containsKey("vm")) { |
| 5897 vm = _json["vm"]; | 6015 vm = _json["vm"]; |
| 5898 } | 6016 } |
| 5899 } | 6017 } |
| 5900 | 6018 |
| 5901 core.Map<core.String, core.Object> toJson() { | 6019 core.Map<core.String, core.Object> toJson() { |
| 5902 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6020 final core.Map<core.String, core.Object> _json = |
| 6021 new core.Map<core.String, core.Object>(); |
| 5903 if (apiConfig != null) { | 6022 if (apiConfig != null) { |
| 5904 _json["apiConfig"] = (apiConfig).toJson(); | 6023 _json["apiConfig"] = (apiConfig).toJson(); |
| 5905 } | 6024 } |
| 5906 if (automaticScaling != null) { | 6025 if (automaticScaling != null) { |
| 5907 _json["automaticScaling"] = (automaticScaling).toJson(); | 6026 _json["automaticScaling"] = (automaticScaling).toJson(); |
| 5908 } | 6027 } |
| 5909 if (basicScaling != null) { | 6028 if (basicScaling != null) { |
| 5910 _json["basicScaling"] = (basicScaling).toJson(); | 6029 _json["basicScaling"] = (basicScaling).toJson(); |
| 5911 } | 6030 } |
| 5912 if (betaSettings != null) { | 6031 if (betaSettings != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5930 if (endpointsApiService != null) { | 6049 if (endpointsApiService != null) { |
| 5931 _json["endpointsApiService"] = (endpointsApiService).toJson(); | 6050 _json["endpointsApiService"] = (endpointsApiService).toJson(); |
| 5932 } | 6051 } |
| 5933 if (env != null) { | 6052 if (env != null) { |
| 5934 _json["env"] = env; | 6053 _json["env"] = env; |
| 5935 } | 6054 } |
| 5936 if (envVariables != null) { | 6055 if (envVariables != null) { |
| 5937 _json["envVariables"] = envVariables; | 6056 _json["envVariables"] = envVariables; |
| 5938 } | 6057 } |
| 5939 if (errorHandlers != null) { | 6058 if (errorHandlers != null) { |
| 5940 _json["errorHandlers"] = errorHandlers.map((value) => (value).toJson()).to
List(); | 6059 _json["errorHandlers"] = |
| 6060 errorHandlers.map((value) => (value).toJson()).toList(); |
| 5941 } | 6061 } |
| 5942 if (handlers != null) { | 6062 if (handlers != null) { |
| 5943 _json["handlers"] = handlers.map((value) => (value).toJson()).toList(); | 6063 _json["handlers"] = handlers.map((value) => (value).toJson()).toList(); |
| 5944 } | 6064 } |
| 5945 if (healthCheck != null) { | 6065 if (healthCheck != null) { |
| 5946 _json["healthCheck"] = (healthCheck).toJson(); | 6066 _json["healthCheck"] = (healthCheck).toJson(); |
| 5947 } | 6067 } |
| 5948 if (id != null) { | 6068 if (id != null) { |
| 5949 _json["id"] = id; | 6069 _json["id"] = id; |
| 5950 } | 6070 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5993 if (versionUrl != null) { | 6113 if (versionUrl != null) { |
| 5994 _json["versionUrl"] = versionUrl; | 6114 _json["versionUrl"] = versionUrl; |
| 5995 } | 6115 } |
| 5996 if (vm != null) { | 6116 if (vm != null) { |
| 5997 _json["vm"] = vm; | 6117 _json["vm"] = vm; |
| 5998 } | 6118 } |
| 5999 return _json; | 6119 return _json; |
| 6000 } | 6120 } |
| 6001 } | 6121 } |
| 6002 | 6122 |
| 6003 /** | 6123 /// Volumes mounted within the app container. Only applicable for VM runtimes. |
| 6004 * Volumes mounted within the app container. Only applicable for VM runtimes. | |
| 6005 */ | |
| 6006 class Volume { | 6124 class Volume { |
| 6007 /** Unique name for the volume. */ | 6125 /// Unique name for the volume. |
| 6008 core.String name; | 6126 core.String name; |
| 6009 /** Volume size in gigabytes. */ | 6127 |
| 6128 /// Volume size in gigabytes. |
| 6010 core.double sizeGb; | 6129 core.double sizeGb; |
| 6011 /** Underlying volume type, e.g. 'tmpfs'. */ | 6130 |
| 6131 /// Underlying volume type, e.g. 'tmpfs'. |
| 6012 core.String volumeType; | 6132 core.String volumeType; |
| 6013 | 6133 |
| 6014 Volume(); | 6134 Volume(); |
| 6015 | 6135 |
| 6016 Volume.fromJson(core.Map _json) { | 6136 Volume.fromJson(core.Map _json) { |
| 6017 if (_json.containsKey("name")) { | 6137 if (_json.containsKey("name")) { |
| 6018 name = _json["name"]; | 6138 name = _json["name"]; |
| 6019 } | 6139 } |
| 6020 if (_json.containsKey("sizeGb")) { | 6140 if (_json.containsKey("sizeGb")) { |
| 6021 sizeGb = _json["sizeGb"]; | 6141 sizeGb = _json["sizeGb"]; |
| 6022 } | 6142 } |
| 6023 if (_json.containsKey("volumeType")) { | 6143 if (_json.containsKey("volumeType")) { |
| 6024 volumeType = _json["volumeType"]; | 6144 volumeType = _json["volumeType"]; |
| 6025 } | 6145 } |
| 6026 } | 6146 } |
| 6027 | 6147 |
| 6028 core.Map<core.String, core.Object> toJson() { | 6148 core.Map<core.String, core.Object> toJson() { |
| 6029 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6149 final core.Map<core.String, core.Object> _json = |
| 6150 new core.Map<core.String, core.Object>(); |
| 6030 if (name != null) { | 6151 if (name != null) { |
| 6031 _json["name"] = name; | 6152 _json["name"] = name; |
| 6032 } | 6153 } |
| 6033 if (sizeGb != null) { | 6154 if (sizeGb != null) { |
| 6034 _json["sizeGb"] = sizeGb; | 6155 _json["sizeGb"] = sizeGb; |
| 6035 } | 6156 } |
| 6036 if (volumeType != null) { | 6157 if (volumeType != null) { |
| 6037 _json["volumeType"] = volumeType; | 6158 _json["volumeType"] = volumeType; |
| 6038 } | 6159 } |
| 6039 return _json; | 6160 return _json; |
| 6040 } | 6161 } |
| 6041 } | 6162 } |
| 6042 | 6163 |
| 6043 /** The zip file information for a zip deployment. */ | 6164 /// The zip file information for a zip deployment. |
| 6044 class ZipInfo { | 6165 class ZipInfo { |
| 6045 /** | 6166 /// An estimate of the number of files in a zip for a zip deployment. If set, |
| 6046 * An estimate of the number of files in a zip for a zip deployment. If set, | 6167 /// must be greater than or equal to the actual number of files. Used for |
| 6047 * must be greater than or equal to the actual number of files. Used for | 6168 /// optimizing performance; if not provided, deployment may be slow. |
| 6048 * optimizing performance; if not provided, deployment may be slow. | |
| 6049 */ | |
| 6050 core.int filesCount; | 6169 core.int filesCount; |
| 6051 /** | 6170 |
| 6052 * URL of the zip file to deploy from. Must be a URL to a resource in Google | 6171 /// URL of the zip file to deploy from. Must be a URL to a resource in Google |
| 6053 * Cloud Storage in the form | 6172 /// Cloud Storage in the form |
| 6054 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | 6173 /// 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
| 6055 */ | |
| 6056 core.String sourceUrl; | 6174 core.String sourceUrl; |
| 6057 | 6175 |
| 6058 ZipInfo(); | 6176 ZipInfo(); |
| 6059 | 6177 |
| 6060 ZipInfo.fromJson(core.Map _json) { | 6178 ZipInfo.fromJson(core.Map _json) { |
| 6061 if (_json.containsKey("filesCount")) { | 6179 if (_json.containsKey("filesCount")) { |
| 6062 filesCount = _json["filesCount"]; | 6180 filesCount = _json["filesCount"]; |
| 6063 } | 6181 } |
| 6064 if (_json.containsKey("sourceUrl")) { | 6182 if (_json.containsKey("sourceUrl")) { |
| 6065 sourceUrl = _json["sourceUrl"]; | 6183 sourceUrl = _json["sourceUrl"]; |
| 6066 } | 6184 } |
| 6067 } | 6185 } |
| 6068 | 6186 |
| 6069 core.Map<core.String, core.Object> toJson() { | 6187 core.Map<core.String, core.Object> toJson() { |
| 6070 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6188 final core.Map<core.String, core.Object> _json = |
| 6189 new core.Map<core.String, core.Object>(); |
| 6071 if (filesCount != null) { | 6190 if (filesCount != null) { |
| 6072 _json["filesCount"] = filesCount; | 6191 _json["filesCount"] = filesCount; |
| 6073 } | 6192 } |
| 6074 if (sourceUrl != null) { | 6193 if (sourceUrl != null) { |
| 6075 _json["sourceUrl"] = sourceUrl; | 6194 _json["sourceUrl"] = sourceUrl; |
| 6076 } | 6195 } |
| 6077 return _json; | 6196 return _json; |
| 6078 } | 6197 } |
| 6079 } | 6198 } |
| OLD | NEW |