@google-cloud/containeranalysis 3.4.0 → 4.0.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.
@@ -8,11 +8,65 @@
8
8
  "java_multiple_files": true,
9
9
  "java_package": "io.grafeas.v1",
10
10
  "objc_class_prefix": "GRA",
11
+ "java_outer_classname": "CvssProto",
11
12
  "(google.api.resource_definition).type": "grafeas.io/Project",
12
- "(google.api.resource_definition).pattern": "projects/{project}",
13
- "java_outer_classname": "CvssProto"
13
+ "(google.api.resource_definition).pattern": "projects/{project}"
14
14
  },
15
15
  "nested": {
16
+ "Severity": {
17
+ "values": {
18
+ "SEVERITY_UNSPECIFIED": 0,
19
+ "MINIMAL": 1,
20
+ "LOW": 2,
21
+ "MEDIUM": 3,
22
+ "HIGH": 4,
23
+ "CRITICAL": 5
24
+ }
25
+ },
26
+ "AttestationNote": {
27
+ "fields": {
28
+ "hint": {
29
+ "type": "Hint",
30
+ "id": 1
31
+ }
32
+ },
33
+ "nested": {
34
+ "Hint": {
35
+ "fields": {
36
+ "humanReadableName": {
37
+ "type": "string",
38
+ "id": 1
39
+ }
40
+ }
41
+ }
42
+ }
43
+ },
44
+ "Jwt": {
45
+ "fields": {
46
+ "compactJwt": {
47
+ "type": "string",
48
+ "id": 1
49
+ }
50
+ }
51
+ },
52
+ "AttestationOccurrence": {
53
+ "fields": {
54
+ "serializedPayload": {
55
+ "type": "bytes",
56
+ "id": 1
57
+ },
58
+ "signatures": {
59
+ "rule": "repeated",
60
+ "type": "Signature",
61
+ "id": 2
62
+ },
63
+ "jwts": {
64
+ "rule": "repeated",
65
+ "type": "Jwt",
66
+ "id": 3
67
+ }
68
+ }
69
+ },
16
70
  "NoteKind": {
17
71
  "values": {
18
72
  "NOTE_KIND_UNSPECIFIED": 0,
@@ -81,1666 +135,1816 @@
81
135
  }
82
136
  }
83
137
  },
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
- ]
138
+ "BuildNote": {
139
+ "fields": {
140
+ "builderVersion": {
141
+ "type": "string",
142
+ "id": 1
143
+ }
144
+ }
145
+ },
146
+ "BuildOccurrence": {
147
+ "fields": {
148
+ "provenance": {
149
+ "type": "grafeas.v1.BuildProvenance",
150
+ "id": 1
106
151
  },
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
- ]
152
+ "provenanceBytes": {
153
+ "type": "string",
154
+ "id": 2
124
155
  },
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
- ]
156
+ "intotoProvenance": {
157
+ "type": "InTotoProvenance",
158
+ "id": 3
142
159
  },
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
- ]
160
+ "intotoStatement": {
161
+ "type": "InTotoStatement",
162
+ "id": 4
163
+ }
164
+ }
165
+ },
166
+ "Recipe": {
167
+ "fields": {
168
+ "type": {
169
+ "type": "string",
170
+ "id": 1
162
171
  },
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
- ]
172
+ "definedInMaterial": {
173
+ "type": "int64",
174
+ "id": 2
182
175
  },
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
- ]
176
+ "entryPoint": {
177
+ "type": "string",
178
+ "id": 3
202
179
  },
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
- ]
180
+ "arguments": {
181
+ "rule": "repeated",
182
+ "type": "google.protobuf.Any",
183
+ "id": 4
220
184
  },
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
- ]
185
+ "environment": {
186
+ "rule": "repeated",
187
+ "type": "google.protobuf.Any",
188
+ "id": 5
189
+ }
190
+ }
191
+ },
192
+ "Completeness": {
193
+ "fields": {
194
+ "arguments": {
195
+ "type": "bool",
196
+ "id": 1
238
197
  },
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
- ]
198
+ "environment": {
199
+ "type": "bool",
200
+ "id": 2
334
201
  },
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
- ]
202
+ "materials": {
203
+ "type": "bool",
204
+ "id": 3
352
205
  }
353
206
  }
