@google-cloud/containeranalysis 6.4.0 → 6.5.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.
@@ -156,4 +156,7 @@ message DiscoveryOccurrence {
156
156
 
157
157
  // Files that make up the resource described by the occurrence.
158
158
  repeated File files = 11;
159
+
160
+ // The last time vulnerability scan results changed.
161
+ google.protobuf.Timestamp last_vulnerability_update_time = 12;
159
162
  }
@@ -7546,6 +7546,9 @@ export namespace grafeas {
7546
7546
 
7547
7547
  /** DiscoveryOccurrence files */
7548
7548
  files?: (grafeas.v1.DiscoveryOccurrence.IFile[]|null);
7549
+
7550
+ /** DiscoveryOccurrence lastVulnerabilityUpdateTime */
7551
+ lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null);
7549
7552
  }
7550
7553
 
7551
7554
  /** Represents a DiscoveryOccurrence. */
@@ -7590,6 +7593,9 @@ export namespace grafeas {
7590
7593
  /** DiscoveryOccurrence files. */
7591
7594
  public files: grafeas.v1.DiscoveryOccurrence.IFile[];
7592
7595
 
7596
+ /** DiscoveryOccurrence lastVulnerabilityUpdateTime. */
7597
+ public lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null);
7598
+
7593
7599
  /**
7594
7600
  * Creates a new DiscoveryOccurrence instance using the specified properties.
7595
7601
  * @param [properties] Properties to set
@@ -19713,6 +19713,7 @@
19713
19713
  * @property {grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null} [sbomStatus] DiscoveryOccurrence sbomStatus
19714
19714
  * @property {grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null} [vulnerabilityAttestation] DiscoveryOccurrence vulnerabilityAttestation
19715
19715
  * @property {Array.<grafeas.v1.DiscoveryOccurrence.IFile>|null} [files] DiscoveryOccurrence files
19716
+ * @property {google.protobuf.ITimestamp|null} [lastVulnerabilityUpdateTime] DiscoveryOccurrence lastVulnerabilityUpdateTime
19716
19717
  */
19717
19718
 
19718
19719
  /**
@@ -19820,6 +19821,14 @@
19820
19821
  */
19821
19822
  DiscoveryOccurrence.prototype.files = $util.emptyArray;
19822
19823
 
19824
+ /**
19825
+ * DiscoveryOccurrence lastVulnerabilityUpdateTime.
19826
+ * @member {google.protobuf.ITimestamp|null|undefined} lastVulnerabilityUpdateTime
19827
+ * @memberof grafeas.v1.DiscoveryOccurrence
19828
+ * @instance
19829
+ */
19830
+ DiscoveryOccurrence.prototype.lastVulnerabilityUpdateTime = null;
19831
+
19823
19832
  /**
19824
19833
  * Creates a new DiscoveryOccurrence instance using the specified properties.
19825
19834
  * @function create
@@ -19868,6 +19877,8 @@
19868
19877
  if (message.files != null && message.files.length)
19869
19878
  for (var i = 0; i < message.files.length; ++i)
19870
19879
  $root.grafeas.v1.DiscoveryOccurrence.File.encode(message.files[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
19880
+ if (message.lastVulnerabilityUpdateTime != null && Object.hasOwnProperty.call(message, "lastVulnerabilityUpdateTime"))
19881
+ $root.google.protobuf.Timestamp.encode(message.lastVulnerabilityUpdateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
19871
19882
  return writer;
19872
19883
  };
19873
19884
 
@@ -19952,6 +19963,10 @@
19952
19963
  message.files.push($root.grafeas.v1.DiscoveryOccurrence.File.decode(reader, reader.uint32()));
19953
19964
  break;
19954
19965
  }
19966
+ case 12: {
19967
+ message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
19968
+ break;
19969
+ }
19955
19970
  default:
19956
19971
  reader.skipType(tag & 7);
19957
19972
  break;
@@ -20060,6 +20075,11 @@
20060
20075
  return "files." + error;
20061
20076
  }
20062
20077
  }
20078
+ if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime")) {
20079
+ var error = $root.google.protobuf.Timestamp.verify(message.lastVulnerabilityUpdateTime);
20080
+ if (error)
20081
+ return "lastVulnerabilityUpdateTime." + error;
20082
+ }
20063
20083
  return null;
20064
20084
  };
20065
20085
 
@@ -20183,6 +20203,11 @@
20183
20203
  message.files[i] = $root.grafeas.v1.DiscoveryOccurrence.File.fromObject(object.files[i]);
20184
20204
  }
20185
20205
  }
20206
+ if (object.lastVulnerabilityUpdateTime != null) {
20207
+ if (typeof object.lastVulnerabilityUpdateTime !== "object")
20208
+ throw TypeError(".grafeas.v1.DiscoveryOccurrence.lastVulnerabilityUpdateTime: object expected");
20209
+ message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastVulnerabilityUpdateTime);
20210
+ }
20186
20211
  return message;
20187
20212
  };
20188
20213
 
@@ -20213,6 +20238,7 @@
20213
20238
  object.analysisCompleted = null;
20214
20239
  object.sbomStatus = null;
20215
20240
  object.vulnerabilityAttestation = null;
20241
+ object.lastVulnerabilityUpdateTime = null;
20216
20242
  }
20217
20243
  if (message.continuousAnalysis != null && message.hasOwnProperty("continuousAnalysis"))
20218
20244
  object.continuousAnalysis = options.enums === String ? $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] === undefined ? message.continuousAnalysis : $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] : message.continuousAnalysis;
@@ -20242,6 +20268,8 @@
20242
20268
  for (var j = 0; j < message.files.length; ++j)
20243
20269
  object.files[j] = $root.grafeas.v1.DiscoveryOccurrence.File.toObject(message.files[j], options);
20244
20270
  }
20271
+ if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime"))
20272
+ object.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastVulnerabilityUpdateTime, options);
20245
20273
  return object;
20246
20274
  };
20247
20275
 
@@ -1507,6 +1507,10 @@
1507
1507
  "rule": "repeated",
1508
1508
  "type": "File",
1509
1509
  "id": 11
1510
+ },
1511
+ "lastVulnerabilityUpdateTime": {
1512
+ "type": "google.protobuf.Timestamp",
1513
+ "id": 12
1510
1514
  }
1511
1515
  },
1512
1516
  "nested": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/containeranalysis",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "description": "Containeranalysis client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",