@maxim_mazurok/gapi.client.appengine-v1 0.0.20231109 → 0.0.20231204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tests.ts DELETED
@@ -1,921 +0,0 @@
1
- /* This is stub file for gapi.client.appengine-v1 definition tests */
2
- // IMPORTANT
3
- // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
- // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
-
6
- // Revision: 20231109
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://appengine.googleapis.com/$discovery/rest?version=v1');
12
- /** now we can use gapi.client.appengine */
13
-
14
- /** don't forget to authenticate your client before sending any request to resources: */
15
- /** declare client_id registered in Google Developers Console */
16
- const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
- const scope = [
18
- /** View and manage your applications deployed on Google App Engine */
19
- 'https://www.googleapis.com/auth/appengine.admin',
20
- /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
21
- 'https://www.googleapis.com/auth/cloud-platform',
22
- /** View your data across Google Cloud services and see the email address of your Google Account */
23
- 'https://www.googleapis.com/auth/cloud-platform.read-only',
24
- ];
25
- const immediate = false;
26
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
27
- if (authResult && !authResult.error) {
28
- /** handle successful authorization */
29
- run();
30
- } else {
31
- /** handle authorization error */
32
- }
33
- });
34
-
35
- async function run() {
36
- /**
37
- * Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region
38
- * (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects,
39
- * Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
40
- */
41
- await gapi.client.appengine.apps.create({
42
- }, {
43
- authDomain: "Test string",
44
- codeBucket: "Test string",
45
- databaseType: "Test string",
46
- defaultBucket: "Test string",
47
- defaultCookieExpiration: "Test string",
48
- defaultHostname: "Test string",
49
- dispatchRules: [
50
- {
51
- domain: "Test string",
52
- path: "Test string",
53
- service: "Test string",
54
- }
55
- ],
56
- featureSettings: {
57
- splitHealthChecks: true,
58
- useContainerOptimizedOs: true,
59
- },
60
- gcrDomain: "Test string",
61
- generatedCustomerMetadata: {
62
- A: 42
63
- },
64
- iap: {
65
- enabled: true,
66
- oauth2ClientId: "Test string",
67
- oauth2ClientSecret: "Test string",
68
- oauth2ClientSecretSha256: "Test string",
69
- },
70
- id: "Test string",
71
- locationId: "Test string",
72
- name: "Test string",
73
- serviceAccount: "Test string",
74
- servingStatus: "Test string",
75
- });
76
- /** Gets information about an application. */
77
- await gapi.client.appengine.apps.get({
78
- appsId: "Test string",
79
- includeExtraData: "Test string",
80
- });
81
- /** Lists all the available runtimes for the application. */
82
- await gapi.client.appengine.apps.listRuntimes({
83
- appsId: "Test string",
84
- environment: "Test string",
85
- });
86
- /**
87
- * Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application.
88
- * default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
89
- */
90
- await gapi.client.appengine.apps.patch({
91
- appsId: "Test string",
92
- updateMask: "Test string",
93
- }, {
94
- authDomain: "Test string",
95
- codeBucket: "Test string",
96
- databaseType: "Test string",
97
- defaultBucket: "Test string",
98
- defaultCookieExpiration: "Test string",
99
- defaultHostname: "Test string",
100
- dispatchRules: [
101
- {
102
- domain: "Test string",
103
- path: "Test string",
104
- service: "Test string",
105
- }
106
- ],
107
- featureSettings: {
108
- splitHealthChecks: true,
109
- useContainerOptimizedOs: true,
110
- },
111
- gcrDomain: "Test string",
112
- generatedCustomerMetadata: {
113
- A: 42
114
- },
115
- iap: {
116
- enabled: true,
117
- oauth2ClientId: "Test string",
118
- oauth2ClientSecret: "Test string",
119
- oauth2ClientSecretSha256: "Test string",
120
- },
121
- id: "Test string",
122
- locationId: "Test string",
123
- name: "Test string",
124
- serviceAccount: "Test string",
125
- servingStatus: "Test string",
126
- });
127
- /**
128
- * Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an
129
- * error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to
130
- * recreate it. Instead, you should attempt to use the IAM undelete API if possible at
131
- * https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the
132
- * deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
133
- */
134
- await gapi.client.appengine.apps.repair({
135
- appsId: "Test string",
136
- }, {
137
- });
138
- /** Uploads the specified SSL certificate. */
139
- await gapi.client.appengine.apps.authorizedCertificates.create({
140
- appsId: "Test string",
141
- }, {
142
- certificateRawData: {
143
- privateKey: "Test string",
144
- publicCertificate: "Test string",
145
- },
146
- displayName: "Test string",
147
- domainMappingsCount: 42,
148
- domainNames: [
149
- "Test string"
150
- ],
151
- expireTime: "Test string",
152
- id: "Test string",
153
- managedCertificate: {
154
- lastRenewalTime: "Test string",
155
- status: "Test string",
156
- },
157
- name: "Test string",
158
- visibleDomainMappings: [
159
- "Test string"
160
- ],
161
- });
162
- /** Deletes the specified SSL certificate. */
163
- await gapi.client.appengine.apps.authorizedCertificates.delete({
164
- appsId: "Test string",
165
- authorizedCertificatesId: "Test string",
166
- });
167
- /** Gets the specified SSL certificate. */
168
- await gapi.client.appengine.apps.authorizedCertificates.get({
169
- appsId: "Test string",
170
- authorizedCertificatesId: "Test string",
171
- view: "Test string",
172
- });
173
- /** Lists all SSL certificates the user is authorized to administer. */
174
- await gapi.client.appengine.apps.authorizedCertificates.list({
175
- appsId: "Test string",
176
- pageSize: 42,
177
- pageToken: "Test string",
178
- view: "Test string",
179
- });
180
- /**
181
- * Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be
182
- * applicable to the same domains as the original certificate. The certificate display_name may also be updated.
183
- */
184
- await gapi.client.appengine.apps.authorizedCertificates.patch({
185
- appsId: "Test string",
186
- authorizedCertificatesId: "Test string",
187
- updateMask: "Test string",
188
- }, {
189
- certificateRawData: {
190
- privateKey: "Test string",
191
- publicCertificate: "Test string",
192
- },
193
- displayName: "Test string",
194
- domainMappingsCount: 42,
195
- domainNames: [
196
- "Test string"
197
- ],
198
- expireTime: "Test string",
199
- id: "Test string",
200
- managedCertificate: {
201
- lastRenewalTime: "Test string",
202
- status: "Test string",
203
- },
204
- name: "Test string",
205
- visibleDomainMappings: [
206
- "Test string"
207
- ],
208
- });
209
- /** Lists all domains the user is authorized to administer. */
210
- await gapi.client.appengine.apps.authorizedDomains.list({
211
- appsId: "Test string",
212
- pageSize: 42,
213
- pageToken: "Test string",
214
- });
215
- /**
216
- * Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see
217
- * AuthorizedDomains.ListAuthorizedDomains.
218
- */
219
- await gapi.client.appengine.apps.domainMappings.create({
220
- appsId: "Test string",
221
- overrideStrategy: "Test string",
222
- }, {
223
- id: "Test string",
224
- name: "Test string",
225
- resourceRecords: [
226
- {
227
- name: "Test string",
228
- rrdata: "Test string",
229
- type: "Test string",
230
- }
231
- ],
232
- sslSettings: {
233
- certificateId: "Test string",
234
- pendingManagedCertificateId: "Test string",
235
- sslManagementType: "Test string",
236
- },
237
- });
238
- /** Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource. */
239
- await gapi.client.appengine.apps.domainMappings.delete({
240
- appsId: "Test string",
241
- domainMappingsId: "Test string",
242
- });
243
- /** Gets the specified domain mapping. */
244
- await gapi.client.appengine.apps.domainMappings.get({
245
- appsId: "Test string",
246
- domainMappingsId: "Test string",
247
- });
248
- /** Lists the domain mappings on an application. */
249
- await gapi.client.appengine.apps.domainMappings.list({
250
- appsId: "Test string",
251
- pageSize: 42,
252
- pageToken: "Test string",
253
- });
254
- /**
255
- * Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to
256
- * administer the associated domain in order to update a DomainMapping resource.
257
- */
258
- await gapi.client.appengine.apps.domainMappings.patch({
259
- appsId: "Test string",
260
- domainMappingsId: "Test string",
261
- updateMask: "Test string",
262
- }, {
263
- id: "Test string",
264
- name: "Test string",
265
- resourceRecords: [
266
- {
267
- name: "Test string",
268
- rrdata: "Test string",
269
- type: "Test string",
270
- }
271
- ],
272
- sslSettings: {
273
- certificateId: "Test string",
274
- pendingManagedCertificateId: "Test string",
275
- sslManagementType: "Test string",
276
- },
277
- });
278
- /**
279
- * Replaces the entire firewall ruleset in one bulk operation. This overrides and replaces the rules of an existing firewall with the new rules.If the final rule does not match traffic
280
- * with the '*' wildcard IP range, then an "allow all" rule is explicitly added to the end of the list.
281
- */
282
- await gapi.client.appengine.apps.firewall.ingressRules.batchUpdate({
283
- appsId: "Test string",
284
- }, {
285
- ingressRules: [
286
- {
287
- action: "Test string",
288
- description: "Test string",
289
- priority: 42,
290
- sourceRange: "Test string",
291
- }
292
- ],
293
- });
294
- /** Creates a firewall rule for the application. */
295
- await gapi.client.appengine.apps.firewall.ingressRules.create({
296
- appsId: "Test string",
297
- }, {
298
- action: "Test string",
299
- description: "Test string",
300
- priority: 42,
301
- sourceRange: "Test string",
302
- });
303
- /** Deletes the specified firewall rule. */
304
- await gapi.client.appengine.apps.firewall.ingressRules.delete({
305
- appsId: "Test string",
306
- ingressRulesId: "Test string",
307
- });
308
- /** Gets the specified firewall rule. */
309
- await gapi.client.appengine.apps.firewall.ingressRules.get({
310
- appsId: "Test string",
311
- ingressRulesId: "Test string",
312
- });
313
- /** Lists the firewall rules of an application. */
314
- await gapi.client.appengine.apps.firewall.ingressRules.list({
315
- appsId: "Test string",
316
- matchingAddress: "Test string",
317
- pageSize: 42,
318
- pageToken: "Test string",
319
- });
320
- /** Updates the specified firewall rule. */
321
- await gapi.client.appengine.apps.firewall.ingressRules.patch({
322
- appsId: "Test string",
323
- ingressRulesId: "Test string",
324
- updateMask: "Test string",
325
- }, {
326
- action: "Test string",
327
- description: "Test string",
328
- priority: 42,
329
- sourceRange: "Test string",
330
- });
331
- /** Gets information about a location. */
332
- await gapi.client.appengine.apps.locations.get({
333
- appsId: "Test string",
334
- locationsId: "Test string",
335
- });
336
- /** Lists information about the supported locations for this service. */
337
- await gapi.client.appengine.apps.locations.list({
338
- appsId: "Test string",
339
- filter: "Test string",
340
- pageSize: 42,
341
- pageToken: "Test string",
342
- });
343
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
344
- await gapi.client.appengine.apps.operations.get({
345
- appsId: "Test string",
346
- operationsId: "Test string",
347
- });
348
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
349
- await gapi.client.appengine.apps.operations.list({
350
- appsId: "Test string",
351
- filter: "Test string",
352
- pageSize: 42,
353
- pageToken: "Test string",
354
- });
355
- /** Deletes the specified service and all enclosed versions. */
356
- await gapi.client.appengine.apps.services.delete({
357
- appsId: "Test string",
358
- servicesId: "Test string",
359
- });
360
- /** Gets the current configuration of the specified service. */
361
- await gapi.client.appengine.apps.services.get({
362
- appsId: "Test string",
363
- servicesId: "Test string",
364
- });
365
- /** Lists all the services in the application. */
366
- await gapi.client.appengine.apps.services.list({
367
- appsId: "Test string",
368
- pageSize: 42,
369
- pageToken: "Test string",
370
- });
371
- /** Updates the configuration of the specified service. */
372
- await gapi.client.appengine.apps.services.patch({
373
- appsId: "Test string",
374
- migrateTraffic: true,
375
- servicesId: "Test string",
376
- updateMask: "Test string",
377
- }, {
378
- generatedCustomerMetadata: {
379
- A: 42
380
- },
381
- id: "Test string",
382
- labels: {
383
- A: "Test string"
384
- },
385
- name: "Test string",
386
- networkSettings: {
387
- ingressTrafficAllowed: "Test string",
388
- },
389
- split: {
390
- allocations: {
391
- A: 42
392
- },
393
- shardBy: "Test string",
394
- },
395
- });
396
- /** Deploys code and resource files to a new version. */
397
- await gapi.client.appengine.apps.services.versions.create({
398
- appsId: "Test string",
399
- servicesId: "Test string",
400
- }, {
401
- apiConfig: {
402
- authFailAction: "Test string",
403
- login: "Test string",
404
- script: "Test string",
405
- securityLevel: "Test string",
406
- url: "Test string",
407
- },
408
- appEngineApis: true,
409
- automaticScaling: {
410
- coolDownPeriod: "Test string",
411
- cpuUtilization: {
412
- aggregationWindowLength: "Test string",
413
- targetUtilization: 42,
414
- },
415
- diskUtilization: {
416
- targetReadBytesPerSecond: 42,
417
- targetReadOpsPerSecond: 42,
418
- targetWriteBytesPerSecond: 42,
419
- targetWriteOpsPerSecond: 42,
420
- },
421
- maxConcurrentRequests: 42,
422
- maxIdleInstances: 42,
423
- maxPendingLatency: "Test string",
424
- maxTotalInstances: 42,
425
- minIdleInstances: 42,
426
- minPendingLatency: "Test string",
427
- minTotalInstances: 42,
428
- networkUtilization: {
429
- targetReceivedBytesPerSecond: 42,
430
- targetReceivedPacketsPerSecond: 42,
431
- targetSentBytesPerSecond: 42,
432
- targetSentPacketsPerSecond: 42,
433
- },
434
- requestUtilization: {
435
- targetConcurrentRequests: 42,
436
- targetRequestCountPerSecond: 42,
437
- },
438
- standardSchedulerSettings: {
439
- maxInstances: 42,
440
- minInstances: 42,
441
- targetCpuUtilization: 42,
442
- targetThroughputUtilization: 42,
443
- },
444
- },
445
- basicScaling: {
446
- idleTimeout: "Test string",
447
- maxInstances: 42,
448
- },
449
- betaSettings: {
450
- A: "Test string"
451
- },
452
- buildEnvVariables: {
453
- A: "Test string"
454
- },
455
- createdBy: "Test string",
456
- createTime: "Test string",
457
- defaultExpiration: "Test string",
458
- deployment: {
459
- cloudBuildOptions: {
460
- appYamlPath: "Test string",
461
- cloudBuildTimeout: "Test string",
462
- },
463
- container: {
464
- image: "Test string",
465
- },
466
- files: {
467
- A: {
468
- mimeType: "Test string",
469
- sha1Sum: "Test string",
470
- sourceUrl: "Test string",
471
- }
472
- },
473
- zip: {
474
- filesCount: 42,
475
- sourceUrl: "Test string",
476
- },
477
- },
478
- diskUsageBytes: "Test string",
479
- endpointsApiService: {
480
- configId: "Test string",
481
- disableTraceSampling: true,
482
- name: "Test string",
483
- rolloutStrategy: "Test string",
484
- },
485
- entrypoint: {
486
- shell: "Test string",
487
- },
488
- env: "Test string",
489
- envVariables: {
490
- A: "Test string"
491
- },
492
- errorHandlers: [
493
- {
494
- errorCode: "Test string",
495
- mimeType: "Test string",
496
- staticFile: "Test string",
497
- }
498
- ],
499
- flexibleRuntimeSettings: {
500
- operatingSystem: "Test string",
501
- runtimeVersion: "Test string",
502
- },
503
- generatedCustomerMetadata: {
504
- A: 42
505
- },
506
- handlers: [
507
- {
508
- apiEndpoint: {
509
- scriptPath: "Test string",
510
- },
511
- authFailAction: "Test string",
512
- login: "Test string",
513
- redirectHttpResponseCode: "Test string",
514
- script: {
515
- scriptPath: "Test string",
516
- },
517
- securityLevel: "Test string",
518
- staticFiles: {
519
- applicationReadable: true,
520
- expiration: "Test string",
521
- httpHeaders: {
522
- A: "Test string"
523
- },
524
- mimeType: "Test string",
525
- path: "Test string",
526
- requireMatchingFile: true,
527
- uploadPathRegex: "Test string",
528
- },
529
- urlRegex: "Test string",
530
- }
531
- ],
532
- healthCheck: {
533
- checkInterval: "Test string",
534
- disableHealthCheck: true,
535
- healthyThreshold: 42,
536
- host: "Test string",
537
- restartThreshold: 42,
538
- timeout: "Test string",
539
- unhealthyThreshold: 42,
540
- },
541
- id: "Test string",
542
- inboundServices: [
543
- "Test string"
544
- ],
545
- instanceClass: "Test string",
546
- libraries: [
547
- {
548
- name: "Test string",
549
- version: "Test string",
550
- }
551
- ],
552
- livenessCheck: {
553
- checkInterval: "Test string",
554
- failureThreshold: 42,
555
- host: "Test string",
556
- initialDelay: "Test string",
557
- path: "Test string",
558
- successThreshold: 42,
559
- timeout: "Test string",
560
- },
561
- manualScaling: {
562
- instances: 42,
563
- },
564
- name: "Test string",
565
- network: {
566
- forwardedPorts: [
567
- "Test string"
568
- ],
569
- instanceIpMode: "Test string",
570
- instanceTag: "Test string",
571
- name: "Test string",
572
- sessionAffinity: true,
573
- subnetworkName: "Test string",
574
- },
575
- nobuildFilesRegex: "Test string",
576
- readinessCheck: {
577
- appStartTimeout: "Test string",
578
- checkInterval: "Test string",
579
- failureThreshold: 42,
580
- host: "Test string",
581
- path: "Test string",
582
- successThreshold: 42,
583
- timeout: "Test string",
584
- },
585
- resources: {
586
- cpu: 42,
587
- diskGb: 42,
588
- kmsKeyReference: "Test string",
589
- memoryGb: 42,
590
- volumes: [
591
- {
592
- name: "Test string",
593
- sizeGb: 42,
594
- volumeType: "Test string",
595
- }
596
- ],
597
- },
598
- runtime: "Test string",
599
- runtimeApiVersion: "Test string",
600
- runtimeChannel: "Test string",
601
- runtimeMainExecutablePath: "Test string",
602
- serviceAccount: "Test string",
603
- servingStatus: "Test string",
604
- threadsafe: true,
605
- versionUrl: "Test string",
606
- vm: true,
607
- vpcAccessConnector: {
608
- egressSetting: "Test string",
609
- name: "Test string",
610
- },
611
- zones: [
612
- "Test string"
613
- ],
614
- });
615
- /** Deletes an existing Version resource. */
616
- await gapi.client.appengine.apps.services.versions.delete({
617
- appsId: "Test string",
618
- servicesId: "Test string",
619
- versionsId: "Test string",
620
- });
621
- /** Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource. */
622
- await gapi.client.appengine.apps.services.versions.get({
623
- appsId: "Test string",
624
- servicesId: "Test string",
625
- versionsId: "Test string",
626
- view: "Test string",
627
- });
628
- /** Lists the versions of a service. */
629
- await gapi.client.appengine.apps.services.versions.list({
630
- appsId: "Test string",
631
- pageSize: 42,
632
- pageToken: "Test string",
633
- servicesId: "Test string",
634
- view: "Test string",
635
- });
636
- /**
637
- * Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard
638
- * environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard
639
- * environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
640
- * automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
641
- * automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
642
- * automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
643
- * automaticScaling.standard_scheduler_settings.target_cpu_utilization
644
- * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
645
- * automaticScaling.standard_scheduler_settings.target_throughput_utilization
646
- * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment:
647
- * serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances
648
- * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status
649
- * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment:
650
- * automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
651
- * automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
652
- * automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)
653
- * automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)manual
654
- * scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)
655
- */
656
- await gapi.client.appengine.apps.services.versions.patch({
657
- appsId: "Test string",
658
- servicesId: "Test string",
659
- updateMask: "Test string",
660
- versionsId: "Test string",
661
- }, {
662
- apiConfig: {
663
- authFailAction: "Test string",
664
- login: "Test string",
665
- script: "Test string",
666
- securityLevel: "Test string",
667
- url: "Test string",
668
- },
669
- appEngineApis: true,
670
- automaticScaling: {
671
- coolDownPeriod: "Test string",
672
- cpuUtilization: {
673
- aggregationWindowLength: "Test string",
674
- targetUtilization: 42,
675
- },
676
- diskUtilization: {
677
- targetReadBytesPerSecond: 42,
678
- targetReadOpsPerSecond: 42,
679
- targetWriteBytesPerSecond: 42,
680
- targetWriteOpsPerSecond: 42,
681
- },
682
- maxConcurrentRequests: 42,
683
- maxIdleInstances: 42,
684
- maxPendingLatency: "Test string",
685
- maxTotalInstances: 42,
686
- minIdleInstances: 42,
687
- minPendingLatency: "Test string",
688
- minTotalInstances: 42,
689
- networkUtilization: {
690
- targetReceivedBytesPerSecond: 42,
691
- targetReceivedPacketsPerSecond: 42,
692
- targetSentBytesPerSecond: 42,
693
- targetSentPacketsPerSecond: 42,
694
- },
695
- requestUtilization: {
696
- targetConcurrentRequests: 42,
697
- targetRequestCountPerSecond: 42,
698
- },
699
- standardSchedulerSettings: {
700
- maxInstances: 42,
701
- minInstances: 42,
702
- targetCpuUtilization: 42,
703
- targetThroughputUtilization: 42,
704
- },
705
- },
706
- basicScaling: {
707
- idleTimeout: "Test string",
708
- maxInstances: 42,
709
- },
710
- betaSettings: {
711
- A: "Test string"
712
- },
713
- buildEnvVariables: {
714
- A: "Test string"
715
- },
716
- createdBy: "Test string",
717
- createTime: "Test string",
718
- defaultExpiration: "Test string",
719
- deployment: {
720
- cloudBuildOptions: {
721
- appYamlPath: "Test string",
722
- cloudBuildTimeout: "Test string",
723
- },
724
- container: {
725
- image: "Test string",
726
- },
727
- files: {
728
- A: {
729
- mimeType: "Test string",
730
- sha1Sum: "Test string",
731
- sourceUrl: "Test string",
732
- }
733
- },
734
- zip: {
735
- filesCount: 42,
736
- sourceUrl: "Test string",
737
- },
738
- },
739
- diskUsageBytes: "Test string",
740
- endpointsApiService: {
741
- configId: "Test string",
742
- disableTraceSampling: true,
743
- name: "Test string",
744
- rolloutStrategy: "Test string",
745
- },
746
- entrypoint: {
747
- shell: "Test string",
748
- },
749
- env: "Test string",
750
- envVariables: {
751
- A: "Test string"
752
- },
753
- errorHandlers: [
754
- {
755
- errorCode: "Test string",
756
- mimeType: "Test string",
757
- staticFile: "Test string",
758
- }
759
- ],
760
- flexibleRuntimeSettings: {
761
- operatingSystem: "Test string",
762
- runtimeVersion: "Test string",
763
- },
764
- generatedCustomerMetadata: {
765
- A: 42
766
- },
767
- handlers: [
768
- {
769
- apiEndpoint: {
770
- scriptPath: "Test string",
771
- },
772
- authFailAction: "Test string",
773
- login: "Test string",
774
- redirectHttpResponseCode: "Test string",
775
- script: {
776
- scriptPath: "Test string",
777
- },
778
- securityLevel: "Test string",
779
- staticFiles: {
780
- applicationReadable: true,
781
- expiration: "Test string",
782
- httpHeaders: {
783
- A: "Test string"
784
- },
785
- mimeType: "Test string",
786
- path: "Test string",
787
- requireMatchingFile: true,
788
- uploadPathRegex: "Test string",
789
- },
790
- urlRegex: "Test string",
791
- }
792
- ],
793
- healthCheck: {
794
- checkInterval: "Test string",
795
- disableHealthCheck: true,
796
- healthyThreshold: 42,
797
- host: "Test string",
798
- restartThreshold: 42,
799
- timeout: "Test string",
800
- unhealthyThreshold: 42,
801
- },
802
- id: "Test string",
803
- inboundServices: [
804
- "Test string"
805
- ],
806
- instanceClass: "Test string",
807
- libraries: [
808
- {
809
- name: "Test string",
810
- version: "Test string",
811
- }
812
- ],
813
- livenessCheck: {
814
- checkInterval: "Test string",
815
- failureThreshold: 42,
816
- host: "Test string",
817
- initialDelay: "Test string",
818
- path: "Test string",
819
- successThreshold: 42,
820
- timeout: "Test string",
821
- },
822
- manualScaling: {
823
- instances: 42,
824
- },
825
- name: "Test string",
826
- network: {
827
- forwardedPorts: [
828
- "Test string"
829
- ],
830
- instanceIpMode: "Test string",
831
- instanceTag: "Test string",
832
- name: "Test string",
833
- sessionAffinity: true,
834
- subnetworkName: "Test string",
835
- },
836
- nobuildFilesRegex: "Test string",
837
- readinessCheck: {
838
- appStartTimeout: "Test string",
839
- checkInterval: "Test string",
840
- failureThreshold: 42,
841
- host: "Test string",
842
- path: "Test string",
843
- successThreshold: 42,
844
- timeout: "Test string",
845
- },
846
- resources: {
847
- cpu: 42,
848
- diskGb: 42,
849
- kmsKeyReference: "Test string",
850
- memoryGb: 42,
851
- volumes: [
852
- {
853
- name: "Test string",
854
- sizeGb: 42,
855
- volumeType: "Test string",
856
- }
857
- ],
858
- },
859
- runtime: "Test string",
860
- runtimeApiVersion: "Test string",
861
- runtimeChannel: "Test string",
862
- runtimeMainExecutablePath: "Test string",
863
- serviceAccount: "Test string",
864
- servingStatus: "Test string",
865
- threadsafe: true,
866
- versionUrl: "Test string",
867
- vm: true,
868
- vpcAccessConnector: {
869
- egressSetting: "Test string",
870
- name: "Test string",
871
- },
872
- zones: [
873
- "Test string"
874
- ],
875
- });
876
- /**
877
- * Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to
878
- * serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable
879
- * for instances in App Engine flexible environment.
880
- */
881
- await gapi.client.appengine.apps.services.versions.instances.debug({
882
- appsId: "Test string",
883
- instancesId: "Test string",
884
- servicesId: "Test string",
885
- versionsId: "Test string",
886
- }, {
887
- sshKey: "Test string",
888
- });
889
- /**
890
- * Stops a running instance.The instance might be automatically recreated based on the scaling settings of the version. For more information, see "How Instances are Managed" (standard
891
- * environment (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | flexible environment
892
- * (https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)).To ensure that instances are not re-created and avoid getting billed, you can stop all instances
893
- * within the target version by changing the serving status of the version to STOPPED with the apps.services.versions.patch
894
- * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) method.
895
- */
896
- await gapi.client.appengine.apps.services.versions.instances.delete({
897
- appsId: "Test string",
898
- instancesId: "Test string",
899
- servicesId: "Test string",
900
- versionsId: "Test string",
901
- });
902
- /** Gets instance information. */
903
- await gapi.client.appengine.apps.services.versions.instances.get({
904
- appsId: "Test string",
905
- instancesId: "Test string",
906
- servicesId: "Test string",
907
- versionsId: "Test string",
908
- });
909
- /**
910
- * Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API
911
- * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
912
- */
913
- await gapi.client.appengine.apps.services.versions.instances.list({
914
- appsId: "Test string",
915
- pageSize: 42,
916
- pageToken: "Test string",
917
- servicesId: "Test string",
918
- versionsId: "Test string",
919
- });
920
- }
921
- });