354
207
  },
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
- },
208
+ "Metadata": {
376
209
  "fields": {
377
- "name": {
210
+ "buildInvocationId": {
378
211
  "type": "string",
379
212
  "id": 1
380
213
  },
381
- "resourceUri": {
382
- "type": "string",
214
+ "buildStartedOn": {
215
+ "type": "google.protobuf.Timestamp",
383
216
  "id": 2
384
217
  },
385
- "noteName": {
386
- "type": "string",
218
+ "buildFinishedOn": {
219
+ "type": "google.protobuf.Timestamp",
387
220
  "id": 3
388
221
  },
389
- "kind": {
390
- "type": "grafeas.v1.NoteKind",
222
+ "completeness": {
223
+ "type": "Completeness",
391
224
  "id": 4
392
225
  },
393
- "remediation": {
394
- "type": "string",
226
+ "reproducible": {
227
+ "type": "bool",
395
228
  "id": 5
229
+ }
230
+ }
231
+ },
232
+ "BuilderConfig": {
233
+ "fields": {
234
+ "id": {
235
+ "type": "string",
236
+ "id": 1
237
+ }
238
+ }
239
+ },
240
+ "InTotoProvenance": {
241
+ "fields": {
242
+ "builderConfig": {
243
+ "type": "BuilderConfig",
244
+ "id": 1
396
245
  },
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
246
+ "recipe": {
247
+ "type": "Recipe",
248
+ "id": 2
440
249
  },
441
- "dsseAttestation": {
442
- "type": "grafeas.v1.DSSEAttestationOccurrence",
443
- "id": 17
250
+ "metadata": {
251
+ "type": "Metadata",
252
+ "id": 3
444
253
  },
445
- "envelope": {
446
- "type": "grafeas.v1.Envelope",
447
- "id": 18
254
+ "materials": {
255
+ "rule": "repeated",
256
+ "type": "string",
257
+ "id": 4
448
258
  }
449
259
  }
450
260
  },
451
- "Note": {
452
- "options": {
453
- "(google.api.resource).type": "grafeas.io/Note",
454
- "(google.api.resource).pattern": "projects/{project}/notes/{note}"
455
- },
261
+ "InTotoStatement": {
456
262
  "oneofs": {
457
- "type": {
263
+ "predicate": {
458
264
  "oneof": [
459
- "vulnerability",
460
- "build",
461
- "image",
462
- "package",
463
- "deployment",
464
- "discovery",
465
- "attestation",
466
- "upgrade",
467
- "compliance",
468
- "dsseAttestation"
265
+ "provenance",
266
+ "slsaProvenance"
469
267
  ]
470
268
  }
471
269
  },
472
270
  "fields": {
473
- "name": {
474
- "type": "string",
475
- "id": 1
476
- },
477
- "shortDescription": {
271
+ "type": {
478
272
  "type": "string",
273
+ "id": 1,
274
+ "options": {
275
+ "json_name": "_type"
276
+ }
277
+ },
278
+ "subject": {
279
+ "rule": "repeated",
280
+ "type": "Subject",
479
281
  "id": 2
480
282
  },
481
- "longDescription": {
283
+ "predicateType": {
482
284
  "type": "string",
483
285
  "id": 3
484
286
  },
485
- "kind": {
486
- "type": "grafeas.v1.NoteKind",
287
+ "provenance": {
288
+ "type": "InTotoProvenance",
487
289
  "id": 4
488
290
  },
489
- "relatedUrl": {
291
+ "slsaProvenance": {
292
+ "type": "SlsaProvenance",
293
+ "id": 5
294
+ }
295
+ }
296
+ },
297
+ "Subject": {
298
+ "fields": {
299
+ "name": {
300
+ "type": "string",
301
+ "id": 1
302
+ },
303
+ "digest": {
304
+ "keyType": "string",
305
+ "type": "string",
306
+ "id": 2
307
+ }
308
+ }
309
+ },
310
+ "SlsaProvenance": {
311
+ "fields": {
312
+ "builder": {
313
+ "type": "SlsaBuilder",
314
+ "id": 1
315
+ },
316
+ "recipe": {
317
+ "type": "SlsaRecipe",
318
+ "id": 2
319
+ },
320
+ "metadata": {
321
+ "type": "SlsaMetadata",
322
+ "id": 3
323
+ },
324
+ "materials": {
490
325
  "rule": "repeated",
491
- "type": "grafeas.v1.RelatedUrl",
326
+ "type": "Material",
327
+ "id": 4
328
+ }
329
+ },
330
+ "nested": {
331
+ "SlsaRecipe": {
332
+ "fields": {
333
+ "type": {
334
+ "type": "string",
335
+ "id": 1
336
+ },
337
+ "definedInMaterial": {
338
+ "type": "int64",
339
+ "id": 2
340
+ },
341
+ "entryPoint": {
342
+ "type": "string",
343
+ "id": 3
344
+ },
345
+ "arguments": {
346
+ "type": "google.protobuf.Any",
347
+ "id": 4
348
+ },
349
+ "environment": {
350
+ "type": "google.protobuf.Any",
351
+ "id": 5
352
+ }
353
+ }
354
+ },
355
+ "SlsaCompleteness": {
356
+ "fields": {
357
+ "arguments": {
358
+ "type": "bool",
359
+ "id": 1
360
+ },
361
+ "environment": {
362
+ "type": "bool",
363
+ "id": 2
364
+ },
365
+ "materials": {
366
+ "type": "bool",
367
+ "id": 3
368
+ }
369
+ }
370
+ },
371
+ "SlsaMetadata": {
372
+ "fields": {
373
+ "buildInvocationId": {
374
+ "type": "string",
375
+ "id": 1
376
+ },
377
+ "buildStartedOn": {
378
+ "type": "google.protobuf.Timestamp",
379
+ "id": 2
380
+ },
381
+ "buildFinishedOn": {
382
+ "type": "google.protobuf.Timestamp",
383
+ "id": 3
384
+ },
385
+ "completeness": {
386
+ "type": "SlsaCompleteness",
387
+ "id": 4
388
+ },
389
+ "reproducible": {
390
+ "type": "bool",
391
+ "id": 5
392
+ }
393
+ }
394
+ },
395
+ "SlsaBuilder": {
396
+ "fields": {
397
+ "id": {
398
+ "type": "string",
399
+ "id": 1
400
+ }
401
+ }
402
+ },
403
+ "Material": {
404
+ "fields": {
405
+ "uri": {
406
+ "type": "string",
407
+ "id": 1
408
+ },
409
+ "digest": {
410
+ "keyType": "string",
411
+ "type": "string",
412
+ "id": 2
413
+ }
414
+ }
415
+ }
416
+ }
417
+ },
418
+ "BuildProvenance": {
419
+ "fields": {
420
+ "id": {
421
+ "type": "string",
422
+ "id": 1
423
+ },
424
+ "projectId": {
425
+ "type": "string",
426
+ "id": 2
427
+ },
428
+ "commands": {
429
+ "rule": "repeated",
430
+ "type": "Command",
431
+ "id": 3
432
+ },
433
+ "builtArtifacts": {
434
+ "rule": "repeated",
435
+ "type": "Artifact",
436
+ "id": 4
437
+ },
438
+ "createTime": {
439
+ "type": "google.protobuf.Timestamp",
492
440
  "id": 5
493
441
  },
494
- "expirationTime": {
442
+ "startTime": {
495
443
  "type": "google.protobuf.Timestamp",
496
444
  "id": 6
497
445
  },
498
- "createTime": {
446
+ "endTime": {
499
447
  "type": "google.protobuf.Timestamp",
500
448
  "id": 7
501
449
  },
502
- "updateTime": {
503
- "type": "google.protobuf.Timestamp",
450
+ "creator": {
451
+ "type": "string",
504
452
  "id": 8
505
453
  },
506
- "relatedNoteNames": {
507
- "rule": "repeated",
454
+ "logsUri": {
508
455
  "type": "string",
509
456
  "id": 9
510
457
  },
511
- "vulnerability": {
512
- "type": "grafeas.v1.VulnerabilityNote",
458
+ "sourceProvenance": {
459
+ "type": "Source",
513
460
  "id": 10
514
461
  },
515
- "build": {
516
- "type": "grafeas.v1.BuildNote",
462
+ "triggerId": {
463
+ "type": "string",
517
464
  "id": 11
518
465
  },
519
- "image": {
520
- "type": "grafeas.v1.ImageNote",
466
+ "buildOptions": {
467
+ "keyType": "string",
468
+ "type": "string",
521
469
  "id": 12
522
470
  },
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": {
471
+ "builderVersion": {
556
472
  "type": "string",
557
- "id": 1,
558
- "options": {
559
- "(google.api.field_behavior)": "REQUIRED",
560
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
561
- }
473
+ "id": 13
562
474
  }
563
475
  }
564
476
  },
565
- "ListOccurrencesRequest": {
477
+ "Source": {
566
478
  "fields": {
567
- "parent": {
479
+ "artifactStorageSourceUri": {
568
480
  "type": "string",
569
- "id": 1,
570
- "options": {
571
- "(google.api.field_behavior)": "REQUIRED",
572
- "(google.api.resource_reference).type": "grafeas.io/Project"
573
- }
481
+ "id": 1
574
482
  },
575
- "filter": {
576
- "type": "string",
483
+ "fileHashes": {
484
+ "keyType": "string",
485
+ "type": "FileHashes",
577
486
  "id": 2
578
487
  },
579
- "pageSize": {
580
- "type": "int32",
488
+ "context": {
489
+ "type": "SourceContext",
581
490
  "id": 3
582
491
  },
583
- "pageToken": {
584
- "type": "string",
492
+ "additionalContexts": {
493
+ "rule": "repeated",
494
+ "type": "SourceContext",
585
495
  "id": 4
586
496
  }
587
497
  }
588
498
  },
589
- "ListOccurrencesResponse": {
499
+ "FileHashes": {
590
500
  "fields": {
591
- "occurrences": {
501
+ "fileHash": {
592
502
  "rule": "repeated",
593
- "type": "Occurrence",
503
+ "type": "Hash",
594
504
  "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
505
  }
612
506
  }
613
507
  },
614
- "CreateOccurrenceRequest": {
508
+ "Hash": {
615
509
  "fields": {
616
- "parent": {
510
+ "type": {
617
511
  "type": "string",
618
- "id": 1,
619
- "options": {
620
- "(google.api.field_behavior)": "REQUIRED",
621
- "(google.api.resource_reference).type": "grafeas.io/Project"
622
- }
512
+ "id": 1
623
513
  },
624
- "occurrence": {
625
- "type": "Occurrence",
626
- "id": 2,
627
- "options": {
628
- "(google.api.field_behavior)": "REQUIRED"
629
- }
514
+ "value": {
515
+ "type": "bytes",
516
+ "id": 2
630
517
  }
631
518
  }
632
519
  },
633
- "UpdateOccurrenceRequest": {
520
+ "Command": {
634
521
  "fields": {
635
522
  "name": {
636
523
  "type": "string",
637
- "id": 1,
638
- "options": {
639
- "(google.api.field_behavior)": "REQUIRED",
640
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
641
- }
524
+ "id": 1
642
525
  },
643
- "occurrence": {
644
- "type": "Occurrence",
645
- "id": 2,
646
- "options": {
647
- "(google.api.field_behavior)": "REQUIRED"
648
- }
526
+ "env": {
527
+ "rule": "repeated",
528
+ "type": "string",
529
+ "id": 2
649
530
  },
650
- "updateMask": {
651
- "type": "google.protobuf.FieldMask",
531
+ "args": {
532
+ "rule": "repeated",
533
+ "type": "string",
652
534
  "id": 3
653
- }
654
- }
655
- },
656
- "GetNoteRequest": {
657
- "fields": {
658
- "name": {
535
+ },
536
+ "dir": {
659
537
  "type": "string",
660
- "id": 1,
661
- "options": {
662
- "(google.api.field_behavior)": "REQUIRED",
663
- "(google.api.resource_reference).type": "grafeas.io/Note"
664
- }
538
+ "id": 4
539
+ },
540
+ "id": {
541
+ "type": "string",
542
+ "id": 5
543
+ },
544
+ "waitFor": {
545
+ "rule": "repeated",
546
+ "type": "string",
547
+ "id": 6
665
548
  }
666
549
  }
667
550
  },
668
- "GetOccurrenceNoteRequest": {
551
+ "Artifact": {
669
552
  "fields": {
670
- "name": {
553
+ "checksum": {
671
554
  "type": "string",
672
- "id": 1,
673
- "options": {
674
- "(google.api.field_behavior)": "REQUIRED",
675
- "(google.api.resource_reference).type": "grafeas.io/Occurrence"
676
- }
555
+ "id": 1
556
+ },
557
+ "id": {
558
+ "type": "string",
559
+ "id": 2
560
+ },
561
+ "names": {
562
+ "rule": "repeated",
563
+ "type": "string",
564
+ "id": 3
677
565
  }
678
566
  }
679
567
  },
680
- "ListNotesRequest": {
568
+ "SourceContext": {
569
+ "oneofs": {
570
+ "context": {
571
+ "oneof": [
572
+ "cloudRepo",
573
+ "gerrit",
574
+ "git"
575
+ ]
576
+ }
577
+ },
681
578
  "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
- }
579
+ "cloudRepo": {
580
+ "type": "CloudRepoSourceContext",
581
+ "id": 1
689
582
  },
690
- "filter": {
691
- "type": "string",
583
+ "gerrit": {
584
+ "type": "GerritSourceContext",
692
585
  "id": 2
693
586
  },
694
- "pageSize": {
695
- "type": "int32",
587
+ "git": {
588
+ "type": "GitSourceContext",
696
589
  "id": 3
697
590
  },
698
- "pageToken": {
591
+ "labels": {
592
+ "keyType": "string",
699
593
  "type": "string",
700
594
  "id": 4
701
595
  }
702
596
  }
703
597
  },
704
- "ListNotesResponse": {
598
+ "AliasContext": {
705
599
  "fields": {
706
- "notes": {
707
- "rule": "repeated",
708
- "type": "Note",
600
+ "kind": {
601
+ "type": "Kind",
709
602
  "id": 1
710
603
  },
711
- "nextPageToken": {
604
+ "name": {
712
605
  "type": "string",
713
606
  "id": 2
714
607
  }
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"
608
+ },
609
+ "nested": {
610
+ "Kind": {
611
+ "values": {
612
+ "KIND_UNSPECIFIED": 0,
613
+ "FIXED": 1,
614
+ "MOVABLE": 2,
615
+ "OTHER": 4
725
616
  }
726
617
  }
727
618
  }
728
619
  },
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"
737
- }
738
- },
739
- "noteId": {
740
- "type": "string",
741
- "id": 2,
742
- "options": {
743
- "(google.api.field_behavior)": "REQUIRED"
744
- }
745
- },
746
- "note": {
747
- "type": "Note",
748
- "id": 3,
749
- "options": {
750
- "(google.api.field_behavior)": "REQUIRED"
751
- }
620
+ "CloudRepoSourceContext": {
621
+ "oneofs": {
622
+ "revision": {
623
+ "oneof": [
624
+ "revisionId",
625
+ "aliasContext"
626
+ ]
752
627
  }
753
- }
754
- },
755
- "UpdateNoteRequest": {
628
+ },
756
629
  "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
- }
630
+ "repoId": {
631
+ "type": "RepoId",
632
+ "id": 1
764
633
  },
765
- "note": {
766
- "type": "Note",
767
- "id": 2,
768
- "options": {
769
- "(google.api.field_behavior)": "REQUIRED"
770
- }
634
+ "revisionId": {
635
+ "type": "string",
636
+ "id": 2
771
637
  },
772
- "updateMask": {
773
- "type": "google.protobuf.FieldMask",
638
+ "aliasContext": {
639
+ "type": "AliasContext",
774
640
  "id": 3
775
641
  }
776
642
  }
777
643
  },
778
- "ListNoteOccurrencesRequest": {
644
+ "GerritSourceContext": {
645
+ "oneofs": {
646
+ "revision": {
647
+ "oneof": [
648
+ "revisionId",
649
+ "aliasContext"
650
+ ]
651
+ }
652
+ },
779
653
  "fields": {
780
- "name": {
654
+ "hostUri": {
781
655
  "type": "string",
782
- "id": 1,
783
- "options": {
784
- "(google.api.field_behavior)": "REQUIRED",
785
- "(google.api.resource_reference).type": "grafeas.io/Note"
786
- }
656
+ "id": 1
787
657
  },
788
- "filter": {
658
+ "gerritProject": {
789
659
  "type": "string",
790
660
  "id": 2
791
661
  },
792
- "pageSize": {
793
- "type": "int32",
662
+ "revisionId": {
663
+ "type": "string",
794
664
  "id": 3
795
665
  },
796
- "pageToken": {
797
- "type": "string",
666
+ "aliasContext": {
667
+ "type": "AliasContext",
798
668
  "id": 4
799
669
  }
800
670
  }
801
671
  },
802
- "ListNoteOccurrencesResponse": {
672
+ "GitSourceContext": {
803
673
  "fields": {
804
- "occurrences": {
805
- "rule": "repeated",
806
- "type": "Occurrence",
674
+ "url": {
675
+ "type": "string",
807
676
  "id": 1
808
677
  },
809
- "nextPageToken": {
678
+ "revisionId": {
810
679
  "type": "string",
811
680
  "id": 2
812
681
  }
813
682
  }
814
683
  },
815
- "BatchCreateNotesRequest": {
816
- "fields": {
817
- "parent": {
818
- "type": "string",
819
- "id": 1,
820
- "options": {
821
- "(google.api.field_behavior)": "REQUIRED",
822
- "(google.api.resource_reference).type": "grafeas.io/Project"
823
- }
824
- },
825
- "notes": {
826
- "keyType": "string",
827
- "type": "Note",
828
- "id": 2,
829
- "options": {
830
- "(google.api.field_behavior)": "REQUIRED"
831
- }
684
+ "RepoId": {
685
+ "oneofs": {
686
+ "id": {
687
+ "oneof": [
688
+ "projectRepoId",
689
+ "uid"
690
+ ]
832
691
  }
833
- }
834
- },
835
- "BatchCreateNotesResponse": {
692
+ },
836
693
  "fields": {
837
- "notes": {
838
- "rule": "repeated",
839
- "type": "Note",
694
+ "projectRepoId": {
695
+ "type": "ProjectRepoId",
840
696
  "id": 1
697
+ },
698
+ "uid": {
699
+ "type": "string",
700
+ "id": 2
841
701
  }
842
702
  }
843
703
  },
844
- "BatchCreateOccurrencesRequest": {
704
+ "ProjectRepoId": {
845
705
  "fields": {
846
- "parent": {
706
+ "projectId": {
847
707
  "type": "string",
848
- "id": 1,
849
- "options": {
850
- "(google.api.field_behavior)": "REQUIRED",
851
- "(google.api.resource_reference).type": "grafeas.io/Project"
852
- }
708
+ "id": 1
853
709
  },
854
- "occurrences": {
855
- "rule": "repeated",
856
- "type": "Occurrence",
857
- "id": 2,
858
- "options": {
859
- "(google.api.field_behavior)": "REQUIRED"
860
- }
710
+ "repoName": {
711
+ "type": "string",
712
+ "id": 2
861
713
  }
862
714
  }
863
715
  },
864
- "BatchCreateOccurrencesResponse": {
865
- "fields": {
866
- "occurrences": {
867
- "rule": "repeated",
868
- "type": "Occurrence",
869
- "id": 1
716
+ "ComplianceNote": {
717
+ "oneofs": {
718
+ "complianceType": {
719
+ "oneof": [
720
+ "cisBenchmark"
721
+ ]
870
722
  }
871
- }
872
- },
873
- "AttestationNote": {
723
+ },
874
724
  "fields": {
875
- "hint": {
876
- "type": "Hint",
725
+ "title": {
726
+ "type": "string",
877
727
  "id": 1
728
+ },
729
+ "description": {
730
+ "type": "string",
731
+ "id": 2
732
+ },
733
+ "version": {
734
+ "rule": "repeated",
735
+ "type": "grafeas.v1.ComplianceVersion",
736
+ "id": 3
737
+ },
738
+ "rationale": {
739
+ "type": "string",
740
+ "id": 4
741
+ },
742
+ "remediation": {
743
+ "type": "string",
744
+ "id": 5
745
+ },
746
+ "cisBenchmark": {
747
+ "type": "CisBenchmark",
748
+ "id": 6
749
+ },
750
+ "scanInstructions": {
751
+ "type": "bytes",
752
+ "id": 7
878
753
  }
879
754
  },
880
755
  "nested": {
881
- "Hint": {
756
+ "CisBenchmark": {
882
757
  "fields": {
883
- "humanReadableName": {
884
- "type": "string",
758
+ "profileLevel": {
759
+ "type": "int32",
885
760
  "id": 1
761
+ },
762
+ "severity": {
763
+ "type": "grafeas.v1.Severity",
764
+ "id": 2
886
765
  }
887
766
  }
888
767
  }
889
768
  }
890
769
  },
891
- "Jwt": {
770
+ "ComplianceVersion": {
892
771
  "fields": {
893
- "compactJwt": {
772
+ "cpeUri": {
894
773
  "type": "string",
895
774
  "id": 1
775
+ },
776
+ "version": {
777
+ "type": "string",
778
+ "id": 2
896
779
  }
897
780
  }
898
781
  },
899
- "AttestationOccurrence": {
782
+ "ComplianceOccurrence": {
900
783
  "fields": {
901
- "serializedPayload": {
902
- "type": "bytes",
903
- "id": 1
904
- },
905
- "signatures": {
784
+ "nonCompliantFiles": {
906
785
  "rule": "repeated",
907
- "type": "Signature",
786
+ "type": "NonCompliantFile",
908
787
  "id": 2
909
788
  },
910
- "jwts": {
911
- "rule": "repeated",
912
- "type": "Jwt",
789
+ "nonComplianceReason": {
790
+ "type": "string",
913
791
  "id": 3
914
792
  }
915
793
  }
916
794
  },
917
- "BuildNote": {
795
+ "NonCompliantFile": {
918
796
  "fields": {
919
- "builderVersion": {
797
+ "path": {
920
798
  "type": "string",
921
799
  "id": 1
922
- }
923
- }
924
- },
925
- "BuildOccurrence": {
926
- "fields": {
927
- "provenance": {
928
- "type": "grafeas.v1.BuildProvenance",
929
- "id": 1
930
800
  },
931
- "provenanceBytes": {
801
+ "displayCommand": {
932
802
  "type": "string",
933
803
  "id": 2
934
804
  },
935
- "intotoProvenance": {
936
- "type": "InTotoProvenance",
805
+ "reason": {
806
+ "type": "string",
937
807
  "id": 3
938
- },
939
- "intotoStatement": {
940
- "type": "InTotoStatement",
941
- "id": 4
942
808
  }
943
809
  }
944
810
  },
945
- "Recipe": {
811
+ "CVSSv3": {
946
812
  "fields": {
947
- "type": {
948
- "type": "string",
813
+ "baseScore": {
814
+ "type": "float",
949
815
  "id": 1
950
816
  },
951
- "definedInMaterial": {
952
- "type": "int64",
817
+ "exploitabilityScore": {
818
+ "type": "float",
953
819
  "id": 2
954
820
  },
955
- "entryPoint": {
956
- "type": "string",
821
+ "impactScore": {
822
+ "type": "float",
957
823
  "id": 3
958
824
  },
959
- "arguments": {
960
- "rule": "repeated",
961
- "type": "google.protobuf.Any",
962
- "id": 4
963
- },
964
- "environment": {
965
- "rule": "repeated",
966
- "type": "google.protobuf.Any",
825
+ "attackVector": {
826
+ "type": "AttackVector",
967
827
  "id": 5
968
- }
969
- }
970
- },
971
- "Completeness": {
972
- "fields": {
973
- "arguments": {
974
- "type": "bool",
975
- "id": 1
976
- },
977
- "environment": {
978
- "type": "bool",
979
- "id": 2
980
828
  },
981
- "materials": {
982
- "type": "bool",
983
- "id": 3
984
- }
985
- }
986
- },
987
- "Metadata": {
988
- "fields": {
989
- "buildInvocationId": {
990
- "type": "string",
991
- "id": 1
992
- },
993
- "buildStartedOn": {
994
- "type": "google.protobuf.Timestamp",
995
- "id": 2
829
+ "attackComplexity": {
830
+ "type": "AttackComplexity",
831
+ "id": 6
996
832
  },
997
- "buildFinishedOn": {
998
- "type": "google.protobuf.Timestamp",
999
- "id": 3
833
+ "privilegesRequired": {
834
+ "type": "PrivilegesRequired",
835
+ "id": 7
1000
836
  },
1001
- "completeness": {
1002
- "type": "Completeness",
1003
- "id": 4
837
+ "userInteraction": {
838
+ "type": "UserInteraction",
839
+ "id": 8
1004
840
  },
1005
- "reproducible": {
1006
- "type": "bool",
1007
- "id": 5
1008
- }
1009
- }
1010
- },
1011
- "BuilderConfig": {
1012
- "fields": {
1013
- "id": {
1014
- "type": "string",
1015
- "id": 1
1016
- }
1017
- }
1018
- },
1019
- "InTotoProvenance": {
1020
- "fields": {
1021
- "builderConfig": {
1022
- "type": "BuilderConfig",
1023
- "id": 1
841
+ "scope": {
842
+ "type": "Scope",
843
+ "id": 9
1024
844
  },
1025
- "recipe": {
1026
- "type": "Recipe",
1027
- "id": 2
845
+ "confidentialityImpact": {
846
+ "type": "Impact",
847
+ "id": 10
1028
848
  },
1029
- "metadata": {
1030
- "type": "Metadata",
1031
- "id": 3
849
+ "integrityImpact": {
850
+ "type": "Impact",
851
+ "id": 11
1032
852
  },
1033
- "materials": {
1034
- "rule": "repeated",
1035
- "type": "string",
1036
- "id": 4
853
+ "availabilityImpact": {
854
+ "type": "Impact",
855
+ "id": 12
856
+ }
857
+ },
858
+ "nested": {
859
+ "AttackVector": {
860
+ "values": {
861
+ "ATTACK_VECTOR_UNSPECIFIED": 0,
862
+ "ATTACK_VECTOR_NETWORK": 1,
863
+ "ATTACK_VECTOR_ADJACENT": 2,
864
+ "ATTACK_VECTOR_LOCAL": 3,
865
+ "ATTACK_VECTOR_PHYSICAL": 4
866
+ }
867
+ },
868
+ "AttackComplexity": {
869
+ "values": {
870
+ "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
871
+ "ATTACK_COMPLEXITY_LOW": 1,
872
+ "ATTACK_COMPLEXITY_HIGH": 2
873
+ }
874
+ },
875
+ "PrivilegesRequired": {
876
+ "values": {
877
+ "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
878
+ "PRIVILEGES_REQUIRED_NONE": 1,
879
+ "PRIVILEGES_REQUIRED_LOW": 2,
880
+ "PRIVILEGES_REQUIRED_HIGH": 3
881
+ }
882
+ },
883
+ "UserInteraction": {
884
+ "values": {
885
+ "USER_INTERACTION_UNSPECIFIED": 0,
886
+ "USER_INTERACTION_NONE": 1,
887
+ "USER_INTERACTION_REQUIRED": 2
888
+ }
889
+ },
890
+ "Scope": {
891
+ "values": {
892
+ "SCOPE_UNSPECIFIED": 0,
893
+ "SCOPE_UNCHANGED": 1,
894
+ "SCOPE_CHANGED": 2
895
+ }
896
+ },
897
+ "Impact": {
898
+ "values": {
899
+ "IMPACT_UNSPECIFIED": 0,
900
+ "IMPACT_HIGH": 1,
901
+ "IMPACT_LOW": 2,
902
+ "IMPACT_NONE": 3
903
+ }
1037
904
  }
1038
905
  }
1039
906
  },
1040
- "InTotoStatement": {
1041
- "oneofs": {
1042
- "predicate": {
1043
- "oneof": [
1044
- "provenance",
1045
- "slsaProvenance"
1046
- ]
907
+ "CVSS": {
908
+ "fields": {
909
+ "baseScore": {
910
+ "type": "float",
911
+ "id": 1
912
+ },
913
+ "exploitabilityScore": {
914
+ "type": "float",
915
+ "id": 2
916
+ },
917
+ "impactScore": {
918
+ "type": "float",
919
+ "id": 3
920
+ },
921
+ "attackVector": {
922
+ "type": "AttackVector",
923
+ "id": 4
924
+ },
925
+ "attackComplexity": {
926
+ "type": "AttackComplexity",
927
+ "id": 5
928
+ },
929
+ "authentication": {
930
+ "type": "Authentication",
931
+ "id": 6
932
+ },
933
+ "privilegesRequired": {
934
+ "type": "PrivilegesRequired",
935
+ "id": 7
936
+ },
937
+ "userInteraction": {
938
+ "type": "UserInteraction",
939
+ "id": 8
940
+ },
941
+ "scope": {
942
+ "type": "Scope",
943
+ "id": 9
944
+ },
945
+ "confidentialityImpact": {
946
+ "type": "Impact",
947
+ "id": 10
948
+ },
949
+ "integrityImpact": {
950
+ "type": "Impact",
951
+ "id": 11
952
+ },
953
+ "availabilityImpact": {
954
+ "type": "Impact",
955
+ "id": 12
1047
956
  }
1048
957
  },
1049
- "fields": {
1050
- "type": {
1051
- "type": "string",
1052
- "id": 1,
1053
- "options": {
1054
- "json_name": "_type"
958
+ "nested": {
959
+ "AttackVector": {
960
+ "values": {
961
+ "ATTACK_VECTOR_UNSPECIFIED": 0,
962
+ "ATTACK_VECTOR_NETWORK": 1,
963
+ "ATTACK_VECTOR_ADJACENT": 2,
964
+ "ATTACK_VECTOR_LOCAL": 3,
965
+ "ATTACK_VECTOR_PHYSICAL": 4
1055
966
  }
1056
967
  },
1057
- "subject": {
968
+ "AttackComplexity": {
969
+ "values": {
970
+ "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
971
+ "ATTACK_COMPLEXITY_LOW": 1,
972
+ "ATTACK_COMPLEXITY_HIGH": 2
973
+ }
974
+ },
975
+ "Authentication": {
976
+ "values": {
977
+ "AUTHENTICATION_UNSPECIFIED": 0,
978
+ "AUTHENTICATION_MULTIPLE": 1,
979
+ "AUTHENTICATION_SINGLE": 2,
980
+ "AUTHENTICATION_NONE": 3
981
+ }
982
+ },
983
+ "PrivilegesRequired": {
984
+ "values": {
985
+ "PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
986
+ "PRIVILEGES_REQUIRED_NONE": 1,
987
+ "PRIVILEGES_REQUIRED_LOW": 2,
988
+ "PRIVILEGES_REQUIRED_HIGH": 3
989
+ }
990
+ },
991
+ "UserInteraction": {
992
+ "values": {
993
+ "USER_INTERACTION_UNSPECIFIED": 0,
994
+ "USER_INTERACTION_NONE": 1,
995
+ "USER_INTERACTION_REQUIRED": 2
996
+ }
997
+ },
998
+ "Scope": {
999
+ "values": {
1000
+ "SCOPE_UNSPECIFIED": 0,
1001
+ "SCOPE_UNCHANGED": 1,
1002
+ "SCOPE_CHANGED": 2
1003
+ }
1004
+ },
1005
+ "Impact": {
1006
+ "values": {
1007
+ "IMPACT_UNSPECIFIED": 0,
1008
+ "IMPACT_HIGH": 1,
1009
+ "IMPACT_LOW": 2,
1010
+ "IMPACT_NONE": 3
1011
+ }
1012
+ }
1013
+ }
1014
+ },
1015
+ "DeploymentNote": {
1016
+ "fields": {
1017
+ "resourceUri": {
1058
1018
  "rule": "repeated",
1059
- "type": "Subject",
1019
+ "type": "string",
1020
+ "id": 1
1021
+ }
1022
+ }
1023
+ },
1024
+ "DeploymentOccurrence": {
1025
+ "fields": {
1026
+ "userEmail": {
1027
+ "type": "string",
1028
+ "id": 1
1029
+ },
1030
+ "deployTime": {
1031
+ "type": "google.protobuf.Timestamp",
1060
1032
  "id": 2
1061
1033
  },
1062
- "predicateType": {
1034
+ "undeployTime": {
1035
+ "type": "google.protobuf.Timestamp",
1036
+ "id": 3
1037
+ },
1038
+ "config": {
1039
+ "type": "string",
1040
+ "id": 4
1041
+ },
1042
+ "address": {
1063
1043
  "type": "string",
1044
+ "id": 5
1045
+ },
1046
+ "resourceUri": {
1047
+ "rule": "repeated",
1048
+ "type": "string",
1049
+ "id": 6
1050
+ },
1051
+ "platform": {
1052
+ "type": "Platform",
1053
+ "id": 7
1054
+ }
1055
+ },
1056
+ "nested": {
1057
+ "Platform": {
1058
+ "values": {
1059
+ "PLATFORM_UNSPECIFIED": 0,
1060
+ "GKE": 1,
1061
+ "FLEX": 2,
1062
+ "CUSTOM": 3
1063
+ }
1064
+ }
1065
+ }
1066
+ },
1067
+ "DiscoveryNote": {
1068
+ "fields": {
1069
+ "analysisKind": {
1070
+ "type": "grafeas.v1.NoteKind",
1071
+ "id": 1
1072
+ }
1073
+ }
1074
+ },
1075
+ "DiscoveryOccurrence": {
1076
+ "fields": {
1077
+ "continuousAnalysis": {
1078
+ "type": "ContinuousAnalysis",
1079
+ "id": 1
1080
+ },
1081
+ "analysisStatus": {
1082
+ "type": "AnalysisStatus",
1083
+ "id": 2
1084
+ },
1085
+ "analysisStatusError": {
1086
+ "type": "google.rpc.Status",
1064
1087
  "id": 3
1065
1088
  },
1066
- "provenance": {
1067
- "type": "InTotoProvenance",
1089
+ "cpe": {
1090
+ "type": "string",
1068
1091
  "id": 4
1069
1092
  },
1070
- "slsaProvenance": {
1071
- "type": "SlsaProvenance",
1093
+ "lastScanTime": {
1094
+ "type": "google.protobuf.Timestamp",
1072
1095
  "id": 5
1096
+ },
1097
+ "archiveTime": {
1098
+ "type": "google.protobuf.Timestamp",
1099
+ "id": 6,
1100
+ "options": {
1101
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1102
+ }
1103
+ }
1104
+ },
1105
+ "nested": {
1106
+ "ContinuousAnalysis": {
1107
+ "values": {
1108
+ "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
1109
+ "ACTIVE": 1,
1110
+ "INACTIVE": 2
1111
+ }
1112
+ },
1113
+ "AnalysisStatus": {
1114
+ "values": {
1115
+ "ANALYSIS_STATUS_UNSPECIFIED": 0,
1116
+ "PENDING": 1,
1117
+ "SCANNING": 2,
1118
+ "FINISHED_SUCCESS": 3,
1119
+ "FINISHED_FAILED": 4,
1120
+ "FINISHED_UNSUPPORTED": 5
1121
+ }
1122
+ }
1123
+ }
1124
+ },
1125
+ "DSSEAttestationNote": {
1126
+ "fields": {
1127
+ "hint": {
1128
+ "type": "DSSEHint",
1129
+ "id": 1
1130
+ }
1131
+ },
1132
+ "nested": {
1133
+ "DSSEHint": {
1134
+ "fields": {
1135
+ "humanReadableName": {
1136
+ "type": "string",
1137
+ "id": 1
1138
+ }
1139
+ }
1140
+ }
1141
+ }
1142
+ },
1143
+ "DSSEAttestationOccurrence": {
1144
+ "oneofs": {
1145
+ "decodedPayload": {
1146
+ "oneof": [
1147
+ "statement"
1148
+ ]
1149
+ }
1150
+ },
1151
+ "fields": {
1152
+ "envelope": {
1153
+ "type": "Envelope",
1154
+ "id": 1
1155
+ },
1156
+ "statement": {
1157
+ "type": "InTotoStatement",
1158
+ "id": 2
1159
+ }
1160
+ }
1161
+ },
1162
+ "Grafeas": {
1163
+ "options": {
1164
+ "(google.api.default_host)": "containeranalysis.googleapis.com"
1165
+ },
1166
+ "methods": {
1167
+ "GetOccurrence": {
1168
+ "requestType": "GetOccurrenceRequest",
1169
+ "responseType": "Occurrence",
1170
+ "options": {
1171
+ "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}",
1172
+ "(google.api.method_signature)": "name"
1173
+ },
1174
+ "parsedOptions": [
1175
+ {
1176
+ "(google.api.http)": {
1177
+ "get": "/v1/{name=projects/*/occurrences/*}"
1178
+ }
1179
+ },
1180
+ {
1181
+ "(google.api.method_signature)": "name"
1182
+ }
1183
+ ]
1184
+ },
1185
+ "ListOccurrences": {
1186
+ "requestType": "ListOccurrencesRequest",
1187
+ "responseType": "ListOccurrencesResponse",
1188
+ "options": {
1189
+ "(google.api.http).get": "/v1/{parent=projects/*}/occurrences",
1190
+ "(google.api.method_signature)": "parent,filter"
1191
+ },
1192
+ "parsedOptions": [
1193
+ {
1194
+ "(google.api.http)": {
1195
+ "get": "/v1/{parent=projects/*}/occurrences"
1196
+ }
1197
+ },
1198
+ {
1199
+ "(google.api.method_signature)": "parent,filter"
1200
+ }
1201
+ ]
1202
+ },
1203
+ "DeleteOccurrence": {
1204
+ "requestType": "DeleteOccurrenceRequest",
1205
+ "responseType": "google.protobuf.Empty",
1206
+ "options": {
1207
+ "(google.api.http).delete": "/v1/{name=projects/*/occurrences/*}",
1208
+ "(google.api.method_signature)": "name"
1209
+ },
1210
+ "parsedOptions": [
1211
+ {
1212
+ "(google.api.http)": {
1213
+ "delete": "/v1/{name=projects/*/occurrences/*}"
1214
+ }
1215
+ },
1216
+ {
1217
+ "(google.api.method_signature)": "name"
1218
+ }
1219
+ ]
1220
+ },
1221
+ "CreateOccurrence": {
1222
+ "requestType": "CreateOccurrenceRequest",
1223
+ "responseType": "Occurrence",
1224
+ "options": {
1225
+ "(google.api.http).post": "/v1/{parent=projects/*}/occurrences",
1226
+ "(google.api.http).body": "occurrence",
1227
+ "(google.api.method_signature)": "parent,occurrence"
1228
+ },
1229
+ "parsedOptions": [
1230
+ {
1231
+ "(google.api.http)": {
1232
+ "post": "/v1/{parent=projects/*}/occurrences",
1233
+ "body": "occurrence"
1234
+ }
1235
+ },
1236
+ {
1237
+ "(google.api.method_signature)": "parent,occurrence"
1238
+ }
1239
+ ]
1240
+ },
1241
+ "BatchCreateOccurrences": {
1242
+ "requestType": "BatchCreateOccurrencesRequest",
1243
+ "responseType": "BatchCreateOccurrencesResponse",
1244
+ "options": {
1245
+ "(google.api.http).post": "/v1/{parent=projects/*}/occurrences:batchCreate",
1246
+ "(google.api.http).body": "*",
1247
+ "(google.api.method_signature)": "parent,occurrences"
1248
+ },
1249
+ "parsedOptions": [
1250
+ {
1251
+ "(google.api.http)": {
1252
+ "post": "/v1/{parent=projects/*}/occurrences:batchCreate",
1253
+ "body": "*"
1254
+ }
1255
+ },
1256
+ {
1257
+ "(google.api.method_signature)": "parent,occurrences"
1258
+ }
1259
+ ]
1260
+ },
1261
+ "UpdateOccurrence": {
1262
+ "requestType": "UpdateOccurrenceRequest",
1263
+ "responseType": "Occurrence",
1264
+ "options": {
1265
+ "(google.api.http).patch": "/v1/{name=projects/*/occurrences/*}",
1266
+ "(google.api.http).body": "occurrence",
1267
+ "(google.api.method_signature)": "name,occurrence,update_mask"
1268
+ },
1269
+ "parsedOptions": [
1270
+ {
1271
+ "(google.api.http)": {
1272
+ "patch": "/v1/{name=projects/*/occurrences/*}",
1273
+ "body": "occurrence"
1274
+ }
1275
+ },
1276
+ {
1277
+ "(google.api.method_signature)": "name,occurrence,update_mask"
1278
+ }
1279
+ ]
1280
+ },
1281
+ "GetOccurrenceNote": {
1282
+ "requestType": "GetOccurrenceNoteRequest",
1283
+ "responseType": "Note",
1284
+ "options": {
1285
+ "(google.api.http).get": "/v1/{name=projects/*/occurrences/*}/notes",
1286
+ "(google.api.method_signature)": "name"
1287
+ },
1288
+ "parsedOptions": [
1289
+ {
1290
+ "(google.api.http)": {
1291
+ "get": "/v1/{name=projects/*/occurrences/*}/notes"
1292
+ }
1293
+ },
1294
+ {
1295
+ "(google.api.method_signature)": "name"
1296
+ }
1297
+ ]
1298
+ },
1299
+ "GetNote": {
1300
+ "requestType": "GetNoteRequest",
1301
+ "responseType": "Note",
1302
+ "options": {
1303
+ "(google.api.http).get": "/v1/{name=projects/*/notes/*}",
1304
+ "(google.api.method_signature)": "name"
1305
+ },
1306
+ "parsedOptions": [
1307
+ {
1308
+ "(google.api.http)": {
1309
+ "get": "/v1/{name=projects/*/notes/*}"
1310
+ }
1311
+ },
1312
+ {
1313
+ "(google.api.method_signature)": "name"
1314
+ }
1315
+ ]
1316
+ },
1317
+ "ListNotes": {
1318
+ "requestType": "ListNotesRequest",
1319
+ "responseType": "ListNotesResponse",
1320
+ "options": {
1321
+ "(google.api.http).get": "/v1/{parent=projects/*}/notes",
1322
+ "(google.api.method_signature)": "parent,filter"
1323
+ },
1324
+ "parsedOptions": [
1325
+ {
1326
+ "(google.api.http)": {
1327
+ "get": "/v1/{parent=projects/*}/notes"
1328
+ }
1329
+ },
1330
+ {
1331
+ "(google.api.method_signature)": "parent,filter"
1332
+ }
1333
+ ]
1334
+ },
1335
+ "DeleteNote": {
1336
+ "requestType": "DeleteNoteRequest",
1337
+ "responseType": "google.protobuf.Empty",
1338
+ "options": {
1339
+ "(google.api.http).delete": "/v1/{name=projects/*/notes/*}",
1340
+ "(google.api.method_signature)": "name"
1341
+ },
1342
+ "parsedOptions": [
1343
+ {
1344
+ "(google.api.http)": {
1345
+ "delete": "/v1/{name=projects/*/notes/*}"
1346
+ }
1347
+ },
1348
+ {
1349
+ "(google.api.method_signature)": "name"
1350
+ }
1351
+ ]
1352
+ },
1353
+ "CreateNote": {
1354
+ "requestType": "CreateNoteRequest",
1355
+ "responseType": "Note",
1356
+ "options": {
1357
+ "(google.api.http).post": "/v1/{parent=projects/*}/notes",
1358
+ "(google.api.http).body": "note",
1359
+ "(google.api.method_signature)": "parent,note_id,note"
1360
+ },
1361
+ "parsedOptions": [
1362
+ {
1363
+ "(google.api.http)": {
1364
+ "post": "/v1/{parent=projects/*}/notes",
1365
+ "body": "note"
1366
+ }
1367
+ },
1368
+ {
1369
+ "(google.api.method_signature)": "parent,note_id,note"
1370
+ }
1371
+ ]
1372
+ },
1373
+ "BatchCreateNotes": {
1374
+ "requestType": "BatchCreateNotesRequest",
1375
+ "responseType": "BatchCreateNotesResponse",
1376
+ "options": {
1377
+ "(google.api.http).post": "/v1/{parent=projects/*}/notes:batchCreate",
1378
+ "(google.api.http).body": "*",
1379
+ "(google.api.method_signature)": "parent,notes"
1380
+ },
1381
+ "parsedOptions": [
1382
+ {
1383
+ "(google.api.http)": {
1384
+ "post": "/v1/{parent=projects/*}/notes:batchCreate",
1385
+ "body": "*"
1386
+ }
1387
+ },
1388
+ {
1389
+ "(google.api.method_signature)": "parent,notes"
1390
+ }
1391
+ ]
1392
+ },
1393
+ "UpdateNote": {
1394
+ "requestType": "UpdateNoteRequest",
1395
+ "responseType": "Note",
1396
+ "options": {
1397
+ "(google.api.http).patch": "/v1/{name=projects/*/notes/*}",
1398
+ "(google.api.http).body": "note",
1399
+ "(google.api.method_signature)": "name,note,update_mask"
1400
+ },
1401
+ "parsedOptions": [
1402
+ {
1403
+ "(google.api.http)": {
1404
+ "patch": "/v1/{name=projects/*/notes/*}",
1405
+ "body": "note"
1406
+ }
1407
+ },
1408
+ {
1409
+ "(google.api.method_signature)": "name,note,update_mask"
1410
+ }
1411
+ ]
1412
+ },
1413
+ "ListNoteOccurrences": {
1414
+ "requestType": "ListNoteOccurrencesRequest",
1415
+ "responseType": "ListNoteOccurrencesResponse",
1416
+ "options": {
1417
+ "(google.api.http).get": "/v1/{name=projects/*/notes/*}/occurrences",
1418
+ "(google.api.method_signature)": "name,filter"
1419
+ },
1420
+ "parsedOptions": [
1421
+ {
1422
+ "(google.api.http)": {
1423
+ "get": "/v1/{name=projects/*/notes/*}/occurrences"
1424
+ }
1425
+ },
1426
+ {
1427
+ "(google.api.method_signature)": "name,filter"
1428
+ }
1429
+ ]
1430
+ }
1431
+ }
1432
+ },
1433
+ "Occurrence": {
1434
+ "options": {
1435
+ "(google.api.resource).type": "grafeas.io/Occurrence",
1436
+ "(google.api.resource).pattern": "projects/{project}/occurrences/{occurrence}"
1437
+ },
1438
+ "oneofs": {
1439
+ "details": {
1440
+ "oneof": [
1441
+ "vulnerability",
1442
+ "build",
1443
+ "image",
1444
+ "package",
1445
+ "deployment",
1446
+ "discovery",
1447
+ "attestation",
1448
+ "upgrade",
1449
+ "compliance",
1450
+ "dsseAttestation"
1451
+ ]
1073
1452
  }
1074
- }
1075
- },
1076
- "Subject": {
1453
+ },
1077
1454
  "fields": {
1078
1455
  "name": {
1079
1456
  "type": "string",
1080
1457
  "id": 1
1081
1458
  },
1082
- "digest": {
1083
- "keyType": "string",
1459
+ "resourceUri": {
1084
1460
  "type": "string",
1085
1461
  "id": 2
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
1462
  },
1099
- "metadata": {
1100
- "type": "SlsaMetadata",
1463
+ "noteName": {
1464
+ "type": "string",
1101
1465
  "id": 3
1102
1466
  },
1103
- "materials": {
1104
- "rule": "repeated",
1105
- "type": "Material",
1467
+ "kind": {
1468
+ "type": "grafeas.v1.NoteKind",
1106
1469
  "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
1470
  },
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
- }
1471
+ "remediation": {
1472
+ "type": "string",
1473
+ "id": 5
1149
1474
  },
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
- }
1475
+ "createTime": {
1476
+ "type": "google.protobuf.Timestamp",
1477
+ "id": 6
1173
1478
  },
1174
- "SlsaBuilder": {
1175
- "fields": {
1176
- "id": {
1177
- "type": "string",
1178
- "id": 1
1179
- }
1180
- }
1479
+ "updateTime": {
1480
+ "type": "google.protobuf.Timestamp",
1481
+ "id": 7
1181
1482
  },
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
- }
1483
+ "vulnerability": {
1484
+ "type": "grafeas.v1.VulnerabilityOccurrence",
1485
+ "id": 8
1486
+ },
1487
+ "build": {
1488
+ "type": "grafeas.v1.BuildOccurrence",
1489
+ "id": 9
1490
+ },
1491
+ "image": {
1492
+ "type": "grafeas.v1.ImageOccurrence",
1493
+ "id": 10
1494
+ },
1495
+ "package": {
1496
+ "type": "grafeas.v1.PackageOccurrence",
1497
+ "id": 11
1498
+ },
1499
+ "deployment": {
1500
+ "type": "grafeas.v1.DeploymentOccurrence",
1501
+ "id": 12
1502
+ },
1503
+ "discovery": {
1504
+ "type": "grafeas.v1.DiscoveryOccurrence",
1505
+ "id": 13
1506
+ },
1507
+ "attestation": {
1508
+ "type": "grafeas.v1.AttestationOccurrence",
1509
+ "id": 14
1510
+ },
1511
+ "upgrade": {
1512
+ "type": "grafeas.v1.UpgradeOccurrence",
1513
+ "id": 15
1514
+ },
1515
+ "compliance": {
1516
+ "type": "grafeas.v1.ComplianceOccurrence",
1517
+ "id": 16
1518
+ },
1519
+ "dsseAttestation": {
1520
+ "type": "grafeas.v1.DSSEAttestationOccurrence",
1521
+ "id": 17
1522
+ },
1523
+ "envelope": {
1524
+ "type": "grafeas.v1.Envelope",
1525
+ "id": 18
1194
1526
  }
1195
1527
  }
1196
1528
  },
1197
- "BuildProvenance": {
1529
+ "Note": {
1530
+ "options": {
1531
+ "(google.api.resource).type": "grafeas.io/Note",
1532
+ "(google.api.resource).pattern": "projects/{project}/notes/{note}"
1533
+ },
1534
+ "oneofs": {
1535
+ "type": {
1536
+ "oneof": [
1537
+ "vulnerability",
1538
+ "build",
1539
+ "image",
1540
+ "package",
1541
+ "deployment",
1542
+ "discovery",
1543
+ "attestation",
1544
+ "upgrade",
1545
+ "compliance",
1546
+ "dsseAttestation"
1547
+ ]
1548
+ }
1549
+ },
1198
1550
  "fields": {
1199
- "id": {
1551
+ "name": {
1200
1552
  "type": "string",
1201
1553
  "id": 1
1202
1554
  },
1203
- "projectId": {
1555
+ "shortDescription": {
1204
1556
  "type": "string",
1205
1557
  "id": 2
1206
1558
  },
1207
- "commands": {
1208
- "rule": "repeated",
1209
- "type": "Command",
1559
+ "longDescription": {
1560
+ "type": "string",
1210
1561
  "id": 3
1211
1562
  },
1212
- "builtArtifacts": {
1213
- "rule": "repeated",
1214
- "type": "Artifact",
1563
+ "kind": {
1564
+ "type": "grafeas.v1.NoteKind",
1215
1565
  "id": 4
1216
1566
  },
1217
- "createTime": {
1218
- "type": "google.protobuf.Timestamp",
1567
+ "relatedUrl": {
1568
+ "rule": "repeated",
1569
+ "type": "grafeas.v1.RelatedUrl",
1219
1570
  "id": 5
1220
1571
  },
1221
- "startTime": {
1572
+ "expirationTime": {
1222
1573
  "type": "google.protobuf.Timestamp",
1223
1574
  "id": 6
1224
1575
  },
1225
- "endTime": {
1576
+ "createTime": {
1226
1577
  "type": "google.protobuf.Timestamp",
1227
1578
  "id": 7
1228
1579
  },
1229
- "creator": {
1230
- "type": "string",
1580
+ "updateTime": {
1581
+ "type": "google.protobuf.Timestamp",
1231
1582
  "id": 8
1232
1583
  },
1233
- "logsUri": {
1584
+ "relatedNoteNames": {
1585
+ "rule": "repeated",
1234
1586
  "type": "string",
1235
1587
  "id": 9
1236
1588
  },
1237
- "sourceProvenance": {
1238
- "type": "Source",
1589
+ "vulnerability": {
1590
+ "type": "grafeas.v1.VulnerabilityNote",
1239
1591
  "id": 10
1240
1592
  },
1241
- "triggerId": {
1242
- "type": "string",
1593
+ "build": {
1594
+ "type": "grafeas.v1.BuildNote",
1243
1595
  "id": 11
1244
1596
  },
1245
- "buildOptions": {
1246
- "keyType": "string",
1247
- "type": "string",
1597
+ "image": {
1598
+ "type": "grafeas.v1.ImageNote",
1248
1599
  "id": 12
1249
1600
  },
1250
- "builderVersion": {
1251
- "type": "string",
1601
+ "package": {
1602
+ "type": "grafeas.v1.PackageNote",
1252
1603
  "id": 13
1253
- }
1254
- }
1255
- },
1256
- "Source": {
1257
- "fields": {
1258
- "artifactStorageSourceUri": {
1259
- "type": "string",
1260
- "id": 1
1261
1604
  },
1262
- "fileHashes": {
1263
- "keyType": "string",
1264
- "type": "FileHashes",
1265
- "id": 2
1605
+ "deployment": {
1606
+ "type": "grafeas.v1.DeploymentNote",
1607
+ "id": 14
1608
+ },
1609
+ "discovery": {
1610
+ "type": "grafeas.v1.DiscoveryNote",
1611
+ "id": 15
1612
+ },
1613
+ "attestation": {
1614
+ "type": "grafeas.v1.AttestationNote",
1615
+ "id": 16
1616
+ },
1617
+ "upgrade": {
1618
+ "type": "grafeas.v1.UpgradeNote",
1619
+ "id": 17
1266
1620
  },
1267
- "context": {
1268
- "type": "SourceContext",
1269
- "id": 3
1621
+ "compliance": {
1622
+ "type": "grafeas.v1.ComplianceNote",
1623
+ "id": 18
1270
1624
  },
1271
- "additionalContexts": {
1272
- "rule": "repeated",
1273
- "type": "SourceContext",
1274
- "id": 4
1275
- }
1276
- }
1277
- },
1278
- "FileHashes": {
1279
- "fields": {
1280
- "fileHash": {
1281
- "rule": "repeated",
1282
- "type": "Hash",
1283
- "id": 1
1625
+ "dsseAttestation": {
1626
+ "type": "grafeas.v1.DSSEAttestationNote",
1627
+ "id": 19
1284
1628
  }
1285
1629
  }
1286
1630
  },
1287
- "Hash": {
1631
+ "GetOccurrenceRequest": {
1288
1632
  "fields": {
1289
- "type": {
1633
+ "name": {
1290
1634
  "type": "string",
1291
- "id": 1
1292
- },
1293
- "value": {
1294
- "type": "bytes",
1295
- "id": 2
1635
+ "id": 1,
1636
+ "options": {
1637
+ "(google.api.field_behavior)": "REQUIRED",
1638
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1639
+ }
1296
1640
  }
1297
1641
  }
1298
1642
  },
1299
- "Command": {
1643
+ "ListOccurrencesRequest": {
1300
1644
  "fields": {
1301
- "name": {
1645
+ "parent": {
1302
1646
  "type": "string",
1303
- "id": 1
1647
+ "id": 1,
1648
+ "options": {
1649
+ "(google.api.field_behavior)": "REQUIRED",
1650
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1651
+ }
1304
1652
  },
1305
- "env": {
1306
- "rule": "repeated",
1653
+ "filter": {
1307
1654
  "type": "string",
1308
1655
  "id": 2
1309
1656
  },
1310
- "args": {
1311
- "rule": "repeated",
1312
- "type": "string",
1657
+ "pageSize": {
1658
+ "type": "int32",
1313
1659
  "id": 3
1314
1660
  },
1315
- "dir": {
1661
+ "pageToken": {
1316
1662
  "type": "string",
1317
1663
  "id": 4
1318
- },
1319
- "id": {
1320
- "type": "string",
1321
- "id": 5
1322
- },
1323
- "waitFor": {
1324
- "rule": "repeated",
1325
- "type": "string",
1326
- "id": 6
1327
1664
  }
1328
1665
  }
1329
1666
  },
1330
- "Artifact": {
1667
+ "ListOccurrencesResponse": {
1331
1668
  "fields": {
1332
- "checksum": {
1333
- "type": "string",
1334
- "id": 1
1335
- },
1336
- "id": {
1337
- "type": "string",
1338
- "id": 2
1339
- },
1340
- "names": {
1669
+ "occurrences": {
1341
1670
  "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"
1354
- ]
1355
- }
1356
- },
1357
- "fields": {
1358
- "cloudRepo": {
1359
- "type": "CloudRepoSourceContext",
1671
+ "type": "Occurrence",
1360
1672
  "id": 1
1361
1673
  },
1362
- "gerrit": {
1363
- "type": "GerritSourceContext",
1364
- "id": 2
1365
- },
1366
- "git": {
1367
- "type": "GitSourceContext",
1368
- "id": 3
1369
- },
1370
- "labels": {
1371
- "keyType": "string",
1674
+ "nextPageToken": {
1372
1675
  "type": "string",
1373
- "id": 4
1676
+ "id": 2
1374
1677
  }
1375
1678
  }
1376
1679
  },
1377
- "AliasContext": {
1680
+ "DeleteOccurrenceRequest": {
1378
1681
  "fields": {
1379
- "kind": {
1380
- "type": "Kind",
1381
- "id": 1
1382
- },
1383
1682
  "name": {
1384
1683
  "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
1684
+ "id": 1,
1685
+ "options": {
1686
+ "(google.api.field_behavior)": "REQUIRED",
1687
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1395
1688
  }
1396
1689
  }
1397
1690
  }
1398
1691
  },
1399
- "CloudRepoSourceContext": {
1400
- "oneofs": {
1401
- "revision": {
1402
- "oneof": [
1403
- "revisionId",
1404
- "aliasContext"
1405
- ]
1406
- }
1407
- },
1692
+ "CreateOccurrenceRequest": {
1408
1693
  "fields": {
1409
- "repoId": {
1410
- "type": "RepoId",
1411
- "id": 1
1412
- },
1413
- "revisionId": {
1694
+ "parent": {
1414
1695
  "type": "string",
1415
- "id": 2
1696
+ "id": 1,
1697
+ "options": {
1698
+ "(google.api.field_behavior)": "REQUIRED",
1699
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1700
+ }
1416
1701
  },
1417
- "aliasContext": {
1418
- "type": "AliasContext",
1419
- "id": 3
1702
+ "occurrence": {
1703
+ "type": "Occurrence",
1704
+ "id": 2,
1705
+ "options": {
1706
+ "(google.api.field_behavior)": "REQUIRED"
1707
+ }
1420
1708
  }
1421
1709
  }
1422
1710
  },
1423
- "GerritSourceContext": {
1424
- "oneofs": {
1425
- "revision": {
1426
- "oneof": [
1427
- "revisionId",
1428
- "aliasContext"
1429
- ]
1430
- }
1431
- },
1711
+ "UpdateOccurrenceRequest": {
1432
1712
  "fields": {
1433
- "hostUri": {
1713
+ "name": {
1434
1714
  "type": "string",
1435
- "id": 1
1715
+ "id": 1,
1716
+ "options": {
1717
+ "(google.api.field_behavior)": "REQUIRED",
1718
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1719
+ }
1436
1720
  },
1437
- "gerritProject": {
1438
- "type": "string",
1439
- "id": 2
1721
+ "occurrence": {
1722
+ "type": "Occurrence",
1723
+ "id": 2,
1724
+ "options": {
1725
+ "(google.api.field_behavior)": "REQUIRED"
1726
+ }
1440
1727
  },
1441
- "revisionId": {
1442
- "type": "string",
1728
+ "updateMask": {
1729
+ "type": "google.protobuf.FieldMask",
1443
1730
  "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
1731
  }
1461
1732
  }
1462
1733
  },
1463
- "RepoId": {
1464
- "oneofs": {
1465
- "id": {
1466
- "oneof": [
1467
- "projectRepoId",
1468
- "uid"
1469
- ]
1470
- }
1471
- },
1734
+ "GetNoteRequest": {
1472
1735
  "fields": {
1473
- "projectRepoId": {
1474
- "type": "ProjectRepoId",
1475
- "id": 1
1476
- },
1477
- "uid": {
1736
+ "name": {
1478
1737
  "type": "string",
1479
- "id": 2
1738
+ "id": 1,
1739
+ "options": {
1740
+ "(google.api.field_behavior)": "REQUIRED",
1741
+ "(google.api.resource_reference).type": "grafeas.io/Note"
1742
+ }
1480
1743
  }
1481
1744
  }
1482
1745
  },
1483
- "ProjectRepoId": {
1746
+ "GetOccurrenceNoteRequest": {
1484
1747
  "fields": {
1485
- "projectId": {
1486
- "type": "string",
1487
- "id": 1
1488
- },
1489
- "repoName": {
1748
+ "name": {
1490
1749
  "type": "string",
1491
- "id": 2
1492
- }
1493
- }
1494
- },
1495
- "ComplianceNote": {
1496
- "oneofs": {
1497
- "complianceType": {
1498
- "oneof": [
1499
- "cisBenchmark"
1500
- ]
1750
+ "id": 1,
1751
+ "options": {
1752
+ "(google.api.field_behavior)": "REQUIRED",
1753
+ "(google.api.resource_reference).type": "grafeas.io/Occurrence"
1754
+ }
1501
1755
  }
1502
- },
1756
+ }
1757
+ },
1758
+ "ListNotesRequest": {
1503
1759
  "fields": {
1504
- "title": {
1760
+ "parent": {
1505
1761
  "type": "string",
1506
- "id": 1
1762
+ "id": 1,
1763
+ "options": {
1764
+ "(google.api.field_behavior)": "REQUIRED",
1765
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1766
+ }
1507
1767
  },
1508
- "description": {
1768
+ "filter": {
1509
1769
  "type": "string",
1510
1770
  "id": 2
1511
1771
  },
1512
- "version": {
1513
- "rule": "repeated",
1514
- "type": "grafeas.v1.ComplianceVersion",
1772
+ "pageSize": {
1773
+ "type": "int32",
1515
1774
  "id": 3
1516
1775
  },
1517
- "rationale": {
1776
+ "pageToken": {
1518
1777
  "type": "string",
1519
1778
  "id": 4
1520
- },
1521
- "remediation": {
1522
- "type": "string",
1523
- "id": 5
1524
- },
1525
- "cisBenchmark": {
1526
- "type": "CisBenchmark",
1527
- "id": 6
1528
- },
1529
- "scanInstructions": {
1530
- "type": "bytes",
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
1779
  }
1547
1780
  }
1548
1781
  },
1549
- "ComplianceVersion": {
1782
+ "ListNotesResponse": {
1550
1783
  "fields": {
1551
- "cpeUri": {
1552
- "type": "string",
1784
+ "notes": {
1785
+ "rule": "repeated",
1786
+ "type": "Note",
1553
1787
  "id": 1
1554
1788
  },
1555
- "version": {
1789
+ "nextPageToken": {
1556
1790
  "type": "string",
1557
1791
  "id": 2
1558
1792
  }
1559
1793
  }
1560
1794
  },
1561
- "ComplianceOccurrence": {
1795
+ "DeleteNoteRequest": {
1562
1796
  "fields": {
1563
- "nonCompliantFiles": {
1564
- "rule": "repeated",
1565
- "type": "NonCompliantFile",
1566
- "id": 2
1567
- },
1568
- "nonComplianceReason": {
1797
+ "name": {
1569
1798
  "type": "string",
1570
- "id": 3
1799
+ "id": 1,
1800
+ "options": {
1801
+ "(google.api.field_behavior)": "REQUIRED",
1802
+ "(google.api.resource_reference).type": "grafeas.io/Note"
1803
+ }
1571
1804
  }
1572
1805
  }
1573
1806
  },
1574
- "NonCompliantFile": {
1807
+ "CreateNoteRequest": {
1575
1808
  "fields": {
1576
- "path": {
1809
+ "parent": {
1577
1810
  "type": "string",
1578
- "id": 1
1811
+ "id": 1,
1812
+ "options": {
1813
+ "(google.api.field_behavior)": "REQUIRED",
1814
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1815
+ }
1579
1816
  },
1580
- "displayCommand": {
1817
+ "noteId": {
1581
1818
  "type": "string",
1582
- "id": 2
1819
+ "id": 2,
1820
+ "options": {
1821
+ "(google.api.field_behavior)": "REQUIRED"
1822
+ }
1583
1823
  },
1584
- "reason": {
1585
- "type": "string",
1586
- "id": 3
1824
+ "note": {
1825
+ "type": "Note",
1826
+ "id": 3,
1827
+ "options": {
1828
+ "(google.api.field_behavior)": "REQUIRED"
1829
+ }
1587
1830
  }
1588
1831
  }
1589
1832
  },
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": {
1833
+ "UpdateNoteRequest": {
1601
1834
  "fields": {
1602
- "resourceUri": {
1603
- "rule": "repeated",
1835
+ "name": {
1604
1836
  "type": "string",
1605
- "id": 1
1837
+ "id": 1,
1838
+ "options": {
1839
+ "(google.api.field_behavior)": "REQUIRED",
1840
+ "(google.api.resource_reference).type": "grafeas.io/Note"
1841
+ }
1842
+ },
1843
+ "note": {
1844
+ "type": "Note",
1845
+ "id": 2,
1846
+ "options": {
1847
+ "(google.api.field_behavior)": "REQUIRED"
1848
+ }
1849
+ },
1850
+ "updateMask": {
1851
+ "type": "google.protobuf.FieldMask",
1852
+ "id": 3
1606
1853
  }
1607
1854
  }
1608
1855
  },
1609
- "DeploymentOccurrence": {
1856
+ "ListNoteOccurrencesRequest": {
1610
1857
  "fields": {
1611
- "userEmail": {
1858
+ "name": {
1612
1859
  "type": "string",
1613
- "id": 1
1860
+ "id": 1,
1861
+ "options": {
1862
+ "(google.api.field_behavior)": "REQUIRED",
1863
+ "(google.api.resource_reference).type": "grafeas.io/Note"
1864
+ }
1614
1865
  },
1615
- "deployTime": {
1616
- "type": "google.protobuf.Timestamp",
1866
+ "filter": {
1867
+ "type": "string",
1617
1868
  "id": 2
1618
1869
  },
1619
- "undeployTime": {
1620
- "type": "google.protobuf.Timestamp",
1870
+ "pageSize": {
1871
+ "type": "int32",
1621
1872
  "id": 3
1622
1873
  },
1623
- "config": {
1874
+ "pageToken": {
1624
1875
  "type": "string",
1625
1876
  "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
- }
1649
1877
  }
1650
1878
  }
1651
1879
  },
1652
- "DiscoveryNote": {
1880
+ "ListNoteOccurrencesResponse": {
1653
1881
  "fields": {
1654
- "analysisKind": {
1655
- "type": "grafeas.v1.NoteKind",
1882
+ "occurrences": {
1883
+ "rule": "repeated",
1884
+ "type": "Occurrence",
1656
1885
  "id": 1
1886
+ },
1887
+ "nextPageToken": {
1888
+ "type": "string",
1889
+ "id": 2
1657
1890
  }
1658
1891
  }
1659
1892
  },
1660
- "DiscoveryOccurrence": {
1893
+ "BatchCreateNotesRequest": {
1661
1894
  "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": {
1895
+ "parent": {
1675
1896
  "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,
1897
+ "id": 1,
1685
1898
  "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
1899
+ "(google.api.field_behavior)": "REQUIRED",
1900
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1696
1901
  }
1697
1902
  },
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
1903
+ "notes": {
1904
+ "keyType": "string",
1905
+ "type": "Note",
1906
+ "id": 2,
1907
+ "options": {
1908
+ "(google.api.field_behavior)": "REQUIRED"
1706
1909
  }
1707
1910
  }
1708
1911
  }
1709
1912
  },
1710
- "DSSEAttestationNote": {
1913
+ "BatchCreateNotesResponse": {
1711
1914
  "fields": {
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
- }
1724
- }
1915
+ "notes": {
1916
+ "rule": "repeated",
1917
+ "type": "Note",
1918
+ "id": 1
1725
1919
  }
1726
1920
  }
1727
1921
  },
1728
- "DSSEAttestationOccurrence": {
1729
- "oneofs": {
1730
- "decodedPayload": {
1731
- "oneof": [
1732
- "statement"
1733
- ]
1922
+ "BatchCreateOccurrencesRequest": {
1923
+ "fields": {
1924
+ "parent": {
1925
+ "type": "string",
1926
+ "id": 1,
1927
+ "options": {
1928
+ "(google.api.field_behavior)": "REQUIRED",
1929
+ "(google.api.resource_reference).type": "grafeas.io/Project"
1930
+ }
1931
+ },
1932
+ "occurrences": {
1933
+ "rule": "repeated",
1934
+ "type": "Occurrence",
1935
+ "id": 2,
1936
+ "options": {
1937
+ "(google.api.field_behavior)": "REQUIRED"
1938
+ }
1734
1939
  }
1735
- },
1940
+ }
1941
+ },
1942
+ "BatchCreateOccurrencesResponse": {
1736
1943
  "fields": {
1737
- "envelope": {
1738
- "type": "Envelope",
1944
+ "occurrences": {
1945
+ "rule": "repeated",
1946
+ "type": "Occurrence",
1739
1947
  "id": 1
1740
- },
1741
- "statement": {
1742
- "type": "InTotoStatement",
1743
- "id": 2
1744
1948
  }
1745
1949
  }
1746
1950
  },
@@ -2126,341 +2330,137 @@
2126
2330
  "source": {
2127
2331
  "type": "string",
2128
2332
  "id": 13
2129
- },
2130
- "vendor": {
2131
- "type": "string",
2132
- "id": 14
2133
- }
2134
- }
2135
- },
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
- }
2170
- }
2171
- }
2172
- },
2173
- "VulnerabilityOccurrence": {
2174
- "fields": {
2175
- "type": {
2176
- "type": "string",
2177
- "id": 1
2178
- },
2179
- "severity": {
2180
- "type": "grafeas.v1.Severity",
2181
- "id": 2
2182
- },
2183
- "cvssScore": {
2184
- "type": "float",
2185
- "id": 3
2186
- },
2187
- "cvssv3": {
2188
- "type": "CVSS",
2189
- "id": 10
2190
- },
2191
- "packageIssue": {
2192
- "rule": "repeated",
2193
- "type": "PackageIssue",
2194
- "id": 4
2195
- },
2196
- "shortDescription": {
2197
- "type": "string",
2198
- "id": 5
2199
- },
2200
- "longDescription": {
2201
- "type": "string",
2202
- "id": 6
2203
- },
2204
- "relatedUrls": {
2205
- "rule": "repeated",
2206
- "type": "grafeas.v1.RelatedUrl",
2207
- "id": 7
2208
- },
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
- }
2261
- }
2262
- }
2263
- },
2264
- "CVSSv3": {
2265
- "fields": {
2266
- "baseScore": {
2267
- "type": "float",
2268
- "id": 1
2269
- },
2270
- "exploitabilityScore": {
2271
- "type": "float",
2272
- "id": 2
2273
- },
2274
- "impactScore": {
2275
- "type": "float",
2276
- "id": 3
2277
- },
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
2333
+ },
2334
+ "vendor": {
2335
+ "type": "string",
2336
+ "id": 14
2337
+ }
2348
2338
  }
2349
2339
  },
2350
- "Impact": {
2351
- "values": {
2352
- "IMPACT_UNSPECIFIED": 0,
2353
- "IMPACT_HIGH": 1,
2354
- "IMPACT_LOW": 2,
2355
- "IMPACT_NONE": 3
2340
+ "WindowsDetail": {
2341
+ "fields": {
2342
+ "cpeUri": {
2343
+ "type": "string",
2344
+ "id": 1
2345
+ },
2346
+ "name": {
2347
+ "type": "string",
2348
+ "id": 2
2349
+ },
2350
+ "description": {
2351
+ "type": "string",
2352
+ "id": 3
2353
+ },
2354
+ "fixingKbs": {
2355
+ "rule": "repeated",
2356
+ "type": "KnowledgeBase",
2357
+ "id": 4
2358
+ }
2359
+ },
2360
+ "nested": {
2361
+ "KnowledgeBase": {
2362
+ "fields": {
2363
+ "name": {
2364
+ "type": "string",
2365
+ "id": 1
2366
+ },
2367
+ "url": {
2368
+ "type": "string",
2369
+ "id": 2
2370
+ }
2371
+ }
2372
+ }
2356
2373
  }
2357
2374
  }
2358
2375
  }
2359
2376
  },
2360
- "CVSS": {
2377
+ "VulnerabilityOccurrence": {
2361
2378
  "fields": {
2362
- "baseScore": {
2363
- "type": "float",
2379
+ "type": {
2380
+ "type": "string",
2364
2381
  "id": 1
2365
2382
  },
2366
- "exploitabilityScore": {
2367
- "type": "float",
2383
+ "severity": {
2384
+ "type": "grafeas.v1.Severity",
2368
2385
  "id": 2
2369
2386
  },
2370
- "impactScore": {
2387
+ "cvssScore": {
2371
2388
  "type": "float",
2372
2389
  "id": 3
2373
2390
  },
2374
- "attackVector": {
2375
- "type": "AttackVector",
2391
+ "cvssv3": {
2392
+ "type": "CVSS",
2393
+ "id": 10
2394
+ },
2395
+ "packageIssue": {
2396
+ "rule": "repeated",
2397
+ "type": "PackageIssue",
2376
2398
  "id": 4
2377
2399
  },
2378
- "attackComplexity": {
2379
- "type": "AttackComplexity",
2400
+ "shortDescription": {
2401
+ "type": "string",
2380
2402
  "id": 5
2381
2403
  },
2382
- "authentication": {
2383
- "type": "Authentication",
2404
+ "longDescription": {
2405
+ "type": "string",
2384
2406
  "id": 6
2385
2407
  },
2386
- "privilegesRequired": {
2387
- "type": "PrivilegesRequired",
2408
+ "relatedUrls": {
2409
+ "rule": "repeated",
2410
+ "type": "grafeas.v1.RelatedUrl",
2388
2411
  "id": 7
2389
2412
  },
2390
- "userInteraction": {
2391
- "type": "UserInteraction",
2413
+ "effectiveSeverity": {
2414
+ "type": "grafeas.v1.Severity",
2392
2415
  "id": 8
2393
2416
  },
2394
- "scope": {
2395
- "type": "Scope",
2417
+ "fixAvailable": {
2418
+ "type": "bool",
2396
2419
  "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
2409
2420
  }
2410
2421
  },
2411
2422
  "nested": {
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
2419
- }
2420
- },
2421
- "AttackComplexity": {
2422
- "values": {
2423
- "ATTACK_COMPLEXITY_UNSPECIFIED": 0,
2424
- "ATTACK_COMPLEXITY_LOW": 1,
2425
- "ATTACK_COMPLEXITY_HIGH": 2
2426
- }
2427
- },
2428
- "Authentication": {
2429
- "values": {
2430
- "AUTHENTICATION_UNSPECIFIED": 0,
2431
- "AUTHENTICATION_MULTIPLE": 1,
2432
- "AUTHENTICATION_SINGLE": 2,
2433
- "AUTHENTICATION_NONE": 3
2434
- }
2435
- },
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
- }
2443
- },
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
2423
+ "PackageIssue": {
2424
+ "fields": {
2425
+ "affectedCpeUri": {
2426
+ "type": "string",
2427
+ "id": 1
2428
+ },
2429
+ "affectedPackage": {
2430
+ "type": "string",
2431
+ "id": 2
2432
+ },
2433
+ "affectedVersion": {
2434
+ "type": "grafeas.v1.Version",
2435
+ "id": 3
2436
+ },
2437
+ "fixedCpeUri": {
2438
+ "type": "string",
2439
+ "id": 4
2440
+ },
2441
+ "fixedPackage": {
2442
+ "type": "string",
2443
+ "id": 5
2444
+ },
2445
+ "fixedVersion": {
2446
+ "type": "grafeas.v1.Version",
2447
+ "id": 6
2448
+ },
2449
+ "fixAvailable": {
2450
+ "type": "bool",
2451
+ "id": 7
2452
+ },
2453
+ "packageType": {
2454
+ "type": "string",
2455
+ "id": 8
2456
+ },
2457
+ "effectiveSeverity": {
2458
+ "type": "grafeas.v1.Severity",
2459
+ "id": 9,
2460
+ "options": {
2461
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2462
+ }
2463
+ }
2464
2464
  }
2465
2465
  }
2466
2466
  }
@@ -5610,6 +5610,13 @@
5610
5610
  "default": false
5611
5611
  }
5612
5612
  },
5613
+ "unverifiedLazy": {
5614
+ "type": "bool",
5615
+ "id": 15,
5616
+ "options": {
5617
+ "default": false
5618
+ }
5619
+ },
5613
5620
  "deprecated": {
5614
5621
  "type": "bool",
5615
5622
  "id": 3,
@@ -5907,21 +5914,6 @@
5907
5914
  }
5908
5915
  }
5909
5916
  },
5910
- "Timestamp": {
5911
- "fields": {
5912
- "seconds": {
5913
- "type": "int64",
5914
- "id": 1
5915
- },
5916
- "nanos": {
5917
- "type": "int32",
5918
- "id": 2
5919
- }
5920
- }
5921
- },
5922
- "Empty": {
5923
- "fields": {}
5924
- },
5925
5917
  "FieldMask": {
5926
5918
  "fields": {
5927
5919
  "paths": {
@@ -5942,6 +5934,21 @@
5942
5934
  "id": 2
5943
5935
  }
5944
5936
  }
5937
+ },
5938
+ "Timestamp": {
5939
+ "fields": {
5940
+ "seconds": {
5941
+ "type": "int64",
5942
+ "id": 1
5943
+ },
5944
+ "nanos": {
5945
+ "type": "int32",
5946
+ "id": 2
5947
+ }
5948
+ }
5949
+ },
5950
+ "Empty": {
5951
+ "fields": {}
5945
5952
  }
5946
5953
  }
5947
5954
  },
@@ -6029,6 +6036,10 @@
6029
6036
  "options": {
6030
6037
  "(google.api.field_behavior)": "REQUIRED"
6031
6038
  }
6039
+ },
6040
+ "updateMask": {
6041
+ "type": "google.protobuf.FieldMask",
6042
+ "id": 3
6032
6043
  }
6033
6044
  }
6034
6045
  },
@@ -6096,6 +6107,11 @@
6096
6107
  "type": "Binding",
6097
6108
  "id": 4
6098
6109
  },
6110
+ "auditConfigs": {
6111
+ "rule": "repeated",
6112
+ "type": "AuditConfig",
6113
+ "id": 6
6114
+ },
6099
6115
  "etag": {
6100
6116
  "type": "bytes",
6101
6117
  "id": 3
@@ -6119,6 +6135,42 @@
6119
6135
  }
6120
6136
  }
6121
6137
  },
6138
+ "AuditConfig": {
6139
+ "fields": {
6140
+ "service": {
6141
+ "type": "string",
6142
+ "id": 1
6143
+ },
6144
+ "auditLogConfigs": {
6145
+ "rule": "repeated",
6146
+ "type": "AuditLogConfig",
6147
+ "id": 3
6148
+ }
6149
+ }
6150
+ },
6151
+ "AuditLogConfig": {
6152
+ "fields": {
6153
+ "logType": {
6154
+ "type": "LogType",
6155
+ "id": 1
6156
+ },
6157
+ "exemptedMembers": {
6158
+ "rule": "repeated",
6159
+ "type": "string",
6160
+ "id": 2
6161
+ }
6162
+ },
6163
+ "nested": {
6164
+ "LogType": {
6165
+ "values": {
6166
+ "LOG_TYPE_UNSPECIFIED": 0,
6167
+ "ADMIN_READ": 1,
6168
+ "DATA_WRITE": 2,
6169
+ "DATA_READ": 3
6170
+ }
6171
+ }
6172
+ }
6173
+ },
6122
6174
  "PolicyDelta": {
6123
6175
  "fields": {
6124
6176
  "bindingDeltas": {