@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.0.20220805

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,2762 @@
1
+ /* This is stub file for gapi.client.containeranalysis-v1alpha1 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: 20220805
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://containeranalysis.googleapis.com/$discovery/rest?version=v1alpha1');
12
+ /** now we can use gapi.client.containeranalysis */
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
+ /** Creates a new `Note`. */
33
+ await gapi.client.containeranalysis.projects.notes.create({
34
+ name: "Test string",
35
+ noteId: "Test string",
36
+ parent: "Test string",
37
+ }, {
38
+ attestationAuthority: {
39
+ hint: {
40
+ humanReadableName: "Test string",
41
+ },
42
+ },
43
+ baseImage: {
44
+ fingerprint: {
45
+ v1Name: "Test string",
46
+ v2Blob: [
47
+ "Test string"
48
+ ],
49
+ v2Name: "Test string",
50
+ },
51
+ resourceUrl: "Test string",
52
+ },
53
+ buildType: {
54
+ builderVersion: "Test string",
55
+ signature: {
56
+ keyId: "Test string",
57
+ keyType: "Test string",
58
+ publicKey: "Test string",
59
+ signature: "Test string",
60
+ },
61
+ },
62
+ compliance: {
63
+ cisBenchmark: {
64
+ profileLevel: 42,
65
+ severity: "Test string",
66
+ },
67
+ description: "Test string",
68
+ rationale: "Test string",
69
+ remediation: "Test string",
70
+ scanInstructions: "Test string",
71
+ title: "Test string",
72
+ version: [
73
+ {
74
+ benchmarkDocument: "Test string",
75
+ cpeUri: "Test string",
76
+ version: "Test string",
77
+ }
78
+ ],
79
+ },
80
+ createTime: "Test string",
81
+ deployable: {
82
+ resourceUri: [
83
+ "Test string"
84
+ ],
85
+ },
86
+ discovery: {
87
+ analysisKind: "Test string",
88
+ },
89
+ dsseAttestation: {
90
+ hint: {
91
+ humanReadableName: "Test string",
92
+ },
93
+ },
94
+ expirationTime: "Test string",
95
+ kind: "Test string",
96
+ longDescription: "Test string",
97
+ name: "Test string",
98
+ package: {
99
+ architecture: "Test string",
100
+ cpeUri: "Test string",
101
+ description: "Test string",
102
+ digest: [
103
+ {
104
+ algo: "Test string",
105
+ digestBytes: "Test string",
106
+ }
107
+ ],
108
+ distribution: [
109
+ {
110
+ architecture: "Test string",
111
+ cpeUri: "Test string",
112
+ description: "Test string",
113
+ latestVersion: {
114
+ epoch: 42,
115
+ inclusive: true,
116
+ kind: "Test string",
117
+ name: "Test string",
118
+ revision: "Test string",
119
+ },
120
+ maintainer: "Test string",
121
+ url: "Test string",
122
+ }
123
+ ],
124
+ license: {
125
+ comments: "Test string",
126
+ expression: "Test string",
127
+ },
128
+ maintainer: "Test string",
129
+ name: "Test string",
130
+ packageType: "Test string",
131
+ url: "Test string",
132
+ version: {
133
+ epoch: 42,
134
+ inclusive: true,
135
+ kind: "Test string",
136
+ name: "Test string",
137
+ revision: "Test string",
138
+ },
139
+ },
140
+ relatedUrl: [
141
+ {
142
+ label: "Test string",
143
+ url: "Test string",
144
+ }
145
+ ],
146
+ sbom: {
147
+ dataLicence: "Test string",
148
+ spdxVersion: "Test string",
149
+ },
150
+ shortDescription: "Test string",
151
+ spdxFile: {
152
+ checksum: [
153
+ "Test string"
154
+ ],
155
+ fileType: "Test string",
156
+ title: "Test string",
157
+ },
158
+ spdxPackage: {
159
+ analyzed: true,
160
+ attribution: "Test string",
161
+ checksum: "Test string",
162
+ copyright: "Test string",
163
+ detailedDescription: "Test string",
164
+ downloadLocation: "Test string",
165
+ externalRefs: [
166
+ {
167
+ category: "Test string",
168
+ comment: "Test string",
169
+ locator: "Test string",
170
+ type: "Test string",
171
+ }
172
+ ],
173
+ filesLicenseInfo: [
174
+ "Test string"
175
+ ],
176
+ homePage: "Test string",
177
+ licenseDeclared: {
178
+ comments: "Test string",
179
+ expression: "Test string",
180
+ },
181
+ originator: "Test string",
182
+ packageType: "Test string",
183
+ summaryDescription: "Test string",
184
+ supplier: "Test string",
185
+ title: "Test string",
186
+ verificationCode: "Test string",
187
+ version: "Test string",
188
+ },
189
+ spdxRelationship: {
190
+ type: "Test string",
191
+ },
192
+ updateTime: "Test string",
193
+ upgrade: {
194
+ distributions: [
195
+ {
196
+ classification: "Test string",
197
+ cpeUri: "Test string",
198
+ cve: [
199
+ "Test string"
200
+ ],
201
+ severity: "Test string",
202
+ }
203
+ ],
204
+ package: "Test string",
205
+ version: {
206
+ epoch: 42,
207
+ inclusive: true,
208
+ kind: "Test string",
209
+ name: "Test string",
210
+ revision: "Test string",
211
+ },
212
+ },
213
+ vulnerabilityType: {
214
+ cvssScore: 42,
215
+ cvssV2: {
216
+ attackComplexity: "Test string",
217
+ attackVector: "Test string",
218
+ authentication: "Test string",
219
+ availabilityImpact: "Test string",
220
+ baseScore: 42,
221
+ confidentialityImpact: "Test string",
222
+ exploitabilityScore: 42,
223
+ impactScore: 42,
224
+ integrityImpact: "Test string",
225
+ privilegesRequired: "Test string",
226
+ scope: "Test string",
227
+ userInteraction: "Test string",
228
+ },
229
+ cwe: [
230
+ "Test string"
231
+ ],
232
+ details: [
233
+ {
234
+ cpeUri: "Test string",
235
+ description: "Test string",
236
+ fixedLocation: {
237
+ cpeUri: "Test string",
238
+ fileLocation: [
239
+ {
240
+ filePath: "Test string",
241
+ }
242
+ ],
243
+ package: "Test string",
244
+ version: {
245
+ epoch: 42,
246
+ inclusive: true,
247
+ kind: "Test string",
248
+ name: "Test string",
249
+ revision: "Test string",
250
+ },
251
+ },
252
+ isObsolete: true,
253
+ maxAffectedVersion: {
254
+ epoch: 42,
255
+ inclusive: true,
256
+ kind: "Test string",
257
+ name: "Test string",
258
+ revision: "Test string",
259
+ },
260
+ minAffectedVersion: {
261
+ epoch: 42,
262
+ inclusive: true,
263
+ kind: "Test string",
264
+ name: "Test string",
265
+ revision: "Test string",
266
+ },
267
+ package: "Test string",
268
+ packageType: "Test string",
269
+ severityName: "Test string",
270
+ source: "Test string",
271
+ vendor: "Test string",
272
+ }
273
+ ],
274
+ severity: "Test string",
275
+ },
276
+ });
277
+ /** Deletes the given `Note` from the system. */
278
+ await gapi.client.containeranalysis.projects.notes.delete({
279
+ name: "Test string",
280
+ });
281
+ /** Returns the requested `Note`. */
282
+ await gapi.client.containeranalysis.projects.notes.get({
283
+ name: "Test string",
284
+ });
285
+ /**
286
+ * Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
287
+ * resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to
288
+ * call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource
289
+ * takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
290
+ */
291
+ await gapi.client.containeranalysis.projects.notes.getIamPolicy({
292
+ resource: "Test string",
293
+ }, {
294
+ options: {
295
+ requestedPolicyVersion: 42,
296
+ },
297
+ });
298
+ /** Lists all `Notes` for a given project. */
299
+ await gapi.client.containeranalysis.projects.notes.list({
300
+ filter: "Test string",
301
+ name: "Test string",
302
+ pageSize: 42,
303
+ pageToken: "Test string",
304
+ parent: "Test string",
305
+ });
306
+ /** Updates an existing `Note`. */
307
+ await gapi.client.containeranalysis.projects.notes.patch({
308
+ name: "Test string",
309
+ updateMask: "Test string",
310
+ }, {
311
+ attestationAuthority: {
312
+ hint: {
313
+ humanReadableName: "Test string",
314
+ },
315
+ },
316
+ baseImage: {
317
+ fingerprint: {
318
+ v1Name: "Test string",
319
+ v2Blob: [
320
+ "Test string"
321
+ ],
322
+ v2Name: "Test string",
323
+ },
324
+ resourceUrl: "Test string",
325
+ },
326
+ buildType: {
327
+ builderVersion: "Test string",
328
+ signature: {
329
+ keyId: "Test string",
330
+ keyType: "Test string",
331
+ publicKey: "Test string",
332
+ signature: "Test string",
333
+ },
334
+ },
335
+ compliance: {
336
+ cisBenchmark: {
337
+ profileLevel: 42,
338
+ severity: "Test string",
339
+ },
340
+ description: "Test string",
341
+ rationale: "Test string",
342
+ remediation: "Test string",
343
+ scanInstructions: "Test string",
344
+ title: "Test string",
345
+ version: [
346
+ {
347
+ benchmarkDocument: "Test string",
348
+ cpeUri: "Test string",
349
+ version: "Test string",
350
+ }
351
+ ],
352
+ },
353
+ createTime: "Test string",
354
+ deployable: {
355
+ resourceUri: [
356
+ "Test string"
357
+ ],
358
+ },
359
+ discovery: {
360
+ analysisKind: "Test string",
361
+ },
362
+ dsseAttestation: {
363
+ hint: {
364
+ humanReadableName: "Test string",
365
+ },
366
+ },
367
+ expirationTime: "Test string",
368
+ kind: "Test string",
369
+ longDescription: "Test string",
370
+ name: "Test string",
371
+ package: {
372
+ architecture: "Test string",
373
+ cpeUri: "Test string",
374
+ description: "Test string",
375
+ digest: [
376
+ {
377
+ algo: "Test string",
378
+ digestBytes: "Test string",
379
+ }
380
+ ],
381
+ distribution: [
382
+ {
383
+ architecture: "Test string",
384
+ cpeUri: "Test string",
385
+ description: "Test string",
386
+ latestVersion: {
387
+ epoch: 42,
388
+ inclusive: true,
389
+ kind: "Test string",
390
+ name: "Test string",
391
+ revision: "Test string",
392
+ },
393
+ maintainer: "Test string",
394
+ url: "Test string",
395
+ }
396
+ ],
397
+ license: {
398
+ comments: "Test string",
399
+ expression: "Test string",
400
+ },
401
+ maintainer: "Test string",
402
+ name: "Test string",
403
+ packageType: "Test string",
404
+ url: "Test string",
405
+ version: {
406
+ epoch: 42,
407
+ inclusive: true,
408
+ kind: "Test string",
409
+ name: "Test string",
410
+ revision: "Test string",
411
+ },
412
+ },
413
+ relatedUrl: [
414
+ {
415
+ label: "Test string",
416
+ url: "Test string",
417
+ }
418
+ ],
419
+ sbom: {
420
+ dataLicence: "Test string",
421
+ spdxVersion: "Test string",
422
+ },
423
+ shortDescription: "Test string",
424
+ spdxFile: {
425
+ checksum: [
426
+ "Test string"
427
+ ],
428
+ fileType: "Test string",
429
+ title: "Test string",
430
+ },
431
+ spdxPackage: {
432
+ analyzed: true,
433
+ attribution: "Test string",
434
+ checksum: "Test string",
435
+ copyright: "Test string",
436
+ detailedDescription: "Test string",
437
+ downloadLocation: "Test string",
438
+ externalRefs: [
439
+ {
440
+ category: "Test string",
441
+ comment: "Test string",
442
+ locator: "Test string",
443
+ type: "Test string",
444
+ }
445
+ ],
446
+ filesLicenseInfo: [
447
+ "Test string"
448
+ ],
449
+ homePage: "Test string",
450
+ licenseDeclared: {
451
+ comments: "Test string",
452
+ expression: "Test string",
453
+ },
454
+ originator: "Test string",
455
+ packageType: "Test string",
456
+ summaryDescription: "Test string",
457
+ supplier: "Test string",
458
+ title: "Test string",
459
+ verificationCode: "Test string",
460
+ version: "Test string",
461
+ },
462
+ spdxRelationship: {
463
+ type: "Test string",
464
+ },
465
+ updateTime: "Test string",
466
+ upgrade: {
467
+ distributions: [
468
+ {
469
+ classification: "Test string",
470
+ cpeUri: "Test string",
471
+ cve: [
472
+ "Test string"
473
+ ],
474
+ severity: "Test string",
475
+ }
476
+ ],
477
+ package: "Test string",
478
+ version: {
479
+ epoch: 42,
480
+ inclusive: true,
481
+ kind: "Test string",
482
+ name: "Test string",
483
+ revision: "Test string",
484
+ },
485
+ },
486
+ vulnerabilityType: {
487
+ cvssScore: 42,
488
+ cvssV2: {
489
+ attackComplexity: "Test string",
490
+ attackVector: "Test string",
491
+ authentication: "Test string",
492
+ availabilityImpact: "Test string",
493
+ baseScore: 42,
494
+ confidentialityImpact: "Test string",
495
+ exploitabilityScore: 42,
496
+ impactScore: 42,
497
+ integrityImpact: "Test string",
498
+ privilegesRequired: "Test string",
499
+ scope: "Test string",
500
+ userInteraction: "Test string",
501
+ },
502
+ cwe: [
503
+ "Test string"
504
+ ],
505
+ details: [
506
+ {
507
+ cpeUri: "Test string",
508
+ description: "Test string",
509
+ fixedLocation: {
510
+ cpeUri: "Test string",
511
+ fileLocation: [
512
+ {
513
+ filePath: "Test string",
514
+ }
515
+ ],
516
+ package: "Test string",
517
+ version: {
518
+ epoch: 42,
519
+ inclusive: true,
520
+ kind: "Test string",
521
+ name: "Test string",
522
+ revision: "Test string",
523
+ },
524
+ },
525
+ isObsolete: true,
526
+ maxAffectedVersion: {
527
+ epoch: 42,
528
+ inclusive: true,
529
+ kind: "Test string",
530
+ name: "Test string",
531
+ revision: "Test string",
532
+ },
533
+ minAffectedVersion: {
534
+ epoch: 42,
535
+ inclusive: true,
536
+ kind: "Test string",
537
+ name: "Test string",
538
+ revision: "Test string",
539
+ },
540
+ package: "Test string",
541
+ packageType: "Test string",
542
+ severityName: "Test string",
543
+ source: "Test string",
544
+ vendor: "Test string",
545
+ }
546
+ ],
547
+ severity: "Test string",
548
+ },
549
+ });
550
+ /**
551
+ * Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
552
+ * resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this
553
+ * method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an
554
+ * `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and
555
+ * projects/{projectid}/notes/{noteid} for notes
556
+ */
557
+ await gapi.client.containeranalysis.projects.notes.setIamPolicy({
558
+ resource: "Test string",
559
+ }, {
560
+ policy: {
561
+ bindings: [
562
+ {
563
+ condition: {
564
+ description: "Test string",
565
+ expression: "Test string",
566
+ location: "Test string",
567
+ title: "Test string",
568
+ },
569
+ members: [
570
+ "Test string"
571
+ ],
572
+ role: "Test string",
573
+ }
574
+ ],
575
+ etag: "Test string",
576
+ version: 42,
577
+ },
578
+ });
579
+ /**
580
+ * Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing
581
+ * bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project,
582
+ * or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and
583
+ * `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
584
+ */
585
+ await gapi.client.containeranalysis.projects.notes.testIamPermissions({
586
+ resource: "Test string",
587
+ }, {
588
+ permissions: [
589
+ "Test string"
590
+ ],
591
+ });
592
+ /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
593
+ await gapi.client.containeranalysis.projects.notes.occurrences.list({
594
+ filter: "Test string",
595
+ name: "Test string",
596
+ pageSize: 42,
597
+ pageToken: "Test string",
598
+ });
599
+ /** Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource. */
600
+ await gapi.client.containeranalysis.projects.occurrences.create({
601
+ name: "Test string",
602
+ parent: "Test string",
603
+ }, {
604
+ attestation: {
605
+ pgpSignedAttestation: {
606
+ contentType: "Test string",
607
+ pgpKeyId: "Test string",
608
+ signature: "Test string",
609
+ },
610
+ },
611
+ buildDetails: {
612
+ intotoProvenance: {
613
+ builderConfig: {
614
+ id: "Test string",
615
+ },
616
+ materials: [
617
+ "Test string"
618
+ ],
619
+ metadata: {
620
+ buildFinishedOn: "Test string",
621
+ buildInvocationId: "Test string",
622
+ buildStartedOn: "Test string",
623
+ completeness: {
624
+ arguments: true,
625
+ environment: true,
626
+ materials: true,
627
+ },
628
+ reproducible: true,
629
+ },
630
+ recipe: {
631
+ arguments: [
632
+ {
633
+ A: 42
634
+ }
635
+ ],
636
+ definedInMaterial: "Test string",
637
+ entryPoint: "Test string",
638
+ environment: [
639
+ {
640
+ A: 42
641
+ }
642
+ ],
643
+ type: "Test string",
644
+ },
645
+ },
646
+ intotoStatement: {
647
+ _type: "Test string",
648
+ predicateType: "Test string",
649
+ provenance: {
650
+ builderConfig: {
651
+ id: "Test string",
652
+ },
653
+ materials: [
654
+ "Test string"
655
+ ],
656
+ metadata: {
657
+ buildFinishedOn: "Test string",
658
+ buildInvocationId: "Test string",
659
+ buildStartedOn: "Test string",
660
+ completeness: {
661
+ arguments: true,
662
+ environment: true,
663
+ materials: true,
664
+ },
665
+ reproducible: true,
666
+ },
667
+ recipe: {
668
+ arguments: [
669
+ {
670
+ A: 42
671
+ }
672
+ ],
673
+ definedInMaterial: "Test string",
674
+ entryPoint: "Test string",
675
+ environment: [
676
+ {
677
+ A: 42
678
+ }
679
+ ],
680
+ type: "Test string",
681
+ },
682
+ },
683
+ slsaProvenance: {
684
+ builder: {
685
+ id: "Test string",
686
+ },
687
+ materials: [
688
+ {
689
+ digest: {
690
+ A: "Test string"
691
+ },
692
+ uri: "Test string",
693
+ }
694
+ ],
695
+ metadata: {
696
+ buildFinishedOn: "Test string",
697
+ buildInvocationId: "Test string",
698
+ buildStartedOn: "Test string",
699
+ completeness: {
700
+ arguments: true,
701
+ environment: true,
702
+ materials: true,
703
+ },
704
+ reproducible: true,
705
+ },
706
+ recipe: {
707
+ arguments: {
708
+ A: 42
709
+ },
710
+ definedInMaterial: "Test string",
711
+ entryPoint: "Test string",
712
+ environment: {
713
+ A: 42
714
+ },
715
+ type: "Test string",
716
+ },
717
+ },
718
+ slsaProvenanceZeroTwo: {
719
+ buildConfig: {
720
+ A: 42
721
+ },
722
+ builder: {
723
+ id: "Test string",
724
+ },
725
+ buildType: "Test string",
726
+ invocation: {
727
+ configSource: {
728
+ digest: {
729
+ A: "Test string"
730
+ },
731
+ entryPoint: "Test string",
732
+ uri: "Test string",
733
+ },
734
+ environment: {
735
+ A: 42
736
+ },
737
+ parameters: {
738
+ A: 42
739
+ },
740
+ },
741
+ materials: [
742
+ {
743
+ digest: {
744
+ A: "Test string"
745
+ },
746
+ uri: "Test string",
747
+ }
748
+ ],
749
+ metadata: {
750
+ buildFinishedOn: "Test string",
751
+ buildInvocationId: "Test string",
752
+ buildStartedOn: "Test string",
753
+ completeness: {
754
+ environment: true,
755
+ materials: true,
756
+ parameters: true,
757
+ },
758
+ reproducible: true,
759
+ },
760
+ },
761
+ subject: [
762
+ {
763
+ digest: {
764
+ A: "Test string"
765
+ },
766
+ name: "Test string",
767
+ }
768
+ ],
769
+ },
770
+ provenance: {
771
+ builderVersion: "Test string",
772
+ buildOptions: {
773
+ A: "Test string"
774
+ },
775
+ builtArtifacts: [
776
+ {
777
+ checksum: "Test string",
778
+ id: "Test string",
779
+ name: "Test string",
780
+ names: [
781
+ "Test string"
782
+ ],
783
+ }
784
+ ],
785
+ commands: [
786
+ {
787
+ args: [
788
+ "Test string"
789
+ ],
790
+ dir: "Test string",
791
+ env: [
792
+ "Test string"
793
+ ],
794
+ id: "Test string",
795
+ name: "Test string",
796
+ waitFor: [
797
+ "Test string"
798
+ ],
799
+ }
800
+ ],
801
+ createTime: "Test string",
802
+ creator: "Test string",
803
+ finishTime: "Test string",
804
+ id: "Test string",
805
+ logsBucket: "Test string",
806
+ projectId: "Test string",
807
+ sourceProvenance: {
808
+ additionalContexts: [
809
+ {
810
+ cloudRepo: {
811
+ aliasContext: {
812
+ kind: "Test string",
813
+ name: "Test string",
814
+ },
815
+ repoId: {
816
+ projectRepoId: {
817
+ projectId: "Test string",
818
+ repoName: "Test string",
819
+ },
820
+ uid: "Test string",
821
+ },
822
+ revisionId: "Test string",
823
+ },
824
+ gerrit: {
825
+ aliasContext: {
826
+ kind: "Test string",
827
+ name: "Test string",
828
+ },
829
+ gerritProject: "Test string",
830
+ hostUri: "Test string",
831
+ revisionId: "Test string",
832
+ },
833
+ git: {
834
+ revisionId: "Test string",
835
+ url: "Test string",
836
+ },
837
+ labels: {
838
+ A: "Test string"
839
+ },
840
+ }
841
+ ],
842
+ artifactStorageSource: {
843
+ bucket: "Test string",
844
+ generation: "Test string",
845
+ object: "Test string",
846
+ },
847
+ context: {
848
+ cloudRepo: {
849
+ aliasContext: {
850
+ kind: "Test string",
851
+ name: "Test string",
852
+ },
853
+ repoId: {
854
+ projectRepoId: {
855
+ projectId: "Test string",
856
+ repoName: "Test string",
857
+ },
858
+ uid: "Test string",
859
+ },
860
+ revisionId: "Test string",
861
+ },
862
+ gerrit: {
863
+ aliasContext: {
864
+ kind: "Test string",
865
+ name: "Test string",
866
+ },
867
+ gerritProject: "Test string",
868
+ hostUri: "Test string",
869
+ revisionId: "Test string",
870
+ },
871
+ git: {
872
+ revisionId: "Test string",
873
+ url: "Test string",
874
+ },
875
+ labels: {
876
+ A: "Test string"
877
+ },
878
+ },
879
+ fileHashes: {
880
+ A: {
881
+ fileHash: [
882
+ {
883
+ type: "Test string",
884
+ value: "Test string",
885
+ }
886
+ ],
887
+ }
888
+ },
889
+ repoSource: {
890
+ branchName: "Test string",
891
+ commitSha: "Test string",
892
+ projectId: "Test string",
893
+ repoName: "Test string",
894
+ tagName: "Test string",
895
+ },
896
+ storageSource: {
897
+ bucket: "Test string",
898
+ generation: "Test string",
899
+ object: "Test string",
900
+ },
901
+ },
902
+ startTime: "Test string",
903
+ triggerId: "Test string",
904
+ },
905
+ provenanceBytes: "Test string",
906
+ },
907
+ compliance: {
908
+ nonComplianceReason: "Test string",
909
+ nonCompliantFiles: [
910
+ {
911
+ displayCommand: "Test string",
912
+ path: "Test string",
913
+ reason: "Test string",
914
+ }
915
+ ],
916
+ },
917
+ createTime: "Test string",
918
+ deployment: {
919
+ address: "Test string",
920
+ config: "Test string",
921
+ deployTime: "Test string",
922
+ platform: "Test string",
923
+ resourceUri: [
924
+ "Test string"
925
+ ],
926
+ undeployTime: "Test string",
927
+ userEmail: "Test string",
928
+ },
929
+ derivedImage: {
930
+ baseResourceUrl: "Test string",
931
+ distance: 42,
932
+ fingerprint: {
933
+ v1Name: "Test string",
934
+ v2Blob: [
935
+ "Test string"
936
+ ],
937
+ v2Name: "Test string",
938
+ },
939
+ layerInfo: [
940
+ {
941
+ arguments: "Test string",
942
+ directive: "Test string",
943
+ }
944
+ ],
945
+ },
946
+ discovered: {
947
+ analysisCompleted: {
948
+ analysisType: [
949
+ "Test string"
950
+ ],
951
+ },
952
+ analysisError: [
953
+ {
954
+ code: 42,
955
+ details: [
956
+ {
957
+ A: 42
958
+ }
959
+ ],
960
+ message: "Test string",
961
+ }
962
+ ],
963
+ analysisStatus: "Test string",
964
+ analysisStatusError: {
965
+ code: 42,
966
+ details: [
967
+ {
968
+ A: 42
969
+ }
970
+ ],
971
+ message: "Test string",
972
+ },
973
+ archiveTime: "Test string",
974
+ continuousAnalysis: "Test string",
975
+ cpe: "Test string",
976
+ lastScanTime: "Test string",
977
+ operation: {
978
+ done: true,
979
+ error: {
980
+ code: 42,
981
+ details: [
982
+ {
983
+ A: 42
984
+ }
985
+ ],
986
+ message: "Test string",
987
+ },
988
+ metadata: {
989
+ A: 42
990
+ },
991
+ name: "Test string",
992
+ response: {
993
+ A: 42
994
+ },
995
+ },
996
+ },
997
+ dsseAttestation: {
998
+ envelope: {
999
+ payload: "Test string",
1000
+ payloadType: "Test string",
1001
+ signatures: [
1002
+ {
1003
+ keyid: "Test string",
1004
+ sig: "Test string",
1005
+ }
1006
+ ],
1007
+ },
1008
+ statement: {
1009
+ _type: "Test string",
1010
+ predicateType: "Test string",
1011
+ provenance: {
1012
+ builderConfig: {
1013
+ id: "Test string",
1014
+ },
1015
+ materials: [
1016
+ "Test string"
1017
+ ],
1018
+ metadata: {
1019
+ buildFinishedOn: "Test string",
1020
+ buildInvocationId: "Test string",
1021
+ buildStartedOn: "Test string",
1022
+ completeness: {
1023
+ arguments: true,
1024
+ environment: true,
1025
+ materials: true,
1026
+ },
1027
+ reproducible: true,
1028
+ },
1029
+ recipe: {
1030
+ arguments: [
1031
+ {
1032
+ A: 42
1033
+ }
1034
+ ],
1035
+ definedInMaterial: "Test string",
1036
+ entryPoint: "Test string",
1037
+ environment: [
1038
+ {
1039
+ A: 42
1040
+ }
1041
+ ],
1042
+ type: "Test string",
1043
+ },
1044
+ },
1045
+ slsaProvenance: {
1046
+ builder: {
1047
+ id: "Test string",
1048
+ },
1049
+ materials: [
1050
+ {
1051
+ digest: {
1052
+ A: "Test string"
1053
+ },
1054
+ uri: "Test string",
1055
+ }
1056
+ ],
1057
+ metadata: {
1058
+ buildFinishedOn: "Test string",
1059
+ buildInvocationId: "Test string",
1060
+ buildStartedOn: "Test string",
1061
+ completeness: {
1062
+ arguments: true,
1063
+ environment: true,
1064
+ materials: true,
1065
+ },
1066
+ reproducible: true,
1067
+ },
1068
+ recipe: {
1069
+ arguments: {
1070
+ A: 42
1071
+ },
1072
+ definedInMaterial: "Test string",
1073
+ entryPoint: "Test string",
1074
+ environment: {
1075
+ A: 42
1076
+ },
1077
+ type: "Test string",
1078
+ },
1079
+ },
1080
+ slsaProvenanceZeroTwo: {
1081
+ buildConfig: {
1082
+ A: 42
1083
+ },
1084
+ builder: {
1085
+ id: "Test string",
1086
+ },
1087
+ buildType: "Test string",
1088
+ invocation: {
1089
+ configSource: {
1090
+ digest: {
1091
+ A: "Test string"
1092
+ },
1093
+ entryPoint: "Test string",
1094
+ uri: "Test string",
1095
+ },
1096
+ environment: {
1097
+ A: 42
1098
+ },
1099
+ parameters: {
1100
+ A: 42
1101
+ },
1102
+ },
1103
+ materials: [
1104
+ {
1105
+ digest: {
1106
+ A: "Test string"
1107
+ },
1108
+ uri: "Test string",
1109
+ }
1110
+ ],
1111
+ metadata: {
1112
+ buildFinishedOn: "Test string",
1113
+ buildInvocationId: "Test string",
1114
+ buildStartedOn: "Test string",
1115
+ completeness: {
1116
+ environment: true,
1117
+ materials: true,
1118
+ parameters: true,
1119
+ },
1120
+ reproducible: true,
1121
+ },
1122
+ },
1123
+ subject: [
1124
+ {
1125
+ digest: {
1126
+ A: "Test string"
1127
+ },
1128
+ name: "Test string",
1129
+ }
1130
+ ],
1131
+ },
1132
+ },
1133
+ envelope: {
1134
+ payload: "Test string",
1135
+ payloadType: "Test string",
1136
+ signatures: [
1137
+ {
1138
+ keyid: "Test string",
1139
+ sig: "Test string",
1140
+ }
1141
+ ],
1142
+ },
1143
+ installation: {
1144
+ architecture: "Test string",
1145
+ cpeUri: "Test string",
1146
+ license: {
1147
+ comments: "Test string",
1148
+ expression: "Test string",
1149
+ },
1150
+ location: [
1151
+ {
1152
+ cpeUri: "Test string",
1153
+ path: "Test string",
1154
+ version: {
1155
+ epoch: 42,
1156
+ inclusive: true,
1157
+ kind: "Test string",
1158
+ name: "Test string",
1159
+ revision: "Test string",
1160
+ },
1161
+ }
1162
+ ],
1163
+ name: "Test string",
1164
+ packageType: "Test string",
1165
+ version: {
1166
+ epoch: 42,
1167
+ inclusive: true,
1168
+ kind: "Test string",
1169
+ name: "Test string",
1170
+ revision: "Test string",
1171
+ },
1172
+ },
1173
+ kind: "Test string",
1174
+ name: "Test string",
1175
+ noteName: "Test string",
1176
+ remediation: "Test string",
1177
+ resource: {
1178
+ contentHash: {
1179
+ type: "Test string",
1180
+ value: "Test string",
1181
+ },
1182
+ name: "Test string",
1183
+ uri: "Test string",
1184
+ },
1185
+ resourceUrl: "Test string",
1186
+ sbom: {
1187
+ createTime: "Test string",
1188
+ creatorComment: "Test string",
1189
+ creators: [
1190
+ "Test string"
1191
+ ],
1192
+ documentComment: "Test string",
1193
+ externalDocumentRefs: [
1194
+ "Test string"
1195
+ ],
1196
+ id: "Test string",
1197
+ licenseListVersion: "Test string",
1198
+ namespace: "Test string",
1199
+ title: "Test string",
1200
+ },
1201
+ spdxFile: {
1202
+ attributions: [
1203
+ "Test string"
1204
+ ],
1205
+ comment: "Test string",
1206
+ contributors: [
1207
+ "Test string"
1208
+ ],
1209
+ copyright: "Test string",
1210
+ filesLicenseInfo: [
1211
+ "Test string"
1212
+ ],
1213
+ id: "Test string",
1214
+ licenseConcluded: {
1215
+ comments: "Test string",
1216
+ expression: "Test string",
1217
+ },
1218
+ notice: "Test string",
1219
+ },
1220
+ spdxPackage: {
1221
+ comment: "Test string",
1222
+ filename: "Test string",
1223
+ homePage: "Test string",
1224
+ id: "Test string",
1225
+ licenseConcluded: {
1226
+ comments: "Test string",
1227
+ expression: "Test string",
1228
+ },
1229
+ packageType: "Test string",
1230
+ sourceInfo: "Test string",
1231
+ summaryDescription: "Test string",
1232
+ title: "Test string",
1233
+ version: "Test string",
1234
+ },
1235
+ spdxRelationship: {
1236
+ comment: "Test string",
1237
+ source: "Test string",
1238
+ target: "Test string",
1239
+ type: "Test string",
1240
+ },
1241
+ updateTime: "Test string",
1242
+ upgrade: {
1243
+ distribution: {
1244
+ classification: "Test string",
1245
+ cpeUri: "Test string",
1246
+ cve: [
1247
+ "Test string"
1248
+ ],
1249
+ severity: "Test string",
1250
+ },
1251
+ package: "Test string",
1252
+ parsedVersion: {
1253
+ epoch: 42,
1254
+ inclusive: true,
1255
+ kind: "Test string",
1256
+ name: "Test string",
1257
+ revision: "Test string",
1258
+ },
1259
+ },
1260
+ vulnerabilityDetails: {
1261
+ cvssScore: 42,
1262
+ cvssV3: {
1263
+ attackComplexity: "Test string",
1264
+ attackVector: "Test string",
1265
+ authentication: "Test string",
1266
+ availabilityImpact: "Test string",
1267
+ baseScore: 42,
1268
+ confidentialityImpact: "Test string",
1269
+ exploitabilityScore: 42,
1270
+ impactScore: 42,
1271
+ integrityImpact: "Test string",
1272
+ privilegesRequired: "Test string",
1273
+ scope: "Test string",
1274
+ userInteraction: "Test string",
1275
+ },
1276
+ effectiveSeverity: "Test string",
1277
+ packageIssue: [
1278
+ {
1279
+ affectedLocation: {
1280
+ cpeUri: "Test string",
1281
+ fileLocation: [
1282
+ {
1283
+ filePath: "Test string",
1284
+ }
1285
+ ],
1286
+ package: "Test string",
1287
+ version: {
1288
+ epoch: 42,
1289
+ inclusive: true,
1290
+ kind: "Test string",
1291
+ name: "Test string",
1292
+ revision: "Test string",
1293
+ },
1294
+ },
1295
+ effectiveSeverity: "Test string",
1296
+ fixedLocation: {
1297
+ cpeUri: "Test string",
1298
+ fileLocation: [
1299
+ {
1300
+ filePath: "Test string",
1301
+ }
1302
+ ],
1303
+ package: "Test string",
1304
+ version: {
1305
+ epoch: 42,
1306
+ inclusive: true,
1307
+ kind: "Test string",
1308
+ name: "Test string",
1309
+ revision: "Test string",
1310
+ },
1311
+ },
1312
+ packageType: "Test string",
1313
+ severityName: "Test string",
1314
+ }
1315
+ ],
1316
+ severity: "Test string",
1317
+ type: "Test string",
1318
+ },
1319
+ });
1320
+ /** Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. */
1321
+ await gapi.client.containeranalysis.projects.occurrences.delete({
1322
+ name: "Test string",
1323
+ });
1324
+ /** Returns the requested `Occurrence`. */
1325
+ await gapi.client.containeranalysis.projects.occurrences.get({
1326
+ name: "Test string",
1327
+ });
1328
+ /**
1329
+ * Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
1330
+ * resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to
1331
+ * call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource
1332
+ * takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
1333
+ */
1334
+ await gapi.client.containeranalysis.projects.occurrences.getIamPolicy({
1335
+ resource: "Test string",
1336
+ }, {
1337
+ options: {
1338
+ requestedPolicyVersion: 42,
1339
+ },
1340
+ });
1341
+ /** Gets the `Note` attached to the given `Occurrence`. */
1342
+ await gapi.client.containeranalysis.projects.occurrences.getNotes({
1343
+ name: "Test string",
1344
+ });
1345
+ /** Gets a summary of the number and severity of occurrences. */
1346
+ await gapi.client.containeranalysis.projects.occurrences.getVulnerabilitySummary({
1347
+ filter: "Test string",
1348
+ parent: "Test string",
1349
+ });
1350
+ /** Lists active `Occurrences` for a given project matching the filters. */
1351
+ await gapi.client.containeranalysis.projects.occurrences.list({
1352
+ filter: "Test string",
1353
+ kind: "Test string",
1354
+ name: "Test string",
1355
+ pageSize: 42,
1356
+ pageToken: "Test string",
1357
+ parent: "Test string",
1358
+ });
1359
+ /** Updates an existing occurrence. */
1360
+ await gapi.client.containeranalysis.projects.occurrences.patch({
1361
+ name: "Test string",
1362
+ updateMask: "Test string",
1363
+ }, {
1364
+ attestation: {
1365
+ pgpSignedAttestation: {
1366
+ contentType: "Test string",
1367
+ pgpKeyId: "Test string",
1368
+ signature: "Test string",
1369
+ },
1370
+ },
1371
+ buildDetails: {
1372
+ intotoProvenance: {
1373
+ builderConfig: {
1374
+ id: "Test string",
1375
+ },
1376
+ materials: [
1377
+ "Test string"
1378
+ ],
1379
+ metadata: {
1380
+ buildFinishedOn: "Test string",
1381
+ buildInvocationId: "Test string",
1382
+ buildStartedOn: "Test string",
1383
+ completeness: {
1384
+ arguments: true,
1385
+ environment: true,
1386
+ materials: true,
1387
+ },
1388
+ reproducible: true,
1389
+ },
1390
+ recipe: {
1391
+ arguments: [
1392
+ {
1393
+ A: 42
1394
+ }
1395
+ ],
1396
+ definedInMaterial: "Test string",
1397
+ entryPoint: "Test string",
1398
+ environment: [
1399
+ {
1400
+ A: 42
1401
+ }
1402
+ ],
1403
+ type: "Test string",
1404
+ },
1405
+ },
1406
+ intotoStatement: {
1407
+ _type: "Test string",
1408
+ predicateType: "Test string",
1409
+ provenance: {
1410
+ builderConfig: {
1411
+ id: "Test string",
1412
+ },
1413
+ materials: [
1414
+ "Test string"
1415
+ ],
1416
+ metadata: {
1417
+ buildFinishedOn: "Test string",
1418
+ buildInvocationId: "Test string",
1419
+ buildStartedOn: "Test string",
1420
+ completeness: {
1421
+ arguments: true,
1422
+ environment: true,
1423
+ materials: true,
1424
+ },
1425
+ reproducible: true,
1426
+ },
1427
+ recipe: {
1428
+ arguments: [
1429
+ {
1430
+ A: 42
1431
+ }
1432
+ ],
1433
+ definedInMaterial: "Test string",
1434
+ entryPoint: "Test string",
1435
+ environment: [
1436
+ {
1437
+ A: 42
1438
+ }
1439
+ ],
1440
+ type: "Test string",
1441
+ },
1442
+ },
1443
+ slsaProvenance: {
1444
+ builder: {
1445
+ id: "Test string",
1446
+ },
1447
+ materials: [
1448
+ {
1449
+ digest: {
1450
+ A: "Test string"
1451
+ },
1452
+ uri: "Test string",
1453
+ }
1454
+ ],
1455
+ metadata: {
1456
+ buildFinishedOn: "Test string",
1457
+ buildInvocationId: "Test string",
1458
+ buildStartedOn: "Test string",
1459
+ completeness: {
1460
+ arguments: true,
1461
+ environment: true,
1462
+ materials: true,
1463
+ },
1464
+ reproducible: true,
1465
+ },
1466
+ recipe: {
1467
+ arguments: {
1468
+ A: 42
1469
+ },
1470
+ definedInMaterial: "Test string",
1471
+ entryPoint: "Test string",
1472
+ environment: {
1473
+ A: 42
1474
+ },
1475
+ type: "Test string",
1476
+ },
1477
+ },
1478
+ slsaProvenanceZeroTwo: {
1479
+ buildConfig: {
1480
+ A: 42
1481
+ },
1482
+ builder: {
1483
+ id: "Test string",
1484
+ },
1485
+ buildType: "Test string",
1486
+ invocation: {
1487
+ configSource: {
1488
+ digest: {
1489
+ A: "Test string"
1490
+ },
1491
+ entryPoint: "Test string",
1492
+ uri: "Test string",
1493
+ },
1494
+ environment: {
1495
+ A: 42
1496
+ },
1497
+ parameters: {
1498
+ A: 42
1499
+ },
1500
+ },
1501
+ materials: [
1502
+ {
1503
+ digest: {
1504
+ A: "Test string"
1505
+ },
1506
+ uri: "Test string",
1507
+ }
1508
+ ],
1509
+ metadata: {
1510
+ buildFinishedOn: "Test string",
1511
+ buildInvocationId: "Test string",
1512
+ buildStartedOn: "Test string",
1513
+ completeness: {
1514
+ environment: true,
1515
+ materials: true,
1516
+ parameters: true,
1517
+ },
1518
+ reproducible: true,
1519
+ },
1520
+ },
1521
+ subject: [
1522
+ {
1523
+ digest: {
1524
+ A: "Test string"
1525
+ },
1526
+ name: "Test string",
1527
+ }
1528
+ ],
1529
+ },
1530
+ provenance: {
1531
+ builderVersion: "Test string",
1532
+ buildOptions: {
1533
+ A: "Test string"
1534
+ },
1535
+ builtArtifacts: [
1536
+ {
1537
+ checksum: "Test string",
1538
+ id: "Test string",
1539
+ name: "Test string",
1540
+ names: [
1541
+ "Test string"
1542
+ ],
1543
+ }
1544
+ ],
1545
+ commands: [
1546
+ {
1547
+ args: [
1548
+ "Test string"
1549
+ ],
1550
+ dir: "Test string",
1551
+ env: [
1552
+ "Test string"
1553
+ ],
1554
+ id: "Test string",
1555
+ name: "Test string",
1556
+ waitFor: [
1557
+ "Test string"
1558
+ ],
1559
+ }
1560
+ ],
1561
+ createTime: "Test string",
1562
+ creator: "Test string",
1563
+ finishTime: "Test string",
1564
+ id: "Test string",
1565
+ logsBucket: "Test string",
1566
+ projectId: "Test string",
1567
+ sourceProvenance: {
1568
+ additionalContexts: [
1569
+ {
1570
+ cloudRepo: {
1571
+ aliasContext: {
1572
+ kind: "Test string",
1573
+ name: "Test string",
1574
+ },
1575
+ repoId: {
1576
+ projectRepoId: {
1577
+ projectId: "Test string",
1578
+ repoName: "Test string",
1579
+ },
1580
+ uid: "Test string",
1581
+ },
1582
+ revisionId: "Test string",
1583
+ },
1584
+ gerrit: {
1585
+ aliasContext: {
1586
+ kind: "Test string",
1587
+ name: "Test string",
1588
+ },
1589
+ gerritProject: "Test string",
1590
+ hostUri: "Test string",
1591
+ revisionId: "Test string",
1592
+ },
1593
+ git: {
1594
+ revisionId: "Test string",
1595
+ url: "Test string",
1596
+ },
1597
+ labels: {
1598
+ A: "Test string"
1599
+ },
1600
+ }
1601
+ ],
1602
+ artifactStorageSource: {
1603
+ bucket: "Test string",
1604
+ generation: "Test string",
1605
+ object: "Test string",
1606
+ },
1607
+ context: {
1608
+ cloudRepo: {
1609
+ aliasContext: {
1610
+ kind: "Test string",
1611
+ name: "Test string",
1612
+ },
1613
+ repoId: {
1614
+ projectRepoId: {
1615
+ projectId: "Test string",
1616
+ repoName: "Test string",
1617
+ },
1618
+ uid: "Test string",
1619
+ },
1620
+ revisionId: "Test string",
1621
+ },
1622
+ gerrit: {
1623
+ aliasContext: {
1624
+ kind: "Test string",
1625
+ name: "Test string",
1626
+ },
1627
+ gerritProject: "Test string",
1628
+ hostUri: "Test string",
1629
+ revisionId: "Test string",
1630
+ },
1631
+ git: {
1632
+ revisionId: "Test string",
1633
+ url: "Test string",
1634
+ },
1635
+ labels: {
1636
+ A: "Test string"
1637
+ },
1638
+ },
1639
+ fileHashes: {
1640
+ A: {
1641
+ fileHash: [
1642
+ {
1643
+ type: "Test string",
1644
+ value: "Test string",
1645
+ }
1646
+ ],
1647
+ }
1648
+ },
1649
+ repoSource: {
1650
+ branchName: "Test string",
1651
+ commitSha: "Test string",
1652
+ projectId: "Test string",
1653
+ repoName: "Test string",
1654
+ tagName: "Test string",
1655
+ },
1656
+ storageSource: {
1657
+ bucket: "Test string",
1658
+ generation: "Test string",
1659
+ object: "Test string",
1660
+ },
1661
+ },
1662
+ startTime: "Test string",
1663
+ triggerId: "Test string",
1664
+ },
1665
+ provenanceBytes: "Test string",
1666
+ },
1667
+ compliance: {
1668
+ nonComplianceReason: "Test string",
1669
+ nonCompliantFiles: [
1670
+ {
1671
+ displayCommand: "Test string",
1672
+ path: "Test string",
1673
+ reason: "Test string",
1674
+ }
1675
+ ],
1676
+ },
1677
+ createTime: "Test string",
1678
+ deployment: {
1679
+ address: "Test string",
1680
+ config: "Test string",
1681
+ deployTime: "Test string",
1682
+ platform: "Test string",
1683
+ resourceUri: [
1684
+ "Test string"
1685
+ ],
1686
+ undeployTime: "Test string",
1687
+ userEmail: "Test string",
1688
+ },
1689
+ derivedImage: {
1690
+ baseResourceUrl: "Test string",
1691
+ distance: 42,
1692
+ fingerprint: {
1693
+ v1Name: "Test string",
1694
+ v2Blob: [
1695
+ "Test string"
1696
+ ],
1697
+ v2Name: "Test string",
1698
+ },
1699
+ layerInfo: [
1700
+ {
1701
+ arguments: "Test string",
1702
+ directive: "Test string",
1703
+ }
1704
+ ],
1705
+ },
1706
+ discovered: {
1707
+ analysisCompleted: {
1708
+ analysisType: [
1709
+ "Test string"
1710
+ ],
1711
+ },
1712
+ analysisError: [
1713
+ {
1714
+ code: 42,
1715
+ details: [
1716
+ {
1717
+ A: 42
1718
+ }
1719
+ ],
1720
+ message: "Test string",
1721
+ }
1722
+ ],
1723
+ analysisStatus: "Test string",
1724
+ analysisStatusError: {
1725
+ code: 42,
1726
+ details: [
1727
+ {
1728
+ A: 42
1729
+ }
1730
+ ],
1731
+ message: "Test string",
1732
+ },
1733
+ archiveTime: "Test string",
1734
+ continuousAnalysis: "Test string",
1735
+ cpe: "Test string",
1736
+ lastScanTime: "Test string",
1737
+ operation: {
1738
+ done: true,
1739
+ error: {
1740
+ code: 42,
1741
+ details: [
1742
+ {
1743
+ A: 42
1744
+ }
1745
+ ],
1746
+ message: "Test string",
1747
+ },
1748
+ metadata: {
1749
+ A: 42
1750
+ },
1751
+ name: "Test string",
1752
+ response: {
1753
+ A: 42
1754
+ },
1755
+ },
1756
+ },
1757
+ dsseAttestation: {
1758
+ envelope: {
1759
+ payload: "Test string",
1760
+ payloadType: "Test string",
1761
+ signatures: [
1762
+ {
1763
+ keyid: "Test string",
1764
+ sig: "Test string",
1765
+ }
1766
+ ],
1767
+ },
1768
+ statement: {
1769
+ _type: "Test string",
1770
+ predicateType: "Test string",
1771
+ provenance: {
1772
+ builderConfig: {
1773
+ id: "Test string",
1774
+ },
1775
+ materials: [
1776
+ "Test string"
1777
+ ],
1778
+ metadata: {
1779
+ buildFinishedOn: "Test string",
1780
+ buildInvocationId: "Test string",
1781
+ buildStartedOn: "Test string",
1782
+ completeness: {
1783
+ arguments: true,
1784
+ environment: true,
1785
+ materials: true,
1786
+ },
1787
+ reproducible: true,
1788
+ },
1789
+ recipe: {
1790
+ arguments: [
1791
+ {
1792
+ A: 42
1793
+ }
1794
+ ],
1795
+ definedInMaterial: "Test string",
1796
+ entryPoint: "Test string",
1797
+ environment: [
1798
+ {
1799
+ A: 42
1800
+ }
1801
+ ],
1802
+ type: "Test string",
1803
+ },
1804
+ },
1805
+ slsaProvenance: {
1806
+ builder: {
1807
+ id: "Test string",
1808
+ },
1809
+ materials: [
1810
+ {
1811
+ digest: {
1812
+ A: "Test string"
1813
+ },
1814
+ uri: "Test string",
1815
+ }
1816
+ ],
1817
+ metadata: {
1818
+ buildFinishedOn: "Test string",
1819
+ buildInvocationId: "Test string",
1820
+ buildStartedOn: "Test string",
1821
+ completeness: {
1822
+ arguments: true,
1823
+ environment: true,
1824
+ materials: true,
1825
+ },
1826
+ reproducible: true,
1827
+ },
1828
+ recipe: {
1829
+ arguments: {
1830
+ A: 42
1831
+ },
1832
+ definedInMaterial: "Test string",
1833
+ entryPoint: "Test string",
1834
+ environment: {
1835
+ A: 42
1836
+ },
1837
+ type: "Test string",
1838
+ },
1839
+ },
1840
+ slsaProvenanceZeroTwo: {
1841
+ buildConfig: {
1842
+ A: 42
1843
+ },
1844
+ builder: {
1845
+ id: "Test string",
1846
+ },
1847
+ buildType: "Test string",
1848
+ invocation: {
1849
+ configSource: {
1850
+ digest: {
1851
+ A: "Test string"
1852
+ },
1853
+ entryPoint: "Test string",
1854
+ uri: "Test string",
1855
+ },
1856
+ environment: {
1857
+ A: 42
1858
+ },
1859
+ parameters: {
1860
+ A: 42
1861
+ },
1862
+ },
1863
+ materials: [
1864
+ {
1865
+ digest: {
1866
+ A: "Test string"
1867
+ },
1868
+ uri: "Test string",
1869
+ }
1870
+ ],
1871
+ metadata: {
1872
+ buildFinishedOn: "Test string",
1873
+ buildInvocationId: "Test string",
1874
+ buildStartedOn: "Test string",
1875
+ completeness: {
1876
+ environment: true,
1877
+ materials: true,
1878
+ parameters: true,
1879
+ },
1880
+ reproducible: true,
1881
+ },
1882
+ },
1883
+ subject: [
1884
+ {
1885
+ digest: {
1886
+ A: "Test string"
1887
+ },
1888
+ name: "Test string",
1889
+ }
1890
+ ],
1891
+ },
1892
+ },
1893
+ envelope: {
1894
+ payload: "Test string",
1895
+ payloadType: "Test string",
1896
+ signatures: [
1897
+ {
1898
+ keyid: "Test string",
1899
+ sig: "Test string",
1900
+ }
1901
+ ],
1902
+ },
1903
+ installation: {
1904
+ architecture: "Test string",
1905
+ cpeUri: "Test string",
1906
+ license: {
1907
+ comments: "Test string",
1908
+ expression: "Test string",
1909
+ },
1910
+ location: [
1911
+ {
1912
+ cpeUri: "Test string",
1913
+ path: "Test string",
1914
+ version: {
1915
+ epoch: 42,
1916
+ inclusive: true,
1917
+ kind: "Test string",
1918
+ name: "Test string",
1919
+ revision: "Test string",
1920
+ },
1921
+ }
1922
+ ],
1923
+ name: "Test string",
1924
+ packageType: "Test string",
1925
+ version: {
1926
+ epoch: 42,
1927
+ inclusive: true,
1928
+ kind: "Test string",
1929
+ name: "Test string",
1930
+ revision: "Test string",
1931
+ },
1932
+ },
1933
+ kind: "Test string",
1934
+ name: "Test string",
1935
+ noteName: "Test string",
1936
+ remediation: "Test string",
1937
+ resource: {
1938
+ contentHash: {
1939
+ type: "Test string",
1940
+ value: "Test string",
1941
+ },
1942
+ name: "Test string",
1943
+ uri: "Test string",
1944
+ },
1945
+ resourceUrl: "Test string",
1946
+ sbom: {
1947
+ createTime: "Test string",
1948
+ creatorComment: "Test string",
1949
+ creators: [
1950
+ "Test string"
1951
+ ],
1952
+ documentComment: "Test string",
1953
+ externalDocumentRefs: [
1954
+ "Test string"
1955
+ ],
1956
+ id: "Test string",
1957
+ licenseListVersion: "Test string",
1958
+ namespace: "Test string",
1959
+ title: "Test string",
1960
+ },
1961
+ spdxFile: {
1962
+ attributions: [
1963
+ "Test string"
1964
+ ],
1965
+ comment: "Test string",
1966
+ contributors: [
1967
+ "Test string"
1968
+ ],
1969
+ copyright: "Test string",
1970
+ filesLicenseInfo: [
1971
+ "Test string"
1972
+ ],
1973
+ id: "Test string",
1974
+ licenseConcluded: {
1975
+ comments: "Test string",
1976
+ expression: "Test string",
1977
+ },
1978
+ notice: "Test string",
1979
+ },
1980
+ spdxPackage: {
1981
+ comment: "Test string",
1982
+ filename: "Test string",
1983
+ homePage: "Test string",
1984
+ id: "Test string",
1985
+ licenseConcluded: {
1986
+ comments: "Test string",
1987
+ expression: "Test string",
1988
+ },
1989
+ packageType: "Test string",
1990
+ sourceInfo: "Test string",
1991
+ summaryDescription: "Test string",
1992
+ title: "Test string",
1993
+ version: "Test string",
1994
+ },
1995
+ spdxRelationship: {
1996
+ comment: "Test string",
1997
+ source: "Test string",
1998
+ target: "Test string",
1999
+ type: "Test string",
2000
+ },
2001
+ updateTime: "Test string",
2002
+ upgrade: {
2003
+ distribution: {
2004
+ classification: "Test string",
2005
+ cpeUri: "Test string",
2006
+ cve: [
2007
+ "Test string"
2008
+ ],
2009
+ severity: "Test string",
2010
+ },
2011
+ package: "Test string",
2012
+ parsedVersion: {
2013
+ epoch: 42,
2014
+ inclusive: true,
2015
+ kind: "Test string",
2016
+ name: "Test string",
2017
+ revision: "Test string",
2018
+ },
2019
+ },
2020
+ vulnerabilityDetails: {
2021
+ cvssScore: 42,
2022
+ cvssV3: {
2023
+ attackComplexity: "Test string",
2024
+ attackVector: "Test string",
2025
+ authentication: "Test string",
2026
+ availabilityImpact: "Test string",
2027
+ baseScore: 42,
2028
+ confidentialityImpact: "Test string",
2029
+ exploitabilityScore: 42,
2030
+ impactScore: 42,
2031
+ integrityImpact: "Test string",
2032
+ privilegesRequired: "Test string",
2033
+ scope: "Test string",
2034
+ userInteraction: "Test string",
2035
+ },
2036
+ effectiveSeverity: "Test string",
2037
+ packageIssue: [
2038
+ {
2039
+ affectedLocation: {
2040
+ cpeUri: "Test string",
2041
+ fileLocation: [
2042
+ {
2043
+ filePath: "Test string",
2044
+ }
2045
+ ],
2046
+ package: "Test string",
2047
+ version: {
2048
+ epoch: 42,
2049
+ inclusive: true,
2050
+ kind: "Test string",
2051
+ name: "Test string",
2052
+ revision: "Test string",
2053
+ },
2054
+ },
2055
+ effectiveSeverity: "Test string",
2056
+ fixedLocation: {
2057
+ cpeUri: "Test string",
2058
+ fileLocation: [
2059
+ {
2060
+ filePath: "Test string",
2061
+ }
2062
+ ],
2063
+ package: "Test string",
2064
+ version: {
2065
+ epoch: 42,
2066
+ inclusive: true,
2067
+ kind: "Test string",
2068
+ name: "Test string",
2069
+ revision: "Test string",
2070
+ },
2071
+ },
2072
+ packageType: "Test string",
2073
+ severityName: "Test string",
2074
+ }
2075
+ ],
2076
+ severity: "Test string",
2077
+ type: "Test string",
2078
+ },
2079
+ });
2080
+ /**
2081
+ * Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
2082
+ * resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this
2083
+ * method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an
2084
+ * `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and
2085
+ * projects/{projectid}/notes/{noteid} for notes
2086
+ */
2087
+ await gapi.client.containeranalysis.projects.occurrences.setIamPolicy({
2088
+ resource: "Test string",
2089
+ }, {
2090
+ policy: {
2091
+ bindings: [
2092
+ {
2093
+ condition: {
2094
+ description: "Test string",
2095
+ expression: "Test string",
2096
+ location: "Test string",
2097
+ title: "Test string",
2098
+ },
2099
+ members: [
2100
+ "Test string"
2101
+ ],
2102
+ role: "Test string",
2103
+ }
2104
+ ],
2105
+ etag: "Test string",
2106
+ version: 42,
2107
+ },
2108
+ });
2109
+ /**
2110
+ * Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing
2111
+ * bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project,
2112
+ * or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and
2113
+ * `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
2114
+ */
2115
+ await gapi.client.containeranalysis.projects.occurrences.testIamPermissions({
2116
+ resource: "Test string",
2117
+ }, {
2118
+ permissions: [
2119
+ "Test string"
2120
+ ],
2121
+ });
2122
+ /** Creates a new `Operation`. */
2123
+ await gapi.client.containeranalysis.projects.operations.create({
2124
+ parent: "Test string",
2125
+ }, {
2126
+ operation: {
2127
+ done: true,
2128
+ error: {
2129
+ code: 42,
2130
+ details: [
2131
+ {
2132
+ A: 42
2133
+ }
2134
+ ],
2135
+ message: "Test string",
2136
+ },
2137
+ metadata: {
2138
+ A: 42
2139
+ },
2140
+ name: "Test string",
2141
+ response: {
2142
+ A: 42
2143
+ },
2144
+ },
2145
+ operationId: "Test string",
2146
+ });
2147
+ /** Updates an existing operation returns an error if operation does not exist. The only valid operations are to update mark the done bit change the result. */
2148
+ await gapi.client.containeranalysis.projects.operations.patch({
2149
+ name: "Test string",
2150
+ }, {
2151
+ operation: {
2152
+ done: true,
2153
+ error: {
2154
+ code: 42,
2155
+ details: [
2156
+ {
2157
+ A: 42
2158
+ }
2159
+ ],
2160
+ message: "Test string",
2161
+ },
2162
+ metadata: {
2163
+ A: 42
2164
+ },
2165
+ name: "Test string",
2166
+ response: {
2167
+ A: 42
2168
+ },
2169
+ },
2170
+ updateMask: "Test string",
2171
+ });
2172
+ /** Gets a specific scan configuration for a project. */
2173
+ await gapi.client.containeranalysis.projects.scanConfigs.get({
2174
+ name: "Test string",
2175
+ });
2176
+ /** Lists scan configurations for a project. */
2177
+ await gapi.client.containeranalysis.projects.scanConfigs.list({
2178
+ filter: "Test string",
2179
+ pageSize: 42,
2180
+ pageToken: "Test string",
2181
+ parent: "Test string",
2182
+ });
2183
+ /** Updates the scan configuration to a new value. */
2184
+ await gapi.client.containeranalysis.projects.scanConfigs.patch({
2185
+ name: "Test string",
2186
+ updateMask: "Test string",
2187
+ }, {
2188
+ createTime: "Test string",
2189
+ description: "Test string",
2190
+ enabled: true,
2191
+ name: "Test string",
2192
+ updateTime: "Test string",
2193
+ });
2194
+ /** Creates a new `Note`. */
2195
+ await gapi.client.containeranalysis.providers.notes.create({
2196
+ name: "Test string",
2197
+ noteId: "Test string",
2198
+ parent: "Test string",
2199
+ }, {
2200
+ attestationAuthority: {
2201
+ hint: {
2202
+ humanReadableName: "Test string",
2203
+ },
2204
+ },
2205
+ baseImage: {
2206
+ fingerprint: {
2207
+ v1Name: "Test string",
2208
+ v2Blob: [
2209
+ "Test string"
2210
+ ],
2211
+ v2Name: "Test string",
2212
+ },
2213
+ resourceUrl: "Test string",
2214
+ },
2215
+ buildType: {
2216
+ builderVersion: "Test string",
2217
+ signature: {
2218
+ keyId: "Test string",
2219
+ keyType: "Test string",
2220
+ publicKey: "Test string",
2221
+ signature: "Test string",
2222
+ },
2223
+ },
2224
+ compliance: {
2225
+ cisBenchmark: {
2226
+ profileLevel: 42,
2227
+ severity: "Test string",
2228
+ },
2229
+ description: "Test string",
2230
+ rationale: "Test string",
2231
+ remediation: "Test string",
2232
+ scanInstructions: "Test string",
2233
+ title: "Test string",
2234
+ version: [
2235
+ {
2236
+ benchmarkDocument: "Test string",
2237
+ cpeUri: "Test string",
2238
+ version: "Test string",
2239
+ }
2240
+ ],
2241
+ },
2242
+ createTime: "Test string",
2243
+ deployable: {
2244
+ resourceUri: [
2245
+ "Test string"
2246
+ ],
2247
+ },
2248
+ discovery: {
2249
+ analysisKind: "Test string",
2250
+ },
2251
+ dsseAttestation: {
2252
+ hint: {
2253
+ humanReadableName: "Test string",
2254
+ },
2255
+ },
2256
+ expirationTime: "Test string",
2257
+ kind: "Test string",
2258
+ longDescription: "Test string",
2259
+ name: "Test string",
2260
+ package: {
2261
+ architecture: "Test string",
2262
+ cpeUri: "Test string",
2263
+ description: "Test string",
2264
+ digest: [
2265
+ {
2266
+ algo: "Test string",
2267
+ digestBytes: "Test string",
2268
+ }
2269
+ ],
2270
+ distribution: [
2271
+ {
2272
+ architecture: "Test string",
2273
+ cpeUri: "Test string",
2274
+ description: "Test string",
2275
+ latestVersion: {
2276
+ epoch: 42,
2277
+ inclusive: true,
2278
+ kind: "Test string",
2279
+ name: "Test string",
2280
+ revision: "Test string",
2281
+ },
2282
+ maintainer: "Test string",
2283
+ url: "Test string",
2284
+ }
2285
+ ],
2286
+ license: {
2287
+ comments: "Test string",
2288
+ expression: "Test string",
2289
+ },
2290
+ maintainer: "Test string",
2291
+ name: "Test string",
2292
+ packageType: "Test string",
2293
+ url: "Test string",
2294
+ version: {
2295
+ epoch: 42,
2296
+ inclusive: true,
2297
+ kind: "Test string",
2298
+ name: "Test string",
2299
+ revision: "Test string",
2300
+ },
2301
+ },
2302
+ relatedUrl: [
2303
+ {
2304
+ label: "Test string",
2305
+ url: "Test string",
2306
+ }
2307
+ ],
2308
+ sbom: {
2309
+ dataLicence: "Test string",
2310
+ spdxVersion: "Test string",
2311
+ },
2312
+ shortDescription: "Test string",
2313
+ spdxFile: {
2314
+ checksum: [
2315
+ "Test string"
2316
+ ],
2317
+ fileType: "Test string",
2318
+ title: "Test string",
2319
+ },
2320
+ spdxPackage: {
2321
+ analyzed: true,
2322
+ attribution: "Test string",
2323
+ checksum: "Test string",
2324
+ copyright: "Test string",
2325
+ detailedDescription: "Test string",
2326
+ downloadLocation: "Test string",
2327
+ externalRefs: [
2328
+ {
2329
+ category: "Test string",
2330
+ comment: "Test string",
2331
+ locator: "Test string",
2332
+ type: "Test string",
2333
+ }
2334
+ ],
2335
+ filesLicenseInfo: [
2336
+ "Test string"
2337
+ ],
2338
+ homePage: "Test string",
2339
+ licenseDeclared: {
2340
+ comments: "Test string",
2341
+ expression: "Test string",
2342
+ },
2343
+ originator: "Test string",
2344
+ packageType: "Test string",
2345
+ summaryDescription: "Test string",
2346
+ supplier: "Test string",
2347
+ title: "Test string",
2348
+ verificationCode: "Test string",
2349
+ version: "Test string",
2350
+ },
2351
+ spdxRelationship: {
2352
+ type: "Test string",
2353
+ },
2354
+ updateTime: "Test string",
2355
+ upgrade: {
2356
+ distributions: [
2357
+ {
2358
+ classification: "Test string",
2359
+ cpeUri: "Test string",
2360
+ cve: [
2361
+ "Test string"
2362
+ ],
2363
+ severity: "Test string",
2364
+ }
2365
+ ],
2366
+ package: "Test string",
2367
+ version: {
2368
+ epoch: 42,
2369
+ inclusive: true,
2370
+ kind: "Test string",
2371
+ name: "Test string",
2372
+ revision: "Test string",
2373
+ },
2374
+ },
2375
+ vulnerabilityType: {
2376
+ cvssScore: 42,
2377
+ cvssV2: {
2378
+ attackComplexity: "Test string",
2379
+ attackVector: "Test string",
2380
+ authentication: "Test string",
2381
+ availabilityImpact: "Test string",
2382
+ baseScore: 42,
2383
+ confidentialityImpact: "Test string",
2384
+ exploitabilityScore: 42,
2385
+ impactScore: 42,
2386
+ integrityImpact: "Test string",
2387
+ privilegesRequired: "Test string",
2388
+ scope: "Test string",
2389
+ userInteraction: "Test string",
2390
+ },
2391
+ cwe: [
2392
+ "Test string"
2393
+ ],
2394
+ details: [
2395
+ {
2396
+ cpeUri: "Test string",
2397
+ description: "Test string",
2398
+ fixedLocation: {
2399
+ cpeUri: "Test string",
2400
+ fileLocation: [
2401
+ {
2402
+ filePath: "Test string",
2403
+ }
2404
+ ],
2405
+ package: "Test string",
2406
+ version: {
2407
+ epoch: 42,
2408
+ inclusive: true,
2409
+ kind: "Test string",
2410
+ name: "Test string",
2411
+ revision: "Test string",
2412
+ },
2413
+ },
2414
+ isObsolete: true,
2415
+ maxAffectedVersion: {
2416
+ epoch: 42,
2417
+ inclusive: true,
2418
+ kind: "Test string",
2419
+ name: "Test string",
2420
+ revision: "Test string",
2421
+ },
2422
+ minAffectedVersion: {
2423
+ epoch: 42,
2424
+ inclusive: true,
2425
+ kind: "Test string",
2426
+ name: "Test string",
2427
+ revision: "Test string",
2428
+ },
2429
+ package: "Test string",
2430
+ packageType: "Test string",
2431
+ severityName: "Test string",
2432
+ source: "Test string",
2433
+ vendor: "Test string",
2434
+ }
2435
+ ],
2436
+ severity: "Test string",
2437
+ },
2438
+ });
2439
+ /** Deletes the given `Note` from the system. */
2440
+ await gapi.client.containeranalysis.providers.notes.delete({
2441
+ name: "Test string",
2442
+ });
2443
+ /** Returns the requested `Note`. */
2444
+ await gapi.client.containeranalysis.providers.notes.get({
2445
+ name: "Test string",
2446
+ });
2447
+ /**
2448
+ * Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
2449
+ * resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to
2450
+ * call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource
2451
+ * takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
2452
+ */
2453
+ await gapi.client.containeranalysis.providers.notes.getIamPolicy({
2454
+ resource: "Test string",
2455
+ }, {
2456
+ options: {
2457
+ requestedPolicyVersion: 42,
2458
+ },
2459
+ });
2460
+ /** Lists all `Notes` for a given project. */
2461
+ await gapi.client.containeranalysis.providers.notes.list({
2462
+ filter: "Test string",
2463
+ name: "Test string",
2464
+ pageSize: 42,
2465
+ pageToken: "Test string",
2466
+ parent: "Test string",
2467
+ });
2468
+ /** Updates an existing `Note`. */
2469
+ await gapi.client.containeranalysis.providers.notes.patch({
2470
+ name: "Test string",
2471
+ updateMask: "Test string",
2472
+ }, {
2473
+ attestationAuthority: {
2474
+ hint: {
2475
+ humanReadableName: "Test string",
2476
+ },
2477
+ },
2478
+ baseImage: {
2479
+ fingerprint: {
2480
+ v1Name: "Test string",
2481
+ v2Blob: [
2482
+ "Test string"
2483
+ ],
2484
+ v2Name: "Test string",
2485
+ },
2486
+ resourceUrl: "Test string",
2487
+ },
2488
+ buildType: {
2489
+ builderVersion: "Test string",
2490
+ signature: {
2491
+ keyId: "Test string",
2492
+ keyType: "Test string",
2493
+ publicKey: "Test string",
2494
+ signature: "Test string",
2495
+ },
2496
+ },
2497
+ compliance: {
2498
+ cisBenchmark: {
2499
+ profileLevel: 42,
2500
+ severity: "Test string",
2501
+ },
2502
+ description: "Test string",
2503
+ rationale: "Test string",
2504
+ remediation: "Test string",
2505
+ scanInstructions: "Test string",
2506
+ title: "Test string",
2507
+ version: [
2508
+ {
2509
+ benchmarkDocument: "Test string",
2510
+ cpeUri: "Test string",
2511
+ version: "Test string",
2512
+ }
2513
+ ],
2514
+ },
2515
+ createTime: "Test string",
2516
+ deployable: {
2517
+ resourceUri: [
2518
+ "Test string"
2519
+ ],
2520
+ },
2521
+ discovery: {
2522
+ analysisKind: "Test string",
2523
+ },
2524
+ dsseAttestation: {
2525
+ hint: {
2526
+ humanReadableName: "Test string",
2527
+ },
2528
+ },
2529
+ expirationTime: "Test string",
2530
+ kind: "Test string",
2531
+ longDescription: "Test string",
2532
+ name: "Test string",
2533
+ package: {
2534
+ architecture: "Test string",
2535
+ cpeUri: "Test string",
2536
+ description: "Test string",
2537
+ digest: [
2538
+ {
2539
+ algo: "Test string",
2540
+ digestBytes: "Test string",
2541
+ }
2542
+ ],
2543
+ distribution: [
2544
+ {
2545
+ architecture: "Test string",
2546
+ cpeUri: "Test string",
2547
+ description: "Test string",
2548
+ latestVersion: {
2549
+ epoch: 42,
2550
+ inclusive: true,
2551
+ kind: "Test string",
2552
+ name: "Test string",
2553
+ revision: "Test string",
2554
+ },
2555
+ maintainer: "Test string",
2556
+ url: "Test string",
2557
+ }
2558
+ ],
2559
+ license: {
2560
+ comments: "Test string",
2561
+ expression: "Test string",
2562
+ },
2563
+ maintainer: "Test string",
2564
+ name: "Test string",
2565
+ packageType: "Test string",
2566
+ url: "Test string",
2567
+ version: {
2568
+ epoch: 42,
2569
+ inclusive: true,
2570
+ kind: "Test string",
2571
+ name: "Test string",
2572
+ revision: "Test string",
2573
+ },
2574
+ },
2575
+ relatedUrl: [
2576
+ {
2577
+ label: "Test string",
2578
+ url: "Test string",
2579
+ }
2580
+ ],
2581
+ sbom: {
2582
+ dataLicence: "Test string",
2583
+ spdxVersion: "Test string",
2584
+ },
2585
+ shortDescription: "Test string",
2586
+ spdxFile: {
2587
+ checksum: [
2588
+ "Test string"
2589
+ ],
2590
+ fileType: "Test string",
2591
+ title: "Test string",
2592
+ },
2593
+ spdxPackage: {
2594
+ analyzed: true,
2595
+ attribution: "Test string",
2596
+ checksum: "Test string",
2597
+ copyright: "Test string",
2598
+ detailedDescription: "Test string",
2599
+ downloadLocation: "Test string",
2600
+ externalRefs: [
2601
+ {
2602
+ category: "Test string",
2603
+ comment: "Test string",
2604
+ locator: "Test string",
2605
+ type: "Test string",
2606
+ }
2607
+ ],
2608
+ filesLicenseInfo: [
2609
+ "Test string"
2610
+ ],
2611
+ homePage: "Test string",
2612
+ licenseDeclared: {
2613
+ comments: "Test string",
2614
+ expression: "Test string",
2615
+ },
2616
+ originator: "Test string",
2617
+ packageType: "Test string",
2618
+ summaryDescription: "Test string",
2619
+ supplier: "Test string",
2620
+ title: "Test string",
2621
+ verificationCode: "Test string",
2622
+ version: "Test string",
2623
+ },
2624
+ spdxRelationship: {
2625
+ type: "Test string",
2626
+ },
2627
+ updateTime: "Test string",
2628
+ upgrade: {
2629
+ distributions: [
2630
+ {
2631
+ classification: "Test string",
2632
+ cpeUri: "Test string",
2633
+ cve: [
2634
+ "Test string"
2635
+ ],
2636
+ severity: "Test string",
2637
+ }
2638
+ ],
2639
+ package: "Test string",
2640
+ version: {
2641
+ epoch: 42,
2642
+ inclusive: true,
2643
+ kind: "Test string",
2644
+ name: "Test string",
2645
+ revision: "Test string",
2646
+ },
2647
+ },
2648
+ vulnerabilityType: {
2649
+ cvssScore: 42,
2650
+ cvssV2: {
2651
+ attackComplexity: "Test string",
2652
+ attackVector: "Test string",
2653
+ authentication: "Test string",
2654
+ availabilityImpact: "Test string",
2655
+ baseScore: 42,
2656
+ confidentialityImpact: "Test string",
2657
+ exploitabilityScore: 42,
2658
+ impactScore: 42,
2659
+ integrityImpact: "Test string",
2660
+ privilegesRequired: "Test string",
2661
+ scope: "Test string",
2662
+ userInteraction: "Test string",
2663
+ },
2664
+ cwe: [
2665
+ "Test string"
2666
+ ],
2667
+ details: [
2668
+ {
2669
+ cpeUri: "Test string",
2670
+ description: "Test string",
2671
+ fixedLocation: {
2672
+ cpeUri: "Test string",
2673
+ fileLocation: [
2674
+ {
2675
+ filePath: "Test string",
2676
+ }
2677
+ ],
2678
+ package: "Test string",
2679
+ version: {
2680
+ epoch: 42,
2681
+ inclusive: true,
2682
+ kind: "Test string",
2683
+ name: "Test string",
2684
+ revision: "Test string",
2685
+ },
2686
+ },
2687
+ isObsolete: true,
2688
+ maxAffectedVersion: {
2689
+ epoch: 42,
2690
+ inclusive: true,
2691
+ kind: "Test string",
2692
+ name: "Test string",
2693
+ revision: "Test string",
2694
+ },
2695
+ minAffectedVersion: {
2696
+ epoch: 42,
2697
+ inclusive: true,
2698
+ kind: "Test string",
2699
+ name: "Test string",
2700
+ revision: "Test string",
2701
+ },
2702
+ package: "Test string",
2703
+ packageType: "Test string",
2704
+ severityName: "Test string",
2705
+ source: "Test string",
2706
+ vendor: "Test string",
2707
+ }
2708
+ ],
2709
+ severity: "Test string",
2710
+ },
2711
+ });
2712
+ /**
2713
+ * Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
2714
+ * resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this
2715
+ * method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an
2716
+ * `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and
2717
+ * projects/{projectid}/notes/{noteid} for notes
2718
+ */
2719
+ await gapi.client.containeranalysis.providers.notes.setIamPolicy({
2720
+ resource: "Test string",
2721
+ }, {
2722
+ policy: {
2723
+ bindings: [
2724
+ {
2725
+ condition: {
2726
+ description: "Test string",
2727
+ expression: "Test string",
2728
+ location: "Test string",
2729
+ title: "Test string",
2730
+ },
2731
+ members: [
2732
+ "Test string"
2733
+ ],
2734
+ role: "Test string",
2735
+ }
2736
+ ],
2737
+ etag: "Test string",
2738
+ version: 42,
2739
+ },
2740
+ });
2741
+ /**
2742
+ * Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing
2743
+ * bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project,
2744
+ * or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and
2745
+ * `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
2746
+ */
2747
+ await gapi.client.containeranalysis.providers.notes.testIamPermissions({
2748
+ resource: "Test string",
2749
+ }, {
2750
+ permissions: [
2751
+ "Test string"
2752
+ ],
2753
+ });
2754
+ /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
2755
+ await gapi.client.containeranalysis.providers.notes.occurrences.list({
2756
+ filter: "Test string",
2757
+ name: "Test string",
2758
+ pageSize: 42,
2759
+ pageToken: "Test string",
2760
+ });
2761
+ }
2762
+ });