@google-cloud/containeranalysis 6.5.0 → 6.6.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.
|
@@ -144,6 +144,8 @@ message BaseImage {
|
|
|
144
144
|
string repository = 2;
|
|
145
145
|
// The number of layers that the base image is composed of.
|
|
146
146
|
int32 layer_count = 3;
|
|
147
|
+
// The registry in which the base image is from.
|
|
148
|
+
string registry = 4;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
// Details about the layer a package was found in.
|
|
@@ -157,7 +157,10 @@ message VulnerabilityNote {
|
|
|
157
157
|
// The full description of the v2 CVSS for this vulnerability.
|
|
158
158
|
CVSS cvss_v2 = 8;
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// The time this advisory was published by the source.
|
|
161
|
+
google.protobuf.Timestamp advisory_publish_time = 9;
|
|
162
|
+
|
|
163
|
+
// Next free ID is 10.
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
// An occurrence of a severity vulnerability on a resource.
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -983,6 +983,9 @@ export namespace grafeas {
|
|
|
983
983
|
|
|
984
984
|
/** BaseImage layerCount */
|
|
985
985
|
layerCount?: (number|null);
|
|
986
|
+
|
|
987
|
+
/** BaseImage registry */
|
|
988
|
+
registry?: (string|null);
|
|
986
989
|
}
|
|
987
990
|
|
|
988
991
|
/** Represents a BaseImage. */
|
|
@@ -1003,6 +1006,9 @@ export namespace grafeas {
|
|
|
1003
1006
|
/** BaseImage layerCount. */
|
|
1004
1007
|
public layerCount: number;
|
|
1005
1008
|
|
|
1009
|
+
/** BaseImage registry. */
|
|
1010
|
+
public registry: string;
|
|
1011
|
+
|
|
1006
1012
|
/**
|
|
1007
1013
|
* Creates a new BaseImage instance using the specified properties.
|
|
1008
1014
|
* @param [properties] Properties to set
|
|
@@ -14648,6 +14654,9 @@ export namespace grafeas {
|
|
|
14648
14654
|
|
|
14649
14655
|
/** VulnerabilityNote cvssV2 */
|
|
14650
14656
|
cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14657
|
+
|
|
14658
|
+
/** VulnerabilityNote advisoryPublishTime */
|
|
14659
|
+
advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14651
14660
|
}
|
|
14652
14661
|
|
|
14653
14662
|
/** Represents a VulnerabilityNote. */
|
|
@@ -14683,6 +14692,9 @@ export namespace grafeas {
|
|
|
14683
14692
|
/** VulnerabilityNote cvssV2. */
|
|
14684
14693
|
public cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14685
14694
|
|
|
14695
|
+
/** VulnerabilityNote advisoryPublishTime. */
|
|
14696
|
+
public advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14697
|
+
|
|
14686
14698
|
/**
|
|
14687
14699
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
14688
14700
|
* @param [properties] Properties to set
|
package/build/protos/protos.js
CHANGED
|
@@ -2263,6 +2263,7 @@
|
|
|
2263
2263
|
* @property {string|null} [name] BaseImage name
|
|
2264
2264
|
* @property {string|null} [repository] BaseImage repository
|
|
2265
2265
|
* @property {number|null} [layerCount] BaseImage layerCount
|
|
2266
|
+
* @property {string|null} [registry] BaseImage registry
|
|
2266
2267
|
*/
|
|
2267
2268
|
|
|
2268
2269
|
/**
|
|
@@ -2304,6 +2305,14 @@
|
|
|
2304
2305
|
*/
|
|
2305
2306
|
BaseImage.prototype.layerCount = 0;
|
|
2306
2307
|
|
|
2308
|
+
/**
|
|
2309
|
+
* BaseImage registry.
|
|
2310
|
+
* @member {string} registry
|
|
2311
|
+
* @memberof grafeas.v1.BaseImage
|
|
2312
|
+
* @instance
|
|
2313
|
+
*/
|
|
2314
|
+
BaseImage.prototype.registry = "";
|
|
2315
|
+
|
|
2307
2316
|
/**
|
|
2308
2317
|
* Creates a new BaseImage instance using the specified properties.
|
|
2309
2318
|
* @function create
|
|
@@ -2334,6 +2343,8 @@
|
|
|
2334
2343
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.repository);
|
|
2335
2344
|
if (message.layerCount != null && Object.hasOwnProperty.call(message, "layerCount"))
|
|
2336
2345
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.layerCount);
|
|
2346
|
+
if (message.registry != null && Object.hasOwnProperty.call(message, "registry"))
|
|
2347
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.registry);
|
|
2337
2348
|
return writer;
|
|
2338
2349
|
};
|
|
2339
2350
|
|
|
@@ -2382,6 +2393,10 @@
|
|
|
2382
2393
|
message.layerCount = reader.int32();
|
|
2383
2394
|
break;
|
|
2384
2395
|
}
|
|
2396
|
+
case 4: {
|
|
2397
|
+
message.registry = reader.string();
|
|
2398
|
+
break;
|
|
2399
|
+
}
|
|
2385
2400
|
default:
|
|
2386
2401
|
reader.skipType(tag & 7);
|
|
2387
2402
|
break;
|
|
@@ -2426,6 +2441,9 @@
|
|
|
2426
2441
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2427
2442
|
if (!$util.isInteger(message.layerCount))
|
|
2428
2443
|
return "layerCount: integer expected";
|
|
2444
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2445
|
+
if (!$util.isString(message.registry))
|
|
2446
|
+
return "registry: string expected";
|
|
2429
2447
|
return null;
|
|
2430
2448
|
};
|
|
2431
2449
|
|
|
@@ -2447,6 +2465,8 @@
|
|
|
2447
2465
|
message.repository = String(object.repository);
|
|
2448
2466
|
if (object.layerCount != null)
|
|
2449
2467
|
message.layerCount = object.layerCount | 0;
|
|
2468
|
+
if (object.registry != null)
|
|
2469
|
+
message.registry = String(object.registry);
|
|
2450
2470
|
return message;
|
|
2451
2471
|
};
|
|
2452
2472
|
|
|
@@ -2467,6 +2487,7 @@
|
|
|
2467
2487
|
object.name = "";
|
|
2468
2488
|
object.repository = "";
|
|
2469
2489
|
object.layerCount = 0;
|
|
2490
|
+
object.registry = "";
|
|
2470
2491
|
}
|
|
2471
2492
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
2472
2493
|
object.name = message.name;
|
|
@@ -2474,6 +2495,8 @@
|
|
|
2474
2495
|
object.repository = message.repository;
|
|
2475
2496
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2476
2497
|
object.layerCount = message.layerCount;
|
|
2498
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2499
|
+
object.registry = message.registry;
|
|
2477
2500
|
return object;
|
|
2478
2501
|
};
|
|
2479
2502
|
|
|
@@ -38217,6 +38240,7 @@
|
|
|
38217
38240
|
* @property {google.protobuf.ITimestamp|null} [sourceUpdateTime] VulnerabilityNote sourceUpdateTime
|
|
38218
38241
|
* @property {grafeas.v1.CVSSVersion|null} [cvssVersion] VulnerabilityNote cvssVersion
|
|
38219
38242
|
* @property {grafeas.v1.ICVSS|null} [cvssV2] VulnerabilityNote cvssV2
|
|
38243
|
+
* @property {google.protobuf.ITimestamp|null} [advisoryPublishTime] VulnerabilityNote advisoryPublishTime
|
|
38220
38244
|
*/
|
|
38221
38245
|
|
|
38222
38246
|
/**
|
|
@@ -38300,6 +38324,14 @@
|
|
|
38300
38324
|
*/
|
|
38301
38325
|
VulnerabilityNote.prototype.cvssV2 = null;
|
|
38302
38326
|
|
|
38327
|
+
/**
|
|
38328
|
+
* VulnerabilityNote advisoryPublishTime.
|
|
38329
|
+
* @member {google.protobuf.ITimestamp|null|undefined} advisoryPublishTime
|
|
38330
|
+
* @memberof grafeas.v1.VulnerabilityNote
|
|
38331
|
+
* @instance
|
|
38332
|
+
*/
|
|
38333
|
+
VulnerabilityNote.prototype.advisoryPublishTime = null;
|
|
38334
|
+
|
|
38303
38335
|
/**
|
|
38304
38336
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
38305
38337
|
* @function create
|
|
@@ -38342,6 +38374,8 @@
|
|
|
38342
38374
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cvssVersion);
|
|
38343
38375
|
if (message.cvssV2 != null && Object.hasOwnProperty.call(message, "cvssV2"))
|
|
38344
38376
|
$root.grafeas.v1.CVSS.encode(message.cvssV2, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
38377
|
+
if (message.advisoryPublishTime != null && Object.hasOwnProperty.call(message, "advisoryPublishTime"))
|
|
38378
|
+
$root.google.protobuf.Timestamp.encode(message.advisoryPublishTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
38345
38379
|
return writer;
|
|
38346
38380
|
};
|
|
38347
38381
|
|
|
@@ -38414,6 +38448,10 @@
|
|
|
38414
38448
|
message.cvssV2 = $root.grafeas.v1.CVSS.decode(reader, reader.uint32());
|
|
38415
38449
|
break;
|
|
38416
38450
|
}
|
|
38451
|
+
case 9: {
|
|
38452
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
38453
|
+
break;
|
|
38454
|
+
}
|
|
38417
38455
|
default:
|
|
38418
38456
|
reader.skipType(tag & 7);
|
|
38419
38457
|
break;
|
|
@@ -38506,6 +38544,11 @@
|
|
|
38506
38544
|
if (error)
|
|
38507
38545
|
return "cvssV2." + error;
|
|
38508
38546
|
}
|
|
38547
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime")) {
|
|
38548
|
+
var error = $root.google.protobuf.Timestamp.verify(message.advisoryPublishTime);
|
|
38549
|
+
if (error)
|
|
38550
|
+
return "advisoryPublishTime." + error;
|
|
38551
|
+
}
|
|
38509
38552
|
return null;
|
|
38510
38553
|
};
|
|
38511
38554
|
|
|
@@ -38610,6 +38653,11 @@
|
|
|
38610
38653
|
throw TypeError(".grafeas.v1.VulnerabilityNote.cvssV2: object expected");
|
|
38611
38654
|
message.cvssV2 = $root.grafeas.v1.CVSS.fromObject(object.cvssV2);
|
|
38612
38655
|
}
|
|
38656
|
+
if (object.advisoryPublishTime != null) {
|
|
38657
|
+
if (typeof object.advisoryPublishTime !== "object")
|
|
38658
|
+
throw TypeError(".grafeas.v1.VulnerabilityNote.advisoryPublishTime: object expected");
|
|
38659
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.fromObject(object.advisoryPublishTime);
|
|
38660
|
+
}
|
|
38613
38661
|
return message;
|
|
38614
38662
|
};
|
|
38615
38663
|
|
|
@@ -38637,6 +38685,7 @@
|
|
|
38637
38685
|
object.sourceUpdateTime = null;
|
|
38638
38686
|
object.cvssVersion = options.enums === String ? "CVSS_VERSION_UNSPECIFIED" : 0;
|
|
38639
38687
|
object.cvssV2 = null;
|
|
38688
|
+
object.advisoryPublishTime = null;
|
|
38640
38689
|
}
|
|
38641
38690
|
if (message.cvssScore != null && message.hasOwnProperty("cvssScore"))
|
|
38642
38691
|
object.cvssScore = options.json && !isFinite(message.cvssScore) ? String(message.cvssScore) : message.cvssScore;
|
|
@@ -38660,6 +38709,8 @@
|
|
|
38660
38709
|
object.cvssVersion = options.enums === String ? $root.grafeas.v1.CVSSVersion[message.cvssVersion] === undefined ? message.cvssVersion : $root.grafeas.v1.CVSSVersion[message.cvssVersion] : message.cvssVersion;
|
|
38661
38710
|
if (message.cvssV2 != null && message.hasOwnProperty("cvssV2"))
|
|
38662
38711
|
object.cvssV2 = $root.grafeas.v1.CVSS.toObject(message.cvssV2, options);
|
|
38712
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime"))
|
|
38713
|
+
object.advisoryPublishTime = $root.google.protobuf.Timestamp.toObject(message.advisoryPublishTime, options);
|
|
38663
38714
|
return object;
|
|
38664
38715
|
};
|
|
38665
38716
|
|
package/build/protos/protos.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"layerCount": {
|
|
164
164
|
"type": "int32",
|
|
165
165
|
"id": 3
|
|
166
|
+
},
|
|
167
|
+
"registry": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"id": 4
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
172
|
},
|
|
@@ -3331,6 +3335,10 @@
|
|
|
3331
3335
|
"cvssV2": {
|
|
3332
3336
|
"type": "CVSS",
|
|
3333
3337
|
"id": 8
|
|
3338
|
+
},
|
|
3339
|
+
"advisoryPublishTime": {
|
|
3340
|
+
"type": "google.protobuf.Timestamp",
|
|
3341
|
+
"id": 9
|
|
3334
3342
|
}
|
|
3335
3343
|
},
|
|
3336
3344
|
"nested": {
|