@google-cloud/containeranalysis 3.1.8 → 3.4.0

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +17 -17
  3. package/build/protos/google/devtools/containeranalysis/v1/containeranalysis.proto +14 -17
  4. package/build/protos/grafeas/v1/attestation.proto +17 -0
  5. package/build/protos/grafeas/v1/build.proto +13 -1
  6. package/build/protos/grafeas/v1/common.proto +20 -2
  7. package/build/protos/grafeas/v1/compliance.proto +79 -0
  8. package/build/protos/grafeas/v1/cvss.proto +76 -0
  9. package/build/protos/grafeas/v1/discovery.proto +5 -0
  10. package/build/protos/grafeas/v1/dsse_attestation.proto +52 -0
  11. package/build/protos/grafeas/v1/grafeas.proto +13 -0
  12. package/build/protos/grafeas/v1/intoto_provenance.proto +113 -0
  13. package/build/protos/grafeas/v1/intoto_statement.proto +50 -0
  14. package/build/protos/grafeas/v1/package.proto +9 -1
  15. package/build/protos/grafeas/v1/severity.proto +38 -0
  16. package/build/protos/grafeas/v1/slsa_provenance.proto +114 -0
  17. package/build/protos/grafeas/v1/vulnerability.proto +31 -19
  18. package/build/protos/protos.d.ts +7040 -4274
  19. package/build/protos/protos.js +19667 -12384
  20. package/build/protos/protos.json +1994 -1378
  21. package/build/src/v1/container_analysis_client.d.ts +113 -0
  22. package/build/src/v1/container_analysis_client.js +6 -110
  23. package/build/src/v1/container_analysis_client.js.map +1 -1
  24. package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +160 -5
  25. package/build/src/v1beta1/container_analysis_v1_beta1_client.js +12 -163
  26. package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
  27. package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +328 -15
  28. package/build/src/v1beta1/grafeas_v1_beta1_client.js +24 -349
  29. package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
  30. package/package.json +3 -3
@@ -9,214 +9,10 @@
9
9
  "java_package": "io.grafeas.v1",
10
10
  "objc_class_prefix": "GRA",
11
11
  "(google.api.resource_definition).type": "grafeas.io/Project",
12
- "(google.api.resource_definition).pattern": "projects/{project}"
12
+ "(google.api.resource_definition).pattern": "projects/{project}",
13
+ "java_outer_classname": "CvssProto"
13
14
  },
14
15
  "nested": {
15
- "Severity": {
16
- "values": {
17
- "SEVERITY_UNSPECIFIED": 0,
18
- "MINIMAL": 1,
19
- "LOW": 2,
20
- "MEDIUM": 3,
21
- "HIGH": 4,
22
- "CRITICAL": 5
23
- }
24
- },
25
- "VulnerabilityNote": {
26
- "fields": {
27
- "cvssScore": {
28
- "type": "float",
29
- "id": 1
30
- },
31
- "severity": {
32
- "type": "Severity",
33
- "id": 2
34
- },
35
- "details": {
36
- "rule": "repeated",
37
- "type": "Detail",
38
- "id": 3
39
- },
40
- "cvssV3": {
41
- "type": "CVSSv3",
42
- "id": 4
43
- },
44
- "windowsDetails": {
45
- "rule": "repeated",
46
- "type": "WindowsDetail",
47
- "id": 5
48
- },
49
- "sourceUpdateTime": {
50
- "type": "google.protobuf.Timestamp",
51
- "id": 6
52
- }
53
- },
54
- "nested": {
55
- "Detail": {
56
- "fields": {
57
- "severityName": {
58
- "type": "string",
59
- "id": 1
60
- },
61
- "description": {
62
- "type": "string",
63
- "id": 2
64
- },
65
- "packageType": {
66
- "type": "string",
67
- "id": 3
68
- },
69
- "affectedCpeUri": {
70
- "type": "string",
71
- "id": 4
72
- },
73
- "affectedPackage": {
74
- "type": "string",
75
- "id": 5
76
- },
77
- "affectedVersionStart": {
78
- "type": "grafeas.v1.Version",
79
- "id": 6
80
- },
81
- "affectedVersionEnd": {
82
- "type": "grafeas.v1.Version",
83
- "id": 7
84
- },
85
- "fixedCpeUri": {
86
- "type": "string",
87
- "id": 8
88
- },
89
- "fixedPackage": {
90
- "type": "string",
91
- "id": 9
92
- },
93
- "fixedVersion": {
94
- "type": "grafeas.v1.Version",
95
- "id": 10
96
- },
97
- "isObsolete": {
98
- "type": "bool",
99
- "id": 11
100
- },
101
- "sourceUpdateTime": {
102
- "type": "google.protobuf.Timestamp",
103
- "id": 12
104
- }
105
- }
106
- },
107
- "WindowsDetail": {
108
- "fields": {
109
- "cpeUri": {
110
- "type": "string",
111
- "id": 1
112
- },
113
- "name": {
114
- "type": "string",
115
- "id": 2
116
- },
117
- "description": {
118
- "type": "string",
119
- "id": 3
120
- },
121
- "fixingKbs": {
122
- "rule": "repeated",
123
- "type": "KnowledgeBase",
124
- "id": 4
125
- }
126
- },
127
- "nested": {
128
- "KnowledgeBase": {
129
- "fields": {
130
- "name": {
131
- "type": "string",
132
- "id": 1
133
- },
134
- "url": {
135
- "type": "string",
136
- "id": 2
137
- }
138
- }
139
- }
140
- }
141
- }
142
- }
143
- },
144
- "VulnerabilityOccurrence": {
145
- "fields": {
146
- "type": {
147
- "type": "string",
148
- "id": 1
149
- },
150
- "severity": {
151
- "type": "Severity",
152
- "id": 2
153
- },
154
- "cvssScore": {
155
- "type": "float",
156
- "id": 3
157
- },
158
- "packageIssue": {
159
- "rule": "repeated",
160
- "type": "PackageIssue",
161
- "id": 4
162
- },
163
- "shortDescription": {
164
- "type": "string",
165
- "id": 5
166
- },
167
- "longDescription": {
168
- "type": "string",
169
- "id": 6
170
- },
171
- "relatedUrls": {
172
- "rule": "repeated",
173
- "type": "grafeas.v1.RelatedUrl",
174
- "id": 7
175
- },
176
- "effectiveSeverity": {
177
- "type": "Severity",
178
- "id": 8
179
- },
180
- "fixAvailable": {
181
- "type": "bool",
182
- "id": 9
183
- }
184
- },
185
- "nested": {
186
- "PackageIssue": {
187
- "fields": {
188
- "affectedCpeUri": {
189
- "type": "string",
190
- "id": 1
191
- },
192
- "affectedPackage": {
193
- "type": "string",
194
- "id": 2
195
- },
196
- "affectedVersion": {
197
- "type": "grafeas.v1.Version",
198
- "id": 3
199
- },
200
- "fixedCpeUri": {
201
- "type": "string",
202
- "id": 4
203
- },
204
- "fixedPackage": {
205
- "type": "string",
206
- "id": 5
207
- },
208
- "fixedVersion": {
209
- "type": "grafeas.v1.Version",
210
- "id": 6
211
- },
212
- "fixAvailable": {
213
- "type": "bool",
214
- "id": 7
215
- }
216
- }
217
- }
218
- }
219
- },
220
16
  "NoteKind": {
221
17
  "values": {
222
18
  "NOTE_KIND_UNSPECIFIED": 0,
@@ -227,7 +23,9 @@
227
23
  "DEPLOYMENT": 5,
228
24
  "DISCOVERY": 6,
229
25
  "ATTESTATION": 7,
230
- "UPGRADE": 8
26
+ "UPGRADE": 8,
27
+ "COMPLIANCE": 9,
28
+ "DSSE_ATTESTATION": 10
231
29
  }
232
30
  },
233
31
  "RelatedUrl": {
@@ -254,210 +52,821 @@
254
52
  }
255
53
  }
256
54
  },
