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