@google-cloud/containeranalysis 5.5.0 → 6.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,34 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/@google-cloud/containeranalysis?activeTab=versions
6
6
 
7
+ ## [6.0.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.6.0...containeranalysis-v6.0.0) (2025-03-18)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096))
13
+
14
+ ### Features
15
+
16
+ * Add request/response debug logging to gapics, update templates to gax 5 and node 18 ([#1671](https://github.com/googleapis/google-cloud-node/issues/1671)) ([7a23322](https://github.com/googleapis/google-cloud-node/commit/7a23322530b610eec2fe4c18fe1854048f31c811))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * Add json files to tsconfig templates ([#1692](https://github.com/googleapis/google-cloud-node/issues/1692)) (ba6be1d) ([7a23322](https://github.com/googleapis/google-cloud-node/commit/7a23322530b610eec2fe4c18fe1854048f31c811))
22
+
23
+
24
+ ### Miscellaneous Chores
25
+
26
+ * Upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096)) ([eadae64](https://github.com/googleapis/google-cloud-node/commit/eadae64d54e07aa2c65097ea52e65008d4e87436))
27
+
28
+ ## [5.6.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.5.0...containeranalysis-v5.6.0) (2024-08-09)
29
+
30
+
31
+ ### Features
32
+
33
+ * [containeranalysis] A new field `version` is added to message `.grafeas.v1.ComplianceOccurrence` ([#5586](https://github.com/googleapis/google-cloud-node/issues/5586)) ([f60f2f9](https://github.com/googleapis/google-cloud-node/commit/f60f2f901ce9aa4e51237246f359a6acf7f3d5b1))
34
+
7
35
  ## [5.5.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.4.0...containeranalysis-v5.5.0) (2024-05-21)
8
36
 
9
37
 
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import "google/iam/v1/policy.proto";
25
25
  import "grafeas/v1/severity.proto";
26
26
 
27
27
  option csharp_namespace = "Google.Cloud.DevTools.ContainerAnalysis.V1";
28
- option go_package = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1;containeranalysis";
28
+ option go_package = "cloud.google.com/go/containeranalysis/apiv1/containeranalysispb;containeranalysispb";
29
29
  option java_multiple_files = true;
30
30
  option java_package = "com.google.containeranalysis.v1";
31
31
  option objc_class_prefix = "GCA";
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -69,6 +69,8 @@ message ComplianceVersion {
69
69
  message ComplianceOccurrence {
70
70
  repeated NonCompliantFile non_compliant_files = 2;
71
71
  string non_compliance_reason = 3;
72
+ // The OS and config version the benchmark was run on.
73
+ grafeas.v1.ComplianceVersion version = 4;
72
74
  }
73
75
 
74
76
  // Details about files that caused a compliance check to fail.
@@ -123,4 +123,29 @@ message DiscoveryOccurrence {
123
123
 
124
124
  // The status of an SBOM generation.
125
125
  SBOMStatus sbom_status = 9;
126
+
127
+ // The status of an vulnerability attestation generation.
128
+ message VulnerabilityAttestation {
129
+ // An enum indicating the state of the attestation generation.
130
+ enum VulnerabilityAttestationState {
131
+ // Default unknown state.
132
+ VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0;
133
+ // Attestation was successfully generated and stored.
134
+ SUCCESS = 1;
135
+ // Attestation was unsuccessfully generated and stored.
136
+ FAILURE = 2;
137
+ }
138
+
139
+ // The last time we attempted to generate an attestation.
140
+ google.protobuf.Timestamp last_attempt_time = 1;
141
+
142
+ // The success/failure state of the latest attestation attempt.
143
+ VulnerabilityAttestationState state = 2;
144
+
145
+ // If failure, the error reason for why the attestation generation failed.
146
+ string error = 3;
147
+ }
148
+
149
+ // The status of an vulnerability attestation generation.
150
+ VulnerabilityAttestation vulnerability_attestation = 10;
126
151
  }
@@ -93,6 +93,9 @@ service Grafeas {
93
93
  returns (google.protobuf.Empty) {
94
94
  option (google.api.http) = {
95
95
  delete: "/v1/{name=projects/*/occurrences/*}"
96
+ additional_bindings {
97
+ delete: "/v1/{name=projects/*/locations/*/occurrences/*}"
98
+ }
96
99
  };
97
100
  option (google.api.method_signature) = "name";
98
101
  }
@@ -102,6 +105,10 @@ service Grafeas {
102
105
  option (google.api.http) = {
103
106
  post: "/v1/{parent=projects/*}/occurrences"
104
107
  body: "occurrence"
108
+ additional_bindings {
109
+ post: "/v1/{parent=projects/*/locations/*}/occurrences"
110
+ body: "occurrence"
111
+ }
105
112
  };
106
113
  option (google.api.method_signature) = "parent,occurrence";
107
114
  }
@@ -112,6 +119,10 @@ service Grafeas {
112
119
  option (google.api.http) = {
113
120
  post: "/v1/{parent=projects/*}/occurrences:batchCreate"
114
121
  body: "*"
122
+ additional_bindings {
123
+ post: "/v1/{parent=projects/*/locations/*}/occurrences:batchCreate"
124
+ body: "*"
125
+ }
115
126
  };
116
127
  option (google.api.method_signature) = "parent,occurrences";
117
128
  }
@@ -121,6 +132,10 @@ service Grafeas {
121
132
  option (google.api.http) = {
122
133
  patch: "/v1/{name=projects/*/occurrences/*}"
123
134
  body: "occurrence"
135
+ additional_bindings {
136
+ patch: "/v1/{name=projects/*/locations/*/occurrences/*}"
137
+ body: "occurrence"
138
+ }
124
139
  };
125
140
  option (google.api.method_signature) = "name,occurrence,update_mask";
126
141
  }
@@ -159,6 +174,9 @@ service Grafeas {
159
174
  rpc DeleteNote(DeleteNoteRequest) returns (google.protobuf.Empty) {
160
175
  option (google.api.http) = {
161
176
  delete: "/v1/{name=projects/*/notes/*}"
177
+ additional_bindings {
178
+ delete: "/v1/{name=projects/*/locations/*/notes/*}"
179
+ }
162
180
  };
163
181
  option (google.api.method_signature) = "name";
164
182
  }
@@ -168,6 +186,10 @@ service Grafeas {
168
186
  option (google.api.http) = {
169
187
  post: "/v1/{parent=projects/*}/notes"
170
188
  body: "note"
189
+ additional_bindings {
190
+ post: "/v1/{parent=projects/*/locations/*}/notes"
191
+ body: "note"
192
+ }
171
193
  };
172
194
  option (google.api.method_signature) = "parent,note_id,note";
173
195
  }
@@ -178,6 +200,10 @@ service Grafeas {
178
200
  option (google.api.http) = {
179
201
  post: "/v1/{parent=projects/*}/notes:batchCreate"
180
202
  body: "*"
203
+ additional_bindings {
204
+ post: "/v1/{parent=projects/*/locations/*}/notes:batchCreate"
205
+ body: "*"
206
+ }
181
207
  };
182
208
  option (google.api.method_signature) = "parent,notes";
183
209
  }
@@ -187,6 +213,10 @@ service Grafeas {
187
213
  option (google.api.http) = {
188
214
  patch: "/v1/{name=projects/*/notes/*}"
189
215
  body: "note"
216
+ additional_bindings {
217
+ patch: "/v1/{name=projects/*/locations/*/notes/*}"
218
+ body: "note"
219
+ }
190
220
  };
191
221
  option (google.api.method_signature) = "name,note,update_mask";
192
222
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -6290,6 +6290,9 @@ export namespace grafeas {
6290
6290
 
6291
6291
  /** ComplianceOccurrence nonComplianceReason */
6292
6292
  nonComplianceReason?: (string|null);
6293
+
6294
+ /** ComplianceOccurrence version */
6295
+ version?: (grafeas.v1.IComplianceVersion|null);
6293
6296
  }
6294
6297
 
6295
6298
  /** Represents a ComplianceOccurrence. */
@@ -6307,6 +6310,9 @@ export namespace grafeas {
6307
6310
  /** ComplianceOccurrence nonComplianceReason. */
6308
6311
  public nonComplianceReason: string;
6309
6312
 
6313
+ /** ComplianceOccurrence version. */
6314
+ public version?: (grafeas.v1.IComplianceVersion|null);
6315
+
6310
6316
  /**
6311
6317
  * Creates a new ComplianceOccurrence instance using the specified properties.
6312
6318
  * @param [properties] Properties to set
@@ -7297,6 +7303,9 @@ export namespace grafeas {
7297
7303
 
7298
7304
  /** DiscoveryOccurrence sbomStatus */
7299
7305
  sbomStatus?: (grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null);
7306
+
7307
+ /** DiscoveryOccurrence vulnerabilityAttestation */
7308
+ vulnerabilityAttestation?: (grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null);
7300
7309
  }
7301
7310
 
7302
7311
  /** Represents a DiscoveryOccurrence. */
@@ -7335,6 +7344,9 @@ export namespace grafeas {
7335
7344
  /** DiscoveryOccurrence sbomStatus. */
7336
7345
  public sbomStatus?: (grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null);
7337
7346
 
7347
+ /** DiscoveryOccurrence vulnerabilityAttestation. */
7348
+ public vulnerabilityAttestation?: (grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null);
7349
+
7338
7350
  /**
7339
7351
  * Creates a new DiscoveryOccurrence instance using the specified properties.
7340
7352
  * @param [properties] Properties to set
@@ -7642,6 +7654,125 @@ export namespace grafeas {
7642
7654
  COMPLETE = 2
7643
7655
  }
7644
7656
  }
7657
+
7658
+ /** Properties of a VulnerabilityAttestation. */
7659
+ interface IVulnerabilityAttestation {
7660
+
7661
+ /** VulnerabilityAttestation lastAttemptTime */
7662
+ lastAttemptTime?: (google.protobuf.ITimestamp|null);
7663
+
7664
+ /** VulnerabilityAttestation state */
7665
+ state?: (grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState|keyof typeof grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState|null);
7666
+
7667
+ /** VulnerabilityAttestation error */
7668
+ error?: (string|null);
7669
+ }
7670
+
7671
+ /** Represents a VulnerabilityAttestation. */
7672
+ class VulnerabilityAttestation implements IVulnerabilityAttestation {
7673
+
7674
+ /**
7675
+ * Constructs a new VulnerabilityAttestation.
7676
+ * @param [properties] Properties to set
7677
+ */
7678
+ constructor(properties?: grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation);
7679
+
7680
+ /** VulnerabilityAttestation lastAttemptTime. */
7681
+ public lastAttemptTime?: (google.protobuf.ITimestamp|null);
7682
+
7683
+ /** VulnerabilityAttestation state. */
7684
+ public state: (grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState|keyof typeof grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState);
7685
+
7686
+ /** VulnerabilityAttestation error. */
7687
+ public error: string;
7688
+
7689
+ /**
7690
+ * Creates a new VulnerabilityAttestation instance using the specified properties.
7691
+ * @param [properties] Properties to set
7692
+ * @returns VulnerabilityAttestation instance
7693
+ */
7694
+ public static create(properties?: grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation): grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation;
7695
+
7696
+ /**
7697
+ * Encodes the specified VulnerabilityAttestation message. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.verify|verify} messages.
7698
+ * @param message VulnerabilityAttestation message or plain object to encode
7699
+ * @param [writer] Writer to encode to
7700
+ * @returns Writer
7701
+ */
7702
+ public static encode(message: grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
7703
+
7704
+ /**
7705
+ * Encodes the specified VulnerabilityAttestation message, length delimited. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.verify|verify} messages.
7706
+ * @param message VulnerabilityAttestation message or plain object to encode
7707
+ * @param [writer] Writer to encode to
7708
+ * @returns Writer
7709
+ */
7710
+ public static encodeDelimited(message: grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
7711
+
7712
+ /**
7713
+ * Decodes a VulnerabilityAttestation message from the specified reader or buffer.
7714
+ * @param reader Reader or buffer to decode from
7715
+ * @param [length] Message length if known beforehand
7716
+ * @returns VulnerabilityAttestation
7717
+ * @throws {Error} If the payload is not a reader or valid buffer
7718
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7719
+ */
7720
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation;
7721
+
7722
+ /**
7723
+ * Decodes a VulnerabilityAttestation message from the specified reader or buffer, length delimited.
7724
+ * @param reader Reader or buffer to decode from
7725
+ * @returns VulnerabilityAttestation
7726
+ * @throws {Error} If the payload is not a reader or valid buffer
7727
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7728
+ */
7729
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation;
7730
+
7731
+ /**
7732
+ * Verifies a VulnerabilityAttestation message.
7733
+ * @param message Plain object to verify
7734
+ * @returns `null` if valid, otherwise the reason why it is not
7735
+ */
7736
+ public static verify(message: { [k: string]: any }): (string|null);
7737
+
7738
+ /**
7739
+ * Creates a VulnerabilityAttestation message from a plain object. Also converts values to their respective internal types.
7740
+ * @param object Plain object
7741
+ * @returns VulnerabilityAttestation
7742
+ */
7743
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation;
7744
+
7745
+ /**
7746
+ * Creates a plain object from a VulnerabilityAttestation message. Also converts values to other types if specified.
7747
+ * @param message VulnerabilityAttestation
7748
+ * @param [options] Conversion options
7749
+ * @returns Plain object
7750
+ */
7751
+ public static toObject(message: grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation, options?: $protobuf.IConversionOptions): { [k: string]: any };
7752
+
7753
+ /**
7754
+ * Converts this VulnerabilityAttestation to JSON.
7755
+ * @returns JSON object
7756
+ */
7757
+ public toJSON(): { [k: string]: any };
7758
+
7759
+ /**
7760
+ * Gets the default type url for VulnerabilityAttestation
7761
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7762
+ * @returns The default type url
7763
+ */
7764
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7765
+ }
7766
+
7767
+ namespace VulnerabilityAttestation {
7768
+
7769
+ /** VulnerabilityAttestationState enum. */
7770
+ enum VulnerabilityAttestationState {
7771
+ VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0,
7772
+ SUCCESS = 1,
7773
+ FAILURE = 2
7774
+ }
7775
+ }
7645
7776
  }
7646
7777
 
7647
7778
  /** Properties of a DSSEAttestationNote. */