257
- "CVSSv3": {
55
+ "Envelope": {
258
56
  "fields": {
259
- "baseScore": {
260
- "type": "float",
57
+ "payload": {
58
+ "type": "bytes",
261
59
  "id": 1
262
60
  },
263
- "exploitabilityScore": {
264
- "type": "float",
61
+ "payloadType": {
62
+ "type": "string",
265
63
  "id": 2
266
64
  },
267
- "impactScore": {
268
- "type": "float",
65
+ "signatures": {
66
+ "rule": "repeated",
67
+ "type": "EnvelopeSignature",
269
68
  "id": 3
69
+ }
70
+ }
71
+ },
72
+ "EnvelopeSignature": {
73
+ "fields": {
74
+ "sig": {
75
+ "type": "bytes",
76
+ "id": 1
270
77
  },
271
- "attackVector": {
272
- "type": "AttackVector",
273
- "id": 5
274
- },
275
- "attackComplexity": {
276
- "type": "AttackComplexity",
277
- "id": 6
278
- },
279
- "privilegesRequired": {
280
- "type": "PrivilegesRequired",
281
- "id": 7
282
- },
283
- "userInteraction": {
284
- "type": "UserInteraction",
285
- "id": 8
286
- },
287
- "scope": {
288
- "type": "Scope",
289
- "id": 9
290
- },
291
- "confidentialityImpact": {
292
- "type": "Impact",
293
- "id": 10
294
- },
295
- "integrityImpact": {
296
- "type": "Impact",
297
- "id": 11
298
- },
299
- "availabilityImpact": {
300
- "type": "Impact",
301
- "id": 12
78
+ "keyid": {
79
+ "type": "string",
80
+ "id": 2
302
81
  }
303
- },
304
- "nested": {
305
- "AttackVector": {
306
- "values": {
307
- "ATTACK_VECTOR_UNSPECIFIED": 0,
308
- "ATTACK_VECTOR_NETWORK": 1,
309
- "ATTACK_VECTOR_ADJACENT": 2,
310
- "ATTACK_VECTOR_LOCAL": 3,
311
- "ATTACK_VECTOR_PHYSICAL": 4
82
+ }
83
+ },
84
+ "Grafeas": {
85
+ "options": {
86
+ "(google.api.default_host)": "containeranalysis.googleapis.com"
87
+ },
88
+ "methods": {
89
+ "GetOccurrence": {
90
+ "requestType": "GetOccurrenceRequest",
91
+ "responseType": "Occurrence",
92
+ "options": {
93
+ "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}",
94
+ "(google.api.method_signature)": "name"
95
+ },
96
+ "parsedOptions": [
97
+ {
98
+ "(google.api.http)": {
99
+ "get": "/v1/{name=projects/*/occurrences/*}"
100
+ }
101
+ },
102
+ {
103
+ "(google.api.method_signature)": "name"
104
+ }
105
+ ]
106
+ },
107
+ "ListOccurrences": {
108
+ "requestType": "ListOccurrencesRequest",
109
+ "responseType": "ListOccurrencesResponse",
110
+ "options": {
111
+ "(google.api.http).get": "/v1/{parent=projects/*}/occurrences",
112
+ "(google.api.method_signature)": "parent,filter"
113
+ },
114
+ "parsedOptions": [
115
+ {
116
+ "(google.api.http)": {
117
+ "get": "/v1/{parent=projects/*}/occurrences"
118
+ }
119
+ },
120
+ {
121
+ "(google.api.method_signature)": "parent,filter"
122
+ }
123
+ ]
124
+ },
125
+ "DeleteOccurrence": {
126
+ "requestType": "DeleteOccurrenceRequest",
127
+ "responseType": "google.protobuf.Empty",
128
+ "options": {
129
+ "(google.api.http).delete": "/v1/{name=projects/*/occurrences/*}",
130
+ "(google.api.method_signature)": "name"
131
+ },
132
+ "parsedOptions": [
133
+ {
134
+ "(google.api.http)": {
135
+ "delete": "/v1/{name=projects/*/occurrences/*}"
136
+ }
137
+ },
138
+ {
139
+ "(google.api.method_signature)": "name"
140
+ }
141
+ ]
142
+ },
143
+ "CreateOccurrence": {
144
+ "requestType": "CreateOccurrenceRequest",
145
+ "responseType": "Occurrence",
146
+ "options": {
147
+ "(google.api.http).post": "/v1/{parent=projects/*}/occurrences",
148
+ "(google.api.http).body": "occurrence",
149
+ "(google.api.method_signature)": "parent,occurrence"
150
+ },
151
+ "parsedOptions": [
152
+ {
153
+ "(google.api.http)": {
154
+ "post": "/v1/{parent=projects/*}/occurrences",
155
+ "body": "occurrence"
156
+ }
157
+ },
158
+ {
159
+ "(google.api.method_signature)": "parent,occurrence"
160
+ }
161
+ ]
162
+ },
163
+ "BatchCreateOccurrences": {
164
+ "requestType": "BatchCreateOccurrencesRequest",
165
+ "responseType": "BatchCreateOccurrencesResponse",
166
+ "options": {
167
+ "(google.api.http).post": "/v1/{parent=projects/*}/occurrences:batchCreate",
168
+ "(google.api.http).body": "*",
169
+ "(google.api.method_signature)": "parent,occurrences"
170
+ },
171
+ "parsedOptions": [
172
+ {
173
+ "(google.api.http)": {
174
+ "post": "/v1/{parent=projects/*}/occurrences:batchCreate",
175
+ "body": "*"
176
+ }
177
+ },
178
+ {
179
+ "(google.api.method_signature)": "parent,occurrences"
180
+ }
181
+ ]
182
+ },
183
+ "UpdateOccurrence": {
184
+ "requestType": "UpdateOccurrenceRequest",
185
+ "responseType": "Occurrence",
186
+ "options": {
187
+ "(google.api.http).patch": "/v1/{name=projects/*/occurrences/*}",
188
+ "(google.api.http).body": "occurrence",
189
+ "(google.api.method_signature)": "name,occurrence,update_mask"
190
+ },
191
+ "parsedOptions": [
192
+ {
193
+ "(google.api.http)": {
194
+ "patch": "/v1/{name=projects/*/occurrences/*}",
195
+ "body": "occurrence"
196
+ }
197
+ },
198
+ {
199
+ "(google.api.method_signature)": "name,occurrence,update_mask"
200
+ }
201
+ ]
202
+ },
203
+ "GetOccurrenceNote": {
204
+ "requestType": "GetOccurrenceNoteRequest",
205
+ "responseType": "Note",
206
+ "options": {
207
+ "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}/notes",
208
+ "(google.api.method_signature)": "name"
209
+ },
210
+ "parsedOptions": [
211
+ {
212
+ "(google.api.http)": {
213
+ "get": "/v1/{name=projects/*/occurrences/*}/notes"
214
+ }
215
+ },
216
+ {
217
+ "(google.api.method_signature)": "name"
218
+ }
219
+ ]
220
+ },
221
+ "GetNote": {
222
+ "requestType": "GetNoteRequest",
223
+ "responseType": "Note",
224
+ "options": {
225
+ "(google.api.http).get": "/v1/{name=projects/*/notes/*}",
226
+ "(google.api.method_signature)": "name"
227
+ },
228
+ "parsedOptions": [
229
+ {
230
+ "(google.api.http)": {
231
+ "get": "/v1/{name=projects/*/notes/*}"
232
+ }
233
+ },
234
+ {
235
+ "(google.api.method_signature)": "name"
236
+ }
237
+ ]
238
+ },
239
+ "ListNotes": {
240
+ "requestType": "ListNotesRequest",
241
+ "responseType": "ListNotesResponse",
242
+ "options": {
243
+ "(google.api.http).get": "/v1/{parent=projects/*}/notes",
244
+ "(google.api.method_signature)": "parent,filter"
245
+ },
246
+ "parsedOptions": [
247
+ {
248
+ "(google.api.http)": {
249
+ "get": "/v1/{parent=projects/*}/notes"
250
+ }
251
+ },
252
+ {
253
+ "(google.api.method_signature)": "parent,filter"
254
+ }
255
+ ]
256
+ },
257
+ "DeleteNote": {
258
+ "requestType": "DeleteNoteRequest",
259
+ "responseType": "google.protobuf.Empty",
260
+ "options": {
261
+ "(google.api.http).delete": "/v1/{name=projects/*/notes/*}",
262
+ "(google.api.method_signature)": "name"
263
+ },
264
+ "parsedOptions": [
265
+ {
266
+ "(google.api.http)": {
267
+ "delete": "/v1/{name=projects/*/notes/*}"
268
+ }
269
+ },
270
+ {
271
+ "(google.api.method_signature)": "name"
272
+ }
273
+ ]
274
+ },
275
+ "CreateNote": {
276
+ "requestType": "CreateNoteRequest",
277
+ "responseType": "Note",
278
+ "options": {
279
+ "(google.api.http).post": "/v1/{parent=projects/*}/notes",
280
+ "(google.api.http).body": "note",
281
+ "(google.api.method_signature)": "parent,note_id,note"
282
+ },
283
+ "parsedOptions": [
284
+ {
285
+ "(google.api.http)": {
286
+ "post": "/v1/{parent=projects/*}/notes",
287
+ "body": "note"
288
+ }
289
+ },
290
+ {
291
+ "(google.api.method_signature)": "parent,note_id,note"
292
+ }
293
+ ]
294
+ },
295
+ "BatchCreateNotes": {
296
+ "requestType": "BatchCreateNotesRequest",
297
+ "responseType": "BatchCreateNotesResponse",
298
+ "options": {
299
+ "(google.api.http).post": "/v1/{parent=projects/*}/notes:batchCreate",
300
+ "(google.api.http).body": "*",
301
+ "(google.api.method_signature)": "parent,notes"
302
+ },
303
+ "parsedOptions": [
304
+ {
305
+ "(google.api.http)": {
306
+ "post": "/v1/{parent=projects/*}/notes:batchCreate",
307
+ "body": "*"
308
+ }
309
+ },
310
+ {
311
+ "(google.api.method_signature)": "parent,notes"
312
+ }
313
+ ]
314
+ },
315
+ "UpdateNote": {
316
+ "requestType": "UpdateNoteRequest",
317
+ "responseType": "Note",
318
+ "options": {
319
+ "(google.api.http).patch": "/v1/{name=projects/*/notes/*}",
320
+ "(google.api.http).body": "note",
321
+ "(google.api.method_signature)": "name,note,update_mask"
322
+ },
323
+ "parsedOptions": [
324
+ {
325
+ "(google.api.http)": {
326
+ "patch": "/v1/{name=projects/*/notes/*}",
327
+ "body": "note"
328
+ }
329
+ },
330
+ {
331
+ "(google.api.method_signature)": "name,note,update_mask"
332
+ }
333
+ ]
334
+ },
335
+ "ListNoteOccurrences": {
336
+ "requestType": "ListNoteOccurrencesRequest",
337
+ "responseType": "ListNoteOccurrencesResponse",
338
+ "options": {
339
+ "(google.api.http).get": "/v1/{name=projects/*/notes/*}/occurrences",
340
+ "(google.api.method_signature)": "name,filter"
341
+ },
342
+ "parsedOptions": [
343
+ {
344
+ "(google.api.http)": {
345
+ "get": "/v1/{name=projects/*/notes/*}/occurrences"
346
+ }
347
+ },
348
+ {
349
+ "(google.api.method_signature)": "name,filter"
350
+ }
351
+ ]
352
+ }
353
+ }
354
+ },
355
+ "Occurrence": {
356
+ "options": {
357
+ "(google.api.resource).type": "grafeas.io/Occurrence",
358
+ "(google.api.resource).pattern": "projects/{project}/occurrences/{occurrence}"
359
+ },
360
+ "oneofs": {
361
+ "details": {
362
+ "oneof": [
363
+ "vulnerability",
364
+ "build",
365
+ "image",
366
+ "package",
367
+ "deployment",
368
+ "discovery",
369
+ "attestation",
370
+ "upgrade",
371
+ "compliance",
372
+ "dsseAttestation"
373
+ ]
374
+ }
375
+ },
376
+ "fields": {
377
+ "name": {
378
+ "type": "string",
379
+ "id": 1
380
+ },
381
+ "resourceUri": {
382
+ "type": "string",
383
+ "id": 2
384
+ },
385
+ "noteName": {
386
+ "type": "string",
387
+ "id": 3
388
+ },
389
+ "kind": {
390
+ "type": "grafeas.v1.NoteKind",
391
+ "id": 4
392
+ },
393
+ "remediation": {
394
+ "type": "string",
395
+ "id": 5
396
+ },
397
+ "createTime": {
398
+ "type": "google.protobuf.Timestamp",
399
+ "id": 6
400
+ },
401
+ "updateTime": {
402
+ "type": "google.protobuf.Timestamp",
403
+ "id": 7
404
+ },
405
+ "vulnerability": {
406
+ "type": "grafeas.v1.VulnerabilityOccurrence",
407
+ "id": 8
408
+ },
409
+ "build": {
410
+ "type": "grafeas.v1.BuildOccurrence",
411
+ "id": 9
412
+ },
413
+ "image": {
414
+ "type": "grafeas.v1.ImageOccurrence",
415
+ "id": 10
416
+ },
417
+ "package": {
418
+ "type": "grafeas.v1.PackageOccurrence",
419
+ "id": 11
420
+ },
421
+ "deployment": {
422
+ "type": "grafeas.v1.DeploymentOccurrence",
423
+ "id": 12
424
+ },
425
+ "discovery": {
426
+ "type": "grafeas.v1.DiscoveryOccurrence",
427
+ "id": 13
428
+ },
429
+ "attestation": {
430
+ "type": "grafeas.v1.AttestationOccurrence",
431
+ "id": 14
432
+ },
433
+ "upgrade": {
434
+ "type": "grafeas.v1.UpgradeOccurrence",
435
+ "id": 15
436
+ },
437
+ "compliance": {
438
+ "type": "grafeas.v1.ComplianceOccurrence",
439
+ "id": 16
440
+ },
441
+ "dsseAttestation": {
442
+ "type": "grafeas.v1.DSSEAttestationOccurrence",
443
+ "id": 17
444
+ },
445
+ "envelope": {
446
+ "type": "grafeas.v1.Envelope",
447
+ "id": 18
448
+ }
449
+ }
450
+ },
451
+ "Note": {
452
+ "options": {
453
+ "(google.api.resource).type": "grafeas.io/Note",
454
+ "(google.api.resource).pattern": "projects/{project}/notes/{note}"
455
+ },
456
+ "oneofs": {
457
+ "type": {
458
+ "oneof": [
459
+ "vulnerability",
460
+ "build",
461
+ "image",
462
+ "package",
463
+ "deployment",
464
+ "discovery",
465
+ "attestation",
466
+ "upgrade",
467
+ "compliance",
468
+ "dsseAttestation"
469
+ ]
470
+ }
471
+ },
472
+ "fields": {
473
+ "name": {
474
+ "type": "string",
475
+ "id": 1
476
+ },
477
+ "shortDescription": {
478
+ "type": "string",
479
+ "id": 2
480
+ },
481
+ "longDescription": {
482
+ "type": "string",
483
+ "id": 3
484
+ },
485
+ "kind": {
486
+ "type": "grafeas.v1.NoteKind",
487
+ "id": 4
488
+ },
489
+ "relatedUrl": {
490
+ "rule": "repeated",
491
+ "type": "grafeas.v1.RelatedUrl",
492
+ "id": 5
493
+ },
494
+ "expirationTime": {
495
+ "type": "google.protobuf.Timestamp",
496
+ "id": 6
497
+ },
498
+ "createTime": {
499
+ "type": "google.protobuf.Timestamp",
500
+ "id": 7
501
+ },
502
+ "updateTime": {
503
+ "type": "google.protobuf.Timestamp",
504
+ "id": 8
505
+ },
506
+ "relatedNoteNames": {
507
+ "rule": "repeated",
508
+ "type": "string",
509
+ "id": 9
510
+ },
511
+ "vulnerability": {
512
+ "type": "grafeas.v1.VulnerabilityNote",
513
+ "id": 10
514
+ },
515
+ "build": {
516
+ "type": "grafeas.v1.BuildNote",
517
+ "id": 11
518
+ },
519
+ "image": {
520
+ "type": "grafeas.v1.ImageNote",
521
+ "id": 12
522
+ },
523
+ "package": {
524
+ "type": "grafeas.v1.PackageNote",
525
+ "id": 13
526
+ },
527
+ "deployment": {
528
+ "type": "grafeas.v1.DeploymentNote",
529
+ "id": 14
530
+ },
531
+ "discovery": {
532
+ "type": "grafeas.v1.DiscoveryNote",
533
+ "id": 15
534
+ },
535
+ "attestation": {
536
+ "type": "grafeas.v1.AttestationNote",
537
+ "id": 16
538
+ },
539
+ "upgrade": {
540
+ "type": "grafeas.v1.UpgradeNote",
541
+ "id": 17
542
+ },
543
+ "compliance": {
544
+ "type": "grafeas.v1.ComplianceNote",
545
+ "id": 18
546
+ },
547
+ "dsseAttestation": {
548
+ "type": "grafeas.v1.DSSEAttestationNote",
549
+ "id": 19
550
+ }
551
+ }
552
+ },
553
+ "GetOccurrenceRequest": {
554
+ "fields": {
555
+ "name": {
556
+ "type": "string",
557
+ "id": 1,
558
+ "options": {
559
+ "(google.api.field_behavior)": "REQUIRED",
560
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
561
+ }
562
+ }
563
+ }
564
+ },
565
+ "ListOccurrencesRequest": {
566
+ "fields": {
567
+ "parent": {
568
+ "type": "string",
569
+ "id": 1,
570
+ "options": {
571
+ "(google.api.field_behavior)": "REQUIRED",
572
+ "(google.api.resource_reference).type": "grafeas.io/Project"
312
573
  }
313
574
  },
314
- "AttackComplexity": {
315
- "values": {
316
- "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
317
- "ATTACK_COMPLEXITY_LOW": 1,
318
- "ATTACK_COMPLEXITY_HIGH": 2
575
+ "filter": {
576
+ "type": "string",
577
+ "id": 2
578
+ },
579
+ "pageSize": {
580
+ "type": "int32",
581
+ "id": 3
582
+ },
583
+ "pageToken": {
584
+ "type": "string",
585
+ "id": 4
586
+ }
587
+ }
588
+ },
589
+ "ListOccurrencesResponse": {
590
+ "fields": {
591
+ "occurrences": {
592
+ "rule": "repeated",
593
+ "type": "Occurrence",
594
+ "id": 1
595
+ },
596
+ "nextPageToken": {
597
+ "type": "string",
598
+ "id": 2
599
+ }
600
+ }
601
+ },
602
+ "DeleteOccurrenceRequest": {
603
+ "fields": {
604
+ "name": {
605
+ "type": "string",
606
+ "id": 1,
607
+ "options": {
608
+ "(google.api.field_behavior)": "REQUIRED",
609
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
610
+ }
611
+ }
612
+ }
613
+ },
614
+ "CreateOccurrenceRequest": {
615
+ "fields": {
616
+ "parent": {
617
+ "type": "string",
618
+ "id": 1,
619
+ "options": {
620
+ "(google.api.field_behavior)": "REQUIRED",
621
+ "(google.api.resource_reference).type": "grafeas.io/Project"
319
622
  }
320
623
  },
321
- "PrivilegesRequired": {
322
- "values": {
323
- "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
324
- "PRIVILEGES_REQUIRED_NONE": 1,
325
- "PRIVILEGES_REQUIRED_LOW": 2,
326
- "PRIVILEGES_REQUIRED_HIGH": 3
624
+ "occurrence": {
625
+ "type": "Occurrence",
626
+ "id": 2,
627
+ "options": {
628
+ "(google.api.field_behavior)": "REQUIRED"
629
+ }
630
+ }
631
+ }
632
+ },
633
+ "UpdateOccurrenceRequest": {
634
+ "fields": {
635
+ "name": {
636
+ "type": "string",
637
+ "id": 1,
638
+ "options": {
639
+ "(google.api.field_behavior)": "REQUIRED",
640
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
327
641
  }
328
642
  },
329
- "UserInteraction": {
330
- "values": {
331
- "USER_INTERACTION_UNSPECIFIED": 0,
332
- "USER_INTERACTION_NONE": 1,
333
- "USER_INTERACTION_REQUIRED": 2
643
+ "occurrence": {
644
+ "type": "Occurrence",
645
+ "id": 2,
646
+ "options": {
647
+ "(google.api.field_behavior)": "REQUIRED"
648
+ }
649
+ },
650
+ "updateMask": {
651
+ "type": "google.protobuf.FieldMask",
652
+ "id": 3
653
+ }
654
+ }
655
+ },
656
+ "GetNoteRequest": {
657
+ "fields": {
658
+ "name": {
659
+ "type": "string",
660
+ "id": 1,
661
+ "options": {
662
+ "(google.api.field_behavior)": "REQUIRED",
663
+ "(google.api.resource_reference).type": "grafeas.io/Note"
664
+ }
665
+ }
666
+ }
667
+ },
668
+ "GetOccurrenceNoteRequest": {
669
+ "fields": {
670
+ "name": {
671
+ "type": "string",
672
+ "id": 1,
673
+ "options": {
674
+ "(google.api.field_behavior)": "REQUIRED",
675
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
676
+ }
677
+ }
678
+ }
679
+ },
680
+ "ListNotesRequest": {
681
+ "fields": {
682
+ "parent": {
683
+ "type": "string",
684
+ "id": 1,
685
+ "options": {
686
+ "(google.api.field_behavior)": "REQUIRED",
687
+ "(google.api.resource_reference).type": "grafeas.io/Project"
688
+ }
689
+ },
690
+ "filter": {
691
+ "type": "string",
692
+ "id": 2
693
+ },
694
+ "pageSize": {
695
+ "type": "int32",
696
+ "id": 3
697
+ },
698
+ "pageToken": {
699
+ "type": "string",
700
+ "id": 4
701
+ }
702
+ }
703
+ },
704
+ "ListNotesResponse": {
705
+ "fields": {
706
+ "notes": {
707
+ "rule": "repeated",
708
+ "type": "Note",
709
+ "id": 1
710
+ },
711
+ "nextPageToken": {
712
+ "type": "string",
713
+ "id": 2
714
+ }
715
+ }
716
+ },
717
+ "DeleteNoteRequest": {
718
+ "fields": {
719
+ "name": {
720
+ "type": "string",
721
+ "id": 1,
722
+ "options": {
723
+ "(google.api.field_behavior)": "REQUIRED",
724
+ "(google.api.resource_reference).type": "grafeas.io/Note"
725
+ }
726
+ }
727
+ }
728
+ },
729
+ "CreateNoteRequest": {
730
+ "fields": {
731
+ "parent": {
732
+ "type": "string",
733
+ "id": 1,
734
+ "options": {
735
+ "(google.api.field_behavior)": "REQUIRED",
736
+ "(google.api.resource_reference).type": "grafeas.io/Project"
334
737
  }
335
738
  },
336
- "Scope": {
337
- "values": {
338
- "SCOPE_UNSPECIFIED": 0,
339
- "SCOPE_UNCHANGED": 1,
340
- "SCOPE_CHANGED": 2
739
+ "noteId": {
740
+ "type": "string",
741
+ "id": 2,
742
+ "options": {
743
+ "(google.api.field_behavior)": "REQUIRED"
341
744
  }
342
745
  },
343
- "Impact": {
344
- "values": {
345
- "IMPACT_UNSPECIFIED": 0,
346
- "IMPACT_HIGH": 1,
347
- "IMPACT_LOW": 2,
348
- "IMPACT_NONE": 3
746
+ "note": {
747
+ "type": "Note",
748
+ "id": 3,
749
+ "options": {
750
+ "(google.api.field_behavior)": "REQUIRED"
349
751
  }
350
752
  }
351
753
  }
352
754
  },
353
- "Architecture": {
354
- "values": {
355
- "ARCHITECTURE_UNSPECIFIED": 0,
356
- "X86": 1,
357
- "X64": 2
755
+ "UpdateNoteRequest": {
756
+ "fields": {
757
+ "name": {
758
+ "type": "string",
759
+ "id": 1,
760
+ "options": {
761
+ "(google.api.field_behavior)": "REQUIRED",
762
+ "(google.api.resource_reference).type": "grafeas.io/Note"
763
+ }
764
+ },
765
+ "note": {
766
+ "type": "Note",
767
+ "id": 2,
768
+ "options": {
769
+ "(google.api.field_behavior)": "REQUIRED"
770
+ }
771
+ },
772
+ "updateMask": {
773
+ "type": "google.protobuf.FieldMask",
774
+ "id": 3
775
+ }
358
776
  }
359
777
  },
360
- "Distribution": {
778
+ "ListNoteOccurrencesRequest": {
361
779
  "fields": {
362
- "cpeUri": {
780
+ "name": {
363
781
  "type": "string",
364
- "id": 1
782
+ "id": 1,
783
+ "options": {
784
+ "(google.api.field_behavior)": "REQUIRED",
785
+ "(google.api.resource_reference).type": "grafeas.io/Note"
786
+ }
365
787
  },
366
- "architecture": {
367
- "type": "Architecture",
788
+ "filter": {
789
+ "type": "string",
368
790
  "id": 2
369
791
  },
370
- "latestVersion": {
371
- "type": "Version",
792
+ "pageSize": {
793
+ "type": "int32",
372
794
  "id": 3
373
795
  },
374
- "maintainer": {
796
+ "pageToken": {
375
797
  "type": "string",
376
798
  "id": 4
377
- },
378
- "url": {
379
- "type": "string",
380
- "id": 5
381
- },
382
- "description": {
383
- "type": "string",
384
- "id": 6
385
799
  }
386
800
  }
387
801
  },
388
- "Location": {
802
+ "ListNoteOccurrencesResponse": {
389
803
  "fields": {
390
- "cpeUri": {
391
- "type": "string",
804
+ "occurrences": {
805
+ "rule": "repeated",
806
+ "type": "Occurrence",
392
807
  "id": 1
393
808
  },
394
- "version": {
395
- "type": "Version",
396
- "id": 2
397
- },
398
- "path": {
809
+ "nextPageToken": {
399
810
  "type": "string",
400
- "id": 3
811
+ "id": 2
401
812
  }
402
813
  }
403
814
  },
404
- "PackageNote": {
815
+ "BatchCreateNotesRequest": {
405
816
  "fields": {
406
- "name": {
817
+ "parent": {
407
818
  "type": "string",
408
- "id": 1
819
+ "id": 1,
820
+ "options": {
821
+ "(google.api.field_behavior)": "REQUIRED",
822
+ "(google.api.resource_reference).type": "grafeas.io/Project"
823
+ }
409
824
  },
410
- "distribution": {
825
+ "notes": {
826
+ "keyType": "string",
827
+ "type": "Note",
828
+ "id": 2,
829
+ "options": {
830
+ "(google.api.field_behavior)": "REQUIRED"
831
+ }
832
+ }
833
+ }
834
+ },
835
+ "BatchCreateNotesResponse": {
836
+ "fields": {
837
+ "notes": {
411
838
  "rule": "repeated",
412
- "type": "Distribution",
413
- "id": 10
839
+ "type": "Note",
840
+ "id": 1
414
841
  }
415
842
  }
416
843
  },
417
- "PackageOccurrence": {
844
+ "BatchCreateOccurrencesRequest": {
418
845
  "fields": {
419
- "name": {
846
+ "parent": {
420
847
  "type": "string",
421
- "id": 1
848
+ "id": 1,
849
+ "options": {
850
+ "(google.api.field_behavior)": "REQUIRED",
851
+ "(google.api.resource_reference).type": "grafeas.io/Project"
852
+ }
422
853
  },
423
- "location": {
854
+ "occurrences": {
424
855
  "rule": "repeated",
425
- "type": "Location",
426
- "id": 2
856
+ "type": "Occurrence",
857
+ "id": 2,
858
+ "options": {
859
+ "(google.api.field_behavior)": "REQUIRED"
860
+ }
427
861
  }
428
862
  }
429
863
  },
430
- "Version": {
864
+ "BatchCreateOccurrencesResponse": {
431
865
  "fields": {
432
- "epoch": {
433
- "type": "int32",
866
+ "occurrences": {
867
+ "rule": "repeated",
868
+ "type": "Occurrence",
434
869
  "id": 1
435
- },
436
- "name": {
437
- "type": "string",
438
- "id": 2
439
- },
440
- "revision": {
441
- "type": "string",
442
- "id": 3
443
- },
444
- "kind": {
445
- "type": "VersionKind",
446
- "id": 4
447
- },
448
- "fullName": {
449
- "type": "string",
450
- "id": 5
451
- }
452
- },
453
- "nested": {
454
- "VersionKind": {
455
- "values": {
456
- "VERSION_KIND_UNSPECIFIED": 0,
457
- "NORMAL": 1,
458
- "MINIMUM": 2,
459
- "MAXIMUM": 3
460
- }
461
870
  }
462
871
  }
463
872
  },
@@ -479,1386 +888,1580 @@
479
888
  }
480
889
  }
481
890
  },
482
- "AttestationOccurrence": {
483
- "fields": {
484
- "serializedPayload": {
485
- "type": "bytes",
486
- "id": 1
487
- },
488
- "signatures": {
489
- "rule": "repeated",
490
- "type": "Signature",
491
- "id": 2
492
- }
493
- }
494
- },
495
- "BuildNote": {
891
+ "Jwt": {
496
892
  "fields": {
497
- "builderVersion": {
893
+ "compactJwt": {
498
894
  "type": "string",
499
895
  "id": 1
500
896
  }
501
897
  }
502
898
  },
503
- "BuildOccurrence": {
504
- "fields": {
505
- "provenance": {
506
- "type": "grafeas.v1.BuildProvenance",
507
- "id": 1
508
- },
509
- "provenanceBytes": {
510
- "type": "string",
511
- "id": 2
512
- }
513
- }
514
- },
515
- "BuildProvenance": {
899
+ "AttestationOccurrence": {
516
900
  "fields": {
517
- "id": {
518
- "type": "string",
901
+ "serializedPayload": {
902
+ "type": "bytes",
519
903
  "id": 1
520
904
  },
521
- "projectId": {
522
- "type": "string",
523
- "id": 2
524
- },
525
- "commands": {
526
- "rule": "repeated",
527
- "type": "Command",
528
- "id": 3
529
- },
530
- "builtArtifacts": {
531
- "rule": "repeated",
532
- "type": "Artifact",
533
- "id": 4
534
- },
535
- "createTime": {
536
- "type": "google.protobuf.Timestamp",
537
- "id": 5
538
- },
539
- "startTime": {
540
- "type": "google.protobuf.Timestamp",
541
- "id": 6
542
- },
543
- "endTime": {
544
- "type": "google.protobuf.Timestamp",
545
- "id": 7
546
- },
547
- "creator": {
548
- "type": "string",
549
- "id": 8
550
- },
551
- "logsUri": {
552
- "type": "string",
553
- "id": 9
554
- },
555
- "sourceProvenance": {
556
- "type": "Source",
557
- "id": 10
558
- },
559
- "triggerId": {
560
- "type": "string",
561
- "id": 11
562
- },
563
- "buildOptions": {
564
- "keyType": "string",
565
- "type": "string",
566
- "id": 12
905
+ "signatures": {
906
+ "rule": "repeated",
907
+ "type": "Signature",
908
+ "id": 2
567
909
  },
910
+ "jwts": {
911
+ "rule": "repeated",
912
+ "type": "Jwt",
913
+ "id": 3
914
+ }
915
+ }
916
+ },
917
+ "BuildNote": {
918
+ "fields": {
568
919
  "builderVersion": {
569
920
  "type": "string",
570
- "id": 13
921
+ "id": 1
571
922
  }
572
923
  }
573
924
  },
574
- "Source": {
925
+ "BuildOccurrence": {
575
926
  "fields": {
576
- "artifactStorageSourceUri": {
577
- "type": "string",
927
+ "provenance": {
928
+ "type": "grafeas.v1.BuildProvenance",
578
929
  "id": 1
579
930
  },
580
- "fileHashes": {
581
- "keyType": "string",
582
- "type": "FileHashes",
931
+ "provenanceBytes": {
932
+ "type": "string",
583
933
  "id": 2
584
934
  },
585
- "context": {
586
- "type": "SourceContext",
935
+ "intotoProvenance": {
936
+ "type": "InTotoProvenance",
587
937
  "id": 3
588
938
  },
589
- "additionalContexts": {
590
- "rule": "repeated",
591
- "type": "SourceContext",
939
+ "intotoStatement": {
940
+ "type": "InTotoStatement",
592
941
  "id": 4
593
942
  }
594
943
  }
595
944
  },
596
- "FileHashes": {
945
+ "Recipe": {
597
946
  "fields": {
598
- "fileHash": {
599
- "rule": "repeated",
600
- "type": "Hash",
947
+ "type": {
948
+ "type": "string",
601
949
  "id": 1
950
+ },
951
+ "definedInMaterial": {
952
+ "type": "int64",
953
+ "id": 2
954
+ },
955
+ "entryPoint": {
956
+ "type": "string",
957
+ "id": 3
958
+ },
959
+ "arguments": {
960
+ "rule": "repeated",
961
+ "type": "google.protobuf.Any",
962
+ "id": 4
963
+ },
964
+ "environment": {
965
+ "rule": "repeated",
966
+ "type": "google.protobuf.Any",
967
+ "id": 5
602
968
  }
603
969
  }
604
970
  },
605
- "Hash": {
971
+ "Completeness": {
606
972
  "fields": {
607
- "type": {
608
- "type": "string",
973
+ "arguments": {
974
+ "type": "bool",
609
975
  "id": 1
610
976
  },
611
- "value": {
612
- "type": "bytes",
977
+ "environment": {
978
+ "type": "bool",
613
979
  "id": 2
980
+ },
981
+ "materials": {
982
+ "type": "bool",
983
+ "id": 3
614
984
  }
615
985
  }
616
986
  },
617
- "Command": {
987
+ "Metadata": {
618
988
  "fields": {
619
- "name": {
989
+ "buildInvocationId": {
620
990
  "type": "string",
621
991
  "id": 1
622
992
  },
623
- "env": {
624
- "rule": "repeated",
625
- "type": "string",
993
+ "buildStartedOn": {
994
+ "type": "google.protobuf.Timestamp",
626
995
  "id": 2
627
996
  },
628
- "args": {
629
- "rule": "repeated",
630
- "type": "string",
997
+ "buildFinishedOn": {
998
+ "type": "google.protobuf.Timestamp",
631
999
  "id": 3
632
1000
  },
633
- "dir": {
634
- "type": "string",
1001
+ "completeness": {
1002
+ "type": "Completeness",
635
1003
  "id": 4
636
1004
  },
637
- "id": {
638
- "type": "string",
1005
+ "reproducible": {
1006
+ "type": "bool",
639
1007
  "id": 5
640
- },
641
- "waitFor": {
642
- "rule": "repeated",
643
- "type": "string",
644
- "id": 6
645
1008
  }
646
1009
  }
647
1010
  },
648
- "Artifact": {
1011
+ "BuilderConfig": {
649
1012
  "fields": {
650
- "checksum": {
1013
+ "id": {
651
1014
  "type": "string",
652
1015
  "id": 1
1016
+ }
1017
+ }
1018
+ },
1019
+ "InTotoProvenance": {
1020
+ "fields": {
1021
+ "builderConfig": {
1022
+ "type": "BuilderConfig",
1023
+ "id": 1
653
1024
  },
654
- "id": {
655
- "type": "string",
1025
+ "recipe": {
1026
+ "type": "Recipe",
656
1027
  "id": 2
657
1028
  },
658
- "names": {
1029
+ "metadata": {
1030
+ "type": "Metadata",
1031
+ "id": 3
1032
+ },
1033
+ "materials": {
659
1034
  "rule": "repeated",
660
1035
  "type": "string",
661
- "id": 3
1036
+ "id": 4
662
1037
  }
663
1038
  }
664
1039
  },
665
- "SourceContext": {
1040
+ "InTotoStatement": {
666
1041
  "oneofs": {
667
- "context": {
1042
+ "predicate": {
668
1043
  "oneof": [
669
- "cloudRepo",
670
- "gerrit",
671
- "git"
1044
+ "provenance",
1045
+ "slsaProvenance"
672
1046
  ]
673
1047
  }
674
1048
  },
675
1049
  "fields": {
676
- "cloudRepo": {
677
- "type": "CloudRepoSourceContext",
678
- "id": 1
1050
+ "type": {
1051
+ "type": "string",
1052
+ "id": 1,
1053
+ "options": {
1054
+ "json_name": "_type"
1055
+ }
679
1056
  },
680
- "gerrit": {
681
- "type": "GerritSourceContext",
1057
+ "subject": {
1058
+ "rule": "repeated",
1059
+ "type": "Subject",
682
1060
  "id": 2
683
1061
  },
684
- "git": {
685
- "type": "GitSourceContext",
1062
+ "predicateType": {
1063
+ "type": "string",
686
1064
  "id": 3
687
1065
  },
688
- "labels": {
689
- "keyType": "string",
690
- "type": "string",
1066
+ "provenance": {
1067
+ "type": "InTotoProvenance",
691
1068
  "id": 4
1069
+ },
1070
+ "slsaProvenance": {
1071
+ "type": "SlsaProvenance",
1072
+ "id": 5
692
1073
  }
693
1074
  }
694
1075
  },
695
- "AliasContext": {
1076
+ "Subject": {
696
1077
  "fields": {
697
- "kind": {
698
- "type": "Kind",
1078
+ "name": {
1079
+ "type": "string",
699
1080
  "id": 1
700
1081
  },
701
- "name": {
1082
+ "digest": {
1083
+ "keyType": "string",
702
1084
  "type": "string",
703
1085
  "id": 2
704
1086
  }
1087
+ }
1088
+ },
1089
+ "SlsaProvenance": {
1090
+ "fields": {
1091
+ "builder": {
1092
+ "type": "SlsaBuilder",
1093
+ "id": 1
1094
+ },
1095
+ "recipe": {
1096
+ "type": "SlsaRecipe",
1097
+ "id": 2
1098
+ },
1099
+ "metadata": {
1100
+ "type": "SlsaMetadata",
1101
+ "id": 3
1102
+ },
1103
+ "materials": {
1104
+ "rule": "repeated",
1105
+ "type": "Material",
1106
+ "id": 4
1107
+ }
705
1108
  },
706
1109
  "nested": {
707
- "Kind": {
708
- "values": {
709
- "KIND_UNSPECIFIED": 0,
710
- "FIXED": 1,
711
- "MOVABLE": 2,
712
- "OTHER": 4
1110
+ "SlsaRecipe": {
1111
+ "fields": {
1112
+ "type": {
1113
+ "type": "string",
1114
+ "id": 1
1115
+ },
1116
+ "definedInMaterial": {
1117
+ "type": "int64",
1118
+ "id": 2
1119
+ },
1120
+ "entryPoint": {
1121
+ "type": "string",
1122
+ "id": 3
1123
+ },
1124
+ "arguments": {
1125
+ "type": "google.protobuf.Any",
1126
+ "id": 4
1127
+ },
1128
+ "environment": {
1129
+ "type": "google.protobuf.Any",
1130
+ "id": 5
1131
+ }
1132
+ }
1133
+ },
1134
+ "SlsaCompleteness": {
1135
+ "fields": {
1136
+ "arguments": {
1137
+ "type": "bool",
1138
+ "id": 1
1139
+ },
1140
+ "environment": {
1141
+ "type": "bool",
1142
+ "id": 2
1143
+ },
1144
+ "materials": {
1145
+ "type": "bool",
1146
+ "id": 3
1147
+ }
1148
+ }
1149
+ },
1150
+ "SlsaMetadata": {
1151
+ "fields": {
1152
+ "buildInvocationId": {
1153
+ "type": "string",
1154
+ "id": 1
1155
+ },
1156
+ "buildStartedOn": {
1157
+ "type": "google.protobuf.Timestamp",
1158
+ "id": 2
1159
+ },
1160
+ "buildFinishedOn": {
1161
+ "type": "google.protobuf.Timestamp",
1162
+ "id": 3
1163
+ },
1164
+ "completeness": {
1165
+ "type": "SlsaCompleteness",
1166
+ "id": 4
1167
+ },
1168
+ "reproducible": {
1169
+ "type": "bool",
1170
+ "id": 5
1171
+ }
1172
+ }
1173
+ },
1174
+ "SlsaBuilder": {
1175
+ "fields": {
1176
+ "id": {
1177
+ "type": "string",
1178
+ "id": 1
1179
+ }
1180
+ }
1181
+ },
1182
+ "Material": {
1183
+ "fields": {
1184
+ "uri": {
1185
+ "type": "string",
1186
+ "id": 1
1187
+ },
1188
+ "digest": {
1189
+ "keyType": "string",
1190
+ "type": "string",
1191
+ "id": 2
1192
+ }
713
1193
  }
714
1194
  }
715
1195
  }
716
1196
  },
717
- "CloudRepoSourceContext": {
718
- "oneofs": {
719
- "revision": {
720
- "oneof": [
721
- "revisionId",
722
- "aliasContext"
723
- ]
724
- }
725
- },
1197
+ "BuildProvenance": {
726
1198
  "fields": {
727
- "repoId": {
728
- "type": "RepoId",
1199
+ "id": {
1200
+ "type": "string",
729
1201
  "id": 1
730
1202
  },
731
- "revisionId": {
1203
+ "projectId": {
1204
+ "type": "string",
1205
+ "id": 2
1206
+ },
1207
+ "commands": {
1208
+ "rule": "repeated",
1209
+ "type": "Command",
1210
+ "id": 3
1211
+ },
1212
+ "builtArtifacts": {
1213
+ "rule": "repeated",
1214
+ "type": "Artifact",
1215
+ "id": 4
1216
+ },
1217
+ "createTime": {
1218
+ "type": "google.protobuf.Timestamp",
1219
+ "id": 5
1220
+ },
1221
+ "startTime": {
1222
+ "type": "google.protobuf.Timestamp",
1223
+ "id": 6
1224
+ },
1225
+ "endTime": {
1226
+ "type": "google.protobuf.Timestamp",
1227
+ "id": 7
1228
+ },
1229
+ "creator": {
1230
+ "type": "string",
1231
+ "id": 8
1232
+ },
1233
+ "logsUri": {
1234
+ "type": "string",
1235
+ "id": 9
1236
+ },
1237
+ "sourceProvenance": {
1238
+ "type": "Source",
1239
+ "id": 10
1240
+ },
1241
+ "triggerId": {
732
1242
  "type": "string",
733
- "id": 2
1243
+ "id": 11
734
1244
  },
735
- "aliasContext": {
736
- "type": "AliasContext",
737
- "id": 3
1245
+ "buildOptions": {
1246
+ "keyType": "string",
1247
+ "type": "string",
1248
+ "id": 12
1249
+ },
1250
+ "builderVersion": {
1251
+ "type": "string",
1252
+ "id": 13
738
1253
  }
739
1254
  }
740
1255
  },
741
- "GerritSourceContext": {
742
- "oneofs": {
743
- "revision": {
744
- "oneof": [
745
- "revisionId",
746
- "aliasContext"
747
- ]
748
- }
749
- },
1256
+ "Source": {
750
1257
  "fields": {
751
- "hostUri": {
1258
+ "artifactStorageSourceUri": {
752
1259
  "type": "string",
753
1260
  "id": 1
754
1261
  },
755
- "gerritProject": {
756
- "type": "string",
1262
+ "fileHashes": {
1263
+ "keyType": "string",
1264
+ "type": "FileHashes",
757
1265
  "id": 2
758
1266
  },
759
- "revisionId": {
760
- "type": "string",
1267
+ "context": {
1268
+ "type": "SourceContext",
761
1269
  "id": 3
762
1270
  },
763
- "aliasContext": {
764
- "type": "AliasContext",
1271
+ "additionalContexts": {
1272
+ "rule": "repeated",
1273
+ "type": "SourceContext",
765
1274
  "id": 4
766
1275
  }
767
1276
  }
768
1277
  },
769
- "GitSourceContext": {
1278
+ "FileHashes": {
770
1279
  "fields": {
771
- "url": {
772
- "type": "string",
1280
+ "fileHash": {
1281
+ "rule": "repeated",
1282
+ "type": "Hash",
773
1283
  "id": 1
774
- },
775
- "revisionId": {
776
- "type": "string",
777
- "id": 2
778
1284
  }
779
1285
  }
780
1286
  },
781
- "RepoId": {
782
- "oneofs": {
783
- "id": {
784
- "oneof": [
785
- "projectRepoId",
786
- "uid"
787
- ]
788
- }
789
- },
1287
+ "Hash": {
790
1288
  "fields": {
791
- "projectRepoId": {
792
- "type": "ProjectRepoId",
1289
+ "type": {
1290
+ "type": "string",
793
1291
  "id": 1
794
1292
  },
795
- "uid": {
796
- "type": "string",
1293
+ "value": {
1294
+ "type": "bytes",
797
1295
  "id": 2
798
1296
  }
799
1297
  }
800
1298
  },
801
- "ProjectRepoId": {
1299
+ "Command": {
802
1300
  "fields": {
803
- "projectId": {
1301
+ "name": {
804
1302
  "type": "string",
805
1303
  "id": 1
806
1304
  },
807
- "repoName": {
808
- "type": "string",
809
- "id": 2
810
- }
811
- }
812
- },
813
- "DeploymentNote": {
814
- "fields": {
815
- "resourceUri": {
1305
+ "env": {
816
1306
  "rule": "repeated",
817
1307
  "type": "string",
818
- "id": 1
819
- }
820
- }
821
- },
822
- "DeploymentOccurrence": {
823
- "fields": {
824
- "userEmail": {
825
- "type": "string",
826
- "id": 1
827
- },
828
- "deployTime": {
829
- "type": "google.protobuf.Timestamp",
830
1308
  "id": 2
831
1309
  },
832
- "undeployTime": {
833
- "type": "google.protobuf.Timestamp",
1310
+ "args": {
1311
+ "rule": "repeated",
1312
+ "type": "string",
834
1313
  "id": 3
835
1314
  },
836
- "config": {
1315
+ "dir": {
837
1316
  "type": "string",
838
1317
  "id": 4
839
1318
  },
840
- "address": {
1319
+ "id": {
841
1320
  "type": "string",
842
1321
  "id": 5
843
1322
  },
844
- "resourceUri": {
1323
+ "waitFor": {
845
1324
  "rule": "repeated",
846
1325
  "type": "string",
847
1326
  "id": 6
848
- },
849
- "platform": {
850
- "type": "Platform",
851
- "id": 7
852
- }
853
- },
854
- "nested": {
855
- "Platform": {
856
- "values": {
857
- "PLATFORM_UNSPECIFIED": 0,
858
- "GKE": 1,
859
- "FLEX": 2,
860
- "CUSTOM": 3
861
- }
862
- }
863
- }
864
- },
865
- "DiscoveryNote": {
866
- "fields": {
867
- "analysisKind": {
868
- "type": "grafeas.v1.NoteKind",
869
- "id": 1
870
1327
  }
871
1328
  }
872
1329
  },
873
- "DiscoveryOccurrence": {
1330
+ "Artifact": {
874
1331
  "fields": {
875
- "continuousAnalysis": {
876
- "type": "ContinuousAnalysis",
1332
+ "checksum": {
1333
+ "type": "string",
877
1334
  "id": 1
878
1335
  },
879
- "analysisStatus": {
880
- "type": "AnalysisStatus",
881
- "id": 2
882
- },
883
- "analysisStatusError": {
884
- "type": "google.rpc.Status",
885
- "id": 3
886
- },
887
- "cpe": {
1336
+ "id": {
888
1337
  "type": "string",
889
- "id": 4
890
- },
891
- "lastScanTime": {
892
- "type": "google.protobuf.Timestamp",
893
- "id": 5
894
- }
895
- },
896
- "nested": {
897
- "ContinuousAnalysis": {
898
- "values": {
899
- "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
900
- "ACTIVE": 1,
901
- "INACTIVE": 2
902
- }
903
- },
904
- "AnalysisStatus": {
905
- "values": {
906
- "ANALYSIS_STATUS_UNSPECIFIED": 0,
907
- "PENDING": 1,
908
- "SCANNING": 2,
909
- "FINISHED_SUCCESS": 3,
910
- "FINISHED_FAILED": 4,
911
- "FINISHED_UNSUPPORTED": 5
912
- }
913
- }
914
- }
915
- },
916
- "Grafeas": {
917
- "options": {
918
- "(google.api.default_host)": "containeranalysis.googleapis.com"
919
- },
920
- "methods": {
921
- "GetOccurrence": {
922
- "requestType": "GetOccurrenceRequest",
923
- "responseType": "Occurrence",
924
- "options": {
925
- "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}",
926
- "(google.api.method_signature)": "name"
927
- },
928
- "parsedOptions": [
929
- {
930
- "(google.api.http)": {
931
- "get": "/v1/{name=projects/*/occurrences/*}"
932
- }
933
- },
934
- {
935
- "(google.api.method_signature)": "name"
936
- }
937
- ]
938
- },
939
- "ListOccurrences": {
940
- "requestType": "ListOccurrencesRequest",
941
- "responseType": "ListOccurrencesResponse",
942
- "options": {
943
- "(google.api.http).get": "/v1/{parent=projects/*}/occurrences",
944
- "(google.api.method_signature)": "parent,filter"
945
- },
946
- "parsedOptions": [
947
- {
948
- "(google.api.http)": {
949
- "get": "/v1/{parent=projects/*}/occurrences"
950
- }
951
- },
952
- {
953
- "(google.api.method_signature)": "parent,filter"
954
- }
955
- ]
956
- },
957
- "DeleteOccurrence": {
958
- "requestType": "DeleteOccurrenceRequest",
959
- "responseType": "google.protobuf.Empty",
960
- "options": {
961
- "(google.api.http).delete": "/v1/{name=projects/*/occurrences/*}",
962
- "(google.api.method_signature)": "name"
963
- },
964
- "parsedOptions": [
965
- {
966
- "(google.api.http)": {
967
- "delete": "/v1/{name=projects/*/occurrences/*}"
968
- }
969
- },
970
- {
971
- "(google.api.method_signature)": "name"
972
- }
973
- ]
1338
+ "id": 2
974
1339
  },
975
- "CreateOccurrence": {
976
- "requestType": "CreateOccurrenceRequest",
977
- "responseType": "Occurrence",
978
- "options": {
979
- "(google.api.http).post": "/v1/{parent=projects/*}/occurrences",
980
- "(google.api.http).body": "occurrence",
981
- "(google.api.method_signature)": "parent,occurrence"
982
- },
983
- "parsedOptions": [
984
- {
985
- "(google.api.http)": {
986
- "post": "/v1/{parent=projects/*}/occurrences",
987
- "body": "occurrence"
988
- }
989
- },
990
- {
991
- "(google.api.method_signature)": "parent,occurrence"
992
- }
1340
+ "names": {
1341
+ "rule": "repeated",
1342
+ "type": "string",
1343
+ "id": 3
1344
+ }
1345
+ }
1346
+ },
1347
+ "SourceContext": {
1348
+ "oneofs": {
1349
+ "context": {
1350
+ "oneof": [
1351
+ "cloudRepo",
1352
+ "gerrit",
1353
+ "git"
993
1354
  ]
1355
+ }
1356
+ },
1357
+ "fields": {
1358
+ "cloudRepo": {
1359
+ "type": "CloudRepoSourceContext",
1360
+ "id": 1
994
1361
  },
995
- "BatchCreateOccurrences": {
996
- "requestType": "BatchCreateOccurrencesRequest",
997
- "responseType": "BatchCreateOccurrencesResponse",
998
- "options": {
999
- "(google.api.http).post": "/v1/{parent=projects/*}/occurrences:batchCreate",
1000
- "(google.api.http).body": "*",
1001
- "(google.api.method_signature)": "parent,occurrences"
1002
- },
1003
- "parsedOptions": [
1004
- {
1005
- "(google.api.http)": {
1006
- "post": "/v1/{parent=projects/*}/occurrences:batchCreate",
1007
- "body": "*"
1008
- }
1009
- },
1010
- {
1011
- "(google.api.method_signature)": "parent,occurrences"
1012
- }
1013
- ]
1362
+ "gerrit": {
1363
+ "type": "GerritSourceContext",
1364
+ "id": 2
1014
1365
  },
1015
- "UpdateOccurrence": {
1016
- "requestType": "UpdateOccurrenceRequest",
1017
- "responseType": "Occurrence",
1018
- "options": {
1019
- "(google.api.http).patch": "/v1/{name=projects/*/occurrences/*}",
1020
- "(google.api.http).body": "occurrence",
1021
- "(google.api.method_signature)": "name,occurrence,update_mask"
1022
- },
1023
- "parsedOptions": [
1024
- {
1025
- "(google.api.http)": {
1026
- "patch": "/v1/{name=projects/*/occurrences/*}",
1027
- "body": "occurrence"
1028
- }
1029
- },
1030
- {
1031
- "(google.api.method_signature)": "name,occurrence,update_mask"
1032
- }
1033
- ]
1366
+ "git": {
1367
+ "type": "GitSourceContext",
1368
+ "id": 3
1034
1369
  },
1035
- "GetOccurrenceNote": {
1036
- "requestType": "GetOccurrenceNoteRequest",
1037
- "responseType": "Note",
1038
- "options": {
1039
- "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}/notes",
1040
- "(google.api.method_signature)": "name"
1041
- },
1042
- "parsedOptions": [
1043
- {
1044
- "(google.api.http)": {
1045
- "get": "/v1/{name=projects/*/occurrences/*}/notes"
1046
- }
1047
- },
1048
- {
1049
- "(google.api.method_signature)": "name"
1050
- }
1051
- ]
1370
+ "labels": {
1371
+ "keyType": "string",
1372
+ "type": "string",
1373
+ "id": 4
1374
+ }
1375
+ }
1376
+ },
1377
+ "AliasContext": {
1378
+ "fields": {
1379
+ "kind": {
1380
+ "type": "Kind",
1381
+ "id": 1
1052
1382
  },
1053
- "GetNote": {
1054
- "requestType": "GetNoteRequest",
1055
- "responseType": "Note",
1056
- "options": {
1057
- "(google.api.http).get": "/v1/{name=projects/*/notes/*}",
1058
- "(google.api.method_signature)": "name"
1059
- },
1060
- "parsedOptions": [
1061
- {
1062
- "(google.api.http)": {
1063
- "get": "/v1/{name=projects/*/notes/*}"
1064
- }
1065
- },
1066
- {
1067
- "(google.api.method_signature)": "name"
1068
- }
1383
+ "name": {
1384
+ "type": "string",
1385
+ "id": 2
1386
+ }
1387
+ },
1388
+ "nested": {
1389
+ "Kind": {
1390
+ "values": {
1391
+ "KIND_UNSPECIFIED": 0,
1392
+ "FIXED": 1,
1393
+ "MOVABLE": 2,
1394
+ "OTHER": 4
1395
+ }
1396
+ }
1397
+ }
1398
+ },
1399
+ "CloudRepoSourceContext": {
1400
+ "oneofs": {
1401
+ "revision": {
1402
+ "oneof": [
1403
+ "revisionId",
1404
+ "aliasContext"
1069
1405
  ]
1406
+ }
1407
+ },
1408
+ "fields": {
1409
+ "repoId": {
1410
+ "type": "RepoId",
1411
+ "id": 1
1070
1412
  },
1071
- "ListNotes": {
1072
- "requestType": "ListNotesRequest",
1073
- "responseType": "ListNotesResponse",
1074
- "options": {
1075
- "(google.api.http).get": "/v1/{parent=projects/*}/notes",
1076
- "(google.api.method_signature)": "parent,filter"
1077
- },
1078
- "parsedOptions": [
1079
- {
1080
- "(google.api.http)": {
1081
- "get": "/v1/{parent=projects/*}/notes"
1082
- }
1083
- },
1084
- {
1085
- "(google.api.method_signature)": "parent,filter"
1086
- }
1087
- ]
1413
+ "revisionId": {
1414
+ "type": "string",
1415
+ "id": 2
1088
1416
  },
1089
- "DeleteNote": {
1090
- "requestType": "DeleteNoteRequest",
1091
- "responseType": "google.protobuf.Empty",
1092
- "options": {
1093
- "(google.api.http).delete": "/v1/{name=projects/*/notes/*}",
1094
- "(google.api.method_signature)": "name"
1095
- },
1096
- "parsedOptions": [
1097
- {
1098
- "(google.api.http)": {
1099
- "delete": "/v1/{name=projects/*/notes/*}"
1100
- }
1101
- },
1102
- {
1103
- "(google.api.method_signature)": "name"
1104
- }
1417
+ "aliasContext": {
1418
+ "type": "AliasContext",
1419
+ "id": 3
1420
+ }
1421
+ }
1422
+ },
1423
+ "GerritSourceContext": {
1424
+ "oneofs": {
1425
+ "revision": {
1426
+ "oneof": [
1427
+ "revisionId",
1428
+ "aliasContext"
1105
1429
  ]
1430
+ }
1431
+ },
1432
+ "fields": {
1433
+ "hostUri": {
1434
+ "type": "string",
1435
+ "id": 1
1106
1436
  },
1107
- "CreateNote": {
1108
- "requestType": "CreateNoteRequest",
1109
- "responseType": "Note",
1110
- "options": {
1111
- "(google.api.http).post": "/v1/{parent=projects/*}/notes",
1112
- "(google.api.http).body": "note",
1113
- "(google.api.method_signature)": "parent,note_id,note"
1114
- },
1115
- "parsedOptions": [
1116
- {
1117
- "(google.api.http)": {
1118
- "post": "/v1/{parent=projects/*}/notes",
1119
- "body": "note"
1120
- }
1121
- },
1122
- {
1123
- "(google.api.method_signature)": "parent,note_id,note"
1124
- }
1125
- ]
1437
+ "gerritProject": {
1438
+ "type": "string",
1439
+ "id": 2
1126
1440
  },
1127
- "BatchCreateNotes": {
1128
- "requestType": "BatchCreateNotesRequest",
1129
- "responseType": "BatchCreateNotesResponse",
1130
- "options": {
1131
- "(google.api.http).post": "/v1/{parent=projects/*}/notes:batchCreate",
1132
- "(google.api.http).body": "*",
1133
- "(google.api.method_signature)": "parent,notes"
1134
- },
1135
- "parsedOptions": [
1136
- {
1137
- "(google.api.http)": {
1138
- "post": "/v1/{parent=projects/*}/notes:batchCreate",
1139
- "body": "*"
1140
- }
1141
- },
1142
- {
1143
- "(google.api.method_signature)": "parent,notes"
1144
- }
1441
+ "revisionId": {
1442
+ "type": "string",
1443
+ "id": 3
1444
+ },
1445
+ "aliasContext": {
1446
+ "type": "AliasContext",
1447
+ "id": 4
1448
+ }
1449
+ }
1450
+ },
1451
+ "GitSourceContext": {
1452
+ "fields": {
1453
+ "url": {
1454
+ "type": "string",
1455
+ "id": 1
1456
+ },
1457
+ "revisionId": {
1458
+ "type": "string",
1459
+ "id": 2
1460
+ }
1461
+ }
1462
+ },
1463
+ "RepoId": {
1464
+ "oneofs": {
1465
+ "id": {
1466
+ "oneof": [
1467
+ "projectRepoId",
1468
+ "uid"
1145
1469
  ]
1470
+ }
1471
+ },
1472
+ "fields": {
1473
+ "projectRepoId": {
1474
+ "type": "ProjectRepoId",
1475
+ "id": 1
1146
1476
  },
1147
- "UpdateNote": {
1148
- "requestType": "UpdateNoteRequest",
1149
- "responseType": "Note",
1150
- "options": {
1151
- "(google.api.http).patch": "/v1/{name=projects/*/notes/*}",
1152
- "(google.api.http).body": "note",
1153
- "(google.api.method_signature)": "name,note,update_mask"
1154
- },
1155
- "parsedOptions": [
1156
- {
1157
- "(google.api.http)": {
1158
- "patch": "/v1/{name=projects/*/notes/*}",
1159
- "body": "note"
1160
- }
1161
- },
1162
- {
1163
- "(google.api.method_signature)": "name,note,update_mask"
1164
- }
1165
- ]
1477
+ "uid": {
1478
+ "type": "string",
1479
+ "id": 2
1480
+ }
1481
+ }
1482
+ },
1483
+ "ProjectRepoId": {
1484
+ "fields": {
1485
+ "projectId": {
1486
+ "type": "string",
1487
+ "id": 1
1166
1488
  },
1167
- "ListNoteOccurrences": {
1168
- "requestType": "ListNoteOccurrencesRequest",
1169
- "responseType": "ListNoteOccurrencesResponse",
1170
- "options": {
1171
- "(google.api.http).get": "/v1/{name=projects/*/notes/*}/occurrences",
1172
- "(google.api.method_signature)": "name,filter"
1173
- },
1174
- "parsedOptions": [
1175
- {
1176
- "(google.api.http)": {
1177
- "get": "/v1/{name=projects/*/notes/*}/occurrences"
1178
- }
1179
- },
1180
- {
1181
- "(google.api.method_signature)": "name,filter"
1182
- }
1183
- ]
1489
+ "repoName": {
1490
+ "type": "string",
1491
+ "id": 2
1184
1492
  }
1185
1493
  }
1186
1494
  },
1187
- "Occurrence": {
1188
- "options": {
1189
- "(google.api.resource).type": "grafeas.io/Occurrence",
1190
- "(google.api.resource).pattern": "projects/{project}/occurrences/{occurrence}"
1191
- },
1495
+ "ComplianceNote": {
1192
1496
  "oneofs": {
1193
- "details": {
1497
+ "complianceType": {
1194
1498
  "oneof": [
1195
- "vulnerability",
1196
- "build",
1197
- "image",
1198
- "package",
1199
- "deployment",
1200
- "discovery",
1201
- "attestation",
1202
- "upgrade"
1499
+ "cisBenchmark"
1203
1500
  ]
1204
1501
  }
1205
1502
  },
1206
1503
  "fields": {
1207
- "name": {
1504
+ "title": {
1208
1505
  "type": "string",
1209
1506
  "id": 1
1210
1507
  },
1211
- "resourceUri": {
1508
+ "description": {
1212
1509
  "type": "string",
1213
1510
  "id": 2
1214
1511
  },
1215
- "noteName": {
1216
- "type": "string",
1512
+ "version": {
1513
+ "rule": "repeated",
1514
+ "type": "grafeas.v1.ComplianceVersion",
1217
1515
  "id": 3
1218
1516
  },
1219
- "kind": {
1220
- "type": "grafeas.v1.NoteKind",
1517
+ "rationale": {
1518
+ "type": "string",
1221
1519
  "id": 4
1222
1520
  },
1223
1521
  "remediation": {
1224
1522
  "type": "string",
1225
1523
  "id": 5
1226
1524
  },
1227
- "createTime": {
1228
- "type": "google.protobuf.Timestamp",
1525
+ "cisBenchmark": {
1526
+ "type": "CisBenchmark",
1229
1527
  "id": 6
1230
1528
  },
1231
- "updateTime": {
1232
- "type": "google.protobuf.Timestamp",
1529
+ "scanInstructions": {
1530
+ "type": "bytes",
1233
1531
  "id": 7
1532
+ }
1533
+ },
1534
+ "nested": {
1535
+ "CisBenchmark": {
1536
+ "fields": {
1537
+ "profileLevel": {
1538
+ "type": "int32",
1539
+ "id": 1
1540
+ },
1541
+ "severity": {
1542
+ "type": "grafeas.v1.Severity",
1543
+ "id": 2
1544
+ }
1545
+ }
1546
+ }
1547
+ }
1548
+ },
1549
+ "ComplianceVersion": {
1550
+ "fields": {
1551
+ "cpeUri": {
1552
+ "type": "string",
1553
+ "id": 1
1234
1554
  },
1235
- "vulnerability": {
1236
- "type": "grafeas.v1.VulnerabilityOccurrence",
1237
- "id": 8
1555
+ "version": {
1556
+ "type": "string",
1557
+ "id": 2
1558
+ }
1559
+ }
1560
+ },
1561
+ "ComplianceOccurrence": {
1562
+ "fields": {
1563
+ "nonCompliantFiles": {
1564
+ "rule": "repeated",
1565
+ "type": "NonCompliantFile",
1566
+ "id": 2
1238
1567
  },
1239
- "build": {
1240
- "type": "grafeas.v1.BuildOccurrence",
1241
- "id": 9
1568
+ "nonComplianceReason": {
1569
+ "type": "string",
1570
+ "id": 3
1571
+ }
1572
+ }
1573
+ },
1574
+ "NonCompliantFile": {
1575
+ "fields": {
1576
+ "path": {
1577
+ "type": "string",
1578
+ "id": 1
1242
1579
  },
1243
- "image": {
1244
- "type": "grafeas.v1.ImageOccurrence",
1245
- "id": 10
1580
+ "displayCommand": {
1581
+ "type": "string",
1582
+ "id": 2
1246
1583
  },
1247
- "package": {
1248
- "type": "grafeas.v1.PackageOccurrence",
1249
- "id": 11
1584
+ "reason": {
1585
+ "type": "string",
1586
+ "id": 3
1587
+ }
1588
+ }
1589
+ },
1590
+ "Severity": {
1591
+ "values": {
1592
+ "SEVERITY_UNSPECIFIED": 0,
1593
+ "MINIMAL": 1,
1594
+ "LOW": 2,
1595
+ "MEDIUM": 3,
1596
+ "HIGH": 4,
1597
+ "CRITICAL": 5
1598
+ }
1599
+ },
1600
+ "DeploymentNote": {
1601
+ "fields": {
1602
+ "resourceUri": {
1603
+ "rule": "repeated",
1604
+ "type": "string",
1605
+ "id": 1
1606
+ }
1607
+ }
1608
+ },
1609
+ "DeploymentOccurrence": {
1610
+ "fields": {
1611
+ "userEmail": {
1612
+ "type": "string",
1613
+ "id": 1
1250
1614
  },
1251
- "deployment": {
1252
- "type": "grafeas.v1.DeploymentOccurrence",
1253
- "id": 12
1615
+ "deployTime": {
1616
+ "type": "google.protobuf.Timestamp",
1617
+ "id": 2
1254
1618
  },
1255
- "discovery": {
1256
- "type": "grafeas.v1.DiscoveryOccurrence",
1257
- "id": 13
1619
+ "undeployTime": {
1620
+ "type": "google.protobuf.Timestamp",
1621
+ "id": 3
1258
1622
  },
1259
- "attestation": {
1260
- "type": "grafeas.v1.AttestationOccurrence",
1261
- "id": 14
1623
+ "config": {
1624
+ "type": "string",
1625
+ "id": 4
1262
1626
  },
1263
- "upgrade": {
1264
- "type": "grafeas.v1.UpgradeOccurrence",
1265
- "id": 15
1627
+ "address": {
1628
+ "type": "string",
1629
+ "id": 5
1630
+ },
1631
+ "resourceUri": {
1632
+ "rule": "repeated",
1633
+ "type": "string",
1634
+ "id": 6
1635
+ },
1636
+ "platform": {
1637
+ "type": "Platform",
1638
+ "id": 7
1639
+ }
1640
+ },
1641
+ "nested": {
1642
+ "Platform": {
1643
+ "values": {
1644
+ "PLATFORM_UNSPECIFIED": 0,
1645
+ "GKE": 1,
1646
+ "FLEX": 2,
1647
+ "CUSTOM": 3
1648
+ }
1649
+ }
1650
+ }
1651
+ },
1652
+ "DiscoveryNote": {
1653
+ "fields": {
1654
+ "analysisKind": {
1655
+ "type": "grafeas.v1.NoteKind",
1656
+ "id": 1
1657
+ }
1658
+ }
1659
+ },
1660
+ "DiscoveryOccurrence": {
1661
+ "fields": {
1662
+ "continuousAnalysis": {
1663
+ "type": "ContinuousAnalysis",
1664
+ "id": 1
1665
+ },
1666
+ "analysisStatus": {
1667
+ "type": "AnalysisStatus",
1668
+ "id": 2
1669
+ },
1670
+ "analysisStatusError": {
1671
+ "type": "google.rpc.Status",
1672
+ "id": 3
1673
+ },
1674
+ "cpe": {
1675
+ "type": "string",
1676
+ "id": 4
1677
+ },
1678
+ "lastScanTime": {
1679
+ "type": "google.protobuf.Timestamp",
1680
+ "id": 5
1681
+ },
1682
+ "archiveTime": {
1683
+ "type": "google.protobuf.Timestamp",
1684
+ "id": 6,
1685
+ "options": {
1686
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1687
+ }
1688
+ }
1689
+ },
1690
+ "nested": {
1691
+ "ContinuousAnalysis": {
1692
+ "values": {
1693
+ "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
1694
+ "ACTIVE": 1,
1695
+ "INACTIVE": 2
1696
+ }
1697
+ },
1698
+ "AnalysisStatus": {
1699
+ "values": {
1700
+ "ANALYSIS_STATUS_UNSPECIFIED": 0,
1701
+ "PENDING": 1,
1702
+ "SCANNING": 2,
1703
+ "FINISHED_SUCCESS": 3,
1704
+ "FINISHED_FAILED": 4,
1705
+ "FINISHED_UNSUPPORTED": 5
1706
+ }
1266
1707
  }
1267
1708
  }
1268
1709
  },
1269
- "Note": {
1270
- "options": {
1271
- "(google.api.resource).type": "grafeas.io/Note",
1272
- "(google.api.resource).pattern": "projects/{project}/notes/{note}"
1710
+ "DSSEAttestationNote": {
1711
+ "fields": {
1712
+ "hint": {
1713
+ "type": "DSSEHint",
1714
+ "id": 1
1715
+ }
1273
1716
  },
1717
+ "nested": {
1718
+ "DSSEHint": {
1719
+ "fields": {
1720
+ "humanReadableName": {
1721
+ "type": "string",
1722
+ "id": 1
1723
+ }
1724
+ }
1725
+ }
1726
+ }
1727
+ },
1728
+ "DSSEAttestationOccurrence": {
1274
1729
  "oneofs": {
1275
- "type": {
1730
+ "decodedPayload": {
1276
1731
  "oneof": [
1277
- "vulnerability",
1278
- "build",
1279
- "image",
1280
- "package",
1281
- "deployment",
1282
- "discovery",
1283
- "attestation",
1284
- "upgrade"
1732
+ "statement"
1285
1733
  ]
1286
1734
  }
1287
1735
  },
1288
1736
  "fields": {
1289
- "name": {
1737
+ "envelope": {
1738
+ "type": "Envelope",
1739
+ "id": 1
1740
+ },
1741
+ "statement": {
1742
+ "type": "InTotoStatement",
1743
+ "id": 2
1744
+ }
1745
+ }
1746
+ },
1747
+ "Layer": {
1748
+ "fields": {
1749
+ "directive": {
1290
1750
  "type": "string",
1291
1751
  "id": 1
1292
1752
  },
1293
- "shortDescription": {
1753
+ "arguments": {
1294
1754
  "type": "string",
1295
1755
  "id": 2
1296
- },
1297
- "longDescription": {
1756
+ }
1757
+ }
1758
+ },
1759
+ "Fingerprint": {
1760
+ "fields": {
1761
+ "v1Name": {
1298
1762
  "type": "string",
1299
- "id": 3
1300
- },
1301
- "kind": {
1302
- "type": "grafeas.v1.NoteKind",
1303
- "id": 4
1304
- },
1305
- "relatedUrl": {
1306
- "rule": "repeated",
1307
- "type": "grafeas.v1.RelatedUrl",
1308
- "id": 5
1309
- },
1310
- "expirationTime": {
1311
- "type": "google.protobuf.Timestamp",
1312
- "id": 6
1313
- },
1314
- "createTime": {
1315
- "type": "google.protobuf.Timestamp",
1316
- "id": 7
1317
- },
1318
- "updateTime": {
1319
- "type": "google.protobuf.Timestamp",
1320
- "id": 8
1763
+ "id": 1
1321
1764
  },
1322
- "relatedNoteNames": {
1765
+ "v2Blob": {
1323
1766
  "rule": "repeated",
1324
1767
  "type": "string",
1325
- "id": 9
1326
- },
1327
- "vulnerability": {
1328
- "type": "grafeas.v1.VulnerabilityNote",
1329
- "id": 10
1330
- },
1331
- "build": {
1332
- "type": "grafeas.v1.BuildNote",
1333
- "id": 11
1334
- },
1335
- "image": {
1336
- "type": "grafeas.v1.ImageNote",
1337
- "id": 12
1338
- },
1339
- "package": {
1340
- "type": "grafeas.v1.PackageNote",
1341
- "id": 13
1342
- },
1343
- "deployment": {
1344
- "type": "grafeas.v1.DeploymentNote",
1345
- "id": 14
1346
- },
1347
- "discovery": {
1348
- "type": "grafeas.v1.DiscoveryNote",
1349
- "id": 15
1768
+ "id": 2
1350
1769
  },
1351
- "attestation": {
1352
- "type": "grafeas.v1.AttestationNote",
1353
- "id": 16
1770
+ "v2Name": {
1771
+ "type": "string",
1772
+ "id": 3
1773
+ }
1774
+ }
1775
+ },
1776
+ "ImageNote": {
1777
+ "fields": {
1778
+ "resourceUrl": {
1779
+ "type": "string",
1780
+ "id": 1
1354
1781
  },
1355
- "upgrade": {
1356
- "type": "grafeas.v1.UpgradeNote",
1357
- "id": 17
1782
+ "fingerprint": {
1783
+ "type": "Fingerprint",
1784
+ "id": 2
1358
1785
  }
1359
1786
  }
1360
1787
  },
1361
- "GetOccurrenceRequest": {
1788
+ "ImageOccurrence": {
1362
1789
  "fields": {
1363
- "name": {
1790
+ "fingerprint": {
1791
+ "type": "Fingerprint",
1792
+ "id": 1
1793
+ },
1794
+ "distance": {
1795
+ "type": "int32",
1796
+ "id": 2
1797
+ },
1798
+ "layerInfo": {
1799
+ "rule": "repeated",
1800
+ "type": "Layer",
1801
+ "id": 3
1802
+ },
1803
+ "baseResourceUrl": {
1364
1804
  "type": "string",
1365
- "id": 1,
1366
- "options": {
1367
- "(google.api.field_behavior)": "REQUIRED",
1368
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1369
- }
1805
+ "id": 4
1370
1806
  }
1371
1807
  }
1372
1808
  },
1373
- "ListOccurrencesRequest": {
1809
+ "Architecture": {
1810
+ "values": {
1811
+ "ARCHITECTURE_UNSPECIFIED": 0,
1812
+ "X86": 1,
1813
+ "X64": 2
1814
+ }
1815
+ },
1816
+ "Distribution": {
1374
1817
  "fields": {
1375
- "parent": {
1818
+ "cpeUri": {
1376
1819
  "type": "string",
1377
- "id": 1,
1378
- "options": {
1379
- "(google.api.field_behavior)": "REQUIRED",
1380
- "(google.api.resource_reference).type": "grafeas.io/Project"
1381
- }
1820
+ "id": 1
1382
1821
  },
1383
- "filter": {
1384
- "type": "string",
1822
+ "architecture": {
1823
+ "type": "Architecture",
1385
1824
  "id": 2
1386
1825
  },
1387
- "pageSize": {
1388
- "type": "int32",
1826
+ "latestVersion": {
1827
+ "type": "Version",
1389
1828
  "id": 3
1390
1829
  },
1391
- "pageToken": {
1830
+ "maintainer": {
1392
1831
  "type": "string",
1393
1832
  "id": 4
1833
+ },
1834
+ "url": {
1835
+ "type": "string",
1836
+ "id": 5
1837
+ },
1838
+ "description": {
1839
+ "type": "string",
1840
+ "id": 6
1394
1841
  }
1395
1842
  }
1396
1843
  },
1397
- "ListOccurrencesResponse": {
1844
+ "Location": {
1398
1845
  "fields": {
1399
- "occurrences": {
1400
- "rule": "repeated",
1401
- "type": "Occurrence",
1846
+ "cpeUri": {
1847
+ "type": "string",
1402
1848
  "id": 1
1403
1849
  },
1404
- "nextPageToken": {
1405
- "type": "string",
1850
+ "version": {
1851
+ "type": "Version",
1406
1852
  "id": 2
1853
+ },
1854
+ "path": {
1855
+ "type": "string",
1856
+ "id": 3
1407
1857
  }
1408
1858
  }
1409
1859
  },
1410
- "DeleteOccurrenceRequest": {
1860
+ "PackageNote": {
1411
1861
  "fields": {
1412
1862
  "name": {
1413
1863
  "type": "string",
1414
- "id": 1,
1415
- "options": {
1416
- "(google.api.field_behavior)": "REQUIRED",
1417
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1418
- }
1864
+ "id": 1
1865
+ },
1866
+ "distribution": {
1867
+ "rule": "repeated",
1868
+ "type": "Distribution",
1869
+ "id": 10
1419
1870
  }
1420
1871
  }
1421
1872
  },
1422
- "CreateOccurrenceRequest": {
1873
+ "PackageOccurrence": {
1423
1874
  "fields": {
1424
- "parent": {
1875
+ "name": {
1425
1876
  "type": "string",
1426
- "id": 1,
1427
- "options": {
1428
- "(google.api.field_behavior)": "REQUIRED",
1429
- "(google.api.resource_reference).type": "grafeas.io/Project"
1430
- }
1877
+ "id": 1
1431
1878
  },
1432
- "occurrence": {
1433
- "type": "Occurrence",
1434
- "id": 2,
1435
- "options": {
1436
- "(google.api.field_behavior)": "REQUIRED"
1437
- }
1879
+ "location": {
1880
+ "rule": "repeated",
1881
+ "type": "Location",
1882
+ "id": 2
1438
1883
  }
1439
1884
  }
1440
1885
  },
1441
- "UpdateOccurrenceRequest": {
1886
+ "Version": {
1442
1887
  "fields": {
1888
+ "epoch": {
1889
+ "type": "int32",
1890
+ "id": 1
1891
+ },
1443
1892
  "name": {
1444
1893
  "type": "string",
1445
- "id": 1,
1446
- "options": {
1447
- "(google.api.field_behavior)": "REQUIRED",
1448
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1449
- }
1894
+ "id": 2
1450
1895
  },
1451
- "occurrence": {
1452
- "type": "Occurrence",
1453
- "id": 2,
1454
- "options": {
1455
- "(google.api.field_behavior)": "REQUIRED"
1456
- }
1896
+ "revision": {
1897
+ "type": "string",
1898
+ "id": 3
1899
+ },
1900
+ "inclusive": {
1901
+ "type": "bool",
1902
+ "id": 6
1903
+ },
1904
+ "kind": {
1905
+ "type": "VersionKind",
1906
+ "id": 4
1457
1907
  },
1458
- "updateMask": {
1459
- "type": "google.protobuf.FieldMask",
1460
- "id": 3
1461
- }
1462
- }
1463
- },
1464
- "GetNoteRequest": {
1465
- "fields": {
1466
- "name": {
1908
+ "fullName": {
1467
1909
  "type": "string",
1468
- "id": 1,
1469
- "options": {
1470
- "(google.api.field_behavior)": "REQUIRED",
1471
- "(google.api.resource_reference).type": "grafeas.io/Note"
1910
+ "id": 5
1911
+ }
1912
+ },
1913
+ "nested": {
1914
+ "VersionKind": {
1915
+ "values": {
1916
+ "VERSION_KIND_UNSPECIFIED": 0,
1917
+ "NORMAL": 1,
1918
+ "MINIMUM": 2,
1919
+ "MAXIMUM": 3
1472
1920
  }
1473
1921
  }
1474
1922
  }
1475
1923
  },
1476
- "GetOccurrenceNoteRequest": {
1924
+ "UpgradeNote": {
1477
1925
  "fields": {
1478
- "name": {
1926
+ "package": {
1479
1927
  "type": "string",
1480
- "id": 1,
1481
- "options": {
1482
- "(google.api.field_behavior)": "REQUIRED",
1483
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1484
- }
1928
+ "id": 1
1929
+ },
1930
+ "version": {
1931
+ "type": "grafeas.v1.Version",
1932
+ "id": 2
1933
+ },
1934
+ "distributions": {
1935
+ "rule": "repeated",
1936
+ "type": "UpgradeDistribution",
1937
+ "id": 3
1938
+ },
1939
+ "windowsUpdate": {
1940
+ "type": "WindowsUpdate",
1941
+ "id": 4
1485
1942
  }
1486
1943
  }
1487
1944
  },
1488
- "ListNotesRequest": {
1945
+ "UpgradeDistribution": {
1489
1946
  "fields": {
1490
- "parent": {
1947
+ "cpeUri": {
1491
1948
  "type": "string",
1492
- "id": 1,
1493
- "options": {
1494
- "(google.api.field_behavior)": "REQUIRED",
1495
- "(google.api.resource_reference).type": "grafeas.io/Project"
1496
- }
1949
+ "id": 1
1497
1950
  },
1498
- "filter": {
1951
+ "classification": {
1499
1952
  "type": "string",
1500
1953
  "id": 2
1501
1954
  },
1502
- "pageSize": {
1503
- "type": "int32",
1955
+ "severity": {
1956
+ "type": "string",
1504
1957
  "id": 3
1505
1958
  },
1506
- "pageToken": {
1959
+ "cve": {
1960
+ "rule": "repeated",
1507
1961
  "type": "string",
1508
1962
  "id": 4
1509
1963
  }
1510
1964
  }
1511
1965
  },
1512
- "ListNotesResponse": {
1966
+ "WindowsUpdate": {
1513
1967
  "fields": {
1514
- "notes": {
1515
- "rule": "repeated",
1516
- "type": "Note",
1968
+ "identity": {
1969
+ "type": "Identity",
1517
1970
  "id": 1
1518
1971
  },
1519
- "nextPageToken": {
1972
+ "title": {
1520
1973
  "type": "string",
1521
1974
  "id": 2
1522
- }
1523
- }
1524
- },
1525
- "DeleteNoteRequest": {
1526
- "fields": {
1527
- "name": {
1975
+ },
1976
+ "description": {
1528
1977
  "type": "string",
1529
- "id": 1,
1530
- "options": {
1531
- "(google.api.field_behavior)": "REQUIRED",
1532
- "(google.api.resource_reference).type": "grafeas.io/Note"
1978
+ "id": 3
1979
+ },
1980
+ "categories": {
1981
+ "rule": "repeated",
1982
+ "type": "Category",
1983
+ "id": 4
1984
+ },
1985
+ "kbArticleIds": {
1986
+ "rule": "repeated",
1987
+ "type": "string",
1988
+ "id": 5
1989
+ },
1990
+ "supportUrl": {
1991
+ "type": "string",
1992
+ "id": 6
1993
+ },
1994
+ "lastPublishedTimestamp": {
1995
+ "type": "google.protobuf.Timestamp",
1996
+ "id": 7
1997
+ }
1998
+ },
1999
+ "nested": {
2000
+ "Identity": {
2001
+ "fields": {
2002
+ "updateId": {
2003
+ "type": "string",
2004
+ "id": 1
2005
+ },
2006
+ "revision": {
2007
+ "type": "int32",
2008
+ "id": 2
2009
+ }
2010
+ }
2011
+ },
2012
+ "Category": {
2013
+ "fields": {
2014
+ "categoryId": {
2015
+ "type": "string",
2016
+ "id": 1
2017
+ },
2018
+ "name": {
2019
+ "type": "string",
2020
+ "id": 2
2021
+ }
1533
2022
  }
1534
2023
  }
1535
2024
  }
1536
2025
  },
1537
- "CreateNoteRequest": {
2026
+ "UpgradeOccurrence": {
1538
2027
  "fields": {
1539
- "parent": {
2028
+ "package": {
1540
2029
  "type": "string",
1541
- "id": 1,
1542
- "options": {
1543
- "(google.api.field_behavior)": "REQUIRED",
1544
- "(google.api.resource_reference).type": "grafeas.io/Project"
1545
- }
2030
+ "id": 1
1546
2031
  },
1547
- "noteId": {
1548
- "type": "string",
1549
- "id": 2,
1550
- "options": {
1551
- "(google.api.field_behavior)": "REQUIRED"
1552
- }
2032
+ "parsedVersion": {
2033
+ "type": "grafeas.v1.Version",
2034
+ "id": 3
1553
2035
  },
1554
- "note": {
1555
- "type": "Note",
1556
- "id": 3,
1557
- "options": {
1558
- "(google.api.field_behavior)": "REQUIRED"
1559
- }
2036
+ "distribution": {
2037
+ "type": "UpgradeDistribution",
2038
+ "id": 4
2039
+ },
2040
+ "windowsUpdate": {
2041
+ "type": "WindowsUpdate",
2042
+ "id": 5
1560
2043
  }
1561
2044
  }
1562
2045
  },
1563
- "UpdateNoteRequest": {
2046
+ "VulnerabilityNote": {
1564
2047
  "fields": {
1565
- "name": {
1566
- "type": "string",
1567
- "id": 1,
1568
- "options": {
1569
- "(google.api.field_behavior)": "REQUIRED",
1570
- "(google.api.resource_reference).type": "grafeas.io/Note"
2048
+ "cvssScore": {
2049
+ "type": "float",
2050
+ "id": 1
2051
+ },
2052
+ "severity": {
2053
+ "type": "grafeas.v1.Severity",
2054
+ "id": 2
2055
+ },
2056
+ "details": {
2057
+ "rule": "repeated",
2058
+ "type": "Detail",
2059
+ "id": 3
2060
+ },
2061
+ "cvssV3": {
2062
+ "type": "CVSSv3",
2063
+ "id": 4
2064
+ },
2065
+ "windowsDetails": {
2066
+ "rule": "repeated",
2067
+ "type": "WindowsDetail",
2068
+ "id": 5
2069
+ },
2070
+ "sourceUpdateTime": {
2071
+ "type": "google.protobuf.Timestamp",
2072
+ "id": 6
2073
+ }
2074
+ },
2075
+ "nested": {
2076
+ "Detail": {
2077
+ "fields": {
2078
+ "severityName": {
2079
+ "type": "string",
2080
+ "id": 1
2081
+ },
2082
+ "description": {
2083
+ "type": "string",
2084
+ "id": 2
2085
+ },
2086
+ "packageType": {
2087
+ "type": "string",
2088
+ "id": 3
2089
+ },
2090
+ "affectedCpeUri": {
2091
+ "type": "string",
2092
+ "id": 4
2093
+ },
2094
+ "affectedPackage": {
2095
+ "type": "string",
2096
+ "id": 5
2097
+ },
2098
+ "affectedVersionStart": {
2099
+ "type": "grafeas.v1.Version",
2100
+ "id": 6
2101
+ },
2102
+ "affectedVersionEnd": {
2103
+ "type": "grafeas.v1.Version",
2104
+ "id": 7
2105
+ },
2106
+ "fixedCpeUri": {
2107
+ "type": "string",
2108
+ "id": 8
2109
+ },
2110
+ "fixedPackage": {
2111
+ "type": "string",
2112
+ "id": 9
2113
+ },
2114
+ "fixedVersion": {
2115
+ "type": "grafeas.v1.Version",
2116
+ "id": 10
2117
+ },
2118
+ "isObsolete": {
2119
+ "type": "bool",
2120
+ "id": 11
2121
+ },
2122
+ "sourceUpdateTime": {
2123
+ "type": "google.protobuf.Timestamp",
2124
+ "id": 12
2125
+ },
2126
+ "source": {
2127
+ "type": "string",
2128
+ "id": 13
2129
+ },
2130
+ "vendor": {
2131
+ "type": "string",
2132
+ "id": 14
2133
+ }
1571
2134
  }
1572
2135
  },
1573
- "note": {
1574
- "type": "Note",
1575
- "id": 2,
1576
- "options": {
1577
- "(google.api.field_behavior)": "REQUIRED"
2136
+ "WindowsDetail": {
2137
+ "fields": {
2138
+ "cpeUri": {
2139
+ "type": "string",
2140
+ "id": 1
2141
+ },
2142
+ "name": {
2143
+ "type": "string",
2144
+ "id": 2
2145
+ },
2146
+ "description": {
2147
+ "type": "string",
2148
+ "id": 3
2149
+ },
2150
+ "fixingKbs": {
2151
+ "rule": "repeated",
2152
+ "type": "KnowledgeBase",
2153
+ "id": 4
2154
+ }
2155
+ },
2156
+ "nested": {
2157
+ "KnowledgeBase": {
2158
+ "fields": {
2159
+ "name": {
2160
+ "type": "string",
2161
+ "id": 1
2162
+ },
2163
+ "url": {
2164
+ "type": "string",
2165
+ "id": 2
2166
+ }
2167
+ }
2168
+ }
1578
2169
  }
1579
- },
1580
- "updateMask": {
1581
- "type": "google.protobuf.FieldMask",
1582
- "id": 3
1583
2170
  }
1584
2171
  }
1585
2172
  },
1586
- "ListNoteOccurrencesRequest": {
2173
+ "VulnerabilityOccurrence": {
1587
2174
  "fields": {
1588
- "name": {
2175
+ "type": {
1589
2176
  "type": "string",
1590
- "id": 1,
1591
- "options": {
1592
- "(google.api.field_behavior)": "REQUIRED",
1593
- "(google.api.resource_reference).type": "grafeas.io/Note"
1594
- }
2177
+ "id": 1
1595
2178
  },
1596
- "filter": {
1597
- "type": "string",
2179
+ "severity": {
2180
+ "type": "grafeas.v1.Severity",
1598
2181
  "id": 2
1599
2182
  },
1600
- "pageSize": {
1601
- "type": "int32",
2183
+ "cvssScore": {
2184
+ "type": "float",
1602
2185
  "id": 3
1603
2186
  },
1604
- "pageToken": {
1605
- "type": "string",
1606
- "id": 4
1607
- }
1608
- }
1609
- },
1610
- "ListNoteOccurrencesResponse": {
1611
- "fields": {
1612
- "occurrences": {
2187
+ "cvssv3": {
2188
+ "type": "CVSS",
2189
+ "id": 10
2190
+ },
2191
+ "packageIssue": {
1613
2192
  "rule": "repeated",
1614
- "type": "Occurrence",
1615
- "id": 1
2193
+ "type": "PackageIssue",
2194
+ "id": 4
1616
2195
  },
1617
- "nextPageToken": {
1618
- "type": "string",
1619
- "id": 2
1620
- }
1621
- }
1622
- },
1623
- "BatchCreateNotesRequest": {
1624
- "fields": {
1625
- "parent": {
2196
+ "shortDescription": {
1626
2197
  "type": "string",
1627
- "id": 1,
1628
- "options": {
1629
- "(google.api.field_behavior)": "REQUIRED",
1630
- "(google.api.resource_reference).type": "grafeas.io/Project"
1631
- }
2198
+ "id": 5
1632
2199
  },
1633
- "notes": {
1634
- "keyType": "string",
1635
- "type": "Note",
1636
- "id": 2,
1637
- "options": {
1638
- "(google.api.field_behavior)": "REQUIRED"
1639
- }
1640
- }
1641
- }
1642
- },
1643
- "BatchCreateNotesResponse": {
1644
- "fields": {
1645
- "notes": {
1646
- "rule": "repeated",
1647
- "type": "Note",
1648
- "id": 1
1649
- }
1650
- }
1651
- },
1652
- "BatchCreateOccurrencesRequest": {
1653
- "fields": {
1654
- "parent": {
2200
+ "longDescription": {
1655
2201
  "type": "string",
1656
- "id": 1,
1657
- "options": {
1658
- "(google.api.field_behavior)": "REQUIRED",
1659
- "(google.api.resource_reference).type": "grafeas.io/Project"
1660
- }
2202
+ "id": 6
1661
2203
  },
1662
- "occurrences": {
1663
- "rule": "repeated",
1664
- "type": "Occurrence",
1665
- "id": 2,
1666
- "options": {
1667
- "(google.api.field_behavior)": "REQUIRED"
1668
- }
1669
- }
1670
- }
1671
- },
1672
- "BatchCreateOccurrencesResponse": {
1673
- "fields": {
1674
- "occurrences": {
2204
+ "relatedUrls": {
1675
2205
  "rule": "repeated",
1676
- "type": "Occurrence",
1677
- "id": 1
1678
- }
1679
- }
1680
- },
1681
- "Layer": {
1682
- "fields": {
1683
- "directive": {
1684
- "type": "string",
1685
- "id": 1
2206
+ "type": "grafeas.v1.RelatedUrl",
2207
+ "id": 7
1686
2208
  },
1687
- "arguments": {
1688
- "type": "string",
1689
- "id": 2
2209
+ "effectiveSeverity": {
2210
+ "type": "grafeas.v1.Severity",
2211
+ "id": 8
2212
+ },
2213
+ "fixAvailable": {
2214
+ "type": "bool",
2215
+ "id": 9
2216
+ }
2217
+ },
2218
+ "nested": {
2219
+ "PackageIssue": {
2220
+ "fields": {
2221
+ "affectedCpeUri": {
2222
+ "type": "string",
2223
+ "id": 1
2224
+ },
2225
+ "affectedPackage": {
2226
+ "type": "string",
2227
+ "id": 2
2228
+ },
2229
+ "affectedVersion": {
2230
+ "type": "grafeas.v1.Version",
2231
+ "id": 3
2232
+ },
2233
+ "fixedCpeUri": {
2234
+ "type": "string",
2235
+ "id": 4
2236
+ },
2237
+ "fixedPackage": {
2238
+ "type": "string",
2239
+ "id": 5
2240
+ },
2241
+ "fixedVersion": {
2242
+ "type": "grafeas.v1.Version",
2243
+ "id": 6
2244
+ },
2245
+ "fixAvailable": {
2246
+ "type": "bool",
2247
+ "id": 7
2248
+ },
2249
+ "packageType": {
2250
+ "type": "string",
2251
+ "id": 8
2252
+ },
2253
+ "effectiveSeverity": {
2254
+ "type": "grafeas.v1.Severity",
2255
+ "id": 9,
2256
+ "options": {
2257
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2258
+ }
2259
+ }
2260
+ }
1690
2261
  }
1691
2262
  }
1692
2263
  },
1693
- "Fingerprint": {
2264
+ "CVSSv3": {
1694
2265
  "fields": {
1695
- "v1Name": {
1696
- "type": "string",
2266
+ "baseScore": {
2267
+ "type": "float",
1697
2268
  "id": 1
1698
2269
  },
1699
- "v2Blob": {
1700
- "rule": "repeated",
1701
- "type": "string",
2270
+ "exploitabilityScore": {
2271
+ "type": "float",
1702
2272
  "id": 2
1703
2273
  },
1704
- "v2Name": {
1705
- "type": "string",
2274
+ "impactScore": {
2275
+ "type": "float",
1706
2276
  "id": 3
1707
- }
1708
- }
1709
- },
1710
- "ImageNote": {
1711
- "fields": {
1712
- "resourceUrl": {
1713
- "type": "string",
1714
- "id": 1
1715
2277
  },
1716
- "fingerprint": {
1717
- "type": "Fingerprint",
1718
- "id": 2
1719
- }
1720
- }
1721
- },
1722
- "ImageOccurrence": {
1723
- "fields": {
1724
- "fingerprint": {
1725
- "type": "Fingerprint",
1726
- "id": 1
2278
+ "attackVector": {
2279
+ "type": "AttackVector",
2280
+ "id": 5
1727
2281
  },
1728
- "distance": {
1729
- "type": "int32",
1730
- "id": 2
2282
+ "attackComplexity": {
2283
+ "type": "AttackComplexity",
2284
+ "id": 6
2285
+ },
2286
+ "privilegesRequired": {
2287
+ "type": "PrivilegesRequired",
2288
+ "id": 7
2289
+ },
2290
+ "userInteraction": {
2291
+ "type": "UserInteraction",
2292
+ "id": 8
2293
+ },
2294
+ "scope": {
2295
+ "type": "Scope",
2296
+ "id": 9
2297
+ },
2298
+ "confidentialityImpact": {
2299
+ "type": "Impact",
2300
+ "id": 10
1731
2301
  },
1732
- "layerInfo": {
1733
- "rule": "repeated",
1734
- "type": "Layer",
1735
- "id": 3
2302
+ "integrityImpact": {
2303
+ "type": "Impact",
2304
+ "id": 11
1736
2305
  },
1737
- "baseResourceUrl": {
1738
- "type": "string",
1739
- "id": 4
2306
+ "availabilityImpact": {
2307
+ "type": "Impact",
2308
+ "id": 12
1740
2309
  }
1741
- }
1742
- },
1743
- "UpgradeNote": {
1744
- "fields": {
1745
- "package": {
1746
- "type": "string",
1747
- "id": 1
1748
- },
1749
- "version": {
1750
- "type": "grafeas.v1.Version",
1751
- "id": 2
2310
+ },
2311
+ "nested": {
2312
+ "AttackVector": {
2313
+ "values": {
2314
+ "ATTACK_VECTOR_UNSPECIFIED": 0,
2315
+ "ATTACK_VECTOR_NETWORK": 1,
2316
+ "ATTACK_VECTOR_ADJACENT": 2,
2317
+ "ATTACK_VECTOR_LOCAL": 3,
2318
+ "ATTACK_VECTOR_PHYSICAL": 4
2319
+ }
1752
2320
  },
1753
- "distributions": {
1754
- "rule": "repeated",
1755
- "type": "UpgradeDistribution",
1756
- "id": 3
2321
+ "AttackComplexity": {
2322
+ "values": {
2323
+ "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
2324
+ "ATTACK_COMPLEXITY_LOW": 1,
2325
+ "ATTACK_COMPLEXITY_HIGH": 2
2326
+ }
1757
2327
  },
1758
- "windowsUpdate": {
1759
- "type": "WindowsUpdate",
1760
- "id": 4
1761
- }
1762
- }
1763
- },
1764
- "UpgradeDistribution": {
1765
- "fields": {
1766
- "cpeUri": {
1767
- "type": "string",
1768
- "id": 1
2328
+ "PrivilegesRequired": {
2329
+ "values": {
2330
+ "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
2331
+ "PRIVILEGES_REQUIRED_NONE": 1,
2332
+ "PRIVILEGES_REQUIRED_LOW": 2,
2333
+ "PRIVILEGES_REQUIRED_HIGH": 3
2334
+ }
1769
2335
  },
1770
- "classification": {
1771
- "type": "string",
1772
- "id": 2
2336
+ "UserInteraction": {
2337
+ "values": {
2338
+ "USER_INTERACTION_UNSPECIFIED": 0,
2339
+ "USER_INTERACTION_NONE": 1,
2340
+ "USER_INTERACTION_REQUIRED": 2
2341
+ }
1773
2342
  },
1774
- "severity": {
1775
- "type": "string",
1776
- "id": 3
2343
+ "Scope": {
2344
+ "values": {
2345
+ "SCOPE_UNSPECIFIED": 0,
2346
+ "SCOPE_UNCHANGED": 1,
2347
+ "SCOPE_CHANGED": 2
2348
+ }
1777
2349
  },
1778
- "cve": {
1779
- "rule": "repeated",
1780
- "type": "string",
1781
- "id": 4
2350
+ "Impact": {
2351
+ "values": {
2352
+ "IMPACT_UNSPECIFIED": 0,
2353
+ "IMPACT_HIGH": 1,
2354
+ "IMPACT_LOW": 2,
2355
+ "IMPACT_NONE": 3
2356
+ }
1782
2357
  }
1783
2358
  }
1784
2359
  },
1785
- "WindowsUpdate": {
2360
+ "CVSS": {
1786
2361
  "fields": {
1787
- "identity": {
1788
- "type": "Identity",
2362
+ "baseScore": {
2363
+ "type": "float",
1789
2364
  "id": 1
1790
2365
  },
1791
- "title": {
1792
- "type": "string",
2366
+ "exploitabilityScore": {
2367
+ "type": "float",
1793
2368
  "id": 2
1794
2369
  },
1795
- "description": {
1796
- "type": "string",
2370
+ "impactScore": {
2371
+ "type": "float",
1797
2372
  "id": 3
1798
2373
  },
1799
- "categories": {
1800
- "rule": "repeated",
1801
- "type": "Category",
2374
+ "attackVector": {
2375
+ "type": "AttackVector",
1802
2376
  "id": 4
1803
2377
  },
1804
- "kbArticleIds": {
1805
- "rule": "repeated",
1806
- "type": "string",
2378
+ "attackComplexity": {
2379
+ "type": "AttackComplexity",
1807
2380
  "id": 5
1808
2381
  },
1809
- "supportUrl": {
1810
- "type": "string",
2382
+ "authentication": {
2383
+ "type": "Authentication",
1811
2384
  "id": 6
1812
2385
  },
1813
- "lastPublishedTimestamp": {
1814
- "type": "google.protobuf.Timestamp",
2386
+ "privilegesRequired": {
2387
+ "type": "PrivilegesRequired",
1815
2388
  "id": 7
2389
+ },
2390
+ "userInteraction": {
2391
+ "type": "UserInteraction",
2392
+ "id": 8
2393
+ },
2394
+ "scope": {
2395
+ "type": "Scope",
2396
+ "id": 9
2397
+ },
2398
+ "confidentialityImpact": {
2399
+ "type": "Impact",
2400
+ "id": 10
2401
+ },
2402
+ "integrityImpact": {
2403
+ "type": "Impact",
2404
+ "id": 11
2405
+ },
2406
+ "availabilityImpact": {
2407
+ "type": "Impact",
2408
+ "id": 12
1816
2409
  }
1817
2410
  },
1818
2411
  "nested": {
1819
- "Identity": {
1820
- "fields": {
1821
- "updateId": {
1822
- "type": "string",
1823
- "id": 1
1824
- },
1825
- "revision": {
1826
- "type": "int32",
1827
- "id": 2
1828
- }
2412
+ "AttackVector": {
2413
+ "values": {
2414
+ "ATTACK_VECTOR_UNSPECIFIED": 0,
2415
+ "ATTACK_VECTOR_NETWORK": 1,
2416
+ "ATTACK_VECTOR_ADJACENT": 2,
2417
+ "ATTACK_VECTOR_LOCAL": 3,
2418
+ "ATTACK_VECTOR_PHYSICAL": 4
1829
2419
  }
1830
2420
  },
1831
- "Category": {
1832
- "fields": {
1833
- "categoryId": {
1834
- "type": "string",
1835
- "id": 1
1836
- },
1837
- "name": {
1838
- "type": "string",
1839
- "id": 2
1840
- }
2421
+ "AttackComplexity": {
2422
+ "values": {
2423
+ "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
2424
+ "ATTACK_COMPLEXITY_LOW": 1,
2425
+ "ATTACK_COMPLEXITY_HIGH": 2
1841
2426
  }
1842
- }
1843
- }
1844
- },
1845
- "UpgradeOccurrence": {
1846
- "fields": {
1847
- "package": {
1848
- "type": "string",
1849
- "id": 1
1850
2427
  },
1851
- "parsedVersion": {
1852
- "type": "grafeas.v1.Version",
1853
- "id": 3
2428
+ "Authentication": {
2429
+ "values": {
2430
+ "AUTHENTICATION_UNSPECIFIED": 0,
2431
+ "AUTHENTICATION_MULTIPLE": 1,
2432
+ "AUTHENTICATION_SINGLE": 2,
2433
+ "AUTHENTICATION_NONE": 3
2434
+ }
1854
2435
  },
1855
- "distribution": {
1856
- "type": "UpgradeDistribution",
1857
- "id": 4
2436
+ "PrivilegesRequired": {
2437
+ "values": {
2438
+ "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
2439
+ "PRIVILEGES_REQUIRED_NONE": 1,
2440
+ "PRIVILEGES_REQUIRED_LOW": 2,
2441
+ "PRIVILEGES_REQUIRED_HIGH": 3
2442
+ }
1858
2443
  },
1859
- "windowsUpdate": {
1860
- "type": "WindowsUpdate",
1861
- "id": 5
2444
+ "UserInteraction": {
2445
+ "values": {
2446
+ "USER_INTERACTION_UNSPECIFIED": 0,
2447
+ "USER_INTERACTION_NONE": 1,
2448
+ "USER_INTERACTION_REQUIRED": 2
2449
+ }
2450
+ },
2451
+ "Scope": {
2452
+ "values": {
2453
+ "SCOPE_UNSPECIFIED": 0,
2454
+ "SCOPE_UNCHANGED": 1,
2455
+ "SCOPE_CHANGED": 2
2456
+ }
2457
+ },
2458
+ "Impact": {
2459
+ "values": {
2460
+ "IMPACT_UNSPECIFIED": 0,
2461
+ "IMPACT_HIGH": 1,
2462
+ "IMPACT_LOW": 2,
2463
+ "IMPACT_NONE": 3
2464
+ }
1862
2465
  }
1863
2466
  }
1864
2467
  }
@@ -3889,8 +4492,8 @@
3889
4492
  "type": "string",
3890
4493
  "id": 1,
3891
4494
  "options": {
3892
- "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project",
3893
- "(google.api.field_behavior)": "REQUIRED"
4495
+ "(google.api.field_behavior)": "REQUIRED",
4496
+ "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project"
3894
4497
  }
3895
4498
  },
3896
4499
  "filter": {
@@ -4314,7 +4917,8 @@
4314
4917
  "OUTPUT_ONLY": 3,
4315
4918
  "INPUT_ONLY": 4,
4316
4919
  "IMMUTABLE": 5,
4317
- "UNORDERED_LIST": 6
4920
+ "UNORDERED_LIST": 6,
4921
+ "NON_EMPTY_DEFAULT": 7
4318
4922
  }
4319
4923
  },
4320
4924
  "resourceReference": {
@@ -4957,6 +5561,18 @@
4957
5561
  ]
4958
5562
  ],
4959
5563
  "reserved": [
5564
+ [
5565
+ 4,
5566
+ 4
5567
+ ],
5568
+ [
5569
+ 5,
5570
+ 5
5571
+ ],
5572
+ [
5573
+ 6,
5574
+ 6
5575
+ ],
4960
5576
  [
4961
5577
  8,
4962
5578
  8
@@ -5303,18 +5919,6 @@
5303
5919
  }
5304
5920
  }
5305
5921
  },
5306
- "Any": {
5307
- "fields": {
5308
- "type_url": {
5309
- "type": "string",
5310
- "id": 1
5311
- },
5312
- "value": {
5313
- "type": "bytes",
5314
- "id": 2
5315
- }
5316
- }
5317
- },
5318
5922
  "Empty": {
5319
5923
  "fields": {}
5320
5924
  },
@@ -5326,6 +5930,18 @@
5326
5930
  "id": 1
5327
5931
  }
5328
5932
  }
5933
+ },
5934
+ "Any": {
5935
+ "fields": {
5936
+ "type_url": {
5937
+ "type": "string",
5938
+ "id": 1
5939
+ },
5940
+ "value": {
5941
+ "type": "bytes",
5942
+ "id": 2
5943
+ }
5944
+ }
5329
5945
  }
5330
5946
  }
5331
5947
  },