@maxim_mazurok/gapi.client.osconfig-v1beta 0.0.20220725

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 ADDED
@@ -0,0 +1,973 @@
1
+ /* This is stub file for gapi.client.osconfig-v1beta 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: 20220725
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://osconfig.googleapis.com/$discovery/rest?version=v1beta');
12
+ /** now we can use gapi.client.osconfig */
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
+ /** Create an OS Config guest policy. */
33
+ await gapi.client.osconfig.projects.guestPolicies.create({
34
+ guestPolicyId: "Test string",
35
+ parent: "Test string",
36
+ }, {
37
+ assignment: {
38
+ groupLabels: [
39
+ {
40
+ labels: {
41
+ A: "Test string"
42
+ },
43
+ }
44
+ ],
45
+ instanceNamePrefixes: [
46
+ "Test string"
47
+ ],
48
+ instances: [
49
+ "Test string"
50
+ ],
51
+ osTypes: [
52
+ {
53
+ osArchitecture: "Test string",
54
+ osShortName: "Test string",
55
+ osVersion: "Test string",
56
+ }
57
+ ],
58
+ zones: [
59
+ "Test string"
60
+ ],
61
+ },
62
+ createTime: "Test string",
63
+ description: "Test string",
64
+ etag: "Test string",
65
+ name: "Test string",
66
+ packageRepositories: [
67
+ {
68
+ apt: {
69
+ archiveType: "Test string",
70
+ components: [
71
+ "Test string"
72
+ ],
73
+ distribution: "Test string",
74
+ gpgKey: "Test string",
75
+ uri: "Test string",
76
+ },
77
+ goo: {
78
+ name: "Test string",
79
+ url: "Test string",
80
+ },
81
+ yum: {
82
+ baseUrl: "Test string",
83
+ displayName: "Test string",
84
+ gpgKeys: [
85
+ "Test string"
86
+ ],
87
+ id: "Test string",
88
+ },
89
+ zypper: {
90
+ baseUrl: "Test string",
91
+ displayName: "Test string",
92
+ gpgKeys: [
93
+ "Test string"
94
+ ],
95
+ id: "Test string",
96
+ },
97
+ }
98
+ ],
99
+ packages: [
100
+ {
101
+ desiredState: "Test string",
102
+ manager: "Test string",
103
+ name: "Test string",
104
+ }
105
+ ],
106
+ recipes: [
107
+ {
108
+ artifacts: [
109
+ {
110
+ allowInsecure: true,
111
+ gcs: {
112
+ bucket: "Test string",
113
+ generation: "Test string",
114
+ object: "Test string",
115
+ },
116
+ id: "Test string",
117
+ remote: {
118
+ checksum: "Test string",
119
+ uri: "Test string",
120
+ },
121
+ }
122
+ ],
123
+ desiredState: "Test string",
124
+ installSteps: [
125
+ {
126
+ archiveExtraction: {
127
+ artifactId: "Test string",
128
+ destination: "Test string",
129
+ type: "Test string",
130
+ },
131
+ dpkgInstallation: {
132
+ artifactId: "Test string",
133
+ },
134
+ fileCopy: {
135
+ artifactId: "Test string",
136
+ destination: "Test string",
137
+ overwrite: true,
138
+ permissions: "Test string",
139
+ },
140
+ fileExec: {
141
+ allowedExitCodes: [
142
+ 42
143
+ ],
144
+ args: [
145
+ "Test string"
146
+ ],
147
+ artifactId: "Test string",
148
+ localPath: "Test string",
149
+ },
150
+ msiInstallation: {
151
+ allowedExitCodes: [
152
+ 42
153
+ ],
154
+ artifactId: "Test string",
155
+ flags: [
156
+ "Test string"
157
+ ],
158
+ },
159
+ rpmInstallation: {
160
+ artifactId: "Test string",
161
+ },
162
+ scriptRun: {
163
+ allowedExitCodes: [
164
+ 42
165
+ ],
166
+ interpreter: "Test string",
167
+ script: "Test string",
168
+ },
169
+ }
170
+ ],
171
+ name: "Test string",
172
+ updateSteps: [
173
+ {
174
+ archiveExtraction: {
175
+ artifactId: "Test string",
176
+ destination: "Test string",
177
+ type: "Test string",
178
+ },
179
+ dpkgInstallation: {
180
+ artifactId: "Test string",
181
+ },
182
+ fileCopy: {
183
+ artifactId: "Test string",
184
+ destination: "Test string",
185
+ overwrite: true,
186
+ permissions: "Test string",
187
+ },
188
+ fileExec: {
189
+ allowedExitCodes: [
190
+ 42
191
+ ],
192
+ args: [
193
+ "Test string"
194
+ ],
195
+ artifactId: "Test string",
196
+ localPath: "Test string",
197
+ },
198
+ msiInstallation: {
199
+ allowedExitCodes: [
200
+ 42
201
+ ],
202
+ artifactId: "Test string",
203
+ flags: [
204
+ "Test string"
205
+ ],
206
+ },
207
+ rpmInstallation: {
208
+ artifactId: "Test string",
209
+ },
210
+ scriptRun: {
211
+ allowedExitCodes: [
212
+ 42
213
+ ],
214
+ interpreter: "Test string",
215
+ script: "Test string",
216
+ },
217
+ }
218
+ ],
219
+ version: "Test string",
220
+ }
221
+ ],
222
+ updateTime: "Test string",
223
+ });
224
+ /** Delete an OS Config guest policy. */
225
+ await gapi.client.osconfig.projects.guestPolicies.delete({
226
+ name: "Test string",
227
+ });
228
+ /** Get an OS Config guest policy. */
229
+ await gapi.client.osconfig.projects.guestPolicies.get({
230
+ name: "Test string",
231
+ });
232
+ /** Get a page of OS Config guest policies. */
233
+ await gapi.client.osconfig.projects.guestPolicies.list({
234
+ pageSize: 42,
235
+ pageToken: "Test string",
236
+ parent: "Test string",
237
+ });
238
+ /** Update an OS Config guest policy. */
239
+ await gapi.client.osconfig.projects.guestPolicies.patch({
240
+ name: "Test string",
241
+ updateMask: "Test string",
242
+ }, {
243
+ assignment: {
244
+ groupLabels: [
245
+ {
246
+ labels: {
247
+ A: "Test string"
248
+ },
249
+ }
250
+ ],
251
+ instanceNamePrefixes: [
252
+ "Test string"
253
+ ],
254
+ instances: [
255
+ "Test string"
256
+ ],
257
+ osTypes: [
258
+ {
259
+ osArchitecture: "Test string",
260
+ osShortName: "Test string",
261
+ osVersion: "Test string",
262
+ }
263
+ ],
264
+ zones: [
265
+ "Test string"
266
+ ],
267
+ },
268
+ createTime: "Test string",
269
+ description: "Test string",
270
+ etag: "Test string",
271
+ name: "Test string",
272
+ packageRepositories: [
273
+ {
274
+ apt: {
275
+ archiveType: "Test string",
276
+ components: [
277
+ "Test string"
278
+ ],
279
+ distribution: "Test string",
280
+ gpgKey: "Test string",
281
+ uri: "Test string",
282
+ },
283
+ goo: {
284
+ name: "Test string",
285
+ url: "Test string",
286
+ },
287
+ yum: {
288
+ baseUrl: "Test string",
289
+ displayName: "Test string",
290
+ gpgKeys: [
291
+ "Test string"
292
+ ],
293
+ id: "Test string",
294
+ },
295
+ zypper: {
296
+ baseUrl: "Test string",
297
+ displayName: "Test string",
298
+ gpgKeys: [
299
+ "Test string"
300
+ ],
301
+ id: "Test string",
302
+ },
303
+ }
304
+ ],
305
+ packages: [
306
+ {
307
+ desiredState: "Test string",
308
+ manager: "Test string",
309
+ name: "Test string",
310
+ }
311
+ ],
312
+ recipes: [
313
+ {
314
+ artifacts: [
315
+ {
316
+ allowInsecure: true,
317
+ gcs: {
318
+ bucket: "Test string",
319
+ generation: "Test string",
320
+ object: "Test string",
321
+ },
322
+ id: "Test string",
323
+ remote: {
324
+ checksum: "Test string",
325
+ uri: "Test string",
326
+ },
327
+ }
328
+ ],
329
+ desiredState: "Test string",
330
+ installSteps: [
331
+ {
332
+ archiveExtraction: {
333
+ artifactId: "Test string",
334
+ destination: "Test string",
335
+ type: "Test string",
336
+ },
337
+ dpkgInstallation: {
338
+ artifactId: "Test string",
339
+ },
340
+ fileCopy: {
341
+ artifactId: "Test string",
342
+ destination: "Test string",
343
+ overwrite: true,
344
+ permissions: "Test string",
345
+ },
346
+ fileExec: {
347
+ allowedExitCodes: [
348
+ 42
349
+ ],
350
+ args: [
351
+ "Test string"
352
+ ],
353
+ artifactId: "Test string",
354
+ localPath: "Test string",
355
+ },
356
+ msiInstallation: {
357
+ allowedExitCodes: [
358
+ 42
359
+ ],
360
+ artifactId: "Test string",
361
+ flags: [
362
+ "Test string"
363
+ ],
364
+ },
365
+ rpmInstallation: {
366
+ artifactId: "Test string",
367
+ },
368
+ scriptRun: {
369
+ allowedExitCodes: [
370
+ 42
371
+ ],
372
+ interpreter: "Test string",
373
+ script: "Test string",
374
+ },
375
+ }
376
+ ],
377
+ name: "Test string",
378
+ updateSteps: [
379
+ {
380
+ archiveExtraction: {
381
+ artifactId: "Test string",
382
+ destination: "Test string",
383
+ type: "Test string",
384
+ },
385
+ dpkgInstallation: {
386
+ artifactId: "Test string",
387
+ },
388
+ fileCopy: {
389
+ artifactId: "Test string",
390
+ destination: "Test string",
391
+ overwrite: true,
392
+ permissions: "Test string",
393
+ },
394
+ fileExec: {
395
+ allowedExitCodes: [
396
+ 42
397
+ ],
398
+ args: [
399
+ "Test string"
400
+ ],
401
+ artifactId: "Test string",
402
+ localPath: "Test string",
403
+ },
404
+ msiInstallation: {
405
+ allowedExitCodes: [
406
+ 42
407
+ ],
408
+ artifactId: "Test string",
409
+ flags: [
410
+ "Test string"
411
+ ],
412
+ },
413
+ rpmInstallation: {
414
+ artifactId: "Test string",
415
+ },
416
+ scriptRun: {
417
+ allowedExitCodes: [
418
+ 42
419
+ ],
420
+ interpreter: "Test string",
421
+ script: "Test string",
422
+ },
423
+ }
424
+ ],
425
+ version: "Test string",
426
+ }
427
+ ],
428
+ updateTime: "Test string",
429
+ });
430
+ /** Create an OS Config patch deployment. */
431
+ await gapi.client.osconfig.projects.patchDeployments.create({
432
+ parent: "Test string",
433
+ patchDeploymentId: "Test string",
434
+ }, {
435
+ createTime: "Test string",
436
+ description: "Test string",
437
+ duration: "Test string",
438
+ instanceFilter: {
439
+ all: true,
440
+ groupLabels: [
441
+ {
442
+ labels: {
443
+ A: "Test string"
444
+ },
445
+ }
446
+ ],
447
+ instanceNamePrefixes: [
448
+ "Test string"
449
+ ],
450
+ instances: [
451
+ "Test string"
452
+ ],
453
+ zones: [
454
+ "Test string"
455
+ ],
456
+ },
457
+ lastExecuteTime: "Test string",
458
+ name: "Test string",
459
+ oneTimeSchedule: {
460
+ executeTime: "Test string",
461
+ },
462
+ patchConfig: {
463
+ apt: {
464
+ excludes: [
465
+ "Test string"
466
+ ],
467
+ exclusivePackages: [
468
+ "Test string"
469
+ ],
470
+ type: "Test string",
471
+ },
472
+ goo: {
473
+ },
474
+ migInstancesAllowed: true,
475
+ postStep: {
476
+ linuxExecStepConfig: {
477
+ allowedSuccessCodes: [
478
+ 42
479
+ ],
480
+ gcsObject: {
481
+ bucket: "Test string",
482
+ generationNumber: "Test string",
483
+ object: "Test string",
484
+ },
485
+ interpreter: "Test string",
486
+ localPath: "Test string",
487
+ },
488
+ windowsExecStepConfig: {
489
+ allowedSuccessCodes: [
490
+ 42
491
+ ],
492
+ gcsObject: {
493
+ bucket: "Test string",
494
+ generationNumber: "Test string",
495
+ object: "Test string",
496
+ },
497
+ interpreter: "Test string",
498
+ localPath: "Test string",
499
+ },
500
+ },
501
+ preStep: {
502
+ linuxExecStepConfig: {
503
+ allowedSuccessCodes: [
504
+ 42
505
+ ],
506
+ gcsObject: {
507
+ bucket: "Test string",
508
+ generationNumber: "Test string",
509
+ object: "Test string",
510
+ },
511
+ interpreter: "Test string",
512
+ localPath: "Test string",
513
+ },
514
+ windowsExecStepConfig: {
515
+ allowedSuccessCodes: [
516
+ 42
517
+ ],
518
+ gcsObject: {
519
+ bucket: "Test string",
520
+ generationNumber: "Test string",
521
+ object: "Test string",
522
+ },
523
+ interpreter: "Test string",
524
+ localPath: "Test string",
525
+ },
526
+ },
527
+ rebootConfig: "Test string",
528
+ windowsUpdate: {
529
+ classifications: [
530
+ "Test string"
531
+ ],
532
+ excludes: [
533
+ "Test string"
534
+ ],
535
+ exclusivePatches: [
536
+ "Test string"
537
+ ],
538
+ },
539
+ yum: {
540
+ excludes: [
541
+ "Test string"
542
+ ],
543
+ exclusivePackages: [
544
+ "Test string"
545
+ ],
546
+ minimal: true,
547
+ security: true,
548
+ },
549
+ zypper: {
550
+ categories: [
551
+ "Test string"
552
+ ],
553
+ excludes: [
554
+ "Test string"
555
+ ],
556
+ exclusivePatches: [
557
+ "Test string"
558
+ ],
559
+ severities: [
560
+ "Test string"
561
+ ],
562
+ withOptional: true,
563
+ withUpdate: true,
564
+ },
565
+ },
566
+ recurringSchedule: {
567
+ endTime: "Test string",
568
+ frequency: "Test string",
569
+ lastExecuteTime: "Test string",
570
+ monthly: {
571
+ monthDay: 42,
572
+ weekDayOfMonth: {
573
+ dayOffset: 42,
574
+ dayOfWeek: "Test string",
575
+ weekOrdinal: 42,
576
+ },
577
+ },
578
+ nextExecuteTime: "Test string",
579
+ startTime: "Test string",
580
+ timeOfDay: {
581
+ hours: 42,
582
+ minutes: 42,
583
+ nanos: 42,
584
+ seconds: 42,
585
+ },
586
+ timeZone: {
587
+ id: "Test string",
588
+ version: "Test string",
589
+ },
590
+ weekly: {
591
+ dayOfWeek: "Test string",
592
+ },
593
+ },
594
+ rollout: {
595
+ disruptionBudget: {
596
+ fixed: 42,
597
+ percent: 42,
598
+ },
599
+ mode: "Test string",
600
+ },
601
+ state: "Test string",
602
+ updateTime: "Test string",
603
+ });
604
+ /** Delete an OS Config patch deployment. */
605
+ await gapi.client.osconfig.projects.patchDeployments.delete({
606
+ name: "Test string",
607
+ });
608
+ /** Get an OS Config patch deployment. */
609
+ await gapi.client.osconfig.projects.patchDeployments.get({
610
+ name: "Test string",
611
+ });
612
+ /** Get a page of OS Config patch deployments. */
613
+ await gapi.client.osconfig.projects.patchDeployments.list({
614
+ pageSize: 42,
615
+ pageToken: "Test string",
616
+ parent: "Test string",
617
+ });
618
+ /** Update an OS Config patch deployment. */
619
+ await gapi.client.osconfig.projects.patchDeployments.patch({
620
+ name: "Test string",
621
+ updateMask: "Test string",
622
+ }, {
623
+ createTime: "Test string",
624
+ description: "Test string",
625
+ duration: "Test string",
626
+ instanceFilter: {
627
+ all: true,
628
+ groupLabels: [
629
+ {
630
+ labels: {
631
+ A: "Test string"
632
+ },
633
+ }
634
+ ],
635
+ instanceNamePrefixes: [
636
+ "Test string"
637
+ ],
638
+ instances: [
639
+ "Test string"
640
+ ],
641
+ zones: [
642
+ "Test string"
643
+ ],
644
+ },
645
+ lastExecuteTime: "Test string",
646
+ name: "Test string",
647
+ oneTimeSchedule: {
648
+ executeTime: "Test string",
649
+ },
650
+ patchConfig: {
651
+ apt: {
652
+ excludes: [
653
+ "Test string"
654
+ ],
655
+ exclusivePackages: [
656
+ "Test string"
657
+ ],
658
+ type: "Test string",
659
+ },
660
+ goo: {
661
+ },
662
+ migInstancesAllowed: true,
663
+ postStep: {
664
+ linuxExecStepConfig: {
665
+ allowedSuccessCodes: [
666
+ 42
667
+ ],
668
+ gcsObject: {
669
+ bucket: "Test string",
670
+ generationNumber: "Test string",
671
+ object: "Test string",
672
+ },
673
+ interpreter: "Test string",
674
+ localPath: "Test string",
675
+ },
676
+ windowsExecStepConfig: {
677
+ allowedSuccessCodes: [
678
+ 42
679
+ ],
680
+ gcsObject: {
681
+ bucket: "Test string",
682
+ generationNumber: "Test string",
683
+ object: "Test string",
684
+ },
685
+ interpreter: "Test string",
686
+ localPath: "Test string",
687
+ },
688
+ },
689
+ preStep: {
690
+ linuxExecStepConfig: {
691
+ allowedSuccessCodes: [
692
+ 42
693
+ ],
694
+ gcsObject: {
695
+ bucket: "Test string",
696
+ generationNumber: "Test string",
697
+ object: "Test string",
698
+ },
699
+ interpreter: "Test string",
700
+ localPath: "Test string",
701
+ },
702
+ windowsExecStepConfig: {
703
+ allowedSuccessCodes: [
704
+ 42
705
+ ],
706
+ gcsObject: {
707
+ bucket: "Test string",
708
+ generationNumber: "Test string",
709
+ object: "Test string",
710
+ },
711
+ interpreter: "Test string",
712
+ localPath: "Test string",
713
+ },
714
+ },
715
+ rebootConfig: "Test string",
716
+ windowsUpdate: {
717
+ classifications: [
718
+ "Test string"
719
+ ],
720
+ excludes: [
721
+ "Test string"
722
+ ],
723
+ exclusivePatches: [
724
+ "Test string"
725
+ ],
726
+ },
727
+ yum: {
728
+ excludes: [
729
+ "Test string"
730
+ ],
731
+ exclusivePackages: [
732
+ "Test string"
733
+ ],
734
+ minimal: true,
735
+ security: true,
736
+ },
737
+ zypper: {
738
+ categories: [
739
+ "Test string"
740
+ ],
741
+ excludes: [
742
+ "Test string"
743
+ ],
744
+ exclusivePatches: [
745
+ "Test string"
746
+ ],
747
+ severities: [
748
+ "Test string"
749
+ ],
750
+ withOptional: true,
751
+ withUpdate: true,
752
+ },
753
+ },
754
+ recurringSchedule: {
755
+ endTime: "Test string",
756
+ frequency: "Test string",
757
+ lastExecuteTime: "Test string",
758
+ monthly: {
759
+ monthDay: 42,
760
+ weekDayOfMonth: {
761
+ dayOffset: 42,
762
+ dayOfWeek: "Test string",
763
+ weekOrdinal: 42,
764
+ },
765
+ },
766
+ nextExecuteTime: "Test string",
767
+ startTime: "Test string",
768
+ timeOfDay: {
769
+ hours: 42,
770
+ minutes: 42,
771
+ nanos: 42,
772
+ seconds: 42,
773
+ },
774
+ timeZone: {
775
+ id: "Test string",
776
+ version: "Test string",
777
+ },
778
+ weekly: {
779
+ dayOfWeek: "Test string",
780
+ },
781
+ },
782
+ rollout: {
783
+ disruptionBudget: {
784
+ fixed: 42,
785
+ percent: 42,
786
+ },
787
+ mode: "Test string",
788
+ },
789
+ state: "Test string",
790
+ updateTime: "Test string",
791
+ });
792
+ /** Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate patch jobs. */
793
+ await gapi.client.osconfig.projects.patchDeployments.pause({
794
+ name: "Test string",
795
+ }, {
796
+ });
797
+ /** Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues to generate patch jobs. */
798
+ await gapi.client.osconfig.projects.patchDeployments.resume({
799
+ name: "Test string",
800
+ }, {
801
+ });
802
+ /** Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted. */
803
+ await gapi.client.osconfig.projects.patchJobs.cancel({
804
+ name: "Test string",
805
+ }, {
806
+ });
807
+ /** Patch VM instances by creating and running a patch job. */
808
+ await gapi.client.osconfig.projects.patchJobs.execute({
809
+ parent: "Test string",
810
+ }, {
811
+ description: "Test string",
812
+ displayName: "Test string",
813
+ dryRun: true,
814
+ duration: "Test string",
815
+ instanceFilter: {
816
+ all: true,
817
+ groupLabels: [
818
+ {
819
+ labels: {
820
+ A: "Test string"
821
+ },
822
+ }
823
+ ],
824
+ instanceNamePrefixes: [
825
+ "Test string"
826
+ ],
827
+ instances: [
828
+ "Test string"
829
+ ],
830
+ zones: [
831
+ "Test string"
832
+ ],
833
+ },
834
+ patchConfig: {
835
+ apt: {
836
+ excludes: [
837
+ "Test string"
838
+ ],
839
+ exclusivePackages: [
840
+ "Test string"
841
+ ],
842
+ type: "Test string",
843
+ },
844
+ goo: {
845
+ },
846
+ migInstancesAllowed: true,
847
+ postStep: {
848
+ linuxExecStepConfig: {
849
+ allowedSuccessCodes: [
850
+ 42
851
+ ],
852
+ gcsObject: {
853
+ bucket: "Test string",
854
+ generationNumber: "Test string",
855
+ object: "Test string",
856
+ },
857
+ interpreter: "Test string",
858
+ localPath: "Test string",
859
+ },
860
+ windowsExecStepConfig: {
861
+ allowedSuccessCodes: [
862
+ 42
863
+ ],
864
+ gcsObject: {
865
+ bucket: "Test string",
866
+ generationNumber: "Test string",
867
+ object: "Test string",
868
+ },
869
+ interpreter: "Test string",
870
+ localPath: "Test string",
871
+ },
872
+ },
873
+ preStep: {
874
+ linuxExecStepConfig: {
875
+ allowedSuccessCodes: [
876
+ 42
877
+ ],
878
+ gcsObject: {
879
+ bucket: "Test string",
880
+ generationNumber: "Test string",
881
+ object: "Test string",
882
+ },
883
+ interpreter: "Test string",
884
+ localPath: "Test string",
885
+ },
886
+ windowsExecStepConfig: {
887
+ allowedSuccessCodes: [
888
+ 42
889
+ ],
890
+ gcsObject: {
891
+ bucket: "Test string",
892
+ generationNumber: "Test string",
893
+ object: "Test string",
894
+ },
895
+ interpreter: "Test string",
896
+ localPath: "Test string",
897
+ },
898
+ },
899
+ rebootConfig: "Test string",
900
+ windowsUpdate: {
901
+ classifications: [
902
+ "Test string"
903
+ ],
904
+ excludes: [
905
+ "Test string"
906
+ ],
907
+ exclusivePatches: [
908
+ "Test string"
909
+ ],
910
+ },
911
+ yum: {
912
+ excludes: [
913
+ "Test string"
914
+ ],
915
+ exclusivePackages: [
916
+ "Test string"
917
+ ],
918
+ minimal: true,
919
+ security: true,
920
+ },
921
+ zypper: {
922
+ categories: [
923
+ "Test string"
924
+ ],
925
+ excludes: [
926
+ "Test string"
927
+ ],
928
+ exclusivePatches: [
929
+ "Test string"
930
+ ],
931
+ severities: [
932
+ "Test string"
933
+ ],
934
+ withOptional: true,
935
+ withUpdate: true,
936
+ },
937
+ },
938
+ rollout: {
939
+ disruptionBudget: {
940
+ fixed: 42,
941
+ percent: 42,
942
+ },
943
+ mode: "Test string",
944
+ },
945
+ });
946
+ /** Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs. */
947
+ await gapi.client.osconfig.projects.patchJobs.get({
948
+ name: "Test string",
949
+ });
950
+ /** Get a list of patch jobs. */
951
+ await gapi.client.osconfig.projects.patchJobs.list({
952
+ filter: "Test string",
953
+ pageSize: 42,
954
+ pageToken: "Test string",
955
+ parent: "Test string",
956
+ });
957
+ /** Get a list of instance details for a given patch job. */
958
+ await gapi.client.osconfig.projects.patchJobs.instanceDetails.list({
959
+ filter: "Test string",
960
+ pageSize: 42,
961
+ pageToken: "Test string",
962
+ parent: "Test string",
963
+ });
964
+ /** Lookup the effective guest policy that applies to a VM instance. This lookup merges all policies that are assigned to the instance ancestry. */
965
+ await gapi.client.osconfig.projects.zones.instances.lookupEffectiveGuestPolicy({
966
+ instance: "Test string",
967
+ }, {
968
+ osArchitecture: "Test string",
969
+ osShortName: "Test string",
970
+ osVersion: "Test string",
971
+ });
972
+ }
973
+ });