@maxim_mazurok/gapi.client.run-v1 0.0.20231112 → 0.0.20231203

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,2603 +0,0 @@
1
- /* This is stub file for gapi.client.run-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: 20231112
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://run.googleapis.com/$discovery/rest?version=v1');
12
- /** now we can use gapi.client.run */
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
- /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
19
- 'https://www.googleapis.com/auth/cloud-platform',
20
- ];
21
- const immediate = false;
22
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
- if (authResult && !authResult.error) {
24
- /** handle successful authorization */
25
- run();
26
- } else {
27
- /** handle authorization error */
28
- }
29
- });
30
-
31
- async function run() {
32
- /** List authorized domains. */
33
- await gapi.client.run.namespaces.authorizeddomains.list({
34
- pageSize: 42,
35
- pageToken: "Test string",
36
- parent: "Test string",
37
- });
38
- /** Get information about a configuration. */
39
- await gapi.client.run.namespaces.configurations.get({
40
- name: "Test string",
41
- });
42
- /** List configurations. */
43
- await gapi.client.run.namespaces.configurations.list({
44
- continue: "Test string",
45
- fieldSelector: "Test string",
46
- includeUninitialized: true,
47
- labelSelector: "Test string",
48
- limit: 42,
49
- parent: "Test string",
50
- resourceVersion: "Test string",
51
- watch: true,
52
- });
53
- /** Create a new domain mapping. */
54
- await gapi.client.run.namespaces.domainmappings.create({
55
- dryRun: "Test string",
56
- parent: "Test string",
57
- }, {
58
- apiVersion: "Test string",
59
- kind: "Test string",
60
- metadata: {
61
- annotations: {
62
- A: "Test string"
63
- },
64
- clusterName: "Test string",
65
- creationTimestamp: "Test string",
66
- deletionGracePeriodSeconds: 42,
67
- deletionTimestamp: "Test string",
68
- finalizers: [
69
- "Test string"
70
- ],
71
- generateName: "Test string",
72
- generation: 42,
73
- labels: {
74
- A: "Test string"
75
- },
76
- name: "Test string",
77
- namespace: "Test string",
78
- ownerReferences: [
79
- {
80
- apiVersion: "Test string",
81
- blockOwnerDeletion: true,
82
- controller: true,
83
- kind: "Test string",
84
- name: "Test string",
85
- uid: "Test string",
86
- }
87
- ],
88
- resourceVersion: "Test string",
89
- selfLink: "Test string",
90
- uid: "Test string",
91
- },
92
- spec: {
93
- certificateMode: "Test string",
94
- forceOverride: true,
95
- routeName: "Test string",
96
- },
97
- status: {
98
- conditions: [
99
- {
100
- lastTransitionTime: "Test string",
101
- message: "Test string",
102
- reason: "Test string",
103
- severity: "Test string",
104
- status: "Test string",
105
- type: "Test string",
106
- }
107
- ],
108
- mappedRouteName: "Test string",
109
- observedGeneration: 42,
110
- resourceRecords: [
111
- {
112
- name: "Test string",
113
- rrdata: "Test string",
114
- type: "Test string",
115
- }
116
- ],
117
- url: "Test string",
118
- },
119
- });
120
- /** Delete a domain mapping. */
121
- await gapi.client.run.namespaces.domainmappings.delete({
122
- apiVersion: "Test string",
123
- dryRun: "Test string",
124
- kind: "Test string",
125
- name: "Test string",
126
- propagationPolicy: "Test string",
127
- });
128
- /** Get information about a domain mapping. */
129
- await gapi.client.run.namespaces.domainmappings.get({
130
- name: "Test string",
131
- });
132
- /** List all domain mappings. */
133
- await gapi.client.run.namespaces.domainmappings.list({
134
- continue: "Test string",
135
- fieldSelector: "Test string",
136
- includeUninitialized: true,
137
- labelSelector: "Test string",
138
- limit: 42,
139
- parent: "Test string",
140
- resourceVersion: "Test string",
141
- watch: true,
142
- });
143
- /** Cancel an execution. */
144
- await gapi.client.run.namespaces.executions.cancel({
145
- name: "Test string",
146
- }, {
147
- });
148
- /** Delete an execution. */
149
- await gapi.client.run.namespaces.executions.delete({
150
- apiVersion: "Test string",
151
- kind: "Test string",
152
- name: "Test string",
153
- propagationPolicy: "Test string",
154
- });
155
- /** Get information about an execution. */
156
- await gapi.client.run.namespaces.executions.get({
157
- name: "Test string",
158
- });
159
- /** List executions. */
160
- await gapi.client.run.namespaces.executions.list({
161
- continue: "Test string",
162
- fieldSelector: "Test string",
163
- includeUninitialized: true,
164
- labelSelector: "Test string",
165
- limit: 42,
166
- parent: "Test string",
167
- resourceVersion: "Test string",
168
- watch: true,
169
- });
170
- /** Create a job. */
171
- await gapi.client.run.namespaces.jobs.create({
172
- parent: "Test string",
173
- }, {
174
- apiVersion: "Test string",
175
- kind: "Test string",
176
- metadata: {
177
- annotations: {
178
- A: "Test string"
179
- },
180
- clusterName: "Test string",
181
- creationTimestamp: "Test string",
182
- deletionGracePeriodSeconds: 42,
183
- deletionTimestamp: "Test string",
184
- finalizers: [
185
- "Test string"
186
- ],
187
- generateName: "Test string",
188
- generation: 42,
189
- labels: {
190
- A: "Test string"
191
- },
192
- name: "Test string",
193
- namespace: "Test string",
194
- ownerReferences: [
195
- {
196
- apiVersion: "Test string",
197
- blockOwnerDeletion: true,
198
- controller: true,
199
- kind: "Test string",
200
- name: "Test string",
201
- uid: "Test string",
202
- }
203
- ],
204
- resourceVersion: "Test string",
205
- selfLink: "Test string",
206
- uid: "Test string",
207
- },
208
- spec: {
209
- template: {
210
- metadata: {
211
- annotations: {
212
- A: "Test string"
213
- },
214
- clusterName: "Test string",
215
- creationTimestamp: "Test string",
216
- deletionGracePeriodSeconds: 42,
217
- deletionTimestamp: "Test string",
218
- finalizers: [
219
- "Test string"
220
- ],
221
- generateName: "Test string",
222
- generation: 42,
223
- labels: {
224
- A: "Test string"
225
- },
226
- name: "Test string",
227
- namespace: "Test string",
228
- ownerReferences: [
229
- {
230
- apiVersion: "Test string",
231
- blockOwnerDeletion: true,
232
- controller: true,
233
- kind: "Test string",
234
- name: "Test string",
235
- uid: "Test string",
236
- }
237
- ],
238
- resourceVersion: "Test string",
239
- selfLink: "Test string",
240
- uid: "Test string",
241
- },
242
- spec: {
243
- parallelism: 42,
244
- taskCount: 42,
245
- template: {
246
- spec: {
247
- containers: [
248
- {
249
- args: [
250
- "Test string"
251
- ],
252
- command: [
253
- "Test string"
254
- ],
255
- env: [
256
- {
257
- name: "Test string",
258
- value: "Test string",
259
- valueFrom: {
260
- configMapKeyRef: {
261
- key: "Test string",
262
- localObjectReference: {
263
- name: "Test string",
264
- },
265
- name: "Test string",
266
- optional: true,
267
- },
268
- secretKeyRef: {
269
- key: "Test string",
270
- localObjectReference: {
271
- name: "Test string",
272
- },
273
- name: "Test string",
274
- optional: true,
275
- },
276
- },
277
- }
278
- ],
279
- envFrom: [
280
- {
281
- configMapRef: {
282
- localObjectReference: {
283
- name: "Test string",
284
- },
285
- name: "Test string",
286
- optional: true,
287
- },
288
- prefix: "Test string",
289
- secretRef: {
290
- localObjectReference: {
291
- name: "Test string",
292
- },
293
- name: "Test string",
294
- optional: true,
295
- },
296
- }
297
- ],
298
- image: "Test string",
299
- imagePullPolicy: "Test string",
300
- livenessProbe: {
301
- exec: {
302
- command: [
303
- "Test string"
304
- ],
305
- },
306
- failureThreshold: 42,
307
- grpc: {
308
- port: 42,
309
- service: "Test string",
310
- },
311
- httpGet: {
312
- host: "Test string",
313
- httpHeaders: [
314
- {
315
- name: "Test string",
316
- value: "Test string",
317
- }
318
- ],
319
- path: "Test string",
320
- port: 42,
321
- scheme: "Test string",
322
- },
323
- initialDelaySeconds: 42,
324
- periodSeconds: 42,
325
- successThreshold: 42,
326
- tcpSocket: {
327
- host: "Test string",
328
- port: 42,
329
- },
330
- timeoutSeconds: 42,
331
- },
332
- name: "Test string",
333
- ports: [
334
- {
335
- containerPort: 42,
336
- name: "Test string",
337
- protocol: "Test string",
338
- }
339
- ],
340
- readinessProbe: {
341
- exec: {
342
- command: [
343
- "Test string"
344
- ],
345
- },
346
- failureThreshold: 42,
347
- grpc: {
348
- port: 42,
349
- service: "Test string",
350
- },
351
- httpGet: {
352
- host: "Test string",
353
- httpHeaders: [
354
- {
355
- name: "Test string",
356
- value: "Test string",
357
- }
358
- ],
359
- path: "Test string",
360
- port: 42,
361
- scheme: "Test string",
362
- },
363
- initialDelaySeconds: 42,
364
- periodSeconds: 42,
365
- successThreshold: 42,
366
- tcpSocket: {
367
- host: "Test string",
368
- port: 42,
369
- },
370
- timeoutSeconds: 42,
371
- },
372
- resources: {
373
- limits: {
374
- A: "Test string"
375
- },
376
- requests: {
377
- A: "Test string"
378
- },
379
- },
380
- securityContext: {
381
- runAsUser: 42,
382
- },
383
- startupProbe: {
384
- exec: {
385
- command: [
386
- "Test string"
387
- ],
388
- },
389
- failureThreshold: 42,
390
- grpc: {
391
- port: 42,
392
- service: "Test string",
393
- },
394
- httpGet: {
395
- host: "Test string",
396
- httpHeaders: [
397
- {
398
- name: "Test string",
399
- value: "Test string",
400
- }
401
- ],
402
- path: "Test string",
403
- port: 42,
404
- scheme: "Test string",
405
- },
406
- initialDelaySeconds: 42,
407
- periodSeconds: 42,
408
- successThreshold: 42,
409
- tcpSocket: {
410
- host: "Test string",
411
- port: 42,
412
- },
413
- timeoutSeconds: 42,
414
- },
415
- terminationMessagePath: "Test string",
416
- terminationMessagePolicy: "Test string",
417
- volumeMounts: [
418
- {
419
- mountPath: "Test string",
420
- name: "Test string",
421
- readOnly: true,
422
- subPath: "Test string",
423
- }
424
- ],
425
- workingDir: "Test string",
426
- }
427
- ],
428
- maxRetries: 42,
429
- serviceAccountName: "Test string",
430
- timeoutSeconds: "Test string",
431
- volumes: [
432
- {
433
- configMap: {
434
- defaultMode: 42,
435
- items: [
436
- {
437
- key: "Test string",
438
- mode: 42,
439
- path: "Test string",
440
- }
441
- ],
442
- name: "Test string",
443
- optional: true,
444
- },
445
- emptyDir: {
446
- medium: "Test string",
447
- sizeLimit: "Test string",
448
- },
449
- name: "Test string",
450
- secret: {
451
- defaultMode: 42,
452
- items: [
453
- {
454
- key: "Test string",
455
- mode: 42,
456
- path: "Test string",
457
- }
458
- ],
459
- optional: true,
460
- secretName: "Test string",
461
- },
462
- }
463
- ],
464
- },
465
- },
466
- },
467
- },
468
- },
469
- status: {
470
- conditions: [
471
- {
472
- lastTransitionTime: "Test string",
473
- message: "Test string",
474
- reason: "Test string",
475
- severity: "Test string",
476
- status: "Test string",
477
- type: "Test string",
478
- }
479
- ],
480
- executionCount: 42,
481
- latestCreatedExecution: {
482
- completionTimestamp: "Test string",
483
- creationTimestamp: "Test string",
484
- name: "Test string",
485
- },
486
- observedGeneration: 42,
487
- },
488
- });
489
- /** Delete a job. */
490
- await gapi.client.run.namespaces.jobs.delete({
491
- apiVersion: "Test string",
492
- kind: "Test string",
493
- name: "Test string",
494
- propagationPolicy: "Test string",
495
- });
496
- /** Get information about a job. */
497
- await gapi.client.run.namespaces.jobs.get({
498
- name: "Test string",
499
- });
500
- /** List jobs. */
501
- await gapi.client.run.namespaces.jobs.list({
502
- continue: "Test string",
503
- fieldSelector: "Test string",
504
- includeUninitialized: true,
505
- labelSelector: "Test string",
506
- limit: 42,
507
- parent: "Test string",
508
- resourceVersion: "Test string",
509
- watch: true,
510
- });
511
- /**
512
- * Replace a job. Only the spec and metadata labels and annotations are modifiable. After the Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May
513
- * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.
514
- */
515
- await gapi.client.run.namespaces.jobs.replaceJob({
516
- name: "Test string",
517
- }, {
518
- apiVersion: "Test string",
519
- kind: "Test string",
520
- metadata: {
521
- annotations: {
522
- A: "Test string"
523
- },
524
- clusterName: "Test string",
525
- creationTimestamp: "Test string",
526
- deletionGracePeriodSeconds: 42,
527
- deletionTimestamp: "Test string",
528
- finalizers: [
529
- "Test string"
530
- ],
531
- generateName: "Test string",
532
- generation: 42,
533
- labels: {
534
- A: "Test string"
535
- },
536
- name: "Test string",
537
- namespace: "Test string",
538
- ownerReferences: [
539
- {
540
- apiVersion: "Test string",
541
- blockOwnerDeletion: true,
542
- controller: true,
543
- kind: "Test string",
544
- name: "Test string",
545
- uid: "Test string",
546
- }
547
- ],
548
- resourceVersion: "Test string",
549
- selfLink: "Test string",
550
- uid: "Test string",
551
- },
552
- spec: {
553
- template: {
554
- metadata: {
555
- annotations: {
556
- A: "Test string"
557
- },
558
- clusterName: "Test string",
559
- creationTimestamp: "Test string",
560
- deletionGracePeriodSeconds: 42,
561
- deletionTimestamp: "Test string",
562
- finalizers: [
563
- "Test string"
564
- ],
565
- generateName: "Test string",
566
- generation: 42,
567
- labels: {
568
- A: "Test string"
569
- },
570
- name: "Test string",
571
- namespace: "Test string",
572
- ownerReferences: [
573
- {
574
- apiVersion: "Test string",
575
- blockOwnerDeletion: true,
576
- controller: true,
577
- kind: "Test string",
578
- name: "Test string",
579
- uid: "Test string",
580
- }
581
- ],
582
- resourceVersion: "Test string",
583
- selfLink: "Test string",
584
- uid: "Test string",
585
- },
586
- spec: {
587
- parallelism: 42,
588
- taskCount: 42,
589
- template: {
590
- spec: {
591
- containers: [
592
- {
593
- args: [
594
- "Test string"
595
- ],
596
- command: [
597
- "Test string"
598
- ],
599
- env: [
600
- {
601
- name: "Test string",
602
- value: "Test string",
603
- valueFrom: {
604
- configMapKeyRef: {
605
- key: "Test string",
606
- localObjectReference: {
607
- name: "Test string",
608
- },
609
- name: "Test string",
610
- optional: true,
611
- },
612
- secretKeyRef: {
613
- key: "Test string",
614
- localObjectReference: {
615
- name: "Test string",
616
- },
617
- name: "Test string",
618
- optional: true,
619
- },
620
- },
621
- }
622
- ],
623
- envFrom: [
624
- {
625
- configMapRef: {
626
- localObjectReference: {
627
- name: "Test string",
628
- },
629
- name: "Test string",
630
- optional: true,
631
- },
632
- prefix: "Test string",
633
- secretRef: {
634
- localObjectReference: {
635
- name: "Test string",
636
- },
637
- name: "Test string",
638
- optional: true,
639
- },
640
- }
641
- ],
642
- image: "Test string",
643
- imagePullPolicy: "Test string",
644
- livenessProbe: {
645
- exec: {
646
- command: [
647
- "Test string"
648
- ],
649
- },
650
- failureThreshold: 42,
651
- grpc: {
652
- port: 42,
653
- service: "Test string",
654
- },
655
- httpGet: {
656
- host: "Test string",
657
- httpHeaders: [
658
- {
659
- name: "Test string",
660
- value: "Test string",
661
- }
662
- ],
663
- path: "Test string",
664
- port: 42,
665
- scheme: "Test string",
666
- },
667
- initialDelaySeconds: 42,
668
- periodSeconds: 42,
669
- successThreshold: 42,
670
- tcpSocket: {
671
- host: "Test string",
672
- port: 42,
673
- },
674
- timeoutSeconds: 42,
675
- },
676
- name: "Test string",
677
- ports: [
678
- {
679
- containerPort: 42,
680
- name: "Test string",
681
- protocol: "Test string",
682
- }
683
- ],
684
- readinessProbe: {
685
- exec: {
686
- command: [
687
- "Test string"
688
- ],
689
- },
690
- failureThreshold: 42,
691
- grpc: {
692
- port: 42,
693
- service: "Test string",
694
- },
695
- httpGet: {
696
- host: "Test string",
697
- httpHeaders: [
698
- {
699
- name: "Test string",
700
- value: "Test string",
701
- }
702
- ],
703
- path: "Test string",
704
- port: 42,
705
- scheme: "Test string",
706
- },
707
- initialDelaySeconds: 42,
708
- periodSeconds: 42,
709
- successThreshold: 42,
710
- tcpSocket: {
711
- host: "Test string",
712
- port: 42,
713
- },
714
- timeoutSeconds: 42,
715
- },
716
- resources: {
717
- limits: {
718
- A: "Test string"
719
- },
720
- requests: {
721
- A: "Test string"
722
- },
723
- },
724
- securityContext: {
725
- runAsUser: 42,
726
- },
727
- startupProbe: {
728
- exec: {
729
- command: [
730
- "Test string"
731
- ],
732
- },
733
- failureThreshold: 42,
734
- grpc: {
735
- port: 42,
736
- service: "Test string",
737
- },
738
- httpGet: {
739
- host: "Test string",
740
- httpHeaders: [
741
- {
742
- name: "Test string",
743
- value: "Test string",
744
- }
745
- ],
746
- path: "Test string",
747
- port: 42,
748
- scheme: "Test string",
749
- },
750
- initialDelaySeconds: 42,
751
- periodSeconds: 42,
752
- successThreshold: 42,
753
- tcpSocket: {
754
- host: "Test string",
755
- port: 42,
756
- },
757
- timeoutSeconds: 42,
758
- },
759
- terminationMessagePath: "Test string",
760
- terminationMessagePolicy: "Test string",
761
- volumeMounts: [
762
- {
763
- mountPath: "Test string",
764
- name: "Test string",
765
- readOnly: true,
766
- subPath: "Test string",
767
- }
768
- ],
769
- workingDir: "Test string",
770
- }
771
- ],
772
- maxRetries: 42,
773
- serviceAccountName: "Test string",
774
- timeoutSeconds: "Test string",
775
- volumes: [
776
- {
777
- configMap: {
778
- defaultMode: 42,
779
- items: [
780
- {
781
- key: "Test string",
782
- mode: 42,
783
- path: "Test string",
784
- }
785
- ],
786
- name: "Test string",
787
- optional: true,
788
- },
789
- emptyDir: {
790
- medium: "Test string",
791
- sizeLimit: "Test string",
792
- },
793
- name: "Test string",
794
- secret: {
795
- defaultMode: 42,
796
- items: [
797
- {
798
- key: "Test string",
799
- mode: 42,
800
- path: "Test string",
801
- }
802
- ],
803
- optional: true,
804
- secretName: "Test string",
805
- },
806
- }
807
- ],
808
- },
809
- },
810
- },
811
- },
812
- },
813
- status: {
814
- conditions: [
815
- {
816
- lastTransitionTime: "Test string",
817
- message: "Test string",
818
- reason: "Test string",
819
- severity: "Test string",
820
- status: "Test string",
821
- type: "Test string",
822
- }
823
- ],
824
- executionCount: 42,
825
- latestCreatedExecution: {
826
- completionTimestamp: "Test string",
827
- creationTimestamp: "Test string",
828
- name: "Test string",
829
- },
830
- observedGeneration: 42,
831
- },
832
- });
833
- /** Trigger creation of a new execution of this job. */
834
- await gapi.client.run.namespaces.jobs.run({
835
- name: "Test string",
836
- }, {
837
- overrides: {
838
- containerOverrides: [
839
- {
840
- args: [
841
- "Test string"
842
- ],
843
- clearArgs: true,
844
- env: [
845
- {
846
- name: "Test string",
847
- value: "Test string",
848
- valueFrom: {
849
- configMapKeyRef: {
850
- key: "Test string",
851
- localObjectReference: {
852
- name: "Test string",
853
- },
854
- name: "Test string",
855
- optional: true,
856
- },
857
- secretKeyRef: {
858
- key: "Test string",
859
- localObjectReference: {
860
- name: "Test string",
861
- },
862
- name: "Test string",
863
- optional: true,
864
- },
865
- },
866
- }
867
- ],
868
- name: "Test string",
869
- }
870
- ],
871
- taskCount: 42,
872
- timeoutSeconds: 42,
873
- },
874
- });
875
- /** Delete a revision. */
876
- await gapi.client.run.namespaces.revisions.delete({
877
- apiVersion: "Test string",
878
- dryRun: "Test string",
879
- kind: "Test string",
880
- name: "Test string",
881
- propagationPolicy: "Test string",
882
- });
883
- /** Get information about a revision. */
884
- await gapi.client.run.namespaces.revisions.get({
885
- name: "Test string",
886
- });
887
- /** List revisions. */
888
- await gapi.client.run.namespaces.revisions.list({
889
- continue: "Test string",
890
- fieldSelector: "Test string",
891
- includeUninitialized: true,
892
- labelSelector: "Test string",
893
- limit: 42,
894
- parent: "Test string",
895
- resourceVersion: "Test string",
896
- watch: true,
897
- });
898
- /** Get information about a route. */
899
- await gapi.client.run.namespaces.routes.get({
900
- name: "Test string",
901
- });
902
- /** List routes. */
903
- await gapi.client.run.namespaces.routes.list({
904
- continue: "Test string",
905
- fieldSelector: "Test string",
906
- includeUninitialized: true,
907
- labelSelector: "Test string",
908
- limit: 42,
909
- parent: "Test string",
910
- resourceVersion: "Test string",
911
- watch: true,
912
- });
913
- /** Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check service.status to determine if the Service is ready. */
914
- await gapi.client.run.namespaces.services.create({
915
- dryRun: "Test string",
916
- parent: "Test string",
917
- }, {
918
- apiVersion: "Test string",
919
- kind: "Test string",
920
- metadata: {
921
- annotations: {
922
- A: "Test string"
923
- },
924
- clusterName: "Test string",
925
- creationTimestamp: "Test string",
926
- deletionGracePeriodSeconds: 42,
927
- deletionTimestamp: "Test string",
928
- finalizers: [
929
- "Test string"
930
- ],
931
- generateName: "Test string",
932
- generation: 42,
933
- labels: {
934
- A: "Test string"
935
- },
936
- name: "Test string",
937
- namespace: "Test string",
938
- ownerReferences: [
939
- {
940
- apiVersion: "Test string",
941
- blockOwnerDeletion: true,
942
- controller: true,
943
- kind: "Test string",
944
- name: "Test string",
945
- uid: "Test string",
946
- }
947
- ],
948
- resourceVersion: "Test string",
949
- selfLink: "Test string",
950
- uid: "Test string",
951
- },
952
- spec: {
953
- template: {
954
- metadata: {
955
- annotations: {
956
- A: "Test string"
957
- },
958
- clusterName: "Test string",
959
- creationTimestamp: "Test string",
960
- deletionGracePeriodSeconds: 42,
961
- deletionTimestamp: "Test string",
962
- finalizers: [
963
- "Test string"
964
- ],
965
- generateName: "Test string",
966
- generation: 42,
967
- labels: {
968
- A: "Test string"
969
- },
970
- name: "Test string",
971
- namespace: "Test string",
972
- ownerReferences: [
973
- {
974
- apiVersion: "Test string",
975
- blockOwnerDeletion: true,
976
- controller: true,
977
- kind: "Test string",
978
- name: "Test string",
979
- uid: "Test string",
980
- }
981
- ],
982
- resourceVersion: "Test string",
983
- selfLink: "Test string",
984
- uid: "Test string",
985
- },
986
- spec: {
987
- containerConcurrency: 42,
988
- containers: [
989
- {
990
- args: [
991
- "Test string"
992
- ],
993
- command: [
994
- "Test string"
995
- ],
996
- env: [
997
- {
998
- name: "Test string",
999
- value: "Test string",
1000
- valueFrom: {
1001
- configMapKeyRef: {
1002
- key: "Test string",
1003
- localObjectReference: {
1004
- name: "Test string",
1005
- },
1006
- name: "Test string",
1007
- optional: true,
1008
- },
1009
- secretKeyRef: {
1010
- key: "Test string",
1011
- localObjectReference: {
1012
- name: "Test string",
1013
- },
1014
- name: "Test string",
1015
- optional: true,
1016
- },
1017
- },
1018
- }
1019
- ],
1020
- envFrom: [
1021
- {
1022
- configMapRef: {
1023
- localObjectReference: {
1024
- name: "Test string",
1025
- },
1026
- name: "Test string",
1027
- optional: true,
1028
- },
1029
- prefix: "Test string",
1030
- secretRef: {
1031
- localObjectReference: {
1032
- name: "Test string",
1033
- },
1034
- name: "Test string",
1035
- optional: true,
1036
- },
1037
- }
1038
- ],
1039
- image: "Test string",
1040
- imagePullPolicy: "Test string",
1041
- livenessProbe: {
1042
- exec: {
1043
- command: [
1044
- "Test string"
1045
- ],
1046
- },
1047
- failureThreshold: 42,
1048
- grpc: {
1049
- port: 42,
1050
- service: "Test string",
1051
- },
1052
- httpGet: {
1053
- host: "Test string",
1054
- httpHeaders: [
1055
- {
1056
- name: "Test string",
1057
- value: "Test string",
1058
- }
1059
- ],
1060
- path: "Test string",
1061
- port: 42,
1062
- scheme: "Test string",
1063
- },
1064
- initialDelaySeconds: 42,
1065
- periodSeconds: 42,
1066
- successThreshold: 42,
1067
- tcpSocket: {
1068
- host: "Test string",
1069
- port: 42,
1070
- },
1071
- timeoutSeconds: 42,
1072
- },
1073
- name: "Test string",
1074
- ports: [
1075
- {
1076
- containerPort: 42,
1077
- name: "Test string",
1078
- protocol: "Test string",
1079
- }
1080
- ],
1081
- readinessProbe: {
1082
- exec: {
1083
- command: [
1084
- "Test string"
1085
- ],
1086
- },
1087
- failureThreshold: 42,
1088
- grpc: {
1089
- port: 42,
1090
- service: "Test string",
1091
- },
1092
- httpGet: {
1093
- host: "Test string",
1094
- httpHeaders: [
1095
- {
1096
- name: "Test string",
1097
- value: "Test string",
1098
- }
1099
- ],
1100
- path: "Test string",
1101
- port: 42,
1102
- scheme: "Test string",
1103
- },
1104
- initialDelaySeconds: 42,
1105
- periodSeconds: 42,
1106
- successThreshold: 42,
1107
- tcpSocket: {
1108
- host: "Test string",
1109
- port: 42,
1110
- },
1111
- timeoutSeconds: 42,
1112
- },
1113
- resources: {
1114
- limits: {
1115
- A: "Test string"
1116
- },
1117
- requests: {
1118
- A: "Test string"
1119
- },
1120
- },
1121
- securityContext: {
1122
- runAsUser: 42,
1123
- },
1124
- startupProbe: {
1125
- exec: {
1126
- command: [
1127
- "Test string"
1128
- ],
1129
- },
1130
- failureThreshold: 42,
1131
- grpc: {
1132
- port: 42,
1133
- service: "Test string",
1134
- },
1135
- httpGet: {
1136
- host: "Test string",
1137
- httpHeaders: [
1138
- {
1139
- name: "Test string",
1140
- value: "Test string",
1141
- }
1142
- ],
1143
- path: "Test string",
1144
- port: 42,
1145
- scheme: "Test string",
1146
- },
1147
- initialDelaySeconds: 42,
1148
- periodSeconds: 42,
1149
- successThreshold: 42,
1150
- tcpSocket: {
1151
- host: "Test string",
1152
- port: 42,
1153
- },
1154
- timeoutSeconds: 42,
1155
- },
1156
- terminationMessagePath: "Test string",
1157
- terminationMessagePolicy: "Test string",
1158
- volumeMounts: [
1159
- {
1160
- mountPath: "Test string",
1161
- name: "Test string",
1162
- readOnly: true,
1163
- subPath: "Test string",
1164
- }
1165
- ],
1166
- workingDir: "Test string",
1167
- }
1168
- ],
1169
- enableServiceLinks: true,
1170
- imagePullSecrets: [
1171
- {
1172
- name: "Test string",
1173
- }
1174
- ],
1175
- serviceAccountName: "Test string",
1176
- timeoutSeconds: 42,
1177
- volumes: [
1178
- {
1179
- configMap: {
1180
- defaultMode: 42,
1181
- items: [
1182
- {
1183
- key: "Test string",
1184
- mode: 42,
1185
- path: "Test string",
1186
- }
1187
- ],
1188
- name: "Test string",
1189
- optional: true,
1190
- },
1191
- emptyDir: {
1192
- medium: "Test string",
1193
- sizeLimit: "Test string",
1194
- },
1195
- name: "Test string",
1196
- secret: {
1197
- defaultMode: 42,
1198
- items: [
1199
- {
1200
- key: "Test string",
1201
- mode: 42,
1202
- path: "Test string",
1203
- }
1204
- ],
1205
- optional: true,
1206
- secretName: "Test string",
1207
- },
1208
- }
1209
- ],
1210
- },
1211
- },
1212
- traffic: [
1213
- {
1214
- configurationName: "Test string",
1215
- latestRevision: true,
1216
- percent: 42,
1217
- revisionName: "Test string",
1218
- tag: "Test string",
1219
- url: "Test string",
1220
- }
1221
- ],
1222
- },
1223
- status: {
1224
- address: {
1225
- url: "Test string",
1226
- },
1227
- conditions: [
1228
- {
1229
- lastTransitionTime: "Test string",
1230
- message: "Test string",
1231
- reason: "Test string",
1232
- severity: "Test string",
1233
- status: "Test string",
1234
- type: "Test string",
1235
- }
1236
- ],
1237
- latestCreatedRevisionName: "Test string",
1238
- latestReadyRevisionName: "Test string",
1239
- observedGeneration: 42,
1240
- traffic: [
1241
- {
1242
- configurationName: "Test string",
1243
- latestRevision: true,
1244
- percent: 42,
1245
- revisionName: "Test string",
1246
- tag: "Test string",
1247
- url: "Test string",
1248
- }
1249
- ],
1250
- url: "Test string",
1251
- },
1252
- });
1253
- /** Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions. */
1254
- await gapi.client.run.namespaces.services.delete({
1255
- apiVersion: "Test string",
1256
- dryRun: "Test string",
1257
- kind: "Test string",
1258
- name: "Test string",
1259
- propagationPolicy: "Test string",
1260
- });
1261
- /** Gets information about a service. */
1262
- await gapi.client.run.namespaces.services.get({
1263
- name: "Test string",
1264
- });
1265
- /** Lists services for the given project and region. */
1266
- await gapi.client.run.namespaces.services.list({
1267
- continue: "Test string",
1268
- fieldSelector: "Test string",
1269
- includeUninitialized: true,
1270
- labelSelector: "Test string",
1271
- limit: 42,
1272
- parent: "Test string",
1273
- resourceVersion: "Test string",
1274
- watch: true,
1275
- });
1276
- /**
1277
- * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May
1278
- * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.
1279
- */
1280
- await gapi.client.run.namespaces.services.replaceService({
1281
- dryRun: "Test string",
1282
- name: "Test string",
1283
- }, {
1284
- apiVersion: "Test string",
1285
- kind: "Test string",
1286
- metadata: {
1287
- annotations: {
1288
- A: "Test string"
1289
- },
1290
- clusterName: "Test string",
1291
- creationTimestamp: "Test string",
1292
- deletionGracePeriodSeconds: 42,
1293
- deletionTimestamp: "Test string",
1294
- finalizers: [
1295
- "Test string"
1296
- ],
1297
- generateName: "Test string",
1298
- generation: 42,
1299
- labels: {
1300
- A: "Test string"
1301
- },
1302
- name: "Test string",
1303
- namespace: "Test string",
1304
- ownerReferences: [
1305
- {
1306
- apiVersion: "Test string",
1307
- blockOwnerDeletion: true,
1308
- controller: true,
1309
- kind: "Test string",
1310
- name: "Test string",
1311
- uid: "Test string",
1312
- }
1313
- ],
1314
- resourceVersion: "Test string",
1315
- selfLink: "Test string",
1316
- uid: "Test string",
1317
- },
1318
- spec: {
1319
- template: {
1320
- metadata: {
1321
- annotations: {
1322
- A: "Test string"
1323
- },
1324
- clusterName: "Test string",
1325
- creationTimestamp: "Test string",
1326
- deletionGracePeriodSeconds: 42,
1327
- deletionTimestamp: "Test string",
1328
- finalizers: [
1329
- "Test string"
1330
- ],
1331
- generateName: "Test string",
1332
- generation: 42,
1333
- labels: {
1334
- A: "Test string"
1335
- },
1336
- name: "Test string",
1337
- namespace: "Test string",
1338
- ownerReferences: [
1339
- {
1340
- apiVersion: "Test string",
1341
- blockOwnerDeletion: true,
1342
- controller: true,
1343
- kind: "Test string",
1344
- name: "Test string",
1345
- uid: "Test string",
1346
- }
1347
- ],
1348
- resourceVersion: "Test string",
1349
- selfLink: "Test string",
1350
- uid: "Test string",
1351
- },
1352
- spec: {
1353
- containerConcurrency: 42,
1354
- containers: [
1355
- {
1356
- args: [
1357
- "Test string"
1358
- ],
1359
- command: [
1360
- "Test string"
1361
- ],
1362
- env: [
1363
- {
1364
- name: "Test string",
1365
- value: "Test string",
1366
- valueFrom: {
1367
- configMapKeyRef: {
1368
- key: "Test string",
1369
- localObjectReference: {
1370
- name: "Test string",
1371
- },
1372
- name: "Test string",
1373
- optional: true,
1374
- },
1375
- secretKeyRef: {
1376
- key: "Test string",
1377
- localObjectReference: {
1378
- name: "Test string",
1379
- },
1380
- name: "Test string",
1381
- optional: true,
1382
- },
1383
- },
1384
- }
1385
- ],
1386
- envFrom: [
1387
- {
1388
- configMapRef: {
1389
- localObjectReference: {
1390
- name: "Test string",
1391
- },
1392
- name: "Test string",
1393
- optional: true,
1394
- },
1395
- prefix: "Test string",
1396
- secretRef: {
1397
- localObjectReference: {
1398
- name: "Test string",
1399
- },
1400
- name: "Test string",
1401
- optional: true,
1402
- },
1403
- }
1404
- ],
1405
- image: "Test string",
1406
- imagePullPolicy: "Test string",
1407
- livenessProbe: {
1408
- exec: {
1409
- command: [
1410
- "Test string"
1411
- ],
1412
- },
1413
- failureThreshold: 42,
1414
- grpc: {
1415
- port: 42,
1416
- service: "Test string",
1417
- },
1418
- httpGet: {
1419
- host: "Test string",
1420
- httpHeaders: [
1421
- {
1422
- name: "Test string",
1423
- value: "Test string",
1424
- }
1425
- ],
1426
- path: "Test string",
1427
- port: 42,
1428
- scheme: "Test string",
1429
- },
1430
- initialDelaySeconds: 42,
1431
- periodSeconds: 42,
1432
- successThreshold: 42,
1433
- tcpSocket: {
1434
- host: "Test string",
1435
- port: 42,
1436
- },
1437
- timeoutSeconds: 42,
1438
- },
1439
- name: "Test string",
1440
- ports: [
1441
- {
1442
- containerPort: 42,
1443
- name: "Test string",
1444
- protocol: "Test string",
1445
- }
1446
- ],
1447
- readinessProbe: {
1448
- exec: {
1449
- command: [
1450
- "Test string"
1451
- ],
1452
- },
1453
- failureThreshold: 42,
1454
- grpc: {
1455
- port: 42,
1456
- service: "Test string",
1457
- },
1458
- httpGet: {
1459
- host: "Test string",
1460
- httpHeaders: [
1461
- {
1462
- name: "Test string",
1463
- value: "Test string",
1464
- }
1465
- ],
1466
- path: "Test string",
1467
- port: 42,
1468
- scheme: "Test string",
1469
- },
1470
- initialDelaySeconds: 42,
1471
- periodSeconds: 42,
1472
- successThreshold: 42,
1473
- tcpSocket: {
1474
- host: "Test string",
1475
- port: 42,
1476
- },
1477
- timeoutSeconds: 42,
1478
- },
1479
- resources: {
1480
- limits: {
1481
- A: "Test string"
1482
- },
1483
- requests: {
1484
- A: "Test string"
1485
- },
1486
- },
1487
- securityContext: {
1488
- runAsUser: 42,
1489
- },
1490
- startupProbe: {
1491
- exec: {
1492
- command: [
1493
- "Test string"
1494
- ],
1495
- },
1496
- failureThreshold: 42,
1497
- grpc: {
1498
- port: 42,
1499
- service: "Test string",
1500
- },
1501
- httpGet: {
1502
- host: "Test string",
1503
- httpHeaders: [
1504
- {
1505
- name: "Test string",
1506
- value: "Test string",
1507
- }
1508
- ],
1509
- path: "Test string",
1510
- port: 42,
1511
- scheme: "Test string",
1512
- },
1513
- initialDelaySeconds: 42,
1514
- periodSeconds: 42,
1515
- successThreshold: 42,
1516
- tcpSocket: {
1517
- host: "Test string",
1518
- port: 42,
1519
- },
1520
- timeoutSeconds: 42,
1521
- },
1522
- terminationMessagePath: "Test string",
1523
- terminationMessagePolicy: "Test string",
1524
- volumeMounts: [
1525
- {
1526
- mountPath: "Test string",
1527
- name: "Test string",
1528
- readOnly: true,
1529
- subPath: "Test string",
1530
- }
1531
- ],
1532
- workingDir: "Test string",
1533
- }
1534
- ],
1535
- enableServiceLinks: true,
1536
- imagePullSecrets: [
1537
- {
1538
- name: "Test string",
1539
- }
1540
- ],
1541
- serviceAccountName: "Test string",
1542
- timeoutSeconds: 42,
1543
- volumes: [
1544
- {
1545
- configMap: {
1546
- defaultMode: 42,
1547
- items: [
1548
- {
1549
- key: "Test string",
1550
- mode: 42,
1551
- path: "Test string",
1552
- }
1553
- ],
1554
- name: "Test string",
1555
- optional: true,
1556
- },
1557
- emptyDir: {
1558
- medium: "Test string",
1559
- sizeLimit: "Test string",
1560
- },
1561
- name: "Test string",
1562
- secret: {
1563
- defaultMode: 42,
1564
- items: [
1565
- {
1566
- key: "Test string",
1567
- mode: 42,
1568
- path: "Test string",
1569
- }
1570
- ],
1571
- optional: true,
1572
- secretName: "Test string",
1573
- },
1574
- }
1575
- ],
1576
- },
1577
- },
1578
- traffic: [
1579
- {
1580
- configurationName: "Test string",
1581
- latestRevision: true,
1582
- percent: 42,
1583
- revisionName: "Test string",
1584
- tag: "Test string",
1585
- url: "Test string",
1586
- }
1587
- ],
1588
- },
1589
- status: {
1590
- address: {
1591
- url: "Test string",
1592
- },
1593
- conditions: [
1594
- {
1595
- lastTransitionTime: "Test string",
1596
- message: "Test string",
1597
- reason: "Test string",
1598
- severity: "Test string",
1599
- status: "Test string",
1600
- type: "Test string",
1601
- }
1602
- ],
1603
- latestCreatedRevisionName: "Test string",
1604
- latestReadyRevisionName: "Test string",
1605
- observedGeneration: 42,
1606
- traffic: [
1607
- {
1608
- configurationName: "Test string",
1609
- latestRevision: true,
1610
- percent: 42,
1611
- revisionName: "Test string",
1612
- tag: "Test string",
1613
- url: "Test string",
1614
- }
1615
- ],
1616
- url: "Test string",
1617
- },
1618
- });
1619
- /** Get information about a task. */
1620
- await gapi.client.run.namespaces.tasks.get({
1621
- name: "Test string",
1622
- });
1623
- /** List tasks. */
1624
- await gapi.client.run.namespaces.tasks.list({
1625
- continue: "Test string",
1626
- fieldSelector: "Test string",
1627
- includeUninitialized: true,
1628
- labelSelector: "Test string",
1629
- limit: 42,
1630
- parent: "Test string",
1631
- resourceVersion: "Test string",
1632
- watch: true,
1633
- });
1634
- /** List authorized domains. */
1635
- await gapi.client.run.projects.authorizeddomains.list({
1636
- pageSize: 42,
1637
- pageToken: "Test string",
1638
- parent: "Test string",
1639
- });
1640
- /** Lists information about the supported locations for this service. */
1641
- await gapi.client.run.projects.locations.list({
1642
- filter: "Test string",
1643
- name: "Test string",
1644
- pageSize: 42,
1645
- pageToken: "Test string",
1646
- });
1647
- /** List authorized domains. */
1648
- await gapi.client.run.projects.locations.authorizeddomains.list({
1649
- pageSize: 42,
1650
- pageToken: "Test string",
1651
- parent: "Test string",
1652
- });
1653
- /** Get information about a configuration. */
1654
- await gapi.client.run.projects.locations.configurations.get({
1655
- name: "Test string",
1656
- });
1657
- /** List configurations. */
1658
- await gapi.client.run.projects.locations.configurations.list({
1659
- continue: "Test string",
1660
- fieldSelector: "Test string",
1661
- includeUninitialized: true,
1662
- labelSelector: "Test string",
1663
- limit: 42,
1664
- parent: "Test string",
1665
- resourceVersion: "Test string",
1666
- watch: true,
1667
- });
1668
- /** Create a new domain mapping. */
1669
- await gapi.client.run.projects.locations.domainmappings.create({
1670
- dryRun: "Test string",
1671
- parent: "Test string",
1672
- }, {
1673
- apiVersion: "Test string",
1674
- kind: "Test string",
1675
- metadata: {
1676
- annotations: {
1677
- A: "Test string"
1678
- },
1679
- clusterName: "Test string",
1680
- creationTimestamp: "Test string",
1681
- deletionGracePeriodSeconds: 42,
1682
- deletionTimestamp: "Test string",
1683
- finalizers: [
1684
- "Test string"
1685
- ],
1686
- generateName: "Test string",
1687
- generation: 42,
1688
- labels: {
1689
- A: "Test string"
1690
- },
1691
- name: "Test string",
1692
- namespace: "Test string",
1693
- ownerReferences: [
1694
- {
1695
- apiVersion: "Test string",
1696
- blockOwnerDeletion: true,
1697
- controller: true,
1698
- kind: "Test string",
1699
- name: "Test string",
1700
- uid: "Test string",
1701
- }
1702
- ],
1703
- resourceVersion: "Test string",
1704
- selfLink: "Test string",
1705
- uid: "Test string",
1706
- },
1707
- spec: {
1708
- certificateMode: "Test string",
1709
- forceOverride: true,
1710
- routeName: "Test string",
1711
- },
1712
- status: {
1713
- conditions: [
1714
- {
1715
- lastTransitionTime: "Test string",
1716
- message: "Test string",
1717
- reason: "Test string",
1718
- severity: "Test string",
1719
- status: "Test string",
1720
- type: "Test string",
1721
- }
1722
- ],
1723
- mappedRouteName: "Test string",
1724
- observedGeneration: 42,
1725
- resourceRecords: [
1726
- {
1727
- name: "Test string",
1728
- rrdata: "Test string",
1729
- type: "Test string",
1730
- }
1731
- ],
1732
- url: "Test string",
1733
- },
1734
- });
1735
- /** Delete a domain mapping. */
1736
- await gapi.client.run.projects.locations.domainmappings.delete({
1737
- apiVersion: "Test string",
1738
- dryRun: "Test string",
1739
- kind: "Test string",
1740
- name: "Test string",
1741
- propagationPolicy: "Test string",
1742
- });
1743
- /** Get information about a domain mapping. */
1744
- await gapi.client.run.projects.locations.domainmappings.get({
1745
- name: "Test string",
1746
- });
1747
- /** List all domain mappings. */
1748
- await gapi.client.run.projects.locations.domainmappings.list({
1749
- continue: "Test string",
1750
- fieldSelector: "Test string",
1751
- includeUninitialized: true,
1752
- labelSelector: "Test string",
1753
- limit: 42,
1754
- parent: "Test string",
1755
- resourceVersion: "Test string",
1756
- watch: true,
1757
- });
1758
- /** Get the IAM Access Control policy currently in effect for the given job. This result does not include any inherited policies. */
1759
- await gapi.client.run.projects.locations.jobs.getIamPolicy({
1760
- "options.requestedPolicyVersion": 42,
1761
- resource: "Test string",
1762
- });
1763
- /** Sets the IAM Access control policy for the specified job. Overwrites any existing policy. */
1764
- await gapi.client.run.projects.locations.jobs.setIamPolicy({
1765
- resource: "Test string",
1766
- }, {
1767
- policy: {
1768
- auditConfigs: [
1769
- {
1770
- auditLogConfigs: [
1771
- {
1772
- exemptedMembers: [
1773
- "Test string"
1774
- ],
1775
- logType: "Test string",
1776
- }
1777
- ],
1778
- service: "Test string",
1779
- }
1780
- ],
1781
- bindings: [
1782
- {
1783
- condition: {
1784
- description: "Test string",
1785
- expression: "Test string",
1786
- location: "Test string",
1787
- title: "Test string",
1788
- },
1789
- members: [
1790
- "Test string"
1791
- ],
1792
- role: "Test string",
1793
- }
1794
- ],
1795
- etag: "Test string",
1796
- version: 42,
1797
- },
1798
- updateMask: "Test string",
1799
- });
1800
- /** Returns permissions that a caller has on the specified job. There are no permissions required for making this API call. */
1801
- await gapi.client.run.projects.locations.jobs.testIamPermissions({
1802
- resource: "Test string",
1803
- }, {
1804
- permissions: [
1805
- "Test string"
1806
- ],
1807
- });
1808
- /** Delete a revision. */
1809
- await gapi.client.run.projects.locations.revisions.delete({
1810
- apiVersion: "Test string",
1811
- dryRun: "Test string",
1812
- kind: "Test string",
1813
- name: "Test string",
1814
- propagationPolicy: "Test string",
1815
- });
1816
- /** Get information about a revision. */
1817
- await gapi.client.run.projects.locations.revisions.get({
1818
- name: "Test string",
1819
- });
1820
- /** List revisions. */
1821
- await gapi.client.run.projects.locations.revisions.list({
1822
- continue: "Test string",
1823
- fieldSelector: "Test string",
1824
- includeUninitialized: true,
1825
- labelSelector: "Test string",
1826
- limit: 42,
1827
- parent: "Test string",
1828
- resourceVersion: "Test string",
1829
- watch: true,
1830
- });
1831
- /** Get information about a route. */
1832
- await gapi.client.run.projects.locations.routes.get({
1833
- name: "Test string",
1834
- });
1835
- /** List routes. */
1836
- await gapi.client.run.projects.locations.routes.list({
1837
- continue: "Test string",
1838
- fieldSelector: "Test string",
1839
- includeUninitialized: true,
1840
- labelSelector: "Test string",
1841
- limit: 42,
1842
- parent: "Test string",
1843
- resourceVersion: "Test string",
1844
- watch: true,
1845
- });
1846
- /** Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check service.status to determine if the Service is ready. */
1847
- await gapi.client.run.projects.locations.services.create({
1848
- dryRun: "Test string",
1849
- parent: "Test string",
1850
- }, {
1851
- apiVersion: "Test string",
1852
- kind: "Test string",
1853
- metadata: {
1854
- annotations: {
1855
- A: "Test string"
1856
- },
1857
- clusterName: "Test string",
1858
- creationTimestamp: "Test string",
1859
- deletionGracePeriodSeconds: 42,
1860
- deletionTimestamp: "Test string",
1861
- finalizers: [
1862
- "Test string"
1863
- ],
1864
- generateName: "Test string",
1865
- generation: 42,
1866
- labels: {
1867
- A: "Test string"
1868
- },
1869
- name: "Test string",
1870
- namespace: "Test string",
1871
- ownerReferences: [
1872
- {
1873
- apiVersion: "Test string",
1874
- blockOwnerDeletion: true,
1875
- controller: true,
1876
- kind: "Test string",
1877
- name: "Test string",
1878
- uid: "Test string",
1879
- }
1880
- ],
1881
- resourceVersion: "Test string",
1882
- selfLink: "Test string",
1883
- uid: "Test string",
1884
- },
1885
- spec: {
1886
- template: {
1887
- metadata: {
1888
- annotations: {
1889
- A: "Test string"
1890
- },
1891
- clusterName: "Test string",
1892
- creationTimestamp: "Test string",
1893
- deletionGracePeriodSeconds: 42,
1894
- deletionTimestamp: "Test string",
1895
- finalizers: [
1896
- "Test string"
1897
- ],
1898
- generateName: "Test string",
1899
- generation: 42,
1900
- labels: {
1901
- A: "Test string"
1902
- },
1903
- name: "Test string",
1904
- namespace: "Test string",
1905
- ownerReferences: [
1906
- {
1907
- apiVersion: "Test string",
1908
- blockOwnerDeletion: true,
1909
- controller: true,
1910
- kind: "Test string",
1911
- name: "Test string",
1912
- uid: "Test string",
1913
- }
1914
- ],
1915
- resourceVersion: "Test string",
1916
- selfLink: "Test string",
1917
- uid: "Test string",
1918
- },
1919
- spec: {
1920
- containerConcurrency: 42,
1921
- containers: [
1922
- {
1923
- args: [
1924
- "Test string"
1925
- ],
1926
- command: [
1927
- "Test string"
1928
- ],
1929
- env: [
1930
- {
1931
- name: "Test string",
1932
- value: "Test string",
1933
- valueFrom: {
1934
- configMapKeyRef: {
1935
- key: "Test string",
1936
- localObjectReference: {
1937
- name: "Test string",
1938
- },
1939
- name: "Test string",
1940
- optional: true,
1941
- },
1942
- secretKeyRef: {
1943
- key: "Test string",
1944
- localObjectReference: {
1945
- name: "Test string",
1946
- },
1947
- name: "Test string",
1948
- optional: true,
1949
- },
1950
- },
1951
- }
1952
- ],
1953
- envFrom: [
1954
- {
1955
- configMapRef: {
1956
- localObjectReference: {
1957
- name: "Test string",
1958
- },
1959
- name: "Test string",
1960
- optional: true,
1961
- },
1962
- prefix: "Test string",
1963
- secretRef: {
1964
- localObjectReference: {
1965
- name: "Test string",
1966
- },
1967
- name: "Test string",
1968
- optional: true,
1969
- },
1970
- }
1971
- ],
1972
- image: "Test string",
1973
- imagePullPolicy: "Test string",
1974
- livenessProbe: {
1975
- exec: {
1976
- command: [
1977
- "Test string"
1978
- ],
1979
- },
1980
- failureThreshold: 42,
1981
- grpc: {
1982
- port: 42,
1983
- service: "Test string",
1984
- },
1985
- httpGet: {
1986
- host: "Test string",
1987
- httpHeaders: [
1988
- {
1989
- name: "Test string",
1990
- value: "Test string",
1991
- }
1992
- ],
1993
- path: "Test string",
1994
- port: 42,
1995
- scheme: "Test string",
1996
- },
1997
- initialDelaySeconds: 42,
1998
- periodSeconds: 42,
1999
- successThreshold: 42,
2000
- tcpSocket: {
2001
- host: "Test string",
2002
- port: 42,
2003
- },
2004
- timeoutSeconds: 42,
2005
- },
2006
- name: "Test string",
2007
- ports: [
2008
- {
2009
- containerPort: 42,
2010
- name: "Test string",
2011
- protocol: "Test string",
2012
- }
2013
- ],
2014
- readinessProbe: {
2015
- exec: {
2016
- command: [
2017
- "Test string"
2018
- ],
2019
- },
2020
- failureThreshold: 42,
2021
- grpc: {
2022
- port: 42,
2023
- service: "Test string",
2024
- },
2025
- httpGet: {
2026
- host: "Test string",
2027
- httpHeaders: [
2028
- {
2029
- name: "Test string",
2030
- value: "Test string",
2031
- }
2032
- ],
2033
- path: "Test string",
2034
- port: 42,
2035
- scheme: "Test string",
2036
- },
2037
- initialDelaySeconds: 42,
2038
- periodSeconds: 42,
2039
- successThreshold: 42,
2040
- tcpSocket: {
2041
- host: "Test string",
2042
- port: 42,
2043
- },
2044
- timeoutSeconds: 42,
2045
- },
2046
- resources: {
2047
- limits: {
2048
- A: "Test string"
2049
- },
2050
- requests: {
2051
- A: "Test string"
2052
- },
2053
- },
2054
- securityContext: {
2055
- runAsUser: 42,
2056
- },
2057
- startupProbe: {
2058
- exec: {
2059
- command: [
2060
- "Test string"
2061
- ],
2062
- },
2063
- failureThreshold: 42,
2064
- grpc: {
2065
- port: 42,
2066
- service: "Test string",
2067
- },
2068
- httpGet: {
2069
- host: "Test string",
2070
- httpHeaders: [
2071
- {
2072
- name: "Test string",
2073
- value: "Test string",
2074
- }
2075
- ],
2076
- path: "Test string",
2077
- port: 42,
2078
- scheme: "Test string",
2079
- },
2080
- initialDelaySeconds: 42,
2081
- periodSeconds: 42,
2082
- successThreshold: 42,
2083
- tcpSocket: {
2084
- host: "Test string",
2085
- port: 42,
2086
- },
2087
- timeoutSeconds: 42,
2088
- },
2089
- terminationMessagePath: "Test string",
2090
- terminationMessagePolicy: "Test string",
2091
- volumeMounts: [
2092
- {
2093
- mountPath: "Test string",
2094
- name: "Test string",
2095
- readOnly: true,
2096
- subPath: "Test string",
2097
- }
2098
- ],
2099
- workingDir: "Test string",
2100
- }
2101
- ],
2102
- enableServiceLinks: true,
2103
- imagePullSecrets: [
2104
- {
2105
- name: "Test string",
2106
- }
2107
- ],
2108
- serviceAccountName: "Test string",
2109
- timeoutSeconds: 42,
2110
- volumes: [
2111
- {
2112
- configMap: {
2113
- defaultMode: 42,
2114
- items: [
2115
- {
2116
- key: "Test string",
2117
- mode: 42,
2118
- path: "Test string",
2119
- }
2120
- ],
2121
- name: "Test string",
2122
- optional: true,
2123
- },
2124
- emptyDir: {
2125
- medium: "Test string",
2126
- sizeLimit: "Test string",
2127
- },
2128
- name: "Test string",
2129
- secret: {
2130
- defaultMode: 42,
2131
- items: [
2132
- {
2133
- key: "Test string",
2134
- mode: 42,
2135
- path: "Test string",
2136
- }
2137
- ],
2138
- optional: true,
2139
- secretName: "Test string",
2140
- },
2141
- }
2142
- ],
2143
- },
2144
- },
2145
- traffic: [
2146
- {
2147
- configurationName: "Test string",
2148
- latestRevision: true,
2149
- percent: 42,
2150
- revisionName: "Test string",
2151
- tag: "Test string",
2152
- url: "Test string",
2153
- }
2154
- ],
2155
- },
2156
- status: {
2157
- address: {
2158
- url: "Test string",
2159
- },
2160
- conditions: [
2161
- {
2162
- lastTransitionTime: "Test string",
2163
- message: "Test string",
2164
- reason: "Test string",
2165
- severity: "Test string",
2166
- status: "Test string",
2167
- type: "Test string",
2168
- }
2169
- ],
2170
- latestCreatedRevisionName: "Test string",
2171
- latestReadyRevisionName: "Test string",
2172
- observedGeneration: 42,
2173
- traffic: [
2174
- {
2175
- configurationName: "Test string",
2176
- latestRevision: true,
2177
- percent: 42,
2178
- revisionName: "Test string",
2179
- tag: "Test string",
2180
- url: "Test string",
2181
- }
2182
- ],
2183
- url: "Test string",
2184
- },
2185
- });
2186
- /** Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions. */
2187
- await gapi.client.run.projects.locations.services.delete({
2188
- apiVersion: "Test string",
2189
- dryRun: "Test string",
2190
- kind: "Test string",
2191
- name: "Test string",
2192
- propagationPolicy: "Test string",
2193
- });
2194
- /** Gets information about a service. */
2195
- await gapi.client.run.projects.locations.services.get({
2196
- name: "Test string",
2197
- });
2198
- /** Gets the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies. */
2199
- await gapi.client.run.projects.locations.services.getIamPolicy({
2200
- "options.requestedPolicyVersion": 42,
2201
- resource: "Test string",
2202
- });
2203
- /** Lists services for the given project and region. */
2204
- await gapi.client.run.projects.locations.services.list({
2205
- continue: "Test string",
2206
- fieldSelector: "Test string",
2207
- includeUninitialized: true,
2208
- labelSelector: "Test string",
2209
- limit: 42,
2210
- parent: "Test string",
2211
- resourceVersion: "Test string",
2212
- watch: true,
2213
- });
2214
- /**
2215
- * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May
2216
- * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.
2217
- */
2218
- await gapi.client.run.projects.locations.services.replaceService({
2219
- dryRun: "Test string",
2220
- name: "Test string",
2221
- }, {
2222
- apiVersion: "Test string",
2223
- kind: "Test string",
2224
- metadata: {
2225
- annotations: {
2226
- A: "Test string"
2227
- },
2228
- clusterName: "Test string",
2229
- creationTimestamp: "Test string",
2230
- deletionGracePeriodSeconds: 42,
2231
- deletionTimestamp: "Test string",
2232
- finalizers: [
2233
- "Test string"
2234
- ],
2235
- generateName: "Test string",
2236
- generation: 42,
2237
- labels: {
2238
- A: "Test string"
2239
- },
2240
- name: "Test string",
2241
- namespace: "Test string",
2242
- ownerReferences: [
2243
- {
2244
- apiVersion: "Test string",
2245
- blockOwnerDeletion: true,
2246
- controller: true,
2247
- kind: "Test string",
2248
- name: "Test string",
2249
- uid: "Test string",
2250
- }
2251
- ],
2252
- resourceVersion: "Test string",
2253
- selfLink: "Test string",
2254
- uid: "Test string",
2255
- },
2256
- spec: {
2257
- template: {
2258
- metadata: {
2259
- annotations: {
2260
- A: "Test string"
2261
- },
2262
- clusterName: "Test string",
2263
- creationTimestamp: "Test string",
2264
- deletionGracePeriodSeconds: 42,
2265
- deletionTimestamp: "Test string",
2266
- finalizers: [
2267
- "Test string"
2268
- ],
2269
- generateName: "Test string",
2270
- generation: 42,
2271
- labels: {
2272
- A: "Test string"
2273
- },
2274
- name: "Test string",
2275
- namespace: "Test string",
2276
- ownerReferences: [
2277
- {
2278
- apiVersion: "Test string",
2279
- blockOwnerDeletion: true,
2280
- controller: true,
2281
- kind: "Test string",
2282
- name: "Test string",
2283
- uid: "Test string",
2284
- }
2285
- ],
2286
- resourceVersion: "Test string",
2287
- selfLink: "Test string",
2288
- uid: "Test string",
2289
- },
2290
- spec: {
2291
- containerConcurrency: 42,
2292
- containers: [
2293
- {
2294
- args: [
2295
- "Test string"
2296
- ],
2297
- command: [
2298
- "Test string"
2299
- ],
2300
- env: [
2301
- {
2302
- name: "Test string",
2303
- value: "Test string",
2304
- valueFrom: {
2305
- configMapKeyRef: {
2306
- key: "Test string",
2307
- localObjectReference: {
2308
- name: "Test string",
2309
- },
2310
- name: "Test string",
2311
- optional: true,
2312
- },
2313
- secretKeyRef: {
2314
- key: "Test string",
2315
- localObjectReference: {
2316
- name: "Test string",
2317
- },
2318
- name: "Test string",
2319
- optional: true,
2320
- },
2321
- },
2322
- }
2323
- ],
2324
- envFrom: [
2325
- {
2326
- configMapRef: {
2327
- localObjectReference: {
2328
- name: "Test string",
2329
- },
2330
- name: "Test string",
2331
- optional: true,
2332
- },
2333
- prefix: "Test string",
2334
- secretRef: {
2335
- localObjectReference: {
2336
- name: "Test string",
2337
- },
2338
- name: "Test string",
2339
- optional: true,
2340
- },
2341
- }
2342
- ],
2343
- image: "Test string",
2344
- imagePullPolicy: "Test string",
2345
- livenessProbe: {
2346
- exec: {
2347
- command: [
2348
- "Test string"
2349
- ],
2350
- },
2351
- failureThreshold: 42,
2352
- grpc: {
2353
- port: 42,
2354
- service: "Test string",
2355
- },
2356
- httpGet: {
2357
- host: "Test string",
2358
- httpHeaders: [
2359
- {
2360
- name: "Test string",
2361
- value: "Test string",
2362
- }
2363
- ],
2364
- path: "Test string",
2365
- port: 42,
2366
- scheme: "Test string",
2367
- },
2368
- initialDelaySeconds: 42,
2369
- periodSeconds: 42,
2370
- successThreshold: 42,
2371
- tcpSocket: {
2372
- host: "Test string",
2373
- port: 42,
2374
- },
2375
- timeoutSeconds: 42,
2376
- },
2377
- name: "Test string",
2378
- ports: [
2379
- {
2380
- containerPort: 42,
2381
- name: "Test string",
2382
- protocol: "Test string",
2383
- }
2384
- ],
2385
- readinessProbe: {
2386
- exec: {
2387
- command: [
2388
- "Test string"
2389
- ],
2390
- },
2391
- failureThreshold: 42,
2392
- grpc: {
2393
- port: 42,
2394
- service: "Test string",
2395
- },
2396
- httpGet: {
2397
- host: "Test string",
2398
- httpHeaders: [
2399
- {
2400
- name: "Test string",
2401
- value: "Test string",
2402
- }
2403
- ],
2404
- path: "Test string",
2405
- port: 42,
2406
- scheme: "Test string",
2407
- },
2408
- initialDelaySeconds: 42,
2409
- periodSeconds: 42,
2410
- successThreshold: 42,
2411
- tcpSocket: {
2412
- host: "Test string",
2413
- port: 42,
2414
- },
2415
- timeoutSeconds: 42,
2416
- },
2417
- resources: {
2418
- limits: {
2419
- A: "Test string"
2420
- },
2421
- requests: {
2422
- A: "Test string"
2423
- },
2424
- },
2425
- securityContext: {
2426
- runAsUser: 42,
2427
- },
2428
- startupProbe: {
2429
- exec: {
2430
- command: [
2431
- "Test string"
2432
- ],
2433
- },
2434
- failureThreshold: 42,
2435
- grpc: {
2436
- port: 42,
2437
- service: "Test string",
2438
- },
2439
- httpGet: {
2440
- host: "Test string",
2441
- httpHeaders: [
2442
- {
2443
- name: "Test string",
2444
- value: "Test string",
2445
- }
2446
- ],
2447
- path: "Test string",
2448
- port: 42,
2449
- scheme: "Test string",
2450
- },
2451
- initialDelaySeconds: 42,
2452
- periodSeconds: 42,
2453
- successThreshold: 42,
2454
- tcpSocket: {
2455
- host: "Test string",
2456
- port: 42,
2457
- },
2458
- timeoutSeconds: 42,
2459
- },
2460
- terminationMessagePath: "Test string",
2461
- terminationMessagePolicy: "Test string",
2462
- volumeMounts: [
2463
- {
2464
- mountPath: "Test string",
2465
- name: "Test string",
2466
- readOnly: true,
2467
- subPath: "Test string",
2468
- }
2469
- ],
2470
- workingDir: "Test string",
2471
- }
2472
- ],
2473
- enableServiceLinks: true,
2474
- imagePullSecrets: [
2475
- {
2476
- name: "Test string",
2477
- }
2478
- ],
2479
- serviceAccountName: "Test string",
2480
- timeoutSeconds: 42,
2481
- volumes: [
2482
- {
2483
- configMap: {
2484
- defaultMode: 42,
2485
- items: [
2486
- {
2487
- key: "Test string",
2488
- mode: 42,
2489
- path: "Test string",
2490
- }
2491
- ],
2492
- name: "Test string",
2493
- optional: true,
2494
- },
2495
- emptyDir: {
2496
- medium: "Test string",
2497
- sizeLimit: "Test string",
2498
- },
2499
- name: "Test string",
2500
- secret: {
2501
- defaultMode: 42,
2502
- items: [
2503
- {
2504
- key: "Test string",
2505
- mode: 42,
2506
- path: "Test string",
2507
- }
2508
- ],
2509
- optional: true,
2510
- secretName: "Test string",
2511
- },
2512
- }
2513
- ],
2514
- },
2515
- },
2516
- traffic: [
2517
- {
2518
- configurationName: "Test string",
2519
- latestRevision: true,
2520
- percent: 42,
2521
- revisionName: "Test string",
2522
- tag: "Test string",
2523
- url: "Test string",
2524
- }
2525
- ],
2526
- },
2527
- status: {
2528
- address: {
2529
- url: "Test string",
2530
- },
2531
- conditions: [
2532
- {
2533
- lastTransitionTime: "Test string",
2534
- message: "Test string",
2535
- reason: "Test string",
2536
- severity: "Test string",
2537
- status: "Test string",
2538
- type: "Test string",
2539
- }
2540
- ],
2541
- latestCreatedRevisionName: "Test string",
2542
- latestReadyRevisionName: "Test string",
2543
- observedGeneration: 42,
2544
- traffic: [
2545
- {
2546
- configurationName: "Test string",
2547
- latestRevision: true,
2548
- percent: 42,
2549
- revisionName: "Test string",
2550
- tag: "Test string",
2551
- url: "Test string",
2552
- }
2553
- ],
2554
- url: "Test string",
2555
- },
2556
- });
2557
- /** Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. */
2558
- await gapi.client.run.projects.locations.services.setIamPolicy({
2559
- resource: "Test string",
2560
- }, {
2561
- policy: {
2562
- auditConfigs: [
2563
- {
2564
- auditLogConfigs: [
2565
- {
2566
- exemptedMembers: [
2567
- "Test string"
2568
- ],
2569
- logType: "Test string",
2570
- }
2571
- ],
2572
- service: "Test string",
2573
- }
2574
- ],
2575
- bindings: [
2576
- {
2577
- condition: {
2578
- description: "Test string",
2579
- expression: "Test string",
2580
- location: "Test string",
2581
- title: "Test string",
2582
- },
2583
- members: [
2584
- "Test string"
2585
- ],
2586
- role: "Test string",
2587
- }
2588
- ],
2589
- etag: "Test string",
2590
- version: 42,
2591
- },
2592
- updateMask: "Test string",
2593
- });
2594
- /** Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. */
2595
- await gapi.client.run.projects.locations.services.testIamPermissions({
2596
- resource: "Test string",
2597
- }, {
2598
- permissions: [
2599
- "Test string"
2600
- ],
2601
- });
2602
- }
2603
